/* ==============================================================
   NAZIL — Professional Header, Hero & Homepage Polish
   Mobile-first, Airbnb-inspired, rich visual hierarchy
============================================================== */

:root {
    --header-h: 72px;
    --header-h-mobile: 62px;
    --safe-top: env(safe-area-inset-top, 0px);
}

/* Hide the old header rules that clash */
body > header.header { display:none !important; }

/* ---------- New site header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(28, 26, 23, 0.08);
    padding-top: var(--safe-top);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(28, 26, 23, 0.06);
}
.site-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

/* Brand */
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.brand-mark {
    width: 36px; height: 36px; display: block; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(28, 26, 23, 0.12);
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 600;
    color: var(--ink, #1C1A17);
    letter-spacing: -0.015em;
}

/* Desktop primary nav */
.primary-nav {
    display: flex; justify-content: center; gap: 4px;
}
.primary-nav a {
    position: relative;
    padding: 10px 16px;
    color: var(--stone-700, #555);
    font-size: 15px; font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: color .15s, background .15s;
}
.primary-nav a:hover { color: var(--ink); background: rgba(28,26,23,0.05); }
.primary-nav a[aria-current="page"] {
    color: var(--ink);
    background: rgba(232, 163, 61, 0.14);
}

/* Right cluster */
.header-cluster {
    display: inline-flex; align-items: center;
    gap: 4px;
    justify-self: end;
}

/* Icon chip (lang toggle, etc) */
.icon-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding: 0 14px;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.icon-chip:hover { background: rgba(28,26,23,0.05); }
.icon-chip-label { letter-spacing: 0.02em; }

/* Become host CTA */
.header-cta {
    display: inline-flex; align-items: center;
    height: 42px; padding: 0 18px;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.header-cta:hover { background: rgba(28,26,23,0.05); }

/* User pill (Airbnb-style hamburger + avatar) */
.user-pill { position: relative; }
.user-pill-btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 4px 6px 4px 14px;
    background: #fff;
    border: 1px solid rgba(28,26,23,0.12);
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
    transition: box-shadow .2s, transform .1s;
}
[dir="rtl"] .user-pill-btn { padding: 4px 14px 4px 6px; }
.user-pill-btn:hover {
    box-shadow: 0 2px 8px rgba(28,26,23,0.14);
}
.user-pill-btn:active { transform: scale(0.98); }
.user-pill-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.user-pill-avatar-empty { background: var(--stone-500, #888); }

/* Dropdown */
.user-pill-menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 2px 16px rgba(28,26,23,0.10),
        0 12px 40px rgba(28,26,23,0.14);
    padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 120;
}
[dir="rtl"] .user-pill-menu { right: auto; left: 0; }
.user-pill.is-open .user-pill-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.user-pill-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    border-radius: 10px;
    transition: background .12s;
}
.user-pill-menu a:hover { background: var(--stone-50, #F8F5EE); }
.user-pill-menu a svg { color: var(--stone-500); flex-shrink: 0; }
.user-pill-menu a.pill-menu-accent { color: var(--terracotta, #C85A3E); }
.user-pill-menu a.pill-menu-admin { color: var(--ink); font-weight: 600; }
.user-pill-menu a.pill-menu-muted { color: var(--stone-500); }

.pill-menu-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--stone-100, #F0EBE0);
    margin-bottom: 6px;
}
.pill-menu-avatar-lg {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta, #C85A3E), var(--saffron, #E8A33D));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px;
    flex-shrink: 0;
}
.pill-menu-head strong {
    display: block; font-size: 14px; color: var(--ink); font-weight: 600;
}
.pill-menu-head span {
    display: block; font-size: 12px; color: var(--stone-500); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px;
}
.pill-menu-sep {
    height: 1px; background: var(--stone-100, #F0EBE0); margin: 6px 8px;
}

/* Mobile-only nav inside pill menu */
.pill-menu-mobile-nav { display: none; }

/* Backdrop for dropdowns */
.menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(28,26,23,0.3);
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
    z-index: 110;
    backdrop-filter: blur(2px);
}
.menu-backdrop.is-visible { opacity: 1; visibility: visible; }

/* ==============================================================
   MOBILE HEADER — the previous design was cramped; fix it
============================================================== */
@media (max-width: 900px) {
    .site-header-inner {
        height: var(--header-h-mobile);
        padding: 0 14px;
        gap: 10px;
    }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .brand-text { font-size: 19px; }

    /* Hide desktop nav — goes into the menu */
    .primary-nav { display: none; }

    /* Tight icon cluster on mobile */
    .header-cluster { gap: 2px; }

    /* Language toggle = icon only, tighter */
    .icon-chip {
        height: 40px; width: 40px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    .icon-chip-label {
        position: absolute;
        background: var(--ink);
        color: #fff;
        font-size: 9px;
        padding: 2px 5px;
        border-radius: 6px;
        bottom: 4px; right: 2px;
        line-height: 1;
    }
    [dir="rtl"] .icon-chip-label { right: auto; left: 2px; }

    /* Host CTA text on mobile becomes a plus icon */
    .header-cta {
        height: 40px; padding: 0 12px;
        font-size: 13px;
    }

    /* Compact user pill */
    .user-pill-btn {
        height: 40px;
        padding: 3px 5px 3px 12px;
        gap: 8px;
    }
    [dir="rtl"] .user-pill-btn { padding: 3px 12px 3px 5px; }
    .user-pill-avatar { width: 30px; height: 30px; font-size: 12px; }

    /* Dropdown becomes right-edge full-height sheet on mobile */
    .user-pill-menu {
        position: fixed;
        top: calc(var(--header-h-mobile) + var(--safe-top) + 6px);
        right: 10px; left: 10px;
        min-width: unset;
        max-height: calc(100vh - var(--header-h-mobile) - 20px - var(--safe-top));
        overflow-y: auto;
        padding: 10px;
    }

    .pill-menu-mobile-nav { display: block; }
    .pill-menu-mobile-nav a {
        font-weight: 600;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .site-header-inner { padding: 0 10px; gap: 6px; }
    .brand-text { display: none; } /* Just show the mark */
    .header-cta {
        /* Abbreviate become-host into a briefcase pill */
        padding: 0 10px;
        font-size: 12px;
    }
    /* When there's not enough room, hide CTA entirely and put it in the menu */
    .header-cta { display: none; }
}

/* ==============================================================
   HERO SECTION — cinematic, magazine-like
============================================================== */
.hero {
    position: relative;
    padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 8vw, 96px);
    overflow: hidden;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(232, 163, 61, 0.18), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(200, 90, 62, 0.14), transparent 60%),
        linear-gradient(180deg, #FBF8F3 0%, #F5EFE3 100%);
}

.hero-grid {
    max-width: 1320px; margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.hero-content { max-width: 620px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(28,26,23,0.05);
    border: 1px solid rgba(28,26,23,0.08);
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 24px;
}
.hero-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--terracotta, #C85A3E);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 24px;
}
.hero-title em {
    font-style: italic;
    color: var(--terracotta, #C85A3E);
    font-weight: 500;
}
.hero-title-underline {
    position: relative;
    white-space: nowrap;
}
.hero-title-underline::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.05em;
    height: 0.18em;
    background: rgba(232, 163, 61, 0.45);
    z-index: -1;
    border-radius: 4px;
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--stone-700, #555);
    margin-bottom: 32px;
    max-width: 520px;
}

/* Hero trust strip */
.hero-trust {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 24px;
}
.hero-trust-avatars {
    display: inline-flex;
}
.hero-trust-avatars span {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid #FBF8F3;
    background-size: cover; background-position: center;
    margin-left: -10px;
    flex-shrink: 0;
}
[dir="rtl"] .hero-trust-avatars span { margin-left: 0; margin-right: -10px; }
.hero-trust-avatars span:first-child { margin-left: 0; }
[dir="rtl"] .hero-trust-avatars span:first-child { margin-right: 0; }
.hero-trust-avatars span:nth-child(1) { background-image: url('https://i.pravatar.cc/80?img=5'); }
.hero-trust-avatars span:nth-child(2) { background-image: url('https://i.pravatar.cc/80?img=12'); }
.hero-trust-avatars span:nth-child(3) { background-image: url('https://i.pravatar.cc/80?img=26'); }
.hero-trust-avatars span:nth-child(4) { background-image: url('https://i.pravatar.cc/80?img=48'); }
.hero-trust-text strong {
    display: flex; align-items: center; gap: 4px;
    color: var(--ink); font-size: 14px; font-weight: 700;
}
.hero-trust-text strong::before {
    content: ''; width: 14px; height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E8A33D'><path d='M12 2l3.1 6.3 7 1-5 4.9 1.2 7-6.3-3.3L5.7 21l1.2-7-5-4.9 7-1z'/></svg>") no-repeat center / contain;
}
.hero-trust-text span { font-size: 13px; color: var(--stone-500, #888); }

/* Hero visual collage */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 600px;
    margin-left: auto;
}
[dir="rtl"] .hero-visual { margin-left: 0; margin-right: auto; }

.hero-visual-img {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28,26,23,0.18);
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-visual-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-visual-main {
    top: 0; left: 0; width: 70%; height: 80%;
    z-index: 2;
    animation: floatA 8s ease-in-out infinite;
}
.hero-visual-sec {
    bottom: 0; right: 0; width: 55%; height: 55%;
    z-index: 3;
    border: 6px solid #FBF8F3;
    animation: floatB 9s ease-in-out infinite;
}
.hero-visual-tert {
    top: 18%; right: 0; width: 34%; height: 28%;
    z-index: 1;
    animation: floatA 10s ease-in-out infinite reverse;
}

@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Hero badges floating over visual */
.hero-badge {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 40px rgba(28,26,23,0.12);
    display: flex; align-items: center; gap: 12px;
    z-index: 5;
    animation: floatB 7s ease-in-out infinite;
}
.hero-badge-rating {
    top: 22%; left: -20px;
}
[dir="rtl"] .hero-badge-rating { left: auto; right: -20px; }

.hero-badge-star {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--saffron, #E8A33D), var(--terracotta, #C85A3E));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
}
.hero-badge strong {
    display: block; font-size: 16px; color: var(--ink); font-weight: 700;
    font-family: 'Fraunces', serif;
}
.hero-badge span {
    display: block; font-size: 11px; color: var(--stone-500, #888);
    text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}

.hero-badge-booked {
    bottom: 10%; left: 12%;
    animation-delay: -3s;
}

/* ==============================================================
   SEARCH BAR — the star of the homepage
============================================================== */
.hero-search {
    margin-top: 40px;
    background: #fff;
    border-radius: 22px;
    padding: 8px;
    box-shadow:
        0 1px 2px rgba(28,26,23,0.06),
        0 20px 60px rgba(28,26,23,0.12);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
    gap: 2px;
    position: relative;
    align-items: stretch;
}
.hero-search::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(200,90,62,0.3), rgba(232,163,61,0.3), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.hero-search-field {
    position: relative;
    display: flex; flex-direction: column;
    padding: 14px 22px;
    border-radius: 16px;
    cursor: text;
    transition: background .15s;
}
.hero-search-field:hover { background: rgba(28,26,23,0.03); }
.hero-search-field:not(:last-of-type)::after {
    content: '';
    position: absolute;
    right: -1px; top: 25%; bottom: 25%;
    width: 1px;
    background: rgba(28,26,23,0.08);
}
[dir="rtl"] .hero-search-field:not(:last-of-type)::after { right: auto; left: -1px; }

.hero-search-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.hero-search-input, .hero-search-select {
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    width: 100%;
    cursor: pointer;
}
.hero-search-input::placeholder {
    color: var(--stone-500, #999);
    font-weight: 400;
}
.hero-search-submit {
    align-self: center;
    height: 56px; width: 56px;
    margin: 0 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta, #C85A3E), #A8462E);
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 6px 18px rgba(200,90,62,0.4);
}
.hero-search-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(200,90,62,0.5);
}
.hero-search-submit:active { transform: scale(0.96); }
.hero-search-submit.is-expanded {
    width: auto; padding: 0 22px; border-radius: 28px;
}
.hero-search-submit span { font-weight: 700; margin-left: 6px; display: none; }
.hero-search-submit.is-expanded span { display: inline; }
[dir="rtl"] .hero-search-submit span { margin-left: 0; margin-right: 6px; }

/* ---------- Mobile hero search (tap-to-open) ---------- */
@media (max-width: 900px) {
    .hero {
        padding: 32px 0 60px;
        background:
            radial-gradient(800px 500px at 100% -10%, rgba(232, 163, 61, 0.22), transparent 60%),
            linear-gradient(180deg, #FBF8F3 0%, #F5EFE3 100%);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero-content { max-width: 100%; }
    .hero-eyebrow { margin-left: auto; margin-right: auto; }
    .hero-title { font-size: clamp(32px, 9vw, 48px); }
    .hero-sub { margin-left: auto; margin-right: auto; font-size: 16px; }
    .hero-trust { justify-content: center; }

    /* Hero visual sized for mobile */
    .hero-visual {
        max-width: 420px;
        margin: 0 auto;
        aspect-ratio: 4 / 3.2;
    }
    .hero-visual-main { width: 72%; height: 78%; }
    .hero-visual-sec { width: 52%; height: 50%; border-width: 5px; }
    .hero-visual-tert { width: 32%; height: 26%; top: 12%; }
    .hero-badge-rating { top: 10%; left: -8px; padding: 10px 14px; }
    [dir="rtl"] .hero-badge-rating { right: -8px; left: auto; }
    .hero-badge-booked { display: none; }
    .hero-badge strong { font-size: 14px; }

    /* Mobile search: pill that opens into a compact sheet */
    .hero-search {
        grid-template-columns: 1fr auto;
        padding: 6px 6px 6px 10px;
        border-radius: 999px;
        margin-top: 28px;
        gap: 0;
    }
    .hero-search::before { border-radius: 999px; }
    .hero-search-field {
        padding: 10px 8px;
    }
    .hero-search-field::after { display: none; }
    .hero-search-field:not(.hero-search-field-mobile-visible) { display: none; }
    .hero-search-field-mobile-visible {
        display: flex;
        padding: 10px 14px;
    }
    .hero-search-field-mobile-visible .hero-search-label {
        font-size: 10px;
    }
    .hero-search-field-mobile-visible .hero-search-input {
        font-size: 14px;
    }
    .hero-search-submit {
        height: 46px; width: 46px;
        box-shadow: 0 4px 14px rgba(200,90,62,0.38);
    }

    /* "Expanded" mobile search — set by JS when the pill is tapped */
    .hero-search.is-expanded {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        border-radius: 20px;
        padding: 14px;
        box-shadow: 0 24px 60px rgba(28,26,23,0.18);
    }
    .hero-search.is-expanded .hero-search-field {
        display: flex;
        padding: 14px 18px;
        border-radius: 14px;
        border: 1px solid rgba(28,26,23,0.08);
        margin-bottom: 8px;
    }
    .hero-search.is-expanded .hero-search-field-mobile-visible {
        border: 1px solid rgba(28,26,23,0.12);
        background: rgba(28,26,23,0.02);
    }
    .hero-search.is-expanded .hero-search-submit {
        width: 100%;
        height: 52px;
        border-radius: 14px;
        margin: 6px 0 0;
    }
    .hero-search.is-expanded .hero-search-submit span { display: inline; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 34px; }
    .hero-search {
        padding: 5px 5px 5px 8px;
    }
    .hero-search-submit { height: 42px; width: 42px; }
}

/* ==============================================================
   CATEGORY PILLS — redesigned scroller
============================================================== */
.categories-strip {
    border-bottom: 1px solid var(--stone-100, #F0EBE0);
    background: #fff;
    position: sticky; top: var(--header-h); z-index: 50;
    padding: 14px 0;
}
@media (max-width: 900px) {
    .categories-strip { top: var(--header-h-mobile); padding: 10px 0; }
}
.categories-strip-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.categories-strip-inner::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
    .categories-strip-inner { padding: 0 14px; gap: 22px; }
}

.cat-pill {
    flex-shrink: 0;
    display: inline-flex; flex-direction: column;
    align-items: center; gap: 6px;
    padding: 6px 2px 10px;
    color: var(--stone-500, #888);
    font-size: 12px; font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    opacity: 0.7;
    transition: opacity .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.cat-pill:hover { opacity: 1; color: var(--ink); }
.cat-pill.is-active {
    color: var(--ink);
    border-bottom-color: var(--ink);
    opacity: 1;
}
.cat-pill-icon {
    font-size: 22px;
    line-height: 1;
}

/* ==============================================================
   SECTION — featured/new properties
============================================================== */
.section {
    padding: clamp(40px, 6vw, 80px) 0;
}
.section-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 900px) {
    .section-inner { padding: 0 14px; }
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head-eyebrow {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--terracotta, #C85A3E);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-head-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}
.section-head-title em {
    font-style: italic;
    color: var(--terracotta, #C85A3E);
}
.section-head-sub {
    color: var(--stone-700, #666);
    font-size: 15px;
    margin-top: 8px;
    max-width: 560px;
}
.section-head-action {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 18px;
    background: rgba(28,26,23,0.05);
    border-radius: 999px;
    transition: background .15s;
    white-space: nowrap;
}
.section-head-action:hover { background: rgba(28,26,23,0.1); }

/* Property grid on homepage */
.home-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1100px) { .home-props-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .home-props-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px)  { .home-props-grid { grid-template-columns: 1fr; } }

/* ==============================================================
   PROPERTY CARD — refined
============================================================== */
.property-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.property-card-media {
    display: block;
    position: relative;
    aspect-ratio: 5 / 5.5;
    border-radius: 18px;
    overflow: hidden;
    background: var(--stone-100, #EDE6D4);
    margin-bottom: 14px;
}
.property-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.property-card:hover .property-card-media img {
    transform: scale(1.06);
}
.property-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--ink);
    font-size: 11px; font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
[dir="rtl"] .property-card-badge { left: auto; right: 12px; }

.property-card-wishlist {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
[dir="rtl"] .property-card-wishlist { right: auto; left: 10px; }
.property-card-wishlist:hover { transform: scale(1.15); }
.property-card-wishlist svg {
    fill: none; stroke: currentColor; stroke-width: 2.5;
}
.property-card-wishlist.is-active { color: var(--terracotta, #C85A3E); }
.property-card-wishlist.is-active svg { fill: currentColor; stroke: currentColor; }

.property-card-body {
    display: block;
    text-decoration: none;
    color: inherit;
}
.property-card-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 8px;
    margin-bottom: 2px;
}
.property-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.property-card-rating {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    flex-shrink: 0;
}
.property-card-rating svg {
    color: var(--ink);
}
.property-card-location {
    font-size: 14px;
    color: var(--stone-500, #888);
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.property-card-meta {
    font-size: 13px;
    color: var(--stone-500, #999);
    margin: 0 0 6px;
}
.property-card-price {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--ink);
}
.property-card-price strong {
    font-weight: 700;
    font-size: 15px;
}
.property-card-price span {
    color: var(--stone-500, #888);
    margin-left: 2px;
}
[dir="rtl"] .property-card-price span { margin-left: 0; margin-right: 2px; }

/* ==============================================================
   DESTINATIONS (city grid)
============================================================== */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 18px;
}
.dest-grid a:nth-child(1) {
    grid-row: span 2;
    grid-column: span 2;
}
.dest-tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: block;
    background: var(--stone-100, #EDE6D4);
}
.dest-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.dest-tile:hover img { transform: scale(1.08); }
.dest-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,26,23,0.75) 0%, rgba(28,26,23,0) 55%);
}
.dest-tile-text {
    position: absolute;
    left: 20px; bottom: 18px; right: 20px;
    z-index: 2;
}
[dir="rtl"] .dest-tile-text { left: 20px; right: 20px; }
.dest-tile-name {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
}
.dest-tile-count {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
}
.dest-grid a:nth-child(1) .dest-tile-name { font-size: 32px; }

@media (max-width: 900px) {
    .dest-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 12px;
    }
    .dest-grid a:nth-child(1) {
        grid-row: span 1;
        grid-column: span 2;
        grid-auto-rows: 220px;
        min-height: 220px;
    }
    .dest-tile-name { font-size: 18px; }
    .dest-grid a:nth-child(1) .dest-tile-name { font-size: 26px; }
}

/* ==============================================================
   HOST CTA banner
============================================================== */
.host-banner {
    position: relative;
    margin: 60px 0 0;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(28,26,23,0.9), rgba(28,26,23,0.7)),
        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1800&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: clamp(40px, 6vw, 72px);
}
.host-banner-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
}
.host-banner-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--saffron, #E8A33D);
    margin-bottom: 16px;
}
.host-banner-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 20px;
}
.host-banner-title em { font-style: italic; color: var(--saffron, #E8A33D); }
.host-banner-sub {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 520px;
}
.host-banner-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.host-banner-stats div strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 32px;
    color: var(--saffron, #E8A33D);
    font-weight: 600;
}
.host-banner-stats div span {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.host-banner-cta {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    width: 100%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 28px;
}
.host-banner-cta h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    margin: 0;
    font-weight: 500;
}
.host-banner-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 8px;
    line-height: 1.5;
}
.host-banner-cta .btn {
    background: #fff;
    color: var(--ink);
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform .15s;
}
.host-banner-cta .btn:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
    .host-banner-grid { grid-template-columns: 1fr; }
    .host-banner { margin: 40px 14px 0; border-radius: 24px; }
}

/* ==============================================================
   Small utility / tweaks
============================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Generic container */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 900px) { .wrap { padding: 0 14px; } }


/* ==================================================================
   PS SEARCH v2 — compact bar + inline expanding panel
   Robust, simple, mobile-first. All interaction lives inline under
   the bar; no popovers, no positioning maze.
================================================================== */

.ps-wrap {
    --ps-accent: #C85A3E;
    --ps-accent-2: #E8A33D;
    --ps-ink: #1C1A17;
    --ps-muted: #76716A;
    --ps-line: rgba(28,26,23,0.09);
    --ps-hover: rgba(28,26,23,0.045);
    --ps-soft: #F7F2EA;
    --ps-radius: 22px;

    position: relative;
    margin-top: 38px;
    z-index: 20;
}

/* ---------------- TOP BAR ---------------- */
.ps-bar {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr auto auto;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border-radius: var(--ps-radius);
    box-shadow:
        0 1px 2px rgba(28,26,23,0.06),
        0 24px 60px -18px rgba(28,26,23,0.22);
    isolation: isolate;
}
.ps-bar::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: calc(var(--ps-radius) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(200,90,62,.35), rgba(232,163,61,.35), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

/* each pill */
.ps-pill {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px;
    background: transparent;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    text-align: start;
    color: var(--ps-ink);
    font-family: inherit;
    transition: background .15s, box-shadow .15s;
    min-width: 0;
}
.ps-pill:hover { background: var(--ps-hover); }
.ps-pill.is-active {
    background: #fff;
    box-shadow: 0 4px 18px rgba(28,26,23,.1);
}

/* divider between pills */
.ps-pill + .ps-pill::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 1px; background: var(--ps-line);
    pointer-events: none;
    transition: opacity .15s;
}
[dir="rtl"] .ps-pill + .ps-pill::before { left: auto; right: 0; }
.ps-pill.is-active::before,
.ps-pill.is-active + .ps-pill::before { opacity: 0; }

.ps-pill-ico {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(200,90,62,.1), rgba(232,163,61,.14));
    color: var(--ps-accent);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, background .2s;
}
.ps-pill:hover .ps-pill-ico,
.ps-pill.is-active .ps-pill-ico { transform: scale(1.06); }
.ps-pill.has-value .ps-pill-ico {
    background: linear-gradient(135deg, var(--ps-accent), #A8462E);
    color: #fff;
}

.ps-pill-body {
    display: flex; flex-direction: column;
    flex: 1; min-width: 0;
}
.ps-pill-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-ink);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 3px;
}
.ps-pill-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--ps-muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-pill.has-value .ps-pill-value {
    color: var(--ps-ink);
    font-weight: 600;
}

/* filters btn */
.ps-filters-btn {
    align-self: center;
    position: relative;
    width: 48px; height: 48px;
    margin: 0 6px;
    border-radius: 14px;
    background: rgba(28,26,23,.04);
    border: 1px solid var(--ps-line);
    color: var(--ps-ink);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .18s;
}
.ps-filters-btn:hover {
    background: #fff;
    border-color: rgba(200,90,62,.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(28,26,23,.1);
}
.ps-filters-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--ps-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(200,90,62,.45);
    border: 2px solid #fff;
}
[dir="rtl"] .ps-filters-badge { right: auto; left: -6px; }

/* submit */
.ps-submit {
    align-self: center;
    height: 56px;
    padding: 0 26px;
    margin: 0 4px 0 6px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ps-accent), #A8462E);
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 10px 24px rgba(200,90,62,.42);
    white-space: nowrap;
}
[dir="rtl"] .ps-submit { margin: 0 6px 0 4px; }
.ps-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(200,90,62,.55);
}
.ps-submit:active { transform: scale(.97); }

/* ---------------- INLINE PANEL (below bar) ---------------- */
.ps-panel {
    margin-top: 10px;
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow:
        0 1px 2px rgba(28,26,23,.06),
        0 20px 60px -10px rgba(28,26,23,.22);
    border: 1px solid var(--ps-line);
    animation: psFadeIn .22s ease-out;
}
@keyframes psFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ps-panel-view { animation: psFadeIn .18s; }
.ps-panel-view[hidden] { display: none !important; }

.ps-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ps-ink);
    margin-bottom: 14px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.ps-panel-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 14px 0 10px;
}

/* Where: search input */
.ps-search-input-wrap {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: var(--ps-soft);
    border-radius: 14px;
    color: var(--ps-muted);
    border: 1px solid transparent;
    transition: all .15s;
}
.ps-search-input-wrap:focus-within {
    background: #fff;
    border-color: var(--ps-accent);
    box-shadow: 0 0 0 3px rgba(200,90,62,.12);
}
.ps-search-input-wrap input {
    flex: 1;
    border: 0; background: transparent; outline: 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--ps-ink);
}

/* Where: cities grid */
.ps-cities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 900px) { .ps-cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ps-cities { grid-template-columns: repeat(2, 1fr); } }

.ps-city {
    display: flex; flex-direction: column;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    cursor: pointer;
    transition: all .18s;
    text-align: start;
    font-family: inherit;
}
.ps-city:hover {
    border-color: var(--ps-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28,26,23,.1);
}
.ps-city.is-on {
    border-color: var(--ps-accent);
    background: rgba(200,90,62,.05);
    box-shadow: 0 0 0 2px rgba(200,90,62,.25);
}
.ps-city-img {
    display: block;
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
    margin-bottom: 8px;
}
.ps-city-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .35s;
}
.ps-city:hover .ps-city-img img { transform: scale(1.08); }
.ps-city-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-ink);
    padding: 2px 6px 6px;
}

.ps-results {
    margin-top: 14px;
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px solid var(--ps-line);
    padding-top: 12px;
}
.ps-result {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .12s;
}
.ps-result:hover { background: var(--ps-hover); }
.ps-result-ico {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(200,90,62,.1);
    color: var(--ps-accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ps-result-txt { flex: 1; min-width: 0; }
.ps-result-name { font-weight: 600; color: var(--ps-ink); font-size: 14px; }
.ps-result-sub { font-size: 12px; color: var(--ps-muted); }

/* Calendar */
.ps-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.ps-cal-nav {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ps-line);
    background: #fff;
    color: var(--ps-ink);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.ps-cal-nav:hover { background: var(--ps-hover); transform: scale(1.06); }
[dir="rtl"] .ps-cal-nav svg { transform: scaleX(-1); }
.ps-cal-titles {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    font-weight: 700;
    color: var(--ps-ink);
    font-size: 15px;
}
@media (max-width: 900px) {
    .ps-cal-titles { grid-template-columns: 1fr; }
    .ps-cal-titles span:last-child { display: none; }
}
.ps-cal-grids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 900px) {
    .ps-cal-grids { grid-template-columns: 1fr; }
    .ps-cal-m2 { display: none; }
}
.ps-cal-wk {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.ps-cal-wk > div {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 6px 0;
}
.ps-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.ps-cal-day {
    position: relative;
    aspect-ratio: 1/1;
    border: 0; background: transparent;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 500;
    color: var(--ps-ink);
    cursor: pointer;
    transition: background .12s, color .12s;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}
.ps-cal-day.is-empty { visibility: hidden; }
.ps-cal-day.is-past {
    color: #CFCCC7;
    cursor: not-allowed;
    text-decoration: line-through;
}
.ps-cal-day:not(.is-past):not(.is-empty):hover {
    background: rgba(28,26,23,.06);
}
.ps-cal-day.is-today {
    font-weight: 700;
    border: 1.5px solid var(--ps-ink);
}
.ps-cal-day.is-in-range {
    background: rgba(200,90,62,.12);
    border-radius: 0;
    color: var(--ps-ink);
}
.ps-cal-day.is-start,
.ps-cal-day.is-end {
    background: var(--ps-accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    z-index: 1;
}
.ps-cal-day.is-start { border-radius: 50% 0 0 50%; }
.ps-cal-day.is-end   { border-radius: 0 50% 50% 0; }
.ps-cal-day.is-start.is-end { border-radius: 50%; }
[dir="rtl"] .ps-cal-day.is-start { border-radius: 0 50% 50% 0; }
[dir="rtl"] .ps-cal-day.is-end   { border-radius: 50% 0 0 50%; }
[dir="rtl"] .ps-cal-day.is-start.is-end { border-radius: 50%; }

.ps-cal-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ps-line);
    gap: 10px;
}
.ps-cal-summary {
    font-size: 14px;
    color: var(--ps-muted);
}
.ps-cal-summary strong { color: var(--ps-ink); }
.ps-cal-actions { display: flex; gap: 8px; }

/* Guests stepper */
.ps-step-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--ps-line);
}
.ps-step-row:last-of-type { border-bottom: 0; }
.ps-step-label {
    font-weight: 600;
    color: var(--ps-ink);
    font-size: 15px;
}
.ps-step-sub {
    font-size: 12px;
    color: var(--ps-muted);
    margin-top: 2px;
}
.ps-step-ctrl { display: flex; align-items: center; gap: 12px; }
.ps-step-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--ps-line);
    color: var(--ps-ink);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
    font-family: inherit;
}
.ps-step-btn:hover:not(:disabled) {
    border-color: var(--ps-ink);
    transform: scale(1.08);
}
.ps-step-btn:disabled { opacity: .3; cursor: not-allowed; }
.ps-step-count {
    min-width: 26px; text-align: center;
    font-weight: 600; font-size: 15px;
    color: var(--ps-ink);
    font-variant-numeric: tabular-nums;
}

/* Shared small buttons */
.ps-text-btn {
    background: transparent;
    border: 0;
    color: var(--ps-ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: inherit;
}
.ps-text-btn:hover { background: var(--ps-hover); }

.ps-dark-btn {
    background: var(--ps-ink);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s, opacity .15s;
}
.ps-dark-btn:hover { transform: translateY(-1px); opacity: .92; }

.ps-primary-btn {
    background: linear-gradient(135deg, var(--ps-accent), #A8462E);
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 8px 22px rgba(200,90,62,.4);
}
.ps-primary-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(200,90,62,.55); }

/* ==================================================================
   FILTERS DRAWER
================================================================== */
.ps-drawer {
    position: fixed; inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
.ps-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}
.ps-drawer-bd {
    position: absolute; inset: 0;
    background: rgba(28,26,23,.45);
    backdrop-filter: blur(4px);
}
.ps-drawer-pn {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(540px, 100%);
    background: #FCFAF7;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
    box-shadow: -24px 0 60px rgba(0,0,0,.18);
}
[dir="rtl"] .ps-drawer-pn {
    right: auto; left: 0;
    transform: translateX(-100%);
    box-shadow: 24px 0 60px rgba(0,0,0,.18);
}
.ps-drawer.is-open .ps-drawer-pn { transform: translateX(0); }

.ps-drawer-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ps-line);
    background: #fff;
    flex-shrink: 0;
}
.ps-drawer-hd h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--ps-ink);
    font-family: 'Fraunces', serif;
}
.ps-drawer-x {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(28,26,23,.05);
    border: 0;
    color: var(--ps-ink);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .18s;
}
.ps-drawer-x:hover {
    background: var(--ps-ink); color: #fff;
    transform: rotate(90deg);
}
.ps-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 24px;
}
.ps-drawer-ft {
    padding: 16px 24px;
    border-top: 1px solid var(--ps-line);
    background: #fff;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.ps-drawer-ft .ps-primary-btn { flex: 1; max-width: 260px; }

.ps-fblock {
    padding: 22px 0;
    border-bottom: 1px solid var(--ps-line);
}
.ps-fblock:last-child { border-bottom: 0; }
.ps-fhead {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 14px;
}
.ps-fhead h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-ink);
}
.ps-fsub { font-size: 12px; color: var(--ps-muted); }

.ps-price-row {
    display: flex; align-items: end; gap: 10px;
    margin-bottom: 14px;
}
.ps-price-row label {
    flex: 1;
    display: flex; flex-direction: column;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ps-price-row input {
    padding: 12px 14px;
    border: 1.5px solid var(--ps-line);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ps-ink);
    background: #fff;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
    font-variant-numeric: tabular-nums;
}
.ps-price-row input:focus {
    outline: 0;
    border-color: var(--ps-accent);
    box-shadow: 0 0 0 3px rgba(200,90,62,.12);
}
.ps-price-dash { padding-bottom: 12px; color: var(--ps-muted); font-weight: 700; }

.ps-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chip-row button {
    padding: 8px 14px;
    border: 1.5px solid var(--ps-line);
    background: #fff;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--ps-ink);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}
.ps-chip-row button:hover { border-color: var(--ps-ink); }
.ps-chip-row button.is-on {
    background: var(--ps-ink); color: #fff; border-color: var(--ps-ink);
}

.ps-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-pill-btn {
    padding: 10px 18px;
    border: 1.5px solid var(--ps-line);
    background: #fff;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    color: var(--ps-ink);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px;
}
.ps-pill-btn:hover { border-color: var(--ps-ink); }
.ps-pill-btn.is-on {
    background: var(--ps-ink); color: #fff; border-color: var(--ps-ink);
}

.ps-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 480px) { .ps-type-grid { grid-template-columns: repeat(2, 1fr); } }
.ps-type {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 10px;
    background: #fff;
    border: 1.5px solid var(--ps-line);
    border-radius: 14px;
    font-size: 13px; font-weight: 600;
    color: var(--ps-ink);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.ps-type:hover { border-color: var(--ps-ink); transform: translateY(-2px); }
.ps-type.is-on {
    border-color: var(--ps-accent);
    background: rgba(200,90,62,.06);
    box-shadow: 0 4px 14px rgba(200,90,62,.18);
}
.ps-type-ico {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ps-ink);
}
.ps-type-ico svg { width: 28px; height: 28px; }
.ps-type.is-on .ps-type-ico { color: var(--ps-accent); }

.ps-ams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.ps-am {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--ps-line);
    border-radius: 12px;
    font-size: 14px; font-weight: 500;
    color: var(--ps-ink);
    cursor: pointer;
    transition: all .15s;
    text-align: start;
    font-family: inherit;
}
.ps-am:hover { border-color: var(--ps-ink); }
.ps-am.is-on {
    border-color: var(--ps-accent);
    background: rgba(200,90,62,.06);
    font-weight: 600;
}
.ps-am-ico {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ps-accent);
    flex-shrink: 0;
}
.ps-am-ico svg { width: 22px; height: 22px; }

.ps-near-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 480px) { .ps-near-grid { grid-template-columns: repeat(2, 1fr); } }
.ps-near {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border: 1.5px solid var(--ps-line);
    border-radius: 12px;
    font-size: 13px; font-weight: 600;
    color: var(--ps-ink);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.ps-near:hover { border-color: var(--ps-ink); transform: translateY(-2px); }
.ps-near.is-on {
    border-color: var(--ps-accent);
    background: rgba(200,90,62,.06);
    box-shadow: 0 4px 12px rgba(200,90,62,.18);
}
.ps-near-ico {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ps-accent);
}
.ps-near-ico svg { width: 26px; height: 26px; }

/* ==================================================================
   RESPONSIVE — collapse bar to single pill on phones
================================================================== */
@media (max-width: 900px) {
    .ps-wrap { margin-top: 24px; }

    .ps-bar {
        grid-template-columns: 1fr auto auto;
        padding: 6px;
        border-radius: 999px;
        gap: 4px;
    }
    .ps-bar::before { border-radius: 999px; }

    .ps-pill + .ps-pill::before { display: none; }
    .ps-pill:not([data-field="where"]) { display: none; }
    .ps-pill-label { display: none; }
    .ps-pill { padding: 8px 14px; }
    .ps-pill-ico { width: 36px; height: 36px; border-radius: 50%; }
    .ps-pill-value { font-size: 14px; font-weight: 600; color: var(--ps-ink); }

    .ps-submit {
        height: 48px; width: 48px; padding: 0; border-radius: 50%;
        margin: 0;
    }
    .ps-submit span { display: none; }

    .ps-filters-btn {
        width: 44px; height: 44px; margin: 0 2px;
    }

    .ps-panel {
        padding: 16px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .ps-submit { height: 44px; width: 44px; }
    .ps-filters-btn { width: 40px; height: 40px; }
}

/* Block any stale rules from v1 */
.hero-search, .pro-search, .pro-drawer, .pro-popover,
[data-popover], [data-trigger] {
    /* harmless leftovers if any */
}

/* Accessibility */
.ps-wrap *:focus-visible,
.ps-drawer *:focus-visible {
    outline: 2px solid var(--ps-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ==================================================================
   MOBILE/FUNCTIONAL FIXES — no visual changes, only reliability
   - Raise ps-wrap stacking above site-header (z:100)
   - Ensure touch targets respond on mobile (touch-action, pointer-events)
   - Kill any blur leaking from sticky header onto the bar
================================================================== */
.ps-wrap { z-index: 200; }                  /* was 20 — now above site-header */
.ps-panel { z-index: 210; position: relative; }
.ps-drawer { z-index: 1200; }               /* above ps-wrap */

/* Make sure the pills receive pointer events reliably on mobile */
.ps-bar,
.ps-pill,
.ps-filters-btn,
.ps-submit,
.ps-panel,
.ps-panel-view,
.ps-city,
.ps-cal-day,
.ps-step-btn,
.ps-am,
.ps-near,
.ps-type,
.ps-pill-btn,
.ps-chip-row button {
    touch-action: manipulation;             /* eliminates 300ms tap delay */
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
}

/* Each pill must stack correctly so its click surface isn't clipped */
.ps-pill { position: relative; z-index: 1; }
.ps-pill.is-active { z-index: 2; }

/* Prevent backdrop-filter from site-header bleeding over search on iOS */
.ps-bar { isolation: isolate; backface-visibility: hidden; }

/* Nothing inside the bar/panel should be accidentally non-clickable */
.ps-pill-ico,
.ps-pill-body,
.ps-pill-label,
.ps-pill-value,
.ps-city-img,
.ps-city-img img,
.ps-city-name,
.ps-step-label,
.ps-step-sub,
.ps-result-ico,
.ps-result-txt,
.ps-result-name,
.ps-result-sub,
.ps-am-ico,
.ps-near-ico,
.ps-type-ico {
    pointer-events: none;                   /* let the click bubble to parent button */
}

/* Blanket safety: prevent the whole <form> from stealing focus on buttons */
.ps-bar button { cursor: pointer; }

/* On very narrow screens, make touch targets at least 44px (WCAG) */
@media (max-width: 480px) {
    .ps-pill { min-height: 44px; }
    .ps-submit, .ps-filters-btn { min-height: 44px; min-width: 44px; }
    .ps-step-btn { min-height: 32px; min-width: 32px; }
}
