* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
}

html {
    overflow-y: auto;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    background: transparent;
    position: relative;
}

body:not(.map-app-page) {
    min-height: 100vh;
    overflow-y: visible;
    overscroll-behavior: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

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 */
    pointer-events: none;
}

@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;
    pointer-events: none;
}

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: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.driver-card img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    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;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.contact-card p {
    margin: 0 0 12px;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card a {
    color: #111;
    font-weight: 700;
}

.help-page-wrapper {
    display: grid;
    gap: 18px;
}

.help-card {
    padding: 22px;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    text-align: left;
}

.help-card h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 1.6rem;
}

.help-card p {
    margin: 0 0 12px;
    color: #333;
    line-height: 1.45;
}

.help-card p:last-child {
    margin-bottom: 0;
}

.help-card a {
    color: #111;
    font-weight: 700;
}

.help-card-action {
    margin-top: 14px;
    background: #111;
    color: #fff !important;
}

.privacy-page-wrapper {
    max-width: 920px;
    text-align: left;
}

.privacy-page-wrapper .help-card {
    margin-bottom: 18px;
}

.privacy-page-wrapper h2,
.privacy-page-wrapper h3 {
    color: #111;
}

.privacy-page-wrapper h3 {
    margin: 18px 0 8px;
    font-size: 1.15rem;
}

.privacy-page-wrapper p,
.privacy-page-wrapper li {
    color: #333;
    line-height: 1.55;
}

.privacy-page-wrapper ul {
    margin: 0 0 14px 22px;
}

.privacy-updated {
    color: #555;
    font-weight: 700;
}

/* 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: 8px;
    max-width: 600px;
    width: 100%;
}

.admin-card {
    background: rgba(255,255,255,0.95);
    color: black;
    padding: 20px;
    border-radius: 8px;
}

.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-family: inherit;
    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-top {
    margin-top: 0;
    margin-bottom: 12px;
}

.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;
}

@media (max-width: 600px) {
    body:has(.admin-wrapper) {
        padding-right: 0;
        padding-left: 0;
    }

    .admin-wrapper {
        width: 100%;
        max-width: none;
        margin: 15px auto;
        padding: 14px 0;
        background-color: rgba(147, 146, 146, 0.3);
        border-radius: 8px;
    }

    .admin-card {
        width: 95%;
        margin: 0 auto;
        padding: 20px 14px;
        border-radius: 8px;
    }

    .admin-form {
        align-items: center;
    }

    .admin-form input,
    .admin-form textarea,
    .admin-form select,
    .admin-form .ms,
    .admin-form button {
        width: 95%;
    }

    .admin-form textarea {
        min-height: 190px;
        line-height: 1.35;
    }

    .admin-form .ms-btn {
        width: 100%;
    }
}

/*------------------------ 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);
}

/*------------------------Map app----------------------------*/

body.map-app-page {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    padding: 0;
    overflow: visible;
    display: block;
    text-align: left;
    color: #111;
    background: #f5f3ee;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

body.map-app-page::before,
body.map-app-page::after {
    display: none;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100%;
    background: #ebe7df;
}

.map-shell {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.map-shell > * {
    pointer-events: auto;
}

.map-admin-drag {
    position: fixed;
    top: 66px;
    left: max(10px, calc(50% - 360px));
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    color: #111;
    font-size: 24px;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    cursor: pointer;
}

.map-admin-drag[hidden] {
    display: none;
}

.map-admin-drag.is-active {
    background: #d40000;
    color: #fff;
}

.map-search-toolbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: start;
    gap: 6px;
    width: min(720px, calc(100vw - 20px));
    margin: 0 auto;
}

.map-search-row {
    display: grid;
    grid-template-columns: 24px 1fr 34px;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 5px 8px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.map-toolbar-menu {
    position: relative;
}

.topbar-row .top-menu.map-toolbar-menu {
    position: absolute;
    top: 0;
    right: 0;
}

.topbar-row .map-home-btn a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 8px;
    background: rgba(255,255,255,0.75);
    color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.topbar-row .map-home-btn .material-symbols-outlined {
    font-size: 22px;
}

.map-toolbar-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 8px;
    background: rgba(255,255,255,0.75);
    color: #111;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    cursor: pointer;
}

.map-toolbar-button[aria-expanded="true"] {
    background: rgba(255,255,255,0.94);
}

.map-toolbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 5;
    width: min(300px, calc(100vw - 20px));
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 14px 36px rgba(0,0,0,0.24);
    color: #111;
}

.map-toolbar-dropdown[hidden] {
    display: none;
}

.map-filter-menu {
    left: 0;
    max-height: min(520px, calc(100svh - 80px));
    overflow-y: auto;
}

.map-filter-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(0,0,0,0.09);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.map-filter-option:last-child {
    border-bottom: 0;
}

.map-filter-option input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: #397cf6;
}

.map-filter-all {
    background: rgba(0,0,0,0.035);
}

.map-toolbar-menu-right .map-toolbar-dropdown {
    right: 0;
}

.map-main-menu {
    width: 180px;
}

.map-main-menu a,
.map-main-menu button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.09);
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.map-main-menu a:last-child,
.map-main-menu button:last-child {
    border-bottom: 0;
}

.map-main-menu a:hover,
.map-main-menu a:focus-visible,
.map-main-menu button:hover,
.map-main-menu button:focus-visible,
.map-filter-option:hover {
    background: rgba(0,0,0,0.06);
}

.map-search-row input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    font-size: 17px;
}

.map-search-row input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M18.3 5.71 12 12l6.3 6.29-1.41 1.42L10.59 13.4l-6.3 6.31-1.41-1.42L9.17 12l-6.29-6.29 1.41-1.42 6.3 6.31 6.3-6.31z'/%3E%3C/svg%3E");
    opacity: 0.72;
    cursor: pointer;
}

.map-search-row button {
    width: 32px;
    height: 32px;
    border: 1px solid #111;
    border-radius: 6px;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.map-search-row button.is-following-user {
    background: blue;
    color: #fff;
}

.map-search-results {
    display: none;
    position: absolute;
    z-index: 3;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 100%);
    max-height: min(330px, calc(100svh - 170px));
    margin: 0;
    overflow-y: auto;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.24);
    color: #111;
}

.map-search-results.is-open {
    display: block;
}

.map-search-results .map-result-card {
    padding: 11px 12px;
}

.map-search-results .map-result-card.is-search-result {
    cursor: pointer;
}

.map-intro-card {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0,0,0,0.5);
    color: #111;
    overflow-y: auto;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.map-intro-card.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.abt-intro-seen .map-intro-card {
    display: none;
}

.map-intro-panel {
    width: min(440px, calc(100vw - 36px));
    max-height: calc(100svh - 36px);
    padding: 18px 20px 16px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 18px 44px rgba(0,0,0,0.24);
    text-align: center;
    overflow-y: auto;
}

.map-intro-panel img {
    display: block;
    width: min(210px, 70%);
    height: auto;
    margin: 0 auto 12px;
}

.map-intro-panel p {
    margin: 0 auto 14px;
    color: #222;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.map-intro-panel button {
    min-height: 40px;
    padding: 8px 22px;
    border: 0;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.map-help-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 9px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.coach-tour {
    position: fixed;
    z-index: 80;
    inset: 0;
    pointer-events: auto;
    color: #111;
}

.coach-tour-spotlight {
    position: fixed;
    top: var(--coach-top, 16px);
    left: var(--coach-left, 16px);
    width: var(--coach-width, 120px);
    height: var(--coach-height, 60px);
    border: 3px solid #ffd400;
    border-radius: 14px;
    box-shadow:
        0 0 0 9999px rgba(0,0,0,0.58),
        0 12px 30px rgba(0,0,0,0.24);
    transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease;
}

.coach-tour-card {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(390px, calc(100vw - 28px));
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}

.coach-tour-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
}

.coach-tour-card p {
    margin: 0 0 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.42;
}

.coach-tour-progress {
    margin-bottom: 12px;
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.coach-tour-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.coach-tour-button {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid rgba(0,0,0,0.16);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.coach-tour-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.coach-tour-button-primary {
    border-color: #111;
    background: #111;
    color: #fff;
}

.coach-tour-button-secondary {
    background: #fff;
    color: #111;
}

.map-explore-panel {
    position: fixed;
    z-index: 4;
    --panel-collapsed-height: 69px;
    --panel-radius: 8px;
    top: 93px;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, var(--panel-drag-y, 0px));
    width: min(720px, calc(100vw - 20px));
    max-width: min(720px, calc(100vw - 20px));
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.12);
    border-bottom: 0;
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
    box-shadow: 0 14px 36px rgba(0,0,0,0.22);
    color: #111;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), background 160ms ease;
    will-change: transform;
}

.map-explore-handle {
    position: absolute;
    top: -31px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: grid;
    place-items: center;
    width: 64px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px 10px 0 0;
    background: rgba(255,255,255,0.96);
    box-shadow:
        0 -1px 0 rgba(255,255,255,0.7) inset,
        0 4px 12px rgba(31,34,42,0.18);
    cursor: ns-resize;
    touch-action: none;
}

.map-explore-handle::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid rgba(0,0,0,0.62);
    transition: transform 180ms ease;
}

.map-explore-panel.is-collapsed .map-explore-handle::before {
    transform: rotate(180deg);
}

.map-explore-panel.is-collapsed {
    transform: translate(-50%, calc(100% - var(--panel-collapsed-height) + var(--panel-drag-y, 0px)));
}

.map-explore-panel.is-dragging {
    transition: none;
}

.map-explore-panel.is-listing {
    background: rgba(255,255,255,0.9);
}

.map-explore-panel[hidden] {
    display: none;
}

.map-explore-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    overflow-y: auto;
}

.map-explore-tiles[hidden] {
    display: none;
}

.map-explore-tile {
    min-width: 0;
    min-height: 120px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--panel-radius);
    color: #111;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-explore-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.24);
}

.map-explore-tile img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.map-explore-tile.restaurants { background: rgba(247, 12, 24, 0.5); }
.map-explore-tile.pubs { background: rgba(254, 190, 0, 0.5); }
.map-explore-tile.attractions { background: rgba(0, 158, 216, 0.5); }
.map-explore-tile.museums { background: rgba(136, 48, 168, 0.5); }
.map-explore-tile.music { background: rgba(36, 233, 187, 0.5); }
.map-explore-tile.foodhalls { background: rgba(141, 142, 32, 0.5); }
.map-explore-tile.parks { background: rgba(34, 113, 46, 0.5); }
.map-explore-tile.nightlife { background: rgba(17, 90, 133, 0.5); }
.map-explore-tile.curiosity { background: rgba(150, 197, 0, 0.5); }
.map-explore-tile.historical { background: rgba(255, 137, 0, 0.5); }
.map-explore-tile.shopping { background: rgba(195, 6, 82, 0.5); }
.map-explore-tile.wellness { background: rgba(255, 93, 179, 0.5); }

.map-explore-list-view {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.map-explore-list-view[hidden] {
    display: none;
}

.map-explore-head {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: transparent;
}

.map-explore-head::after {
    content: "";
    width: 42px;
    height: 42px;
}

.map-explore-head:has(.map-admin-add:not([hidden]))::after {
    display: none;
}

.map-explore-title-wrap {
    justify-self: center;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 18px;
    border: 0;
    border-radius: var(--panel-radius);
    background: rgba(255,255,255,0.94);
    box-shadow:
        0 4px 8px rgba(31,34,42,0.15),
        0 1px 2px rgba(31,34,42,0.07),
        inset 0 1px 0 rgba(255,255,255,0.52);
}

.map-explore-head #mapResultsTitle {
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-explore-back {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: var(--panel-radius);
    background: rgba(255,255,255,0.94);
    color: #111;
    font-size: 24px;
    line-height: 1;
    box-shadow:
        0 4px 8px rgba(31,34,42,0.15),
        0 1px 2px rgba(31,34,42,0.07),
        inset 0 1px 0 rgba(255,255,255,0.52);
    cursor: pointer;
}

.map-results-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 12px 14px;
    background: transparent;
}

.map-results-filters select {
    min-width: 0;
    width: min(270px, 45%);
    max-width: 270px;
    height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--panel-radius);
    background: rgba(255,255,255,0.94);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    box-shadow:
        0 4px 8px rgba(31,34,42,0.15),
        0 1px 2px rgba(31,34,42,0.07),
        inset 0 1px 0 rgba(255,255,255,0.52);
}

.map-admin-add {
    justify-self: end;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--panel-radius);
    background: rgba(255,255,255,0.94);
    color: #111;
    font-size: 24px;
    line-height: 1;
    box-shadow:
        0 4px 8px rgba(31,34,42,0.15),
        0 1px 2px rgba(31,34,42,0.07),
        inset 0 1px 0 rgba(255,255,255,0.52);
    cursor: pointer;
    touch-action: manipulation;
}

.map-admin-add[hidden] {
    display: none;
}

.map-michelin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    align-self: center;
    margin: -6px 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
}

.map-michelin-link[hidden] {
    display: none;
}

.map-michelin-link img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.map-michelin-link img[hidden] {
    display: none;
}

.map-category-description {
    padding: 9px 14px 10px;
    background: transparent;
    text-align: center;
}

.map-category-description[hidden] {
    display: none;
}

.map-category-description p {
    margin: 2px 0;
    color: #222;
    font-size: 13px;
    line-height: 1.25;
}

.map-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px 14px;
}

.map-result-card {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--panel-radius);
    background: rgba(240,239,239,0.94);
    color: #111;
    padding: 12px 14px;
    text-align: left;
    box-shadow:
        0 4px 8px rgba(31,34,42,0.15),
        0 1px 2px rgba(31,34,42,0.07),
        inset 0 1px 0 rgba(255,255,255,0.52);
    cursor: pointer;
}

.map-result-card:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.map-result-card.is-expanded {
    background: rgba(240,239,239,0.98);
}

.map-result-card strong,
.map-result-card span {
    display: block;
}

.map-result-type,
.map-detail-type {
    color: #777;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.map-result-card strong {
    margin: 2px 0;
    font-size: 16px;
}

.map-place-name {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.restaurant-michelin-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    object-fit: contain;
    vertical-align: -2px;
}

.map-result-meta {
    color: #777;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.map-result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.map-result-actions a,
.map-result-actions button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #111;
    border-radius: var(--panel-radius);
    background: #fff;
    color: #111;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.map-result-actions a:focus-visible,
.map-result-actions button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.map-result-why {
    margin-top: 10px;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
}

.map-result-address {
    margin: 8px 0 0;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.map-result-address strong {
    display: inline;
    margin: 0;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.map-detail-sheet {
    position: fixed;
    z-index: 6;
    inset: 0;
    display: grid;
    place-items: center;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    background: transparent;
    color: #111;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 22px;
}

.map-detail-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
}

.map-detail-card {
    position: relative;
    width: min(780px, calc(100vw - 32px));
    max-height: calc(100svh - 44px);
    overflow-y: auto;
    padding: 26px 28px 24px;
    border: 0;
    border-radius: 8px;
    background: rgba(240,239,239,0.98);
    box-shadow:
        0 4px 8px rgba(31,34,42,0.15),
        0 1px 2px rgba(31,34,42,0.07),
        inset 0 1px 0 rgba(255,255,255,0.52);
}

#closeMapDetail {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.map-detail-sheet h2 {
    padding-right: 36px;
    margin: 4px 0 8px;
    color: #111;
    font-size: 24px;
}

.map-detail-sheet p {
    margin: 10px 0;
    color: #222;
    line-height: 1.45;
}

.map-detail-meta {
    color: #777 !important;
    font-weight: 700;
}

.map-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.map-detail-actions a,
.map-detail-actions button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 700px) {
    .map-admin-drag {
        left: 6px;
    }

    .map-shell {
        top: 6px;
        left: 6px;
        right: 6px;
    }

    .map-search-toolbar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 5px;
        width: 100%;
    }

    .map-toolbar-button {
        width: 40px;
        height: 44px;
    }

    .map-search-results {
        top: 44px;
        max-height: 38svh;
    }

    .map-intro-card {
        padding: 14px 16px;
    }

    .map-intro-panel {
        width: min(360px, calc(100vw - 32px));
        max-height: calc(100svh - 32px);
        padding: 14px 16px;
    }

    .map-intro-panel img {
        width: min(170px, 68%);
        margin-bottom: 10px;
    }

    .map-intro-panel p {
        font-size: 14px;
    }

    .coach-tour-card {
        width: calc(100vw - 24px);
        padding: 14px;
    }

    .coach-tour-card h2 {
        font-size: 19px;
    }

    .coach-tour-card p {
        font-size: 14px;
    }

    .coach-tour-actions {
        justify-content: stretch;
    }

    .coach-tour-button {
        flex: 1;
        min-width: 0;
        padding-inline: 10px;
    }

    .map-explore-panel {
        --panel-collapsed-height: 69px;
        top: 87px;
        left: 50%;
        right: auto;
        bottom: 0;
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        transform: translate(-50%, var(--panel-drag-y, 0px));
        border-radius: 8px 8px 0 0;
    }

    .map-explore-panel.is-collapsed {
        transform: translate(-50%, calc(100% - var(--panel-collapsed-height) + var(--panel-drag-y, 0px)));
    }

    .map-explore-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .map-explore-tile {
        min-height: 104px;
        padding: 8px 6px;
        font-size: 13px;
    }

    .map-explore-tile img {
        width: 58px;
        height: 58px;
    }

    .map-explore-head {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 6px;
    }

    .map-results-filters {
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

    .map-results-filters select {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
        height: 42px;
        font-size: 13px;
    }

    .map-explore-title-wrap {
        width: max-content;
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .map-detail-sheet {
        padding: 14px;
    }

    .map-detail-card {
        width: 100%;
        max-height: calc(100svh - 28px);
        padding: 22px 18px 20px;
    }
}
