:root {
    --dm-blue: #075fd1;
    --dm-blue-dark: #064ba8;
    --dm-blue-soft: #eef6ff;
    --dm-ink: #101828;
    --dm-muted: #667085;
    --dm-line: #e5eaf1;
    --dm-surface: #ffffff;
    --dm-bg: #f7f9fc;
    --dm-green: #12a66a;
    --dm-shadow: 0 14px 36px rgba(16, 36, 72, .09);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dm-ink);
    background: var(--dm-bg);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    overflow-x: hidden;
}

body.dark-mode {
    --dm-ink: #e5edf8;
    --dm-muted: #b6c3d5;
    --dm-line: #2a364a;
    --dm-surface: #121b28;
    --dm-bg: #0b1119;
    --dm-blue-soft: #1a2a43;
    --dm-shadow: 0 16px 38px rgba(0, 0, 0, .35);
    color: var(--dm-ink);
    background: var(--dm-bg);
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--dm-line);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding-block: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.app-logo {
    display: block;
    width: 148px;
    height: 48px;
    object-fit: contain;
}

.topbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}

.topbar-menu a {
    position: relative;
    color: #344054;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-menu a:hover,
.topbar-menu a.active,
.topbar-menu a:first-child {
    color: var(--dm-blue);
}

.topbar-menu a:first-child::after,
.topbar-menu a.active::after {
    position: absolute;
    right: 0;
    bottom: -17px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--dm-blue);
    border-radius: 999px;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.page-actions .form-select {
    width: auto;
    min-width: 78px;
}

.page-actions .btn {
    min-height: 40px;
    padding-inline: 14px;
    border-radius: 11px;
    font-weight: 700;
}

.theme-toggle-btn {
    min-width: 40px;
    padding-inline: 0 !important;
}

.mobile-header-actions {
    display: none;
}

body.dark-mode .topbar {
    background: rgba(10, 16, 26, .96);
    border-bottom-color: #273347;
}

body.dark-mode .hero-banner {
    background:
        radial-gradient(circle at 70% 20%, rgba(39, 110, 214, .22), transparent 35%),
        linear-gradient(110deg, #111d2f 0%, #0f1a2b 52%, #122135 100%);
    border-bottom-color: #28364d;
}

body.dark-mode .hero-copy h1,
body.dark-mode .eyebrow,
body.dark-mode .results-title,
body.dark-mode .result-card-header strong,
body.dark-mode .detail-card h2,
body.dark-mode .contact-section,
body.dark-mode .form-label,
body.dark-mode .search-input-wrap .fas,
body.dark-mode .result-card-meta,
body.dark-mode .result-address,
body.dark-mode .result-review-count,
body.dark-mode .distance-badge,
body.dark-mode .review-item {
    color: #e5edf8;
}

body.dark-mode .hero-text,
body.dark-mode .text-muted,
body.dark-mode .results-count,
body.dark-mode #bookingDoctorName,
body.dark-mode #bookingSlotsStatus {
    color: #b6c3d5 !important;
}

body.dark-mode .search-card,
body.dark-mode .results-section,
body.dark-mode .result-item,
body.dark-mode .floating-detail,
body.dark-mode .booking-inline,
body.dark-mode .contact-section,
body.dark-mode .filter-bar,
body.dark-mode .map-pane,
body.dark-mode .mobile-bottom-nav,
body.dark-mode .topbar,
body.dark-mode .hero-banner-image {
    border-color: #2a364a !important;
    background-color: #121b28;
}

body.dark-mode .filter-bar,
body.dark-mode .filter-bar .container,
body.dark-mode .filter-chips,
body.dark-mode #categoryNav,
body.dark-mode .category-list,
body.dark-mode .category-item,
body.dark-mode .filter-chip,
body.dark-mode .search-row,
body.dark-mode .search-input-wrap {
    background: #121b28 !important;
    border-color: #2a364a !important;
    color: #e5edf8 !important;
}

body.dark-mode .category-item,
body.dark-mode .filter-chip {
    color: #d8e3f3 !important;
}

body.dark-mode .category-item:hover,
body.dark-mode .category-item.active,
body.dark-mode .filter-chip:hover,
body.dark-mode .filter-chip.active {
    background: #1f3760 !important;
    border-color: #4472b8 !important;
    color: #fff !important;
}

body.dark-mode .result-card-actions .btn,
body.dark-mode .result-card-actions .btn i {
    color: #ffffff !important;
}

/* Details button emphasis */
.result-card-actions .details-btn {
    font-weight: 900;
}

body.dark-mode #resultsList {
    background: #0f1825;
}

body.dark-mode .result-item:hover,
body.dark-mode .result-item.active {
    background: #162235;
    border-color: rgba(67, 137, 241, .55) !important;
}

body.dark-mode .hero-search-card {
    background: linear-gradient(145deg, #12305c, #0d2750);
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea.form-control {
    color: #e5edf8;
    background: #101a28;
    border-color: #33455f;
}

body.dark-mode .form-control::placeholder {
    color: #9fb0c8;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode textarea.form-control:focus {
    color: #e5edf8;
    background: #132136;
    border-color: #3e79d1;
    box-shadow: 0 0 0 .2rem rgba(62, 121, 209, .22);
}

body.dark-mode .mobile-bottom-nav,
body.dark-mode .mobile-bottom-nav a,
body.dark-mode .mobile-bottom-theme-btn {
    background: rgba(13, 20, 32, .98) !important;
    color: #8fa8cc !important;
    border-color: #1e2d42 !important;
}

body.dark-mode .mobile-bottom-nav a.active {
    color: #5b9cf6 !important;
}

body.dark-mode .mobile-icon-btn,
body.dark-mode .mobile-language-switcher {
    color: #e5edf8;
    background: #111a28;
    border-color: #32445f;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(7, 95, 209, .12), transparent 30%),
        linear-gradient(110deg, #eaf5ff 0%, #f7fbff 52%, #eef6ff 100%);
    border-bottom: 1px solid #e2eaf5;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-inner {
    min-height: 310px;
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(250px, .95fr) minmax(360px, 1.2fr) minmax(245px, .75fr);
    grid-template-areas: "visual copy cta";
    align-items: center;
    gap: clamp(20px, 3vw, 52px);
    padding-block: 28px 24px;
}

[dir="ltr"] .hero-inner {
    grid-template-areas: "cta copy visual";
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .hero-cta-card {
    direction: rtl;
}

.hero-banner-image {
    grid-area: visual;
    height: 285px;
    align-self: end;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background: #dceeff;
    box-shadow: var(--dm-shadow);
}

.hero-banner-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    object-position: center;
}

.hero-copy {
    grid-area: copy;
    text-align: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--dm-blue);
    font-size: .82rem;
    font-weight: 800;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    content: "";
    background: var(--dm-green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(18, 166, 106, .12);
}

.hero-copy h1 {
    max-width: 540px;
    margin: 0;
    color: #0a1930;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.28;
}

.hero-copy h1 span {
    color: var(--dm-blue);
}

.hero-text {
    max-width: 550px;
    margin: 10px 0 0;
    color: var(--dm-muted);
    font-size: .92rem;
    line-height: 1.7;
}

.hero-search-card {
    width: min(900px, 100%);
    margin-top: 18px;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e3e9f2;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(20, 50, 90, .10);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-input-wrap i {
    margin-inline: 12px 5px;
    color: #667085;
}

.search-input-wrap .form-control {
    min-width: 0;
    min-height: 46px;
    padding-inline: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: .92rem;
}

.hero-locate-btn,
.hero-search-btn {
    min-height: 46px;
    border-radius: 11px;
    font-weight: 800;
}

.hero-locate-btn {
    color: var(--dm-blue);
    background: #f1f6fd;
    border: 0;
}

.hero-search-btn {
    min-width: 112px;
}

.status-line {
    min-height: 20px;
    margin-top: 7px;
    padding-inline: 8px;
    color: var(--dm-muted);
    font-size: .76rem;
}

.hero-cta-card {
    grid-area: cta;
}

.hero-cta-card-inner {
    position: relative;
    padding: 25px 22px 20px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(7, 95, 209, .10);
    border-radius: 18px;
    box-shadow: var(--dm-shadow);
    text-align: center;
}

.hero-cta-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: -45px auto 13px;
    color: #fff;
    background: var(--dm-blue);
    border: 6px solid #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(7, 95, 209, .25);
}

.hero-cta-card h2 {
    margin: 0 0 8px;
    color: var(--dm-blue-dark);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.5;
}

.hero-cta-card p {
    margin: 0 0 16px;
    color: var(--dm-muted);
    font-size: .83rem;
    line-height: 1.65;
}

.hero-cta-card .btn {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 800;
}

.category-strip {
    background: #fff;
    border-bottom: 1px solid var(--dm-line);
}

.category-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding-block: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    color: #344054;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.category-item:hover,
.category-item.active {
    color: var(--dm-blue);
    border-color: rgba(7, 95, 209, .35);
    transform: translateY(-2px);
}

.category-icon {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--category-color, var(--dm-blue));
    background: color-mix(in srgb, var(--category-color, var(--dm-blue)) 10%, white);
    border-radius: 50%;
    font-size: 1rem;
}

.filter-bar {
    padding: 14px max(16px, calc((100% - 1320px) / 2));
    background: #fff;
    border-bottom: 1px solid var(--dm-line);
}

.filter-chips {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    min-height: 39px;
    padding: 8px 15px;
    color: #344054;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
    color: #fff;
    background: var(--dm-blue);
    border-color: var(--dm-blue);
}

.hero-search-card > .filter-chips {
    display: none;
}

.map-layout {
    width: min(100% - 32px, 1320px);
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(360px, .78fr) minmax(0, 1.35fr);
    grid-template-areas:
        "sidebar map"
        "detail detail"
        "contact contact";
    gap: 18px;
    margin-inline: auto;
    padding: 20px 0 28px;
}

[dir="ltr"] .map-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .78fr);
    grid-template-areas:
        "map sidebar"
        "detail detail"
        "contact contact";
}

[dir="rtl"] .sidebar,
[dir="rtl"] .floating-detail,
[dir="rtl"] .contact-section,
[dir="rtl"] .booking-inline {
    direction: rtl;
}

.sidebar {
    grid-area: sidebar;
    min-width: 0;
}

.results-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dm-line);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(16, 36, 72, .06);
}

.results-header {
    min-height: 58px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 17px;
    border-bottom: 1px solid #edf0f5;
}

.results-header strong {
    font-size: 1rem;
}

.results-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--dm-blue);
    font-size: .78rem;
    font-weight: 800;
}

#resultsList {
    min-height: 0;
    flex: 1;
    overflow: auto;
    padding: 10px;
    background: #fbfcfe;
}

.result-item {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    height: auto !important;
    min-height: 148px;
    max-height: none !important;
    margin: 0 0 11px;
    padding: 13px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6eaf0 !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item:hover,
.result-item.active {
    z-index: 1;
    background: #fff;
    border-color: rgba(7, 95, 209, .4) !important;
    box-shadow: 0 10px 25px rgba(16, 36, 72, .09);
    transform: translateY(-1px);
}

.place-photo {
    width: 82px;
    height: 82px;
    object-fit: cover;
    background: var(--dm-blue-soft);
    border-radius: 12px;
}

.result-card-body {
    min-width: 0;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

.result-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.result-card-header strong {
    overflow: hidden;
    color: #182230;
    font-size: .96rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.distance-badge {
    flex: 0 0 auto;
    color: #475467;
    font-size: .69rem;
    font-weight: 700;
    white-space: nowrap;
}

.result-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--dm-muted);
    font-size: .72rem;
    white-space: nowrap;
}

.result-card-meta > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-type {
    color: var(--dm-blue);
    background: #edf5ff;
    border: 1px solid #d9eaff;
}

.booking-badge {
    color: var(--dm-green);
    font-size: .68rem;
    font-weight: 800;
}

.result-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.result-rating-value {
    color: #344054;
    font-size: .72rem;
    font-weight: 800;
}

.result-card-stars {
    color: #f4a100;
    font-size: .78rem;
    letter-spacing: -1px;
}

.result-review-count {
    color: #98a2b3;
    font-size: .66rem;
}

.result-address {
    margin-top: 3px;
    color: #667085;
    font-size: .69rem;
}

.result-card-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 8px;
    margin-top: 2px;
    width: calc(100% + 26px);
    margin-inline: -13px;
    padding-inline: 13px;
}

.result-card-actions .btn {
    flex: 1 1 0;
    width: 0;
    max-width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: .74rem;
    font-weight: 800;
}

.map-pane {
    position: relative;
    grid-area: map;
    min-width: 0;
    min-height: 560px;
    overflow: hidden;
    background: #dfe9f5;
    border: 1px solid #dce3ec;
    border-radius: 18px;
    box-shadow: var(--dm-shadow);
}

#publicMap {
    position: absolute;
    inset: 0;
    background: #dfe9f5;
}

.locate-btn {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 500;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(16, 36, 72, .18);
}

.marker-badge {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 8px;
    box-shadow: 0 8px 20px rgba(16, 36, 72, .24);
    transform: rotate(-45deg);
}

.marker-badge i {
    transform: rotate(45deg);
}

.floating-detail,
.booking-inline {
    display: none;
    background: #fff;
    border: 1px solid var(--dm-line);
    border-radius: 18px;
    box-shadow: var(--dm-shadow);
}

.floating-detail.open,
.booking-inline.open {
    display: block;
}

.floating-detail {
    grid-area: detail;
    padding: 14px;
}

.detail-booking-host {
    margin-top: 10px;
}

/* Booking form lives inside the selected result card as a full-width
   expandable section — no overlay/positioning over the map. */
.booking-inline {
    position: static;
    inset: auto;
    z-index: auto;
    grid-column: 1 / -1;
    width: 100%;
    max-height: none;
    margin: 10px 0 2px;
    overflow: visible;
    border-radius: 14px;
    box-shadow: none;
    background: #f8fbff;
    border-color: #d7e6f7;
    cursor: default;
}

.booking-day-legend {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.booking-day-pill {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 38px;
    padding: 4px 2px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: .67rem;
    line-height: 1.1;
    font-weight: 700;
    cursor: pointer;
}

.booking-day-pill.available {
    color: #067647;
    background: #ecfdf3;
    border-color: #abefc6;
}

.booking-day-pill.unavailable {
    color: #b42318;
    background: #fef3f2;
    border-color: #fecdca;
}

.booking-day-pill.unavailable:disabled {
    cursor: not-allowed;
    opacity: .85;
}

.booking-day-pill.selected {
    box-shadow: 0 0 0 2px rgba(7, 95, 209, .22);
}

.booking-day-date {
    font-size: .62rem;
    opacity: .88;
}

#bookingDate.booking-date-available {
    border-color: #12a66a;
    background: #ecfdf3;
}

#bookingDate.booking-date-unavailable {
    border-color: #dc2626;
    background: #fef3f2;
}

.detail-image {
    width: 100%;
    max-height: 360px;
    display: block;
    object-fit: cover;
    background: #edf3f9;
    border-radius: 14px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
}

.slot-option {
    min-height: 42px;
    padding: 8px 10px;
    color: var(--dm-blue);
    background: #eff6ff;
    border: 1px solid #cfe3ff;
    border-radius: 9px;
}

.slot-option.active {
    color: #fff;
    background: var(--dm-blue);
    border-color: var(--dm-blue);
}

.review-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.review-item {
    padding: 10px 12px;
    background: #fbfcff;
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

.rating-stars label {
    color: #cfd8df;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.rating-stars label.active,
.rating-stars label:hover {
    color: #f59e0b;
}

.contact-section {
    grid-area: contact;
    padding: 18px 20px;
    color: var(--dm-muted);
    background: #fff;
    border: 1px solid var(--dm-line);
    border-radius: 16px;
}

.contact-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact-text {
    min-width: 0;
    flex: 1 1 auto;
}

.contact-links a {
    overflow-wrap: anywhere;
}

.contact-brand-image {
    flex: 0 0 clamp(132px, 17vw, 184px);
    width: clamp(132px, 17vw, 184px);
    max-width: 100%;
}

.contact-brand-image img {
    display: block;
    width: 100%;
    height: 74px;
    object-fit: contain;
}

.contact-section a {
    color: var(--dm-blue) !important;
}

.mobile-bottom-nav {
    display: none;
}

.btn-primary,
.btn-success {
    background-color: var(--dm-blue) !important;
    border-color: var(--dm-blue) !important;
}

.btn-outline-primary,
.btn-outline-success {
    color: var(--dm-blue) !important;
    background-color: transparent !important;
    border-color: var(--dm-blue) !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    color: #fff !important;
    background-color: var(--dm-blue) !important;
}

.text-success {
    color: var(--dm-blue) !important;
}

@media (max-width: 1100px) {
    .topbar-inner {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .topbar-menu {
        gap: 13px;
    }

    .page-actions .btn {
        padding-inline: 9px;
    }

    .hero-inner {
        grid-template-columns: minmax(220px, .8fr) minmax(330px, 1.25fr);
        grid-template-areas:
            "visual copy"
            "visual cta";
    }

    [dir="ltr"] .hero-inner {
        grid-template-areas:
            "copy visual"
            "cta visual";
    }

    .hero-cta-card-inner {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px;
        text-align: start;
    }

    .hero-cta-icon {
        flex: 0 0 auto;
        margin: 0;
    }

    .hero-cta-card p {
        display: none;
    }

    .hero-cta-card .btn {
        width: auto;
        margin-inline-start: auto;
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: 74px;
        background: #fff;
        scrollbar-width: thick;
        scrollbar-color: #5b8ec9 rgba(0, 0, 0, .1);
    }

    body::-webkit-scrollbar {
        width: 18px;
    }

    body::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, .07);
        border-radius: 0;
    }

    body::-webkit-scrollbar-thumb {
        background: #5b8ec9;
        border-radius: 999px;
        border: 3px solid rgba(0, 0, 0, .07);
        min-height: 48px;
    }

    body::-webkit-scrollbar-thumb:active {
        background: #2f6bbf;
    }

    #resultsList {
        scrollbar-width: thick;
        scrollbar-color: #5b8ec9 rgba(0, 0, 0, .1);
    }

    #resultsList::-webkit-scrollbar {
        width: 18px;
    }

    #resultsList::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, .07);
    }

    #resultsList::-webkit-scrollbar-thumb {
        background: #5b8ec9;
        border-radius: 999px;
        border: 3px solid rgba(0, 0, 0, .07);
        min-height: 48px;
    }

    #resultsList::-webkit-scrollbar-thumb:active {
        background: #2f6bbf;
    }

    .topbar {
        position: relative;
    }

    .topbar-inner {
        min-height: 60px;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0;
        padding-inline: 12px;
        padding-block: 6px;
    }

    .brand {
        position: static;
        left: auto;
        transform: none;
        flex-shrink: 0;
    }

    .app-logo {
        width: 110px;
        height: 36px;
    }

    .topbar-menu,
    .page-actions {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
    }

    .mobile-header-start {
        display: flex;
        align-items: center;
        gap: 2px;
        position: relative;
        z-index: 2;
    }

    .mobile-icon-btn {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        color: #1d2939;
        background: transparent;
        border: 0;
        border-radius: 10px;
        text-decoration: none;
    }

    .mobile-language-switcher {
        width: 48px;
        height: 32px;
        padding: 2px 4px;
        color: #344054;
        background: #f7f9fc;
        border: 1px solid #e4e9f0;
        border-radius: 8px;
        font-size: .68rem;
        font-weight: 800;
    }

    .hero-banner {
        padding: 12px 12px 0;
        background: #fff;
        border: 0;
    }

    .hero-banner .container {
        max-width: none;
        padding: 0;
    }

    .hero-inner,
    [dir="ltr"] .hero-inner {
        min-height: auto;
        display: block;
        padding: 0;
    }

    .hero-copy > .eyebrow,
    .hero-copy > h1,
    .hero-copy > .hero-text,
    .hero-cta-card {
        display: none;
    }

    .hero-banner-image {
        display: block;
        height: 170px;
        margin-bottom: 10px;
        border-radius: 16px;
    }

    .hero-search-card {
        margin: 0;
        padding: 12px;
        background: linear-gradient(150deg, #0870ea, #064fb5);
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(7, 95, 209, .22);
    }

    .search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "input search"
            "locate locate";
        gap: 7px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 11px;
        box-shadow: none;
    }

    .search-input-wrap .form-control {
        min-height: 42px;
        font-size: .82rem;
    }

    .search-input-wrap {
        grid-area: input;
        background: #fff;
        border-radius: 11px;
    }

    .hero-search-btn {
        grid-area: search;
        min-width: 46px;
        width: 46px;
        padding: 0;
        font-size: 0;
        color: var(--dm-blue) !important;
        background: #fff !important;
        border-color: #fff !important;
    }

    .hero-search-btn i {
        margin: 0 !important;
        font-size: .9rem;
    }

    .hero-locate-btn {
        grid-area: locate;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 38px;
        padding-inline: 10px;
        color: #fff;
        background: transparent;
        font-size: .78rem;
    }

    .status-line {
        min-height: 18px;
        margin-top: 0;
        color: rgba(255, 255, 255, .82);
    }

    .category-strip {
        border: 0;
    }

    .category-list {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 13px 12px 16px;
        scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        min-width: 59px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0;
        background: transparent;
        border: 0;
        font-size: .67rem;
    }

    .category-item:hover,
    .category-item.active {
        transform: none;
    }

    .category-icon {
        width: 44px;
        height: 44px;
        background: #fff;
        border: 1px solid #edf0f5;
        box-shadow: 0 5px 14px rgba(16, 36, 72, .07);
    }

    .filter-bar {
        padding: 9px 12px 11px;
        border-block: 1px solid var(--dm-line);
    }

    .filter-chip {
        min-height: 35px;
        padding: 7px 12px;
        border-radius: 9px;
        font-size: .7rem;
    }

    .map-layout,
    [dir="ltr"] .map-layout {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 0 12px 18px;
    }

    .sidebar {
        order: 1;
        height: auto !important;
    }

    .floating-detail {
        order: 2;
    }

    .map-pane {
        order: 3;
        min-height: 260px;
        height: 260px !important;
        border-radius: 15px;
    }

    .contact-section {
        order: 4;
    }

    .contact-branding {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .contact-links {
        justify-content: center;
    }

    .contact-brand-image {
        width: min(68vw, 220px);
        flex-basis: auto;
    }

    .contact-brand-image img {
        height: 66px;
    }

    .results-section {
        border-inline: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .results-header {
        min-height: 48px;
        padding: 10px 4px;
        border-bottom: 0;
    }

    #resultsList {
        height: auto !important;
        max-height: 385px;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
    }

    .result-item {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 146px;
        margin-bottom: 8px;
        padding: 11px 10px 12px;
        overflow: hidden;
        border-radius: 12px !important;
        box-shadow: 0 5px 18px rgba(16, 36, 72, .06);
    }

    .place-photo {
        width: 72px;
        height: 72px;
    }

    .result-card-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow: hidden;
        gap: 6px;
        margin-top: 2px;
        width: calc(100% + 20px);
        margin-inline: -10px;
        padding-inline: 10px;
    }

    .result-card-actions .btn {
        flex: 1 1 0;
        width: 0;
        max-width: 100%;
        min-height: 30px;
        min-width: 0;
        white-space: normal !important;
        text-align: center;
        justify-content: center;
        padding: 4px 6px;
        font-size: .62rem;
        line-height: 1.2;
    }

    .booking-inline {
        margin: 8px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .booking-day-legend {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        min-height: 66px;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        padding: 6px 5px max(6px, env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid #e5e9ef;
        box-shadow: 0 -8px 24px rgba(16, 36, 72, .08);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #7b8493;
        font-size: .62rem;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-bottom-nav a.active {
        color: var(--dm-blue);
    }

    .mobile-bottom-nav i {
        font-size: 1rem;
    }

    .mobile-bottom-theme-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #7b8493;
        font-size: .62rem;
        font-weight: 700;
        background: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .mobile-bottom-theme-btn i {
        font-size: 1rem;
    }

    .mobile-header-start {
        display: flex;
        align-items: center;
        gap: 2px;
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 420px) {
    .hero-banner {
        padding-inline: 8px;
    }

    .map-layout,
    [dir="ltr"] .map-layout {
        padding-inline: 8px;
    }

    .result-card-actions .btn {
        padding-inline: 7px;
    }

    .booking-day-legend {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
