/* ==========================================================================
   Umraat — B2C travel portal theme
   Mobile-first, RTL-safe (logical properties), Almosafer/Wego-inspired.
   ========================================================================== */
:root {
    --u-primary: #16b6ae;      /* deep teal (from brand palette) */
    --u-primary-dark: #0e8f89;
    --u-primary-light: #e8fbfa;
    --u-accent: #9aecea;       /* signature teal #9aecea / rgb(154,236,234) */
    --u-ink: #111111;          /* black */
    --u-muted: #5a6168;
    --u-line: #e6e8ec;
    --u-bg-alt: #f4fbfb;
    --u-radius: .75rem;
    --u-shadow: 0 2px 10px rgba(17, 17, 17, .06);
    --u-shadow-lg: 0 8px 28px rgba(17, 17, 17, .12);
    --u-font: "Segoe UI", system-ui, -apple-system, "Cairo", "Tahoma", sans-serif;
}

html { font-size: 15px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: var(--u-font);
    color: var(--u-ink);
    background: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Push the footer to the bottom of the viewport when page content is short. */
body > main[role="main"] { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

[dir="rtl"] body { font-family: "Cairo", "Tahoma", var(--u-font); }

a { text-decoration: none; }
.rtl-flip { display: inline-block; }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: var(--u-shadow);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--u-primary);
}
.brand-icon { color: var(--u-primary); }
.site-header .navbar { padding-block: .6rem; }
.main-nav .nav-link {
    font-weight: 600;
    color: var(--u-ink);
    padding-inline: .9rem;
}
.main-nav .nav-link:hover { color: var(--u-primary); }
.utility-nav .nav-link { color: var(--u-ink); font-weight: 600; }
.utility-nav .dropdown-item.active { background: var(--u-primary); }
.account-link { cursor: pointer; }

/* ---------- Hero + search ---------- */
.hero {
    position: relative;
    padding-block: 3.5rem 6rem;
    background: linear-gradient(135deg, var(--u-primary-dark), var(--u-primary));
    color: #fff;
    overflow: visible;
}
.hero-overlay {
    position: absolute; inset: 0;
    overflow: hidden;
    background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.08), transparent 40%),
                      radial-gradient(circle at 85% 10%, rgba(201,162,39,.18), transparent 45%);
}
.hero-content { position: relative; }
.hero-title { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: .5rem; text-align: center; }
.hero-subtitle { opacity: .92; max-width: 640px; margin: 0 auto 2rem; text-align: center; text-wrap: balance; }

/* Floating pill tab bar (Wego-style) */
.search-shell { position: relative; }
.search-tabs {
    justify-content: center;
    gap: .35rem;
    border: 0;
    margin: 0 auto -1.5rem;
    flex-wrap: nowrap;
    width: fit-content;
    max-width: 100%;
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(8px);
    padding: .4rem;
    border-radius: 999px;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
.search-tab {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .9);
    font-weight: 700;
    font-size: 1rem;
    padding: .65rem 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .12s ease;
}
.search-tab:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.search-tab.active {
    background: #fff;
    color: var(--u-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    transform: translateY(-1px);
}
.search-tab i { font-size: 1.15rem; }

.search-widget {
    background: #fff;
    color: var(--u-ink);
    border-radius: 1.1rem;
    box-shadow: var(--u-shadow-lg);
    padding: 2rem 1.25rem 1.25rem;
    position: relative;
    z-index: 2;
}
.search-pane { display: none; }
.search-pane.active { display: block; }

/* Boxed field (small caption label + bold value, Wego-style) */
.form-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--u-muted);
    margin-bottom: .15rem;
    text-transform: none;
}
.search-widget .form-control,
.search-widget .form-select,
.search-widget .occupancy .dropdown-toggle {
    border: 1px solid var(--u-line);
    border-radius: .6rem;
    padding: .6rem .75rem;
    font-weight: 600;
    background-color: #fff;
    min-height: 46px;
}
.search-widget .form-control::placeholder { font-weight: 500; color: #9aa2ac; }
.input-icon { position: relative; }
.input-icon > i {
    position: absolute;
    inset-inline-start: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--u-primary);
}
.input-icon > .form-control { padding-inline-start: 2.2rem; }

/* Hotel destination autocomplete */
.hotel-ac { position: relative; }
.hotel-ac-menu {
    position: absolute; inset-inline: 0; top: calc(100% + .25rem); z-index: 1080;
    background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius);
    box-shadow: var(--u-shadow-lg, 0 10px 30px rgba(0,0,0,.14)); overflow: hidden auto;
    max-height: 320px; padding: .25rem;
}
.hotel-ac-item {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    border: none; background: transparent; text-align: start; cursor: pointer;
    padding: .5rem .6rem; border-radius: .5rem; color: var(--u-ink); font-size: .9rem;
}
.hotel-ac-item > i { color: var(--u-primary); font-size: 1rem; flex: 0 0 auto; }
.hotel-ac-item.is-active, .hotel-ac-item:hover { background: var(--u-primary-light); }
.hotel-ac-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hotel-ac-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotel-ac-sub { color: var(--u-muted); font-size: .75rem; }
.hotel-ac-group {
    display: block; padding: .4rem .6rem .2rem; margin: 0;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--u-muted);
}
.hotel-ac-loading {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem .6rem; color: var(--u-muted); font-size: .85rem;
}
.hotel-ac-spinner {
    width: 1.05rem; height: 1.05rem; flex: 0 0 auto; border-radius: 50%;
    border: 2px solid var(--u-primary-light);
    border-top-color: var(--u-primary);
    animation: hotel-ac-spin .6s linear infinite;
}
@keyframes hotel-ac-spin { to { transform: rotate(360deg); } }
.hotel-ac-empty {
    padding: .6rem; color: var(--u-muted); font-size: .85rem; text-align: center;
}
.form-control:focus, .form-select:focus {
    border-color: var(--u-primary);
    box-shadow: 0 0 0 .2rem rgba(13,122,95,.15);
}

/* Custom date picker field */
.date-field { position: relative; }
.date-field > i {
    position: absolute;
    inset-inline-start: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--u-primary);
    pointer-events: none;
}
.date-field .date-display {
    padding-inline-start: 2.2rem;
    cursor: pointer;
    background-color: #fff;
}
.date-field .date-display:read-only { background-color: #fff; }

.datepicker-popup {
    position: absolute;
    z-index: 40;
    top: calc(100% + .35rem);
    inset-inline-start: 0;
    width: 300px;
    max-width: 92vw;
    background: #fff;
    color: var(--u-ink);
    border: 1px solid var(--u-line);
    border-radius: .9rem;
    box-shadow: var(--u-shadow-lg);
    padding: .85rem;
}
.dp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.dp-title { font-weight: 700; font-size: .95rem; }
.dp-nav {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--u-line); background: #fff; color: var(--u-primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.dp-nav:hover { background: var(--u-primary-light); }
.dp-nav:disabled { opacity: .35; cursor: not-allowed; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--u-muted); padding-block: .25rem; }
.dp-day {
    aspect-ratio: 1;
    border: 0; background: transparent; border-radius: .5rem;
    font-size: .85rem; font-weight: 600; color: var(--u-ink);
}
.dp-day:hover:not(:disabled) { background: var(--u-primary-light); }
.dp-day.is-empty { visibility: hidden; }
.dp-day:disabled { color: #c4c9cf; cursor: not-allowed; }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--u-primary); }
.dp-day.is-selected { background: var(--u-primary); color: #fff; }

/* Teal pill CTA */
.btn-search {
    font-weight: 700;
    padding-block: .7rem;
    border-radius: .7rem;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(13, 122, 95, .28);
}

/* Umrah pane (Wego-style) */
.umrah-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--u-ink);
    margin-bottom: .9rem;
}
.locked-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--u-line);
    border-radius: .6rem;
    padding: .6rem .75rem;
    min-height: 46px;
    background-color: var(--u-bg-alt);
    font-weight: 700;
    color: var(--u-ink);
}
.locked-field .locked-value { flex: 1; }
.locked-field i { color: var(--u-muted); font-size: .85rem; }
.umrah-cta {
    width: auto;
    min-width: 220px;
    float: inline-end;
    padding-inline: 1.75rem;
    margin-top: .4rem;
}

/* Multi-city flight segments (Wego-style) */
.segment-row { margin-bottom: .5rem; }
.segment-swap-col, .segment-remove-col { display: flex; align-items: flex-end; padding-bottom: .1rem; }
.segment-swap, .segment-remove {
    width: 40px; height: 46px;
    border-radius: .6rem;
    border: 1px solid var(--u-line);
    background: #fff;
    color: var(--u-primary);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.segment-remove { border-radius: 50%; width: 40px; height: 40px; color: var(--u-muted); }
.segment-swap:hover { background: var(--u-primary-light); }
.segment-remove:hover:not(:disabled) { background: #fde8e8; color: #c0392b; border-color: #f0c4c4; }
.segment-remove:disabled { opacity: .4; cursor: not-allowed; }
.btn-add-flight {
    font-weight: 700;
    color: var(--u-primary);
    background: #fff;
    border: 1px solid var(--u-primary);
    border-radius: .7rem;
    padding: .55rem 1.1rem;
}
.btn-add-flight:hover:not(:disabled) { background: var(--u-primary-light); }
.btn-add-flight:disabled { opacity: .5; cursor: not-allowed; }

/* occupancy stepper */
.occupancy .dropdown-toggle { display: flex; align-items: center; }
.occupancy-menu { min-width: 260px; border-radius: .8rem; border-color: var(--u-line); box-shadow: var(--u-shadow-lg); }
.occ-row { display: flex; align-items: center; justify-content: space-between; padding-block: .5rem; }
.occ-row span { display: flex; flex-direction: column; font-weight: 600; }
.occ-row span small { font-weight: 400; color: var(--u-muted); font-size: .72rem; }
.stepper { display: inline-flex; align-items: center; gap: .5rem; }
.stepper button {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--u-line); background: #fff; color: var(--u-primary);
    font-weight: 700; line-height: 1;
}
.stepper input { width: 32px; text-align: center; border: 0; background: transparent; }

/* Child ages selector (shown when children > 0) */
.occ-child-ages { margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--u-line); }
.occ-child-ages-title { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.occ-child-ages-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.occ-child-age { width: 72px; padding: .35rem .5rem; border: 1px solid var(--u-line); border-radius: .5rem; background: #fff; }
.occ-child-ages-hint { margin: .6rem 0 0; font-size: .72rem; color: var(--u-muted); line-height: 1.35; }

/* Trip-type chips (Wego-style pills) */
.trip-types { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.trip-radio {
    font-weight: 600; font-size: .85rem;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--u-bg-alt);
    border: 1px solid var(--u-line);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.trip-radio input { accent-color: var(--u-primary); margin: 0; }
.trip-radio:has(input:checked) {
    background: var(--u-primary-light);
    border-color: var(--u-primary);
    color: var(--u-primary);
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--u-bg-alt);
    border-bottom: 1px solid var(--u-line);
    padding-block: 1rem;
    margin-top: -2.5rem;
    position: relative;
}
.trust-item {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: .85rem;
}
.trust-item i { color: var(--u-primary); font-size: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding-block: 2.5rem; }
.section-alt { background: var(--u-bg-alt); }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem;
}
.section-title { font-weight: 800; font-size: 1.35rem; margin: 0; }
.section-sub { color: var(--u-muted); margin: .2rem 0 0; font-size: .9rem; }
.section-link { color: var(--u-primary); font-weight: 700; white-space: nowrap; }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--u-line);
    border-radius: var(--u-radius);
    overflow: hidden;
    box-shadow: var(--u-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--u-shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-cancel {
    position: absolute; inset-block-start: .6rem; inset-inline-start: .6rem;
    background: rgba(13,122,95,.92); color: #fff; font-size: .72rem; font-weight: 600;
    padding: .2rem .5rem; border-radius: 999px;
}
.badge-tier {
    position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem;
    background: var(--u-primary); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
}
.card-body { padding: .85rem; }
.card-stars { color: var(--u-primary); font-size: .8rem; letter-spacing: 1px; }
.card-title { font-size: 1rem; font-weight: 700; margin: .2rem 0 .35rem; line-height: 1.3; }
.card-meta { color: var(--u-muted); font-size: .82rem; margin-bottom: .6rem; }
.card-footer-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: .5rem; margin-top: .5rem;
}
.review { display: flex; flex-direction: column; }
.review-score {
    display: inline-block; background: var(--u-primary); color: #fff; font-weight: 700;
    padding: .1rem .45rem; border-radius: .4rem; font-size: .85rem; width: fit-content;
}
.review small { color: var(--u-muted); font-size: .72rem; }
.price { display: flex; flex-direction: column; text-align: end; }
[dir="rtl"] .price { text-align: start; }
.price small { color: var(--u-muted); font-size: .72rem; }
.price strong { color: var(--u-primary); font-size: 1.1rem; }

/* flight cards */
.flight-card { padding: 1rem; text-align: center; }
.flight-route {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    font-weight: 800; font-size: 1.15rem; color: var(--u-ink);
}
.flight-route i { color: var(--u-primary); }
.flight-cities { color: var(--u-ink); font-weight: 600; font-size: .9rem; margin-top: .35rem; }
.flight-meta { color: var(--u-muted); font-size: .8rem; margin-bottom: .6rem; }
.flight-card .price { align-items: center; text-align: center; }

/* package cards */
.pkg-highlights { list-style: none; padding: 0; margin: 0 0 .6rem; }
.pkg-highlights li { font-size: .84rem; color: var(--u-ink); padding-block: .12rem; }
.pkg-highlights i { color: var(--u-primary); }
.pkg-includes { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pkg-includes span { font-size: .78rem; color: var(--u-muted); display: inline-flex; align-items: center; gap: .25rem; }
.btn-primary { background: var(--u-primary); border-color: var(--u-primary); }
.btn-primary:hover { background: var(--u-primary-dark); border-color: var(--u-primary-dark); }
.btn-outline-primary { color: var(--u-primary); border-color: var(--u-primary); }
.btn-outline-primary:hover { background: var(--u-primary); border-color: var(--u-primary); }

/* ---------- App banner ---------- */
.app-banner { padding-block: 2.5rem; }
.app-banner-inner {
    background: linear-gradient(120deg, var(--u-primary), var(--u-primary-dark));
    color: #fff; border-radius: var(--u-radius); padding: 1.75rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.app-banner-inner h3 { font-weight: 800; margin: 0; }
.app-banner-inner p { margin: .25rem 0 0; opacity: .9; }
.app-badges { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.store-badge {
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    padding: .5rem .8rem; border-radius: .5rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem;
}
.soon { font-size: .78rem; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    /* Override Bootstrap link colors so no footer link falls back to blue */
    --bs-link-color: #b3beb9;
    --bs-link-hover-color: #ffffff;
    --bs-link-color-rgb: 179, 190, 185;
    --bs-link-hover-color-rgb: 255, 255, 255;
    background:
        radial-gradient(1200px 400px at 15% 0%, rgba(13, 122, 95, .18), transparent 60%),
        linear-gradient(180deg, #0c2a25 0%, #0a1f1c 100%);
    color: #cbd6d2;
    padding-block: 3.25rem 1.25rem;
    margin-top: 3rem;
}
.site-footer a { color: #b3beb9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
/* Force footer link colors over Bootstrap link/visited variables */
.site-footer a:link,
.site-footer a:visited { color: #b3beb9 !important; }
.site-footer a:hover,
.site-footer a:focus { color: #fff !important; }
.site-footer .footer-social a:link,
.site-footer .footer-social a:visited { color: #cbd6d2 !important; }
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus { color: #fff !important; }
.site-footer::before {
    content: "";
    position: absolute;
    inset-block-start: 0; inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--u-primary), var(--u-accent));
}
.footer-brand { color: #fff; font-size: 1.35rem; }
.footer-tagline { color: #93a39d; font-size: .88rem; margin-top: .6rem; line-height: 1.6; }
.footer-heading {
    color: #fff; font-weight: 700; font-size: .8rem; margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: .06em;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: #b3beb9; font-size: .88rem;
    display: inline-flex; align-items: center; gap: .35rem;
    transition: color .15s ease, transform .15s ease;
}
.footer-links a i { font-size: .7rem; color: var(--u-accent); opacity: .85; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
[dir="rtl"] .footer-links a:hover { transform: translateX(-3px); }

/* social icons */
.footer-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: #cbd6d2; font-size: 1rem;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--u-primary); color: #fff; transform: translateY(-2px); }

/* newsletter */
.footer-newsletter .input-group { margin-bottom: 1rem; }
.footer-newsletter .input-group-text {
    background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #93a39d;
}
.footer-newsletter .form-control {
    background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #eef2f0;
}
.footer-newsletter .form-control::placeholder { color: #7f8e88; }
.footer-newsletter .form-control:focus {
    background: rgba(255, 255, 255, .09); color: #fff;
    border-color: var(--u-accent); box-shadow: none;
}
.btn-accent {
    background: var(--u-accent); border-color: var(--u-accent); color: var(--u-ink);
    font-weight: 700;
}
.btn-accent:hover { background: #b8931f; border-color: #b8931f; color: #1c2430; }

.footer-contact { display: flex; flex-direction: column; gap: .45rem; }
.footer-contact a {
    color: #b3beb9; font-size: .86rem;
    display: inline-flex; align-items: center; gap: .5rem;
}
.footer-contact a i { color: var(--u-accent); }
.footer-contact a:hover { color: #fff; }

.footer-divider { height: 1px; background: rgba(255, 255, 255, .1); margin-block: 1.75rem 1rem; }

.payment-icons { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-badge {
    background: rgba(255, 255, 255, .1); color: #eef2f0; border-radius: .4rem;
    padding: .3rem .55rem; font-size: .78rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .3rem;
}
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem;
    font-size: .82rem; color: #93a39d;
}
.footer-bottom-links a { color: #b3beb9; }
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links .dot { margin-inline: .4rem; }

@media (max-width: 767.98px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-social { justify-content: flex-start; }
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    outline: none;
}

@media (max-width: 991.98px) {
    .section-head { flex-direction: column; align-items: flex-start; }
    .app-banner-inner { text-align: center; justify-content: center; }
}

/* ---------- Header register button ---------- */
.nav-register { color: #fff; font-weight: 700; padding-inline: 1rem; }
.nav-register:hover { color: #fff; }

/* ---------- Auth pages (Login / Register) ---------- */
.auth-section {
    background: linear-gradient(135deg, var(--u-primary-light), #fff 60%);
    padding-block: 3rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.auth-card {
    background: #fff;
    border: 1px solid var(--u-line);
    border-radius: var(--u-radius);
    box-shadow: var(--u-shadow-lg);
    padding: 2rem;
    max-width: 440px;
    width: 100%;
}
.auth-card-wide { max-width: 620px; }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-brand { justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.auth-title { font-weight: 800; font-size: 1.5rem; margin: 0; }
.auth-sub { color: var(--u-muted); font-size: .9rem; margin-top: .35rem; }

.activate-status { font-size: 3.25rem; line-height: 1; margin: .5rem 0 1rem; }
.activate-status--ok { color: var(--u-primary); }
.activate-status--error { color: #d9534f; }
.activate-status i { display: inline-block; }
.auth-link { color: var(--u-primary); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-section .input-icon > .form-control { padding-inline-start: 2.1rem; }

/* Phone: custom searchable dial-code picker + national number */
.phone-group { position: relative; flex-wrap: nowrap; }
.phone-group .phone-code { position: relative; flex: 0 0 auto; }
.phone-group .form-control {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.phone-code-trigger {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    height: 100%;
    min-width: 5.5rem;
    padding: .5rem .7rem;
    background: #fff;
    border: 1px solid var(--u-line, #e6e8ec);
    border-inline-end: 0;
    border-start-start-radius: .5rem;
    border-end-start-radius: .5rem;
    color: var(--u-ink, #111);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.phone-code-trigger:focus-visible { outline: 2px solid var(--u-primary); outline-offset: -1px; }
.phone-code-trigger .bi-chevron-down { font-size: .75rem; color: var(--u-muted, #6b7780); margin-inline-start: auto; }
.phone-code-label.is-placeholder,
.phone-code-label:empty { color: var(--u-muted, #6b7780); font-weight: 500; }

.phone-code-pop {
    position: absolute;
    z-index: 1050;
    inset-block-start: calc(100% + 4px);
    inset-inline-start: 0;
    width: 20rem;
    max-width: min(20rem, calc(100vw - 3rem));
    background: #fff;
    border: 1px solid var(--u-line, #e6e8ec);
    border-radius: .6rem;
    box-shadow: 0 12px 32px rgba(17, 17, 17, .14);
    overflow: hidden;
}

.phone-code-search {
    position: relative;
    padding: .55rem;
    border-block-end: 1px solid var(--u-line, #eef1f2);
}
.phone-code-search .bi-search {
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: var(--u-muted, #6b7780);
    font-size: .85rem;
}
.phone-code-search-input {
    width: 100%;
    padding-block: .45rem;
    padding-inline: 2rem .6rem;
    border: 1px solid var(--u-line, #e6e8ec);
    border-radius: .45rem;
    font-size: .9rem;
}
.phone-code-search-input:focus { outline: none; border-color: var(--u-primary); }

.phone-code-list {
    list-style: none;
    margin: 0;
    padding: .25rem;
    max-height: 15rem;
    overflow-y: auto;
}
.phone-code-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .6rem;
    border-radius: .4rem;
    cursor: pointer;
    font-size: .9rem;
}
.phone-code-option:hover { background: var(--u-primary-light, #e8fbfa); }
.phone-code-option.is-selected { background: var(--u-primary-light, #e8fbfa); font-weight: 600; }
.phone-code-option .opt-name { color: var(--u-ink, #111); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-code-option .opt-code { color: var(--u-primary, #16b6ae); font-weight: 600; flex: 0 0 auto; }
.pw-toggle {
    position: absolute;
    inset-inline-end: .6rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--u-muted);
    padding: 0;
    line-height: 1;
}
.password-field { padding-inline-end: 2.2rem; }

.auth-divider {
    display: flex; align-items: center; text-align: center;
    color: var(--u-muted); font-size: .82rem; margin-block: 1.1rem;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--u-line);
}
.auth-divider span { padding-inline: .75rem; }

.social-btn {
    font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.social-btn i { color: #ea4335; }

@media (max-width: 575.98px) {
    .auth-card { padding: 1.5rem; }
}

/* ==========================================================================
   Umrah results page (Wego-style)
   ========================================================================== */
.umrah-searchbar {
    background: var(--u-primary-light);
    border-block-end: 1px solid var(--u-line);
    padding-block: .85rem;
    position: sticky; top: 0; z-index: 20;
}
.umrah-searchbar-form {
    display: flex; flex-wrap: wrap; align-items: end; gap: .6rem;
    background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius);
    padding: .6rem .75rem; box-shadow: var(--u-shadow);
}
.usb-field { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 140px; min-width: 120px; }
.usb-field label { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--u-muted); font-weight: 700; }
.usb-field input[type="text"],
.usb-field input[type="date"] {
    border: 1px solid var(--u-line); border-radius: .5rem; padding: .4rem .55rem;
    font-size: .85rem; color: var(--u-ink); background: #fff;
}
.usb-static { font-size: .9rem; font-weight: 700; padding-block: .35rem; }
.usb-locked-value {
    font-size: .9rem; font-weight: 700; padding-block: .35rem;
    display: inline-flex; align-items: center; gap: .35rem; color: var(--u-ink);
}
.usb-locked-value i { color: var(--u-muted); font-size: .78rem; }
.usb-submit { flex: 0 0 auto; align-self: stretch; padding-inline: 1rem; }

.umrah-results { padding-block: 1.75rem; }

/* Recommended strip */
.reco-head { margin-bottom: .85rem; }
.reco-title { font-weight: 800; font-size: 1.15rem; margin: 0; }
.reco-sub { color: var(--u-muted); font-size: .82rem; margin: .15rem 0 0; }
.reco-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 1.5rem;
}
.reco-card {
    border: 1px solid var(--u-line); border-radius: var(--u-radius); overflow: hidden;
    background: #fff; box-shadow: var(--u-shadow); display: flex; flex-direction: column;
}
.reco-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.reco-media img { width: 100%; height: 100%; object-fit: cover; }
.reco-tier {
    position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem;
    background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; font-weight: 700;
    padding: .12rem .45rem; border-radius: .35rem;
}
.reco-price {
    position: absolute; inset-block-end: .5rem; inset-inline-end: .5rem;
    color: #fff; font-weight: 800; font-size: 1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
    display: flex; flex-direction: column; align-items: end; line-height: 1.1;
}
.reco-price small { font-size: .6rem; font-weight: 600; }
.reco-body { padding: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.reco-meta { font-size: .78rem; color: var(--u-muted); }

/* Filters sidebar */
.filters-card {
    border: 1px solid var(--u-line); border-radius: var(--u-radius); background: #fff;
    padding: 1rem; box-shadow: var(--u-shadow); position: sticky; top: 6.5rem;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.filters-head span { font-weight: 800; color: var(--u-primary); }
.filters-reset { background: none; border: none; color: var(--u-muted); font-size: .78rem; text-decoration: underline; padding: 0; }
.filter-count { font-size: .8rem; color: var(--u-muted); margin-bottom: 1rem; }
.filter-group { margin-bottom: 1rem; }
.filter-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--u-muted); font-weight: 700; margin-bottom: .35rem; }
.filter-chips { display: flex; gap: .4rem; }
.filter-chip {
    flex: 1; border: 1px solid var(--u-line); background: #fff; color: var(--u-ink);
    border-radius: .5rem; padding: .35rem; font-size: .8rem; font-weight: 600;
}
.filter-chip.active { background: var(--u-primary); color: #fff; border-color: var(--u-primary); }
.budget-values { display: flex; justify-content: space-between; font-size: .78rem; color: var(--u-muted); margin-top: .25rem; }

/* Grouped package cards */
.pkg-group { margin-bottom: 1.75rem; }
.pkg-group-title { font-weight: 800; font-size: 1.02rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.pkg-group-tier { color: var(--u-primary); }
.pkg-group-stars { color: var(--u-primary); font-size: .9rem; }

.itinerary-card { border: 1px solid var(--u-line); border-radius: var(--u-radius); padding: .85rem; box-shadow: var(--u-shadow); }
.itin-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: .6rem; }
.itin-tier { display: flex; flex-direction: column; gap: .3rem; }
.itin-days { font-size: .74rem; color: var(--u-muted); display: inline-flex; align-items: center; gap: .3rem; }
.itin-price { text-align: end; display: flex; flex-direction: column; }
[dir="rtl"] .itin-price { text-align: start; }
.itin-price small { color: var(--u-muted); font-size: .68rem; }
.itin-price strong { color: var(--u-primary); font-size: 1.1rem; }

.itin-steps { list-style: none; padding: 0; margin: 0 0 .75rem; }
.itin-steps li { display: flex; gap: .55rem; padding-block: .3rem; position: relative; }
.itin-steps li:not(:last-child) .itin-icon::after {
    content: ""; position: absolute; inset-inline-start: .68rem; inset-block-start: 1.5rem;
    width: 1px; height: calc(100% - .6rem); background: var(--u-line);
}
.itin-icon {
    flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 50%;
    background: var(--u-primary-light); color: var(--u-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; position: relative;
}
.itin-text { display: flex; flex-direction: column; line-height: 1.25; }
.itin-line { font-size: .84rem; font-weight: 600; color: var(--u-ink); }
.itin-sub { font-size: .74rem; color: var(--u-muted); }
.itin-select { width: 100%; }

.no-results { text-align: center; color: var(--u-muted); padding: 2.5rem 1rem; }
.no-results i { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* Branded empty state (zero results) */
.empty-state {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .65rem; padding: 3.5rem 1.5rem; margin: 2rem auto; max-width: 640px;
    background: var(--u-primary-light); border: 1px solid var(--u-line);
    border-radius: var(--u-radius);
}
.empty-state .empty-state-icon {
    width: 4.5rem; height: 4.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--u-primary); box-shadow: var(--u-shadow);
}
.empty-state .empty-state-icon i { font-size: 2.1rem; }
.empty-state-title { font-size: 1.15rem; font-weight: 800; color: var(--u-ink); margin: 0; }
.empty-state-text { color: var(--u-muted); margin: 0; max-width: 32rem; }
.empty-state-tips {
    list-style: none; padding: 0; margin: .5rem 0 0; text-align: start;
    display: flex; flex-direction: column; gap: .4rem; color: var(--u-ink);
}
.empty-state-tips li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.empty-state-tips i { color: var(--u-primary); }
.empty-state-cta { margin-top: .75rem; }

/* Trust strip */
.umrah-trust {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin-top: 1.5rem; padding: 1.5rem; background: var(--u-bg-alt);
    border-radius: var(--u-radius);
}
.trust-item { display: flex; gap: .75rem; align-items: center; justify-content: center; }
.trust-item i { font-size: 1.6rem; color: var(--u-primary); }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { font-size: .8rem; color: var(--u-muted); }

@media (max-width: 991.98px) {
    .reco-strip { grid-template-columns: repeat(2, 1fr); }
    .filters-card { position: static; margin-bottom: 1rem; }
}
@media (max-width: 575.98px) {
    .reco-strip { grid-template-columns: 1fr; }
    .umrah-trust { grid-template-columns: 1fr; }
    .usb-submit { flex: 1 1 100%; }
}

/* ==========================================================================
   Hotel results page (Wego-style SERP)
   ========================================================================== */
.hotel-searchbar {
    background: #fff; border-block-end: 1px solid var(--u-line);
    padding-block: .85rem; position: sticky; top: 0; z-index: 30;
}
/* Match the results/filter bar width so the search widget lines up with the list below. */
.hotel-searchbar > .container { max-width: 1560px; padding-inline: 1.25rem; }
.hotel-searchbar-form {
    display: flex; flex-wrap: wrap; align-items: end; gap: .6rem;
    border: 1px solid var(--u-line); border-radius: var(--u-radius);
    padding: .6rem .75rem; box-shadow: var(--u-shadow);
}
.hsb-field { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 150px; min-width: 130px; }
.hsb-field.hsb-grow { flex: 2 1 240px; }
.hsb-field label { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--u-muted); font-weight: 700; }
.hsb-static { font-size: .9rem; font-weight: 700; padding-block: .4rem; }
.hsb-submit {
    flex: 0 0 auto; align-self: end;
    display: inline-flex; align-items: center; justify-content: center;
    height: 2.6rem; width: 2.9rem; padding: 0; border-radius: .55rem;
}
.hsb-submit i { font-size: .95rem; }

/* Interactive search widgets embedded in the sticky results search bar */
.hotel-searchbar-form .hotel-ac,
.hotel-searchbar-form .date-field,
.hotel-searchbar-form .occupancy { width: 100%; }
.hotel-searchbar-form .hotel-ac .form-control,
.hotel-searchbar-form .date-field .date-display,
.hotel-searchbar-form .occupancy .dropdown-toggle {
    font-size: .88rem; padding-block: .5rem;
}
.hotel-searchbar-form .occupancy .dropdown-toggle { width: 100%; }

.hotel-filterbar {
    background: #fff; border-block-end: 1px solid var(--u-line);
    padding-block: .55rem; position: sticky; top: 4.8rem; z-index: 25;
}
.hfb-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hfb-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--u-line); background: #fff; border-radius: 2rem;
    padding: .4rem .8rem; font-size: .82rem; font-weight: 600; color: var(--u-ink);
}
.hfb-select {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--u-line); border-radius: 2rem; padding: .3rem .7rem; background: #fff;
}
.hfb-select i { color: var(--u-muted); font-size: .8rem; }
.hfb-select select { border: none; background: transparent; font-size: .82rem; font-weight: 600; color: var(--u-ink); outline: none; }
.hfb-search {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--u-line); border-radius: 2rem; padding: .3rem .7rem; background: #fff;
}
.hfb-search i { color: var(--u-muted); font-size: .8rem; }
.hfb-search input { border: none; background: transparent; font-size: .82rem; outline: none; min-width: 120px; }

.hotel-serp { padding-block: 1.25rem; background: var(--u-bg-alt); }
.serp-container { max-width: 1560px; margin-inline: auto; padding-inline: 1.25rem; }
.serp-layout { display: block; }

/* ---- Top horizontal filter bar ---- */
.serp-filterbar {
    position: sticky; top: 4.25rem; z-index: 20;
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius);
    box-shadow: var(--u-shadow); padding: .6rem .75rem; margin-bottom: 1rem;
}
.fb-search { display: flex; gap: .5rem; flex: 1 1 340px; min-width: 240px; }
.fb-input-icon { position: relative; display: flex; align-items: center; flex: 1 1 auto; }
.fb-input-icon i { position: absolute; inset-inline-start: .6rem; color: var(--u-muted); font-size: .82rem; pointer-events: none; }
.fb-input {
    width: 100%; border: 1px solid var(--u-line); border-radius: .55rem;
    padding: .5rem .7rem .5rem 1.9rem; font-size: .86rem;
}
[dir="rtl"] .fb-input { padding: .5rem 1.9rem .5rem .7rem; }
.fb-input:focus { outline: none; border-color: var(--u-primary); box-shadow: 0 0 0 3px var(--u-primary-light); }

.fb-filters { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.fb-drop { position: relative; }
.fb-drop > summary { list-style: none; }
.fb-drop > summary::-webkit-details-marker { display: none; }
.fb-chip {
    display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; user-select: none;
    border: 1px solid var(--u-line); background: #fff; color: var(--u-ink);
    border-radius: 999px; padding: .45rem .8rem; font-size: .83rem; font-weight: 600;
    transition: all .12s ease; white-space: nowrap;
}
.fb-chip:hover { border-color: var(--u-primary); }
.fb-chip i:first-child { color: var(--u-primary); font-size: .82rem; }
.fb-caret { color: var(--u-muted) !important; font-size: .68rem !important; transition: transform .15s ease; }
.fb-drop[open] > summary .fb-chip { border-color: var(--u-primary); background: var(--u-primary-light); }
.fb-drop[open] > summary .fb-caret { transform: rotate(180deg); }
.fb-drop.has-value > summary .fb-chip { border-color: var(--u-primary); background: var(--u-primary); color: #fff; }
.fb-drop.has-value > summary .fb-chip i { color: #fff !important; }
/* Per-chip count badge so the user can see exactly which filter has selections and how many. */
.fb-count {
    display: none; align-items: center; justify-content: center;
    min-width: 1.05rem; height: 1.05rem; padding: 0 .3rem; margin-inline-start: .1rem;
    border-radius: 999px; background: #fff; color: var(--u-primary);
    font-size: .68rem; font-weight: 800; line-height: 1;
}
.fb-drop.has-value > summary .fb-count { display: inline-flex; }
.fb-drop.has-value > summary .fb-caret { color: #fff !important; }
.fb-pop {
    position: absolute; inset-block-start: calc(100% + .4rem); inset-inline-start: 0; z-index: 40;
    background: #fff; border: 1px solid var(--u-line); border-radius: .7rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: .85rem; min-width: 220px;
}
.fb-pop-wide { min-width: 320px; max-width: 380px; max-height: 340px; overflow-y: auto; }
[dir="rtl"] .fb-pop { inset-inline-start: auto; inset-inline-end: 0; }
.fb-applied { margin-inline-start: .25rem; }
.fb-clear {
    display: inline-flex; align-items: center; gap: .35rem;
    border: none; background: transparent; color: var(--u-primary); cursor: pointer;
    font-size: .82rem; font-weight: 700; padding: .3rem .4rem;
}
.fb-clear:hover { text-decoration: underline; }
.fb-map-toggle {
    margin-inline-start: auto;
    display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
    border: 1px solid var(--u-primary); background: #fff; color: var(--u-primary-dark);
    border-radius: .55rem; padding: .5rem .85rem; font-size: .84rem; font-weight: 700;
    transition: all .12s ease; white-space: nowrap;
}
.fb-map-toggle:hover { background: var(--u-primary-light); }
.fb-map-toggle.is-active { background: var(--u-primary); border-color: var(--u-primary); color: #fff; }

/* ---- Split-screen body: results left, sticky map right ---- */
.serp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.serp-body.show-map { grid-template-columns: minmax(0, 1fr) 40%; }
.serp-map[hidden] { display: none; }
@media (max-width: 991.98px) {
    .serp-body, .serp-body.show-map { grid-template-columns: 1fr; }
    .serp-body.show-map .serp-map { display: none; }
    .fb-map-toggle { display: none; }
}

.serp-count { font-size: .9rem; color: var(--u-muted); margin-bottom: .75rem; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.serp-count strong { color: var(--u-ink); }
.serp-applied {
    font-size: .74rem; font-weight: 700; color: var(--u-primary-dark);
    background: var(--u-primary-light); border: 1px solid var(--u-primary);
    border-radius: 999px; padding: .12rem .55rem;
}
.serp-applied[hidden] { display: none; }
.serp-sort { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--u-muted); }
.serp-sort select { border: 1px solid var(--u-line); border-radius: .45rem; padding: .3rem .5rem; font-size: .82rem; background: #fff; }

/* Filter popover inner controls (reused inside .fb-pop) */
.sf-input {
    width: 100%; border: 1px solid var(--u-line); border-radius: .5rem;
    padding: .5rem .7rem; font-size: .86rem;
}
.sf-input:focus { outline: none; border-color: var(--u-primary); box-shadow: 0 0 0 3px var(--u-primary-light); }
.sf-price-row { display: flex; align-items: center; gap: .5rem; }
.sf-price-row .sf-input { text-align: center; }
.sf-dash { color: var(--u-muted); }
/* Dual-thumb price range slider (draggable, no typing) */
.sf-price { min-width: 240px; padding-block: .2rem; }
.sf-price-vals { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block-end: .7rem; }
.sf-price-val { font-size: .85rem; font-weight: 700; color: var(--u-ink); }
.sf-range { position: relative; height: 1.5rem; }
.sf-range-track {
    position: absolute; inset-inline: 0; inset-block-start: 50%; transform: translateY(-50%);
    height: 4px; border-radius: 999px; background: var(--u-line);
}
.sf-range-fill {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    height: 4px; border-radius: 999px; background: var(--u-primary);
}
.sf-range-input {
    position: absolute; inset-inline: 0; inset-block-start: 0; width: 100%; height: 1.5rem;
    margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.sf-range-input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: auto;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    border: 3px solid var(--u-primary); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.sf-range-input::-moz-range-thumb {
    pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    border: 3px solid var(--u-primary); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.sf-range-input:focus { outline: none; }
.sf-range-input::-webkit-slider-runnable-track { background: transparent; }
.sf-range-input::-moz-range-track { background: transparent; }
.sf-stars, .sf-review { display: flex; flex-wrap: wrap; gap: .4rem; }
.sf-star-chip, .sf-review-chip {
    border: 1px solid var(--u-line); background: #fff; color: var(--u-ink);
    border-radius: 999px; padding: .28rem .6rem; font-size: .78rem; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: .25rem; transition: all .12s ease;
}
.sf-star-chip i { color: #f5a623; font-size: .72rem; }
.sf-star-chip:hover, .sf-review-chip:hover { border-color: var(--u-primary); }
.sf-star-chip.is-active, .sf-review-chip.is-active { background: var(--u-primary); border-color: var(--u-primary); color: #fff; }
.sf-star-chip.is-active i { color: #fff; }
.sf-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sf-chip {
    border: 1px solid var(--u-line); background: #fff; color: var(--u-ink);
    border-radius: 999px; padding: .3rem .65rem; font-size: .76rem; font-weight: 600; cursor: pointer;
    transition: all .12s ease;
}
.sf-chip:hover { border-color: var(--u-primary); }
.sf-chip.is-active { background: var(--u-primary); border-color: var(--u-primary); color: #fff; }
.serp-status { display: inline-flex; align-items: center; gap: .5rem; }
.serp-spinner {
    width: 1rem; height: 1rem; border-radius: 50%;
    border: 2px solid var(--u-primary-light); border-top-color: var(--u-primary);
    animation: serp-spin .7s linear infinite; display: inline-block;
}
@keyframes serp-spin { to { transform: rotate(360deg); } }
.serp-progress-pct { font-weight: 700; color: var(--u-primary); font-size: .85rem; }

/* Streaming search progress bar (BedBank-style) */
.serp-progress {
    height: 4px; width: 100%; background: var(--u-primary-light);
    border-radius: 2px; overflow: hidden; margin-bottom: 1rem;
}
.serp-progress[hidden] { display: none; }
.serp-progress-bar {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--u-primary), var(--u-primary-dark));
    border-radius: 2px; transition: width .4s ease;
}

/* Per-card "Loading price…" placeholder while the rate resolves */
.price-loading {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .82rem; font-weight: 600; color: var(--u-muted);
}
.price-loading-dot {
    width: .55rem; height: .55rem; border-radius: 50%;
    background: var(--u-primary); animation: price-pulse 1s ease-in-out infinite;
}
@keyframes price-pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* DB placeholder cards shown while priced results stream in */
.hotel-row.is-placeholder { opacity: .82; }
.hotel-row.is-placeholder .hotel-cta { pointer-events: none; opacity: .55; }

/* A DB hotel that never received a live price: keep it visible, drop the shimmer,
   and send the user to the detail page for the current rate. */
.hotel-row.is-settled { opacity: 1; }
.price-unavailable { font-size: .8rem; font-weight: 600; color: var(--u-muted); }

/* Skeleton loaders */
.serp-skeletons .hotel-row.skeleton { grid-template-columns: 220px 1fr 210px; pointer-events: none; }
.sk-box, .sk-line { background: linear-gradient(90deg, #eef2f4 25%, #f6f8f9 37%, #eef2f4 63%); background-size: 400% 100%; animation: sk-shimmer 1.3s ease infinite; border-radius: .35rem; }
.sk-box { min-height: 190px; }
.serp-skeletons .hotel-info { display: block; padding: .85rem 1rem; }
.serp-skeletons .hotel-side { padding: .85rem 1rem; }
.sk-line { height: .8rem; margin-bottom: .55rem; }
.sk-lg { width: 70%; height: 1.1rem; }
.sk-md { width: 50%; }
.sk-sm { width: 35%; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.serp-error { text-align: center; padding: 2.5rem 1rem; color: var(--u-muted); }
.serp-error i { font-size: 1.8rem; color: #dc2626; display: block; margin-bottom: .5rem; }

.hotel-row {
    display: grid; grid-template-columns: 240px 1fr; gap: 0;
    background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius);
    overflow: hidden; box-shadow: var(--u-shadow); margin-bottom: .85rem;
    min-height: 210px;
}
.hotel-media { position: relative; min-height: 210px; height: 100%; }
.hotel-media img { width: 100%; height: 100%; object-fit: cover; }

/* Image carousel inside the card media */
.hotel-carousel { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; }
.hotel-carousel:active { cursor: grabbing; }
.hc-track { display: flex; height: 100%; transition: transform .3s ease; position: relative; z-index: 1; }
.hotel-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
/* Keep a shimmering skeleton over each slide until the image actually loads, so a
   half-downloaded or broken image never flashes a torn/partial picture on the card. */
.hotel-slide.is-loading { opacity: 0; }
.hotel-carousel::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(100deg, var(--u-bg-alt) 30%, #eef4f4 50%, var(--u-bg-alt) 70%);
    background-size: 200% 100%; animation: hotel-img-shimmer 1.2s ease-in-out infinite;
}
/* Once no slide is still loading, drop the shimmer backdrop. */
.hotel-carousel:not(:has(.hotel-slide.is-loading))::before { display: none; }
@keyframes hotel-img-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .hotel-carousel::before { animation-duration: 3s; } }
.hc-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 1.9rem; height: 1.9rem; border-radius: 50%; border: none;
    background: rgba(255,255,255,.9); color: var(--u-ink); display: inline-flex;
    align-items: center; justify-content: center; box-shadow: var(--u-shadow);
    opacity: 0; transition: opacity .2s ease; z-index: 2; cursor: pointer;
}
.hotel-media:hover .hc-nav { opacity: 1; }
/* On touch devices (no hover), keep the carousel arrows visible so users can swipe/tap. */
@media (hover: none) {
    .hc-nav { opacity: .85; }
}
.hc-prev { inset-inline-start: .4rem; }
.hc-next { inset-inline-end: .4rem; }
[dir="rtl"] .hc-prev i { transform: scaleX(-1); }
[dir="rtl"] .hc-next i { transform: scaleX(-1); }
.hc-dots {
    position: absolute; inset-block-end: .45rem; inset-inline: 0;
    display: flex; justify-content: center; gap: .3rem; z-index: 2;
}
.hc-dot { width: .4rem; height: .4rem; border-radius: 50%; background: rgba(255,255,255,.6); }
.hc-dot.is-active { background: #fff; width: .9rem; border-radius: .4rem; }
/* Top-left "Special Offer" ribbon on the card image (BedBank FE parity) */
.hotel-ribbon {
    position: absolute; inset-block-start: 0; inset-inline-start: 0;
    z-index: 3; overflow: hidden; width: 116px; height: 116px; pointer-events: none;
}
.hotel-ribbon span {
    position: absolute; display: block; width: 165px; padding: .3rem 0;
    top: 26px; left: -40px; right: auto;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, var(--u-primary) 0%, var(--u-primary-dark) 100%);
    color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .03em;
    text-transform: uppercase; text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
/* RTL: the container mirrors to the top-right corner, so the diagonal must tilt the other
   way and anchor to the right using explicit physical props (avoids double-mirroring). */
[dir="rtl"] .hotel-ribbon span { transform: rotate(45deg); left: auto; right: -40px; }
.hotel-info { display: grid; grid-template-columns: 1fr 190px; }
.hotel-info-main { padding: .7rem .85rem; border-inline-end: 1px solid var(--u-line); }
.hotel-name { font-size: .95rem; font-weight: 800; margin: 0 0 .2rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.hotel-stars { color: var(--u-primary); font-size: .82rem; }
.hotel-loc { font-size: .8rem; color: var(--u-muted); display: flex; align-items: center; gap: .3rem; margin-bottom: .4rem; }
.hotel-distance { font-size: .76rem; color: var(--u-muted); display: flex; align-items: center; gap: .35rem; margin-bottom: .4rem; }
.hotel-distance i { color: var(--u-primary); font-size: .82rem; }
.hotel-veryclose { font-size: .72rem; font-weight: 700; color: var(--u-primary-dark); background: var(--u-primary-light); border-radius: 999px; padding: .1rem .5rem; margin-inline-start: .35rem; display: inline-flex; align-items: center; gap: .25rem; }
.hotel-veryclose i { color: var(--u-primary-dark); font-size: .78rem; }
.hotel-urgency { font-size: .78rem; font-weight: 700; color: #e11d48; display: flex; align-items: center; gap: .3rem; margin-bottom: .35rem; }
.hotel-loved { font-size: .78rem; color: var(--u-primary); display: flex; align-items: center; gap: .3rem; margin-bottom: .5rem; }
.hotel-amenities { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; max-height: 3.6rem; overflow: hidden; }
.hotel-amenity { font-size: .72rem; font-weight: 600; color: var(--u-primary-dark); background: var(--u-primary-light); border: 1px solid var(--u-primary-light); border-radius: 999px; padding: .18rem .55rem; display: inline-flex; align-items: center; gap: .3rem; line-height: 1.2; }
.hotel-amenity i { font-size: .8rem; color: var(--u-primary); }
.hotel-amenity-more { background: #fff; color: var(--u-muted); border-color: var(--u-line); }
.hotel-amenity-more i { color: var(--u-muted); }

/* 5.0-style rating badge at the top of the card title */
.hotel-rate-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 800; color: var(--u-ink); background: var(--u-primary-light); border: 1px solid var(--u-primary); border-radius: .4rem; padding: .1rem .4rem; }
.hotel-rate-badge i { color: #f5a623; font-size: .72rem; }

/* "LOADING" badge over the image, mirroring the BedBank loading card */
.hotel-loading-badge { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; display: inline-flex; align-items: center; gap: .3rem; background: #f5a623; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: .2rem .5rem; border-radius: .35rem; box-shadow: var(--u-shadow); }
.hotel-loading-badge i { font-size: .72rem; }

/* Room / guest summary line shown while the price loads */
.hotel-booking-info { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .35rem 0 .1rem; }
.hb-item { font-size: .78rem; font-weight: 600; color: var(--u-ink); display: inline-flex; align-items: center; gap: .3rem; }
.hb-item i { font-size: .82rem; color: var(--u-primary); }
.hotel-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .75rem; }
.pc-pro, .pc-con { font-size: .78rem; display: flex; align-items: center; gap: .3rem; }
.pc-pro { color: #15803d; }
.pc-con { color: #dc2626; }

.hotel-side { padding: .7rem .85rem; display: flex; flex-direction: column; align-items: end; text-align: end; gap: .3rem; }
[dir="rtl"] .hotel-side { text-align: start; align-items: start; }
.hotel-review { display: flex; align-items: center; gap: .5rem; }
.hr-text { display: flex; flex-direction: column; text-align: end; }
[dir="rtl"] .hr-text { text-align: start; }
.hr-text strong { font-size: .82rem; }
.hr-text small { font-size: .7rem; color: var(--u-muted); }
.hr-score {
    background: var(--u-primary); color: #fff; font-weight: 800; font-size: .9rem;
    border-radius: .4rem; padding: .2rem .4rem; min-width: 2.1rem; text-align: center;
}
.hotel-cancel { font-size: .74rem; color: #15803d; display: flex; align-items: center; gap: .25rem; }
.hotel-price { display: flex; flex-direction: column; align-items: end; margin-top: auto; }
[dir="rtl"] .hotel-price { align-items: start; }
.price-from { font-size: .72rem; color: var(--u-muted); font-weight: 600; }
.price-was { font-size: .78rem; color: var(--u-muted); text-decoration: line-through; }
.price-now { font-size: 1.2rem; font-weight: 800; color: var(--u-primary-dark); line-height: 1.15; }
.hotel-price small { font-size: .68rem; color: var(--u-muted); }
.hotel-cta { margin-top: .4rem; align-self: stretch; }

/* Map panel */
.serp-map { position: sticky; top: 7.5rem; height: calc(100vh - 8.5rem); }
.map-canvas {
    position: relative; width: 100%; height: 100%; min-height: 480px;
    border-radius: var(--u-radius); overflow: hidden; border: 1px solid var(--u-line);
    background: var(--u-bg-alt); z-index: 1;
}
/* Map loading overlay: shown while search results stream in, hidden once results settle. */
.map-loader {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem; border-radius: var(--u-radius);
    background: color-mix(in srgb, var(--u-bg-alt) 82%, transparent);
    backdrop-filter: blur(1.5px);
}
.map-loader[hidden] { display: none; }
.map-loader-spinner {
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    border: 3px solid var(--u-primary-light);
    border-top-color: var(--u-primary);
    animation: map-loader-spin .8s linear infinite;
}
.map-loader-text { font-size: .85rem; font-weight: 600; color: var(--u-primary-dark); }
@keyframes map-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .map-loader-spinner { animation-duration: 2s; } }
.map-search-here {
    background: #fff; border: 1px solid var(--u-line); border-radius: 2rem;
    padding: .4rem .9rem; font-size: .8rem; font-weight: 600; color: var(--u-ink);
    box-shadow: var(--u-shadow); display: inline-flex; align-items: center; gap: .35rem;
    margin-block-start: 3.2rem; margin-inline-start: .5rem; cursor: pointer;
}
/* In-map location search box (find hotels near a typed address/place) */
.map-search {
    margin-block-start: .5rem; margin-inline-end: .5rem;
    width: min(19rem, 62vw); position: relative;
}
.map-search-box {
    display: flex; align-items: center; gap: .45rem;
    background: #fff; border: 1px solid var(--u-line); border-radius: 2rem;
    padding: .35rem .85rem; box-shadow: var(--u-shadow);
}
.map-search-box:focus-within { border-color: var(--u-primary); box-shadow: 0 0 0 2px var(--u-primary-light); }
.map-search-icon { color: var(--u-primary); font-size: .95rem; flex: 0 0 auto; }
.map-search-input {
    border: 0; outline: 0; background: transparent; width: 100%;
    font-size: .82rem; color: var(--u-ink); min-width: 0;
}
.map-search-input::placeholder { color: #6b7280; }
.map-search-menu {
    position: absolute; inset-block-start: calc(100% + .35rem); inset-inline: 0;
    background: #fff; border: 1px solid var(--u-line); border-radius: .75rem;
    box-shadow: var(--u-shadow); overflow: hidden; z-index: 1000; max-height: 15rem; overflow-y: auto;
}
.map-search-menu[hidden] { display: none; }
.map-search-item {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    padding: .5rem .75rem; border: 0; background: transparent; cursor: pointer;
    font-size: .8rem; color: var(--u-ink); text-align: start; line-height: 1.25;
}
.map-search-item i { color: var(--u-primary); flex: 0 0 auto; }
.map-search-item.is-active, .map-search-item:hover { background: var(--u-primary-light); }
.map-search-msg { padding: .55rem .75rem; font-size: .78rem; color: #6b7280; }
/* Custom Leaflet price marker */
.leaflet-price-pin {
    display: inline-block; transform: translate(-50%, -100%);
    background: #fff; border: 1px solid var(--u-primary); color: var(--u-primary);
    font-size: .78rem; font-weight: 800; padding: .18rem .5rem; border-radius: .4rem;
    box-shadow: var(--u-shadow); white-space: nowrap; cursor: pointer; transition: all .12s ease;
    position: relative;
}
.leaflet-price-pin::after {
    content: ""; position: absolute; inset-block-start: 100%; inset-inline-start: 50%;
    transform: translateX(-50%); border: 5px solid transparent; border-block-start-color: var(--u-primary);
}
.leaflet-price-pin.is-top { border-color: var(--u-primary-dark); color: var(--u-primary-dark); font-weight: 900; }
.leaflet-price-pin.is-active { background: var(--u-primary-dark); color: #fff; border-color: var(--u-primary-dark); z-index: 500; transform: translate(-50%, -100%) scale(1.08); }
/* Lightweight loading marker for placeholder hotels (before a price resolves) */
.leaflet-loading-pin {
    display: inline-flex; align-items: center; justify-content: center;
    transform: translate(-50%, -100%);
    width: 1.5rem; height: 1.5rem; border-radius: 50% 50% 50% 0;
    background: var(--u-primary-light); border: 1px solid var(--u-primary);
    color: var(--u-primary-dark); font-size: .8rem; box-shadow: var(--u-shadow);
    rotate: -45deg;
}
.leaflet-loading-pin i { rotate: 45deg; }
.hotel-row.is-highlight { outline: 2px solid var(--u-primary); outline-offset: -1px; }

/* Brand-themed marker cluster bubble (Leaflet.markercluster). Overrides the plugin default
   blue circles so dense result sets collapse into readable teal count bubbles. */
.hotel-cluster { background: transparent; }
.hotel-cluster-bubble {
    display: inline-flex; align-items: center; justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%; font-weight: 800; color: #fff;
    background: radial-gradient(circle at 30% 30%, var(--u-primary) 0%, var(--u-primary-dark) 100%);
    box-shadow: 0 0 0 4px rgba(22, 182, 174, .25), var(--u-shadow);
    border: 2px solid #fff;
}
.hotel-cluster-bubble.hcb-sm { width: 34px; height: 34px; font-size: .78rem; }
.hotel-cluster-bubble.hcb-md { width: 42px; height: 42px; font-size: .84rem; }
.hotel-cluster-bubble.hcb-lg { width: 52px; height: 52px; font-size: .9rem; }

/* Map marker popup card (mirrors BedBank FE hover card) */
.hotel-map-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: .6rem; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.hotel-map-popup .leaflet-popup-content { margin: 0; width: 220px !important; }
.hotel-map-popup .leaflet-popup-tip { background: #fff; }
.hotel-map-card { display: flex; flex-direction: column; font-family: inherit; }
.hmp-img { width: 100%; height: 108px; background-size: cover; background-position: center; background-color: var(--u-bg-alt); }
.hmp-body { padding: .55rem .65rem .65rem; }
.hmp-name { font-size: .86rem; font-weight: 800; color: var(--u-ink); line-height: 1.25; margin-bottom: .2rem; }
.hmp-loc { font-size: .74rem; color: var(--u-muted); display: flex; align-items: center; gap: .25rem; margin-bottom: .35rem; }
.hmp-meta { display: flex; align-items: center; gap: .55rem; margin-bottom: .35rem; flex-wrap: wrap; }
.hmp-stars { font-size: .76rem; font-weight: 700; color: var(--u-ink); display: inline-flex; align-items: center; gap: .2rem; }
.hmp-stars i { color: #f5a623; font-size: .72rem; }
.hmp-review { font-size: .72rem; font-weight: 700; color: var(--u-primary-dark); background: var(--u-primary-light); border-radius: .3rem; padding: .05rem .35rem; }
.hmp-price { font-size: .9rem; color: var(--u-ink); }
.hmp-price span { font-size: .7rem; color: var(--u-muted); }
.hmp-price strong { color: var(--u-primary-dark); font-size: 1rem; }
.hmp-price-loading { font-size: .78rem; color: var(--u-muted); font-weight: 600; }

@media (max-width: 1199.98px) {
    .hotel-info { grid-template-columns: 1fr 180px; }
}
@media (max-width: 575.98px) {
    .hotel-row { grid-template-columns: 1fr; }
    .hotel-media { min-height: 160px; }
    .hotel-info { grid-template-columns: 1fr; }
    .hotel-info-main { border-inline-end: none; border-block-end: 1px solid var(--u-line); }
    .hotel-side { align-items: stretch; text-align: start; }
    .hotel-proscons { grid-template-columns: 1fr; }
    .hotel-searchbar-form { flex-direction: column; align-items: stretch; }
    .hsb-submit { width: 100%; }
}

/* ==========================================================================
   Hotel detail page ("View deal")
   ========================================================================== */
.hd-page { padding-block: 1.25rem 3rem; }
.hd-crumbs { margin-block-end: 1rem; }
.hd-crumbs a { color: var(--u-primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.hd-crumbs a:hover { color: var(--u-primary-dark); }

.hd-header {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    justify-content: space-between; margin-block-end: 1rem;
}
.hd-header-main { flex: 1 1 320px; min-width: 0; }
.hd-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hd-name { font-size: 1.45rem; font-weight: 800; margin: 0; color: var(--u-ink); }
.hd-stars { color: var(--u-primary); display: inline-flex; gap: .1rem; font-size: .9rem; }
.hd-badge {
    display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700;
    padding: .15rem .5rem; border-radius: 999px; line-height: 1.4;
}
.hd-badge-deal { background: var(--u-primary); color: #fff; }
.hd-badge-cat { background: var(--u-primary-light); color: var(--u-primary-dark); }
.hd-loc { color: var(--u-muted); margin-block-start: .3rem; display: flex; align-items: flex-start; gap: .35rem; font-size: .9rem; line-height: 1.35; }
.hd-loc i { color: var(--u-primary); flex: 0 0 auto; margin-block-start: .1rem; }
.hd-promo { color: var(--u-primary-dark); margin-block-start: .3rem; display: flex; align-items: center; gap: .35rem; font-weight: 600; }

.hd-header-price {
    flex: 0 0 auto; display: flex; align-items: center; gap: .9rem;
    background: var(--u-primary-light); border: 1px solid var(--u-line);
    border-radius: var(--u-radius); padding: .55rem .8rem;
}
.hd-price-info { display: flex; flex-direction: column; align-items: flex-end; text-align: end; line-height: 1.15; }
.hd-price-label { color: var(--u-muted); font-size: .75rem; }
.hd-price-amount { color: var(--u-ink); font-size: 1.35rem; font-weight: 800; }
.hd-price-unit { color: var(--u-muted); font-size: .75rem; }
.hd-see-rooms { white-space: nowrap; }

/* Gallery */
.hd-gallery { margin-block-end: 1.25rem; }
.hd-gallery-main { position: relative; border-radius: var(--u-radius); overflow: hidden; background: var(--u-bg-alt); box-shadow: var(--u-shadow); }
.hd-gallery-main img { width: 100%; height: clamp(200px, 30vw, 340px); object-fit: cover; display: block; }
.hd-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.9); color: var(--u-ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--u-shadow);
}
.hd-gallery-nav:hover { background: #fff; color: var(--u-primary); }
.hd-gallery-prev { inset-inline-start: .75rem; }
.hd-gallery-next { inset-inline-end: .75rem; }
.hd-gallery-thumbs { display: flex; gap: .5rem; margin-block-start: .5rem; overflow-x: auto; padding-block-end: .25rem; }
.hd-thumb {
    flex: 0 0 auto; width: 92px; height: 64px; border-radius: .5rem; overflow: hidden;
    border: 2px solid transparent; background: none; padding: 0; cursor: pointer;
}
.hd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-thumb.is-active { border-color: var(--u-primary); }
.hd-gallery-main img { cursor: zoom-in; }
.hd-gallery-zoom {
    position: absolute; inset-block-end: .75rem; inset-inline-end: .75rem;
    display: inline-flex; align-items: center; gap: .4rem; border: none;
    background: rgba(17,17,17,.7); color: #fff; font-size: .82rem; font-weight: 600;
    padding: .35rem .7rem; border-radius: 999px; cursor: pointer; backdrop-filter: blur(2px);
}
.hd-gallery-zoom:hover { background: rgba(17,17,17,.85); }
.hd-thumb-more { position: relative; }
.hd-thumb-more::after { content: ""; position: absolute; inset: 0; background: rgba(17,17,17,.55); }
.hd-thumb-more-count {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .95rem; z-index: 1;
}

/* Full-screen lightbox */
.hd-lightbox {
    position: fixed; inset: 0; z-index: 1080; background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
}
.hd-lightbox[hidden] { display: none; }
.hd-lightbox-stage { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.hd-lightbox-stage img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: .4rem; }
.hd-lightbox-counter { color: rgba(255,255,255,.85); font-size: .85rem; }
.hd-lightbox-close {
    position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem;
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem;
}
.hd-lightbox-close:hover { background: rgba(255,255,255,.28); }
.hd-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.hd-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.hd-lightbox-prev { inset-inline-start: 1rem; }
.hd-lightbox-next { inset-inline-end: 1rem; }
.hd-lightbox-data { display: none; }

/* Body layout */
.hd-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.hd-main-col { display: flex; flex-direction: column; }
.hd-card { background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius); box-shadow: var(--u-shadow); padding: 1.1rem 1.25rem; margin-block-end: 1.25rem; }

/* Rooms first, then tab bar + panels (prioritize room selection) */
.hd-rooms-card { order: 1; scroll-margin-top: 5.25rem; }
.hd-tabbar { order: 2; }
.hd-tabpanel { order: 3; }
.hd-tabbar {
    display: flex; flex-wrap: wrap; gap: .35rem; margin-block-end: 1rem;
    border-block-end: 2px solid var(--u-line); padding-block-end: 0;
}
.hd-tab {
    display: inline-flex; align-items: center; gap: .4rem; border: none; background: none;
    cursor: pointer; font: inherit; font-weight: 700; color: var(--u-muted);
    padding: .6rem .9rem; border-block-end: 2px solid transparent; margin-block-end: -2px;
}
.hd-tab i { font-size: .95rem; }
.hd-tab:hover { color: var(--u-primary-dark); }
.hd-tab.is-active { color: var(--u-primary-dark); border-block-end-color: var(--u-primary); }
.hd-tabpanel { display: none; }
.hd-tabpanel.is-active { display: block; }
.hd-section-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 .75rem; color: var(--u-ink); }
.hd-subtitle { font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; color: var(--u-ink); }
.hd-desc { color: var(--u-muted); line-height: 1.65; }
.hd-muted { color: var(--u-muted); }

/* Amenities */
.hd-amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem .75rem; }
.hd-amenities li { display: flex; align-items: center; gap: .45rem; color: var(--u-ink); font-size: .92rem; }
.hd-amenities li i { color: var(--u-primary); }
.hd-amenities-optional li i { color: var(--u-muted); }

/* Amenity category groups reuse the accordion shell with denser body padding */
.hd-amenity-groups .hd-acc-head { padding-block: .65rem; }
.hd-amenity-groups .hd-acc-body { padding: .75rem 1rem; }
.hd-amenity-groups .hd-acc-count {
    background: var(--u-primary-light); color: var(--u-primary-dark);
    border-radius: 999px; padding: .05rem .5rem; min-width: 1.5rem; text-align: center;
}

/* Rooms — collapsible accordion (BedBank-inspired) */
.hd-acc-list { display: flex; flex-direction: column; gap: .75rem; }
.hd-acc { border: 1px solid var(--u-line); border-radius: var(--u-radius); overflow: hidden; background: #fff; }
.hd-acc-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 1rem; background: var(--u-bg-alt); border: none; cursor: pointer;
    text-align: start; font: inherit; color: var(--u-ink);
}
.hd-acc-head:hover { background: var(--u-primary-light); }
.hd-acc.is-open .hd-acc-head { background: var(--u-primary-light); }
.hd-acc-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; min-width: 0; }
.hd-acc-title > span:not(.hd-badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-acc-title i { color: var(--u-primary); flex: 0 0 auto; }
.hd-acc-meta { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.hd-acc-count { color: var(--u-muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.hd-acc-from { display: flex; align-items: baseline; gap: .3rem; white-space: nowrap; }
.hd-acc-from-label { color: var(--u-muted); font-size: .75rem; }
.hd-acc-from-amount { color: var(--u-primary-dark); font-weight: 800; font-size: 1rem; }
.hd-acc-chevron { color: var(--u-muted); transition: transform .2s ease; flex: 0 0 auto; }
.hd-acc.is-open .hd-acc-chevron { transform: rotate(180deg); }
.hd-acc-body { display: none; }
.hd-acc.is-open .hd-acc-body { display: block; }
.hd-room {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    align-items: flex-start; padding: .9rem 1rem; border-block-start: 1px solid var(--u-line);
}
.hd-acc-body > .hd-room:first-child { border-block-start: none; }
.hd-room.is-selected { background: var(--u-primary-light); }
.hd-room-info { flex: 1 1 260px; min-width: 0; }
.hd-room-name { font-weight: 700; color: var(--u-ink); margin-block-end: .35rem; display: flex; align-items: center; gap: .4rem; }
.hd-room-name i { color: var(--u-primary); }
.hd-room-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.hd-tag {
    display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem;
    padding: .15rem .5rem; border-radius: 999px; background: var(--u-bg-alt);
    color: var(--u-muted); border: 1px solid var(--u-line);
}
.hd-tag i { font-size: .8rem; }
.hd-tag-meal { color: var(--u-primary-dark); }
.hd-tag-ok { color: #1a7f4b; border-color: #bfe8cf; background: #eefaf1; }
.hd-tag-warn { color: #a15c00; border-color: #f0dcb8; background: #fdf6e9; }
.hd-room-cancel { color: var(--u-muted); font-size: .82rem; margin-block-start: .4rem; }
.hd-room-scarce { color: #a15c00; font-size: .82rem; margin-block-start: .4rem; display: flex; align-items: center; gap: .3rem; }
.hd-room-cta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: end; gap: .2rem; }
.hd-room-price { font-size: 1.25rem; font-weight: 800; color: var(--u-ink); }
.hd-room-total { font-size: .78rem; color: var(--u-muted); }
.hd-select-room { margin-block-start: .35rem; }

/* Grouped-by-name room cards: name/occupancy on one side, all rates nested */
.hd-grouped { display: flex; flex-direction: column; }
.hd-room-card {
    display: flex; flex-wrap: wrap; border-block-start: 1px solid var(--u-line);
}
.hd-acc-body > .hd-grouped > .hd-room-card:first-child { border-block-start: none; }
.hd-room-card-head {
    flex: 1 1 220px; min-width: 200px; padding: 1rem;
    border-inline-end: 1px solid var(--u-line);
}
.hd-room-card-name {
    font-weight: 700; color: var(--u-ink); display: flex; align-items: center;
    gap: .4rem; margin-block-end: .5rem;
}
.hd-room-card-name i { color: var(--u-primary); }
.hd-room-card-occ { display: flex; flex-wrap: wrap; gap: .35rem; }
.hd-occ-badge {
    display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem;
    padding: .2rem .6rem; border-radius: 999px; color: #fff; background: var(--u-primary);
}
.hd-occ-badge-child { background: var(--u-primary-dark); }
.hd-room-card-rates { flex: 3 1 320px; min-width: 260px; display: flex; flex-direction: column; }
.hd-room-card-rates > .hd-room:first-child { border-block-start: none; }
.hd-list > .hd-room:first-child { border-block-start: none; }
@media (max-width: 640px) {
    .hd-room-card-head { border-inline-end: none; border-block-end: 1px solid var(--u-line); }
}

/* Rooms header + grouped/list view toggle */
.hd-rooms-head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem; margin-block-end: .9rem;
}
.hd-rooms-head .hd-section-title { margin: 0; }
.hd-view-toggle {
    display: inline-flex; border: 1px solid var(--u-line); border-radius: 999px;
    overflow: hidden; background: var(--u-bg-alt);
}
.hd-view-btn {
    display: inline-flex; align-items: center; gap: .35rem; border: 0; cursor: pointer;
    background: transparent; color: var(--u-muted); font-size: .82rem; font-weight: 600;
    padding: .4rem .85rem; line-height: 1;
}
.hd-view-btn i { font-size: .9rem; }
.hd-view-btn.is-active { background: var(--u-primary); color: #fff; }
.hd-room { cursor: pointer; transition: background .15s ease; }
.hd-room:hover { background: var(--u-primary-light); }
.hd-room.is-selected {
    background: var(--u-primary-light);
    box-shadow: inset 3px 0 0 var(--u-primary);
}
[dir="rtl"] .hd-room.is-selected { box-shadow: inset -3px 0 0 var(--u-primary); }

/* List view: flatten the group headers, show every rate as a flat list */
.hd-rooms-card.is-list-view .hd-acc-head { pointer-events: none; }
.hd-rooms-card.is-list-view .hd-acc-chevron { display: none; }

/* Selection summary / confirm bar */
.hd-room-selbar {
    position: sticky; inset-block-end: 0; margin-block-start: 1rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: .75rem; padding: .85rem 1rem; border-radius: .6rem;
    background: #fff; border: 1px solid var(--u-primary);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.hd-room-selbar-info { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.hd-room-selbar-label { font-size: .78rem; color: var(--u-muted); text-transform: uppercase; letter-spacing: .03em; }
.hd-room-selbar-name { font-weight: 700; color: var(--u-ink); }
.hd-room-selbar-price { font-weight: 800; color: var(--u-primary-dark); }
.hd-room-selbar-msg { flex: 1 1 100%; font-size: .84rem; }
.hd-room-selbar-msg.is-warn { color: #a15c00; }
.hd-room-selbar-msg.is-info { color: var(--u-primary-dark); }
.hd-room-confirm { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.hd-confirm-spin .spin { display: inline-block; animation: hd-spin 1s linear infinite; }
@keyframes hd-spin { to { transform: rotate(360deg); } }

/* Policies */
.hd-policies { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.hd-policies li { display: flex; flex-direction: column; gap: .15rem; color: var(--u-muted); font-size: .9rem; }
.hd-policies strong { color: var(--u-ink); }

/* Sidebar */
.hd-side-col { position: sticky; top: 5.25rem; display: flex; flex-direction: column; gap: 1.25rem; }

/* Booking card */
.hd-booking { margin-block-end: 0; padding: 0; overflow: hidden; }
.hd-booking-head {
    background: linear-gradient(135deg, var(--u-primary) 0%, var(--u-primary-dark) 100%);
    color: #fff; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .25rem;
}
.hd-booking-title { font-size: .95rem; font-weight: 700; opacity: .95; }
.hd-booking-price { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.hd-booking-from { font-size: .78rem; opacity: .9; }
.hd-booking-price strong { font-size: 1.5rem; font-weight: 800; }
.hd-booking-unit { font-size: .78rem; opacity: .9; }
.hd-booking-facts { list-style: none; padding: 1rem 1.1rem; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.hd-booking-facts li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; color: var(--u-muted); font-size: .88rem; }
.hd-booking-facts li i { color: var(--u-primary); flex: 0 0 auto; }
.hd-booking-facts strong { color: var(--u-ink); font-weight: 700; }
.hd-booking-guests {
    background: var(--u-primary-light); border-radius: .5rem; padding: .5rem .65rem !important;
    color: var(--u-primary-dark) !important; font-weight: 700; align-items: center !important;
}
.hd-booking-guests i { color: var(--u-primary-dark) !important; }
.hd-booking-cta { display: block; width: calc(100% - 2.2rem); margin: 0 1.1rem 1.1rem; text-align: center; }

/* Location map card */
.hd-map-card { margin-block-end: 0; }
.hd-map-address { color: var(--u-muted); font-size: .85rem; display: flex; align-items: flex-start; gap: .35rem; margin-block-end: .65rem; }
.hd-map-address i { color: var(--u-primary); flex: 0 0 auto; margin-block-start: .1rem; }
.hd-map-embed { border-radius: .5rem; overflow: hidden; border: 1px solid var(--u-line); margin-block-end: .65rem; }
.hd-map-embed iframe { width: 100%; height: 180px; border: 0; display: block; }
.hd-map-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--u-primary); font-weight: 600; text-decoration: none; }
.hd-map-link:hover { color: var(--u-primary-dark); }

/* Empty / unavailable */
.hd-empty { padding-block: 4rem 5rem; display: flex; justify-content: center; }
.hd-empty-card { text-align: center; max-width: 460px; width: 100%; background: #fff; border: 1px solid var(--u-line); border-radius: 1rem; box-shadow: 0 10px 40px rgba(17,17,17,.06); padding: 2.5rem 2rem; }
.hd-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--u-primary-light); margin-block-end: 1.25rem; }
.hd-empty-icon i { font-size: 2.4rem; line-height: 1; color: var(--u-primary); }
.hd-empty-card h1 { font-size: 1.35rem; font-weight: 800; color: var(--u-ink); margin: 0 0 .6rem; }
.hd-empty-card p { color: var(--u-muted); font-size: .95rem; line-height: 1.55; margin: 0 auto 1.6rem; max-width: 34ch; }
.hd-empty-btn { display: inline-flex; align-items: center; gap: .45rem; padding-inline: 1.6rem; }

@media (max-width: 900px) {
    .hd-body { grid-template-columns: 1fr; }
    .hd-side-col { position: static; }
    .hd-header-price { width: 100%; justify-content: space-between; }
}

/* ---- BookNow page ---- */
.bn-page { padding-block: 1.25rem 2.5rem; }
.bn-title { font-size: 1.6rem; font-weight: 800; color: var(--u-ink); margin-block: .5rem 1rem; }
.bn-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; align-items: start; }
.bn-card { background: #fff; border: 1px solid var(--u-line); border-radius: .7rem; padding: 1.1rem 1.25rem; }
.bn-side { position: sticky; top: 5.25rem; }
.bn-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.bn-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bn-field-wide { grid-column: 1 / -1; }
.bn-field label { font-size: .82rem; font-weight: 600; color: var(--u-ink); }
.bn-err { color: #c0392b; font-size: .78rem; }
.bn-validation { color: #c0392b; font-size: .84rem; }
.bn-validation:empty { display: none; }
.bn-alert { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-radius: .5rem; font-size: .86rem; margin-block-end: .85rem; }
.bn-alert-warn { color: #a15c00; background: #fdf6e9; border: 1px solid #f0dcb8; }
.bn-alert-error { color: #c0392b; background: #fdeceb; border: 1px solid #f3c6c2; }

.bn-summary-hotel { display: flex; gap: .7rem; align-items: center; margin-block-end: .85rem; }
.bn-summary-hotel img { width: 64px; height: 64px; border-radius: .5rem; object-fit: cover; flex: 0 0 auto; }
.bn-summary-name { font-weight: 800; color: var(--u-ink); }
.bn-summary-loc { font-size: .8rem; color: var(--u-muted); margin-block-start: .2rem; }
.bn-summary-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; border-block: 1px solid var(--u-line); padding-block: .8rem; }
.bn-summary-facts li { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--u-ink); }
.bn-summary-facts i { color: var(--u-primary); width: 1.1rem; text-align: center; }
.bn-summary-total { display: flex; align-items: baseline; justify-content: space-between; margin-block: .85rem; }
.bn-summary-total strong { font-size: 1.4rem; font-weight: 800; color: var(--u-primary-dark); }
.bn-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.bn-secure { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--u-muted); margin-block-start: .55rem; }

.bn-confirm-card { max-width: 520px; margin: 3rem auto; text-align: center; background: #fff; border: 1px solid var(--u-line); border-radius: .8rem; padding: 2rem 1.5rem; }
.bn-confirm-icon { font-size: 3rem; color: #1a7f4b; }
.bn-confirm-card h1 { font-size: 1.5rem; font-weight: 800; margin-block: .6rem .4rem; }
.bn-confirm-sub { color: var(--u-muted); margin-block-end: 1rem; }
.bn-confirm-ref { display: inline-flex; flex-direction: column; gap: .2rem; padding: .6rem 1rem; background: var(--u-primary-light); border-radius: .5rem; margin-block-end: 1.2rem; }
.bn-confirm-ref span { font-size: .78rem; color: var(--u-muted); text-transform: uppercase; letter-spacing: .03em; }
.bn-confirm-ref strong { font-size: 1.1rem; color: var(--u-ink); }

@media (max-width: 900px) {
    .bn-grid { grid-template-columns: 1fr; }
    .bn-side { position: static; }
    .bn-fields { grid-template-columns: 1fr; }
}
