* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    background: transparent;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;              /* fallback */
    background: url("/background-2.jpg") no-repeat center center;
    background-size: cover;
    z-index: -2;
    transform: translateZ(0);   /* prevents repaint jitter */
}

@supports (height: 100svh) {
    body::before {
        height: 100svh; /* small viewport height – stable */
    }
}

/* Dark overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    background: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

header h1 {
    font-size: 2.5rem;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

p, h2 {
    color: #333;
}

.topbar-row {
  position: relative;
  width: 100%;
  height: 240px;
}

.home-btn {
  position: absolute;
  top: 0;
  left: 0;
}

.home-btn a,
.home-btn a:visited {
  color: #000;            /* 🔑 force black */
  text-decoration: none;  /* remove underline */
}

.top-menu {
  position: absolute;
  top: 0;
  right: 0;
  position: absolute;
}

.taxi-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.taxi-logo a {
  display: block;
}

.taxi-logo img {
  display: block;
  width: 220px;
  height: auto;
}

@media (max-width: 480px) {
  .taxi-logo img {
    width: 180px;   /* 🔑 smaller on phones */
  }

  .topbar-row {
    height: 180px;  /* 🔑 reduce header height to match */
  }
}

.home-btn a,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 8px;
}

.menu-btn {
  background: transparent;
  border: 0px solid rgba(255,255,255,0.2);
  color: #000000;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

.home-btn .material-symbols-outlined,
.menu-btn .material-symbols-outlined {
  font-size: 28px;   /* 🔑 makes icon visible size */
  color: #000;       /* keeps it black (no purple) */
  line-height: 1;
}

/* ===== TAXI LOGO INDEX ===== */

.taxi-logo-index {
    display: flex;
    justify-content: center;
}

.taxi-logo-index img {
    width: 50vw;      /* default = landscape behaviour */
    max-width: 1000px; /* optional safety cap */
    height: auto;
}

/* Portrait screens */
@media (orientation: portrait) {
    .taxi-logo-index img {
        width: 100vw;
    }
}

/* Dropdown */
.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: linear-gradient(180deg, #141c2b, #0f1624);
  border: 1px solid rgba(120,160,220,0.22);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  display: none;
  overflow: hidden;
  z-index: 50;
}

/* Dropdown items */
.menu-dropdown a {
  display: block;
  padding: 10px 14px;
  color: #e8eef7;
  text-decoration: none;
  font-size: 16px;
  text-align: left;
}

.menu-dropdown a:hover {
  background: rgba(255,255,255,0.08);
}

.description {
    max-width: 600px;
    margin: 15px auto 0px auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
}

/* Buttons */
.button-container {
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    gap: 12px;
}

.page-wrapper {
    /*background-color: rgba(255, 255, 255, 0.85);*/
    background-color: rgba(147, 146, 146, 0.3);
    /*background: rgba(0,0,0,0);*/
    padding: 20px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
}

.about-page .page-wrapper {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
}

.nav-btn {
    background-color: #333; 
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.2s ease;
}

.nav-btn:hover {
    background-color: #555;
    transform: scale(1.05);
}

.enter-btn {
    display: block;
    margin: 0 auto 10px auto;
    width: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: rgb(36, 36, 36);
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: 0.2s ease;

    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.enter-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);

    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.admin-btn {
    display: block;
    margin: 0 auto 15px auto;
    width: 50%;
    background-color: #33333382; 
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.2s ease;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    .nav-btn .admin-btn {
        font-size: 1rem;
        padding: 12px;
    }
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.85);
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

.back-btn:hover {
    background: white;
}

.map-btn-img {
    width: 200px;        /* adjust size */
    height: auto;
    display: block;
    margin: 20px auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.map-btn-img:hover {
    transform: scale(1.05);
}

 /* Page-specific styling */
.page-card {
    background: rgba(255,255,255,0.9);
    color: black;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.page-card h3 {
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.page-card p {
    margin-bottom: 4px;
}

.add-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.85);
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}
.add-btn:hover {
    background: white;
}

.drivers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.driver-card {
    background: rgba(255,255,255,0.9);
    color: black;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.driver-card img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.driver-info h3 {
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.driver-info p {
    margin-bottom: 4px;
}

.driver-info a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.driver-info a:hover {
    text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .driver-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .driver-card img {
        width: 100%;
        height: auto;
    }
}

/*-----------------------------------------------------------*/
/* Filters – single row, responsive shrink */

.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    flex-wrap: nowrap;      /* stay on one row */
    overflow: hidden;       /* no clipped edges */

    margin-top: 10px;
    margin-bottom: 20px;
}

/* Responsive selects */
.filter-bar select {
    flex: 1 1 0;            /* 🔑 allow shrinking */
    min-width: 0;           /* 🔑 critical for flexbox */
    max-width: 220px;

    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/*------------------------Admin----------------------------*/

.admin-wrapper {
    /*background-color: rgba(255, 255, 255, 0.85);*/
    background-color: rgba(147, 146, 146, 0.3);
    /*background: rgba(0,0,0,0);*/
    padding: 20px;
    margin: 15px auto;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
}

.admin-card {
    background: rgba(255,255,255,0.95);
    color: black;
    padding: 20px;
    border-radius: 12px;
}

.admin-card h2 {
    margin-bottom: 15px;
    text-align: center;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form input,
.admin-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form button {
    margin-top: 10px;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: black;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

/*.admin-form button:hover {
    background: #333;
}*/

.admin-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.admin-actions a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.admin-actions a:hover {
    text-decoration: underline;
}

/* Admin buttons inline with title */
.admin-icons a {
    margin-left: 10px;
    font-size: 1rem;
    text-decoration: none;
}

.logout-link {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: block;
}

.logout-link:hover {
    text-decoration: underline;
}

/*---------------------------------------------------------*/

.map-link {
    margin-left: 6px;
    font-size: 1.2rem;
    text-decoration: none;
}

.map-link:hover {
    opacity: 0.7;
}

/*----------------------------------------------------------------*/

.admin-form select,
.admin-copy-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    appearance: none;       /* removes default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7l4.5 5 4.5-5H5.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

/* Match input focus style */
.admin-form select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79,70,229,.15);
}

.admin-copy-form {
    margin-top: 20px;
}

.michelin-link {
    margin-top: 0px;
    text-align: center;
}

.michelin-link a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform .2s ease, box-shadow .2s ease;
}

.michelin-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.michelin-logo {
    height: 30px;
    width: auto;
}

/*--------------Grid------------------------------------------*/

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    width: 100%;
    max-width: 520px;

    margin: 0 auto;          /* 🔥 perfect horizontal center */
    justify-content: center; /* ensures grid tracks are centered */
}


.menu-tile {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 10px 10px;
    text-decoration: none;
    color: black;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: unset;
    
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.menu-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.menu-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.menu-tile .label {
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
}

/* Book Taxi highlight */
.menu-tile.highlight {
    background: rgba(255, 200, 0, 0.85);
}

.menu-tile.restaurants {
    background: rgba(247, 12, 24, 0.5);
}

.menu-tile.pubs {
    background: rgba(254, 190, 0, 0.5);
}

.menu-tile.attractions {
    background: rgba(0, 158, 216, 0.5);
}

.menu-tile.museums {
    background: rgba(136, 48, 168, 0.5);
}

.menu-tile.music {
    background: rgba(36, 233, 187, 0.5);
}

.menu-tile.foodhalls {
    background: rgba(34, 113, 46, 0.5);
}

.menu-tile.nightlife {
    background: rgb(17, 90, 133, 0.5);
}

.menu-tile.curiosity {
    background: rgb(150, 197, 0, 0.5);
}

.menu-tile.historical {
    background: rgb(255, 137, 0, 0.5);
}

.menu-tile.shopping {
    background: rgb(195, 6, 82, 0.5);
}

.menu-tile.wellness {
    background: rgb(255, 93, 179, 0.5);
}

/*------------------------ LOCATION MULTI-SELECT ----------------------*/

.ms {
    position: relative;
    width: 100%;
}

.ms-btn {
    width: 100%;
    padding: 12px 14px;
    padding-right: 40px;
    border-radius: 8px;
    background-color: #fff;
    color: #555;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;

    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7l4.5 5 4.5-5H5.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.admin-form .ms-btn {
    border: 1px solid #ccc;
    background-color: #fff;
    color: #555;
    font-weight: normal;

    /* 🔑 RE-ADD arrow here */
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7l4.5 5 4.5-5H5.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.ms-btn:focus,
.ms-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.ms-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    padding: 6px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Each option row */
.ms-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;              /* 🔑 fixes vertical misalignment */
    column-gap: 12px;

    padding: 10px 14px;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
}

/* Checkbox */
.ms-item input[type="checkbox"] {
    margin-top: 2px;                 /* fine-tune alignment */
}

/* Hover */
.ms-item:hover {
    background: #f5f5f5;
}

.map-pill {
    display: inline-block;
    margin-left: 2px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    color: #000;
    vertical-align: middle;
}

.map-pill:hover {
    background: rgba(0,0,0,0.15);
}
