/* ============================================================
   Moi Travel - Core Design System (WPRentals Aesthetic)
   Theme: Maroon / White / Black
   Note: Bootstrap is ONLY used for grid (row/col) layout.
============================================================ */

:root {
    --accent: #8E1F2C;          /* Moi maroon */
    --accent-hover: #741923;
    --accent-soft: #F7EAEC;     /* soft maroon tint (chips, badges, avatars) */
    --bg-primary: #F7F7F9;
    --bg-surface: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --border-light: #EBEBEB;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --transition: 0.2s ease-in-out;
}

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

/* Always reserve the scrollbar gutter so the layout never shifts sideways when moving
   between a short page and a tall one (e.g. into the all-in-one calendar). */
html { scrollbar-gutter: stable; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= Navbar ================= */
.main-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    /* 3-column grid keeps the centre nav pinned to the page centre, so it never shifts
       when the right side changes width (cart badge appearing, flag, longer name, etc.). */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 40px;
    max-width: 1760px;
    margin: 0 auto;
}
.header-container > .logo { justify-self: start; }
.header-container .main-nav { justify-self: center; }
.header-container .header-actions { justify-self: end; }
/* On desktop the collapse wrapper is transparent — main-nav + header-actions stay grid items.
   On mobile (≤860) it becomes the right slide-in drawer. */
.nav-collapse { display: contents; }
.nav-mobile-right { display: none; }
.nav-drawer-backdrop { display: none; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-mark {
    width: 32px;
    height: 32px;
    fill: var(--accent);
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 24px;
    transition: background var(--transition);
}

.nav-link:hover {
    background-color: var(--bg-primary);
}

/* Selected tab → maroon pill with white text */
.nav-link.active {
    background-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.nav-link.active:hover {
    background-color: var(--accent-hover, #741923);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-action {
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
}

.auth-action:hover {
    color: var(--accent);
}

.btn-cta {
    background-color: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ================= Search Hero ================= */
.search-hero {
    background: linear-gradient(to bottom, #FFFFFF 0%, var(--bg-primary) 100%);
    padding: 52px 20px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.hero-content { max-width: 860px; margin: 0 auto; text-align: center; }

.hero-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.custom-search-bar {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.10);
    padding: 7px 7px 7px 12px;
    max-width: 1040px;
    width: 100%;
    text-align: left;
    transition: box-shadow 0.2s ease;
}
.custom-search-bar:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.14); }

.search-segment {
    display: flex;
    flex-direction: column;
    padding: 8px 18px;
    border-radius: 40px;
    transition: background 0.18s ease;
    cursor: pointer;
}
.search-segment:hover { background: var(--bg-primary); }

/* Hero combined date-range trigger */
.hero-dates { flex-direction: row !important; gap: 0; padding: 6px 6px; cursor: pointer; align-items: stretch; }
.hero-date-col { display: flex; flex-direction: column; padding: 4px 16px; justify-content: center; }
.hero-date-col + .hero-date-col { border-left: 1px solid var(--border-light); }
.hero-dates label { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.hero-dates .date-display { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.hero-dates .date-display.has-val { color: var(--text-primary); font-weight: 600; }
.hero-dates.dp-active { box-shadow: 0 0 0 2px var(--accent) inset; }

/* Location is the headline field — give it the most room and a larger input. */
.search-segment.grow {
    flex: 2 1 280px;
    padding-left: 22px;
}
.search-segment.grow label { font-size: 13px; }
.search-segment.grow input { font-size: 16px; }
.search-segment.grow input::placeholder { font-size: 15px; }

.search-segment label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.search-segment input, .search-segment select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0;
    width: 100%;
}

.search-segment input:focus, .search-segment select:focus {
    outline: none;
}

.search-divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-light);
}

.search-submit-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}

.search-submit-btn:hover {
    background-color: var(--accent-hover);
}

.search-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* ================= Category Bar ================= */
.category-wrapper {
    max-width: 1760px;
    margin: 0 auto;
    padding: 32px 40px 16px;
}

.category-scroll {
    display: flex;
    justify-content: center;
    gap: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 6px 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), opacity var(--transition);
    opacity: 0.78;
}

.category-btn .category-ico,
.category-btn svg {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.category-btn span {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.category-btn:hover {
    color: var(--text-primary);
    opacity: 1;
}
.category-btn:hover .category-ico,
.category-btn:hover svg {
    transform: translateY(-2px) scale(1.06);
}

.category-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    opacity: 1;
}

/* ================= Property Cards ================= */
.property-grid-section {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 40px 80px;
}
/* Fill the screen: as many cards as fit (min 250px each), more columns on wider monitors. */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 26px;
}
.property-grid .grid-full { grid-column: 1 / -1; }
.property-grid-item { min-width: 0; }

@media (max-width: 640px) {
    .property-grid-section { padding-left: 18px; padding-right: 18px; }
    .property-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}

.property-card {
    display: block;
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image-box {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #EBEBEB, #DCDCDC);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-overlay {
    font-size: 14px;
    font-weight: 500;
    color: #999;
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.price-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(26, 26, 26, 0.85);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.price-overlay strong {
    font-size: 16px;
    font-weight: 700;
}

.price-overlay small {
    font-size: 12px;
    opacity: 0.8;
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform var(--transition);
}

.wishlist-btn svg {
    width: 28px;
    height: 28px;
    fill: rgba(0,0,0,0.3);
    stroke: #fff;
    stroke-width: 2;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

/* Saved (wish-listed) state — filled maroon heart */
.wishlist-btn.is-saved svg {
    fill: var(--accent, #8E1F2C);
    stroke: #fff;
}
.wishlist-btn:active { transform: scale(0.88); }

.card-details {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.card-meta svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    flex-shrink: 0;
}

/* ================= Footer ================= */
.main-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 64px 40px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1760px;
    margin: 0 auto 48px;
}

.footer-brand h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1760px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ================= Responsive Queries ================= */
@media (max-width: 991px) {
    /* Compact single-row search — smaller fields + an icon button, so it all stays on one line
       instead of stacking into a tall card. Segments share the width proportionally (never wraps). */
    .custom-search-bar {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        border-radius: 40px;
        padding: 5px 6px;
        gap: 0;
    }
    .search-segment { padding: 8px 12px; min-width: 0; }
    .search-segment.grow { flex: 2.2 1 0; }
    .search-segment.hero-dates { flex: 1.8 1 0; }
    .search-segment.guest-segment { flex: 1.1 1 0; }
    .search-segment label { font-size: 10px; margin-bottom: 1px; white-space: nowrap; }
    .search-segment input, .search-segment .date-display, .search-segment .guest-display { font-size: 13px; }
    .search-segment input::placeholder { font-size: 12.5px; }
    .search-segment input { width: 100%; }
    .hero-dates { gap: 6px; }
    .hero-date-col label { font-size: 9.5px; }
    .search-divider { width: 1px; height: 30px; }
    .search-submit-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; padding: 0; }
    .search-submit-btn svg { width: 17px; height: 17px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones: tighten the search fields a touch more so the single row fits comfortably. */
@media (max-width: 600px) {
    .custom-search-bar { padding: 4px 5px; }
    .search-segment { padding: 6px 9px; }
    .search-segment label { font-size: 9px; }
    .search-segment input, .search-segment .date-display, .search-segment .guest-display { font-size: 12px; }
    .hero-date-col label { font-size: 8.5px; }
    .search-submit-btn { width: 40px; height: 40px; flex: 0 0 40px; }
    .search-submit-btn svg { width: 16px; height: 16px; }
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
    .header-container { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
    .header-container .main-nav, .header-container .header-actions { justify-self: auto; }

    /* Right-side controls: profile chip (logged in) + the hamburger, hugging the right edge. */
    .nav-mobile-right { display: flex; align-items: center; gap: 10px; }
    .nav-toggle { display: inline-flex; align-items: center; }
    .nav-mobile-profile { display: inline-flex; align-items: center; gap: 8px; }
    .nav-mobile-profile .nav-avatar { width: 32px; height: 32px; flex: 0 0 32px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; display: block; }
    .nav-mobile-profile .nav-name { font-size: 14px; font-weight: 600; color: var(--text-primary); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* The menu itself: a drawer that slides in from the right to about a third of the screen. */
    .nav-collapse {
        display: flex; flex-direction: column; align-items: stretch; gap: 4px;
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(84vw, 340px);
        background: #fff;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
        padding: 74px 18px 26px;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
        z-index: 1300;
    }
    .main-header.nav-open .nav-collapse { transform: translateX(0); }

    .nav-drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.42); z-index: 1290; opacity: 0; transition: opacity 0.3s; }
    .nav-drawer-backdrop.show { opacity: 1; }

    .main-nav { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav .nav-link { padding: 13px 14px; border-radius: 10px; font-size: 16px; }
    .header-actions {
        flex-direction: column; align-items: stretch; gap: 10px;
        margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light);
    }
    /* The top-bar chip already shows the profile, so hide the duplicate inside the drawer. */
    .nav-collapse .nav-profile-btn { display: none; }
    .nav-locale { margin-right: 0; align-self: flex-start; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   Navbar Profile Link (Updated from Dropdown)
============================================================ */
.nav-profile-btn { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: transparent; 
    border: 1px solid var(--border-light); 
    padding: 4px 16px 4px 4px; 
    border-radius: 40px; 
    cursor: pointer; 
    transition: box-shadow var(--transition), border-color var(--transition); 
}
.nav-profile-btn:hover { 
    box-shadow: var(--shadow-sm); 
    border-color: var(--accent);
}
.nav-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;        /* never grow/shrink — keeps it a perfect circle */
    aspect-ratio: 1 / 1;   /* never stretch, even if a parent tries to */
    border-radius: 50%;
    object-fit: cover;     /* crop to fill, preserving the photo's aspect */
    background: #eee;
    display: block;
}
.nav-name { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-primary); 
}
.btn-ghost { 
    background: transparent; 
    border: none; 
    color: var(--text-primary); 
    cursor: pointer; 
    font-size: 14px; 
    transition: color var(--transition); 
}
.btn-ghost:hover {
    color: var(--accent);
}
/* The navbar "Become a Host / Property Agent" buttons always read in black (never wash out against
   the white header), while staying obviously clickable (maroon on hover, pointer cursor). */
.header-actions .btn-ghost.js-upgrade-host,
.header-actions .btn-ghost.js-become-agent {
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}
.header-actions .btn-ghost.js-upgrade-host:hover,
.header-actions .btn-ghost.js-become-agent:hover {
    color: var(--accent);
}

/* ============================================================
   Custom Host Upgrade Modal
============================================================ */
.custom-modal-overlay {
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 2000;
}
.custom-modal-box {
    background: var(--bg-surface);
    padding: 32px;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.custom-modal-box h3 { 
    margin-bottom: 20px; 
    font-size: 24px; 
    font-weight: 700; 
    color: var(--text-primary);
}
.custom-modal-box p { 
    font-size: 15px; 
    color: var(--text-secondary); 
    line-height: 1.6; 
    margin-bottom: 16px; 
}
.custom-modal-box strong {
    color: var(--text-primary);
}
.modal-actions { 
    display: flex; 
    justify-content: flex-end; 
    gap: 16px; 
    margin-top: 32px; 
}
.modal-actions .btn-primary { 
    width: auto; 
    font-size: 14px; 
    padding: 10px 24px; 
    border-radius: 24px;
}
.modal-actions .btn-ghost { 
    padding: 10px 24px; 
    font-weight: 600; 
    font-size: 14px;
}

/* Moi Travel Footer Styling */
.moi-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 20px;
    border-top: 4px solid var(--accent, #8E1F2C); /* Vibrant Maroon Accent */
    margin-top: 40px;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent, #8E1F2C);
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaaaaa; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: #ffffff; }

/* Newsletter Form */
.news-form { display: flex; gap: 5px; margin-top: 10px; }
.news-form input {
    background: #333; border: none; padding: 10px; color: white;
    border-radius: 4px; flex: 1;
}
.news-form button {
    background: var(--accent, #8E1F2C); color: white; border: none;
    padding: 10px 15px; border-radius: 4px; cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .news-form { justify-content: center; }
}
/* ============================================================
   Top-left logo image
   ============================================================ */
.logo { flex-shrink: 0; }
.logo .logo-img { height: 90px !important; width: auto !important; max-width: 344px; object-fit: contain; display: block; }
@media (max-width: 600px) { .logo .logo-img { height: 69px !important; max-width: 265px; } }

/* ============================================================
   Animated "Break away with us" slogan (black <-> maroon wave)
   ============================================================ */
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-brand { font-size: 19px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.3px; }
.logo-slogan .moi-slogan { font-size: 11.5px; }
@media (max-width: 600px) { .logo-text { display: none; } }

.moi-slogan { display: inline-flex; flex-wrap: wrap; gap: 0; font-weight: 800; letter-spacing: 0.4px; line-height: 1.1; }
.moi-slogan .ch { color: #1A1A1A; display: inline-block; animation: moiSloganWave 0.85s ease-in-out 1 both; }
.moi-slogan .sp { width: 0.32em; }
@keyframes moiSloganWave {
    0%   { color: #1A1A1A; transform: translateY(0); }
    50%  { color: var(--accent); transform: translateY(-3px); }
    100% { color: #1A1A1A; transform: translateY(0); }
}

/* Defensive caps so no logo / svg / image can ever blow up a layout */
.main-header img, .moi-footer img, .admin-brand img, .spa-nav img, .editor-nav img { max-height: 70px; width: auto; }
img { max-width: 100%; }
.main-header svg:not(.logo-mark), .category-btn svg, .nav-link svg { max-width: 28px; max-height: 28px; }

/* ============================================================
   Colourful site footer
   ============================================================ */
/* Light, compact footer — maroon accents on a soft grey/white base */
.moi-footer {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    color: #1A1A1A;
    border-top: 1px solid #e6e6e6;
    padding: 0;
    margin-top: 48px;
}
.moi-footer-inner { max-width: 1200px; margin: 0 auto; padding: 30px 32px 14px; position: relative; z-index: 1; }
.moi-footer-grid {
    display: grid; grid-template-columns: auto 1.5fr 1fr; gap: 44px; align-items: start;
    padding-bottom: 20px; border-bottom: 1px solid #e6e6e6;
}
.moi-foot-logo-col { display: flex; align-items: flex-start; }
.moi-foot-brand { display: flex; flex-direction: column; }
.moi-footer .moi-foot-logo { height: 88px; max-height: 88px; width: auto; max-width: 275px; object-fit: contain; display: block; margin-bottom: 14px; }
.moi-foot-brand p { font-size: 15px; line-height: 1.65; color: #4a4a4a; max-width: 460px; margin: 0; }
.moi-foot-socials { display: flex; gap: 10px; margin-top: 16px; }
.moi-foot-socials a {
    width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #e2e2e2; color: var(--accent); transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.moi-foot-socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.moi-foot-socials svg { width: 18px; height: 18px; }

.moi-foot-head {
    font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.moi-foot-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.moi-foot-contact li { display: flex; align-items: center; gap: 10px; color: #333; font-size: 14.5px; }
.moi-foot-contact a { color: #333; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.moi-foot-contact a:hover { color: var(--accent); }
.moi-foot-contact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.moi-foot-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    padding: 14px 0 4px; font-size: 12.5px; color: #777;
}
.moi-foot-legal { display: flex; gap: 22px; }
.moi-foot-legal a { color: #777; text-decoration: none; transition: color .2s; }
.moi-foot-legal a:hover { color: var(--accent); }

@media (max-width: 760px) {
    .moi-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .moi-foot-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   Promotions — strike-through price, Moi Mandate badge, cards
   ============================================================ */
.card-image-box .card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-btn .category-ico { width: 24px; height: 24px; object-fit: contain; }

.promo-strike { text-decoration: line-through; opacity: .7; font-size: .85em; margin-right: 6px; font-weight: 600; }

.mandate-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, var(--accent, #8E1F2C), #74121d); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .3px;
    padding: 5px 11px 5px 8px; border-radius: 14px;
    box-shadow: 0 4px 12px rgba(142,31,44,.35);
}
.mandate-badge svg { width: 14px; height: 14px; color: #F4C850; }
/* Blue badge variant for free-nights / "stay N get one free" specials. */
.mandate-badge.is-blue { background: linear-gradient(135deg, #1d4ed8, #11277a); box-shadow: 0 4px 12px rgba(29,78,216,.34); }
.mandate-badge.is-blue svg { color: #bcd2ff; }

/* Friendly "no results for your search" banner (accommodation + buy pages) */
.no-results-banner {
    text-align: center; max-width: 640px; margin: 6px auto 26px; padding: 26px 24px;
    background: var(--accent-soft, #F7EAEC); border: 1px solid #f0d8db; border-radius: 16px;
}
.no-results-banner h3 { font-size: 19px; font-weight: 800; color: var(--accent, #8E1F2C); margin-bottom: 6px; }
.no-results-banner p { font-size: 14.5px; color: var(--text-secondary, #6B6B6B); margin: 0; }
/* On the property detail page the badge sits inside the <h1>, so it must flow inline
   beside the title rather than absolutely position itself over the property name. */
.prop-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.prop-title .mandate-badge { position: static; box-shadow: none; font-size: 12px; }

/* Promo pieces on the property detail page */
.prop-promo-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prop-promo-row .promo-strike { font-size: 1.1rem; }
.prop-promo-tag { display: inline-flex; align-items: center; gap: 6px; background: #FCEFF1; color: var(--accent, #8E1F2C); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 16px; }
.promo-field { display: flex; gap: 8px; margin-top: 14px; }
.promo-field input { flex: 1; border: 1px solid #e3e3e3; border-radius: 10px; padding: 11px 14px; font-size: 14px; text-transform: uppercase; }
.promo-field button { border: none; background: #1A1A1A; color: #fff; border-radius: 10px; padding: 0 18px; font-weight: 600; cursor: pointer; }
.promo-result { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.promo-result.ok { color: #1e7e4f; }
.promo-result.err { color: #B3261E; }

/* ============================================================
   Responsive polish — home hero, search bar, category bar, cards
   ============================================================ */
@media (max-width: 992px) {
    .hero-title { font-size: 34px; }
    .category-wrapper { padding: 24px 20px 12px; }
    .category-scroll { justify-content: flex-start; gap: 26px; }
}

@media (max-width: 768px) {
    .search-hero { padding: 48px 18px; }
    .hero-title { font-size: 27px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 26px; }

    /* Compact single-row search pill (icon button) — fits on one line, no stacking. */
    .custom-search-bar {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        border-radius: 40px;
        padding: 5px 6px;
        gap: 0;
        box-shadow: var(--shadow-sm);
    }
    .search-segment { padding: 8px 12px; border-radius: 30px; min-width: 0; }
    .search-segment:hover { background: var(--bg-primary); }
    .search-divider { display: block; width: 1px; height: 30px; }
    .search-submit-btn { width: 44px; height: 44px; border-radius: 50%; margin: 0; }
}

@media (max-width: 480px) {
    .header-container { padding: 10px 14px; }
    .property-grid-section { padding-bottom: 48px; }
    .hero-title { font-size: 23px; }
}

/* Keep cards tidy: image never overflows, title clamps */
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero slogan sizing */
.hero-slogan { margin-bottom: 14px; }
.hero-slogan .moi-slogan { font-size: 30px; }
@media (max-width: 600px) { .hero-slogan .moi-slogan { font-size: 22px; } }

/* ============================================================
   "Why book / Why list with us" feature sections
   ============================================================ */
.why-section { max-width: 1200px; margin: 30px auto 70px; padding: 0 24px; }
.why-heading { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.why-sub { text-align: center; color: var(--text-secondary); font-size: 15px; margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 28px; }
.why-item { text-align: left; }
.why-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.why-ico svg { width: 22px; height: 22px; }
.why-item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.why-item p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 992px) { .why-grid { grid-template-columns: repeat(2, 1fr); } .why-heading { font-size: 25px; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* Buy a Property page */
.buy-toolbar { max-width: 1760px; margin: 0 auto 8px; padding: 0 40px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.buy-search { position: relative; flex: 1; min-width: 240px; }
.buy-search input { width: 100%; border: 1px solid var(--border-light); border-radius: 30px; padding: 12px 18px 12px 44px; font-size: 15px; outline: none; }
.buy-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.buy-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #9aa1ac; }
.buy-sort { border: 1px solid var(--border-light); border-radius: 30px; padding: 11px 18px; font-size: 14px; background: #fff; cursor: pointer; }
.buy-chips { max-width: 1760px; margin: 0 auto 18px; padding: 8px 40px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.buy-chip { border: 1px solid var(--border-light); background: #fff; border-radius: 20px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.buy-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Mobile: stack the search + sort full-width and let the filter chips scroll in one tidy row */
@media (max-width: 640px) {
    .buy-toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 18px; margin-bottom: 6px; }
    .buy-search { min-width: 0; }
    .buy-sort { width: 100%; text-align: left; }
    .buy-chips { padding: 6px 18px 2px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .buy-chips::-webkit-scrollbar { display: none; }
}
.sale-card-price { font-size: 18px; font-weight: 800; color: var(--accent); }

/* Public policy pages */
.policy-page { padding: 40px 20px 70px; }
.policy-container { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 40px 44px; box-shadow: var(--shadow-sm); }
.policy-title { font-size: 30px; font-weight: 800; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--accent-soft); }
.policy-content { font-size: 15px; line-height: 1.75; color: #333; }
.policy-content h2, .policy-content h3 { margin: 24px 0 10px; }
.policy-content p { margin-bottom: 14px; }
.policy-content a { color: var(--accent); text-decoration: underline; }
.policy-content ul, .policy-content ol { margin: 0 0 14px 22px; }
@media (max-width: 600px) { .policy-container { padding: 26px 20px; } .policy-title { font-size: 24px; } }

/* ===== Navbar: staff jump button + basket ===== */
.nav-role-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; margin-right: 12px;
    font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
    border-radius: 20px; border: 1.5px solid var(--accent); color: var(--accent);
    background: var(--accent-soft); transition: all .15s ease;
}
.nav-role-btn svg { width: 15px; height: 15px; }
.nav-role-btn:hover { background: var(--accent); color: #fff; }
.nav-role-support { border-color: #1f5c8e; color: #1f5c8e; background: #eaf1f7; }
.nav-role-support:hover { background: #1f5c8e; color: #fff; }

.nav-cart { position: relative; margin-right: 14px; }
.nav-cart-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 22px;
    background: transparent; border: none;
    color: #1A1A1A; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.nav-cart-btn svg { width: 20px; height: 20px; stroke: #1A1A1A; }
/* hover mirrors the active nav-tab pill: maroon pill around a white cart */
.nav-cart-btn:hover, .nav-cart-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
.nav-cart-btn:hover svg, .nav-cart-btn[aria-expanded="true"] svg { stroke: #fff; }
.nav-cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 9px; border: 2px solid var(--bg-surface);
}
.nav-cart-badge[hidden] { display: none; }
.nav-cart-panel {
    position: absolute; top: calc(100% + 12px); right: 0; width: 340px; max-width: 90vw;
    background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 14px;
    box-shadow: var(--shadow-md); z-index: 1200; overflow: hidden; animation: navCartPop .14s ease;
}
.nav-cart-panel[hidden] { display: none; }
@keyframes navCartPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-cart-head { padding: 14px 16px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border-light); }
.nav-cart-body { max-height: 360px; overflow-y: auto; }
.nav-cart-empty { padding: 26px 16px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.nav-cart-item {
    display: flex; align-items: center; gap: 11px; padding: 11px 14px; text-decoration: none;
    color: var(--text-primary); border-bottom: 1px solid var(--border-light); transition: background .12s ease;
}
.nav-cart-item:hover { background: var(--bg-primary); }
.nav-cart-thumb { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 9px; background: #e9e9ee var(--cart-thumb) center/cover; }
.nav-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-cart-info strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-cart-meta { font-size: 12px; color: var(--text-secondary); }
.nav-cart-total { font-size: 13px; font-weight: 700; color: var(--accent); }
.nav-cart-remove {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: none;
    background: transparent; color: var(--text-secondary); font-size: 20px; line-height: 1; cursor: pointer;
}
.nav-cart-remove:hover { background: var(--accent-soft); color: var(--accent); }
.nav-cart-foot { padding: 12px 16px; border-top: 1px solid var(--border-light); text-align: center; }
.nav-cart-viewall { color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.nav-cart-viewall:hover { text-decoration: underline; }

/* ===== Location typeahead (search bars) ===== */
.loc-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-width: 360px;
    background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 14px;
    box-shadow: var(--shadow-md); z-index: 1300; overflow: hidden; padding: 6px;
    animation: navCartPop .12s ease;
}
.loc-suggest[hidden] { display: none; }
.loc-suggest-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px;
    background: transparent; border: none; border-radius: 10px; cursor: pointer;
    text-align: left; font: inherit; color: var(--text-primary);
}
.loc-suggest-item:hover, .loc-suggest-item.active { background: var(--accent-soft); }
.loc-suggest-item svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; }
.loc-suggest-label { flex: 1; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-suggest-count { font-size: 12px; color: var(--text-secondary); flex: 0 0 auto; }
/* hero search bar is dark-on-light; keep the menu left-aligned to the field */
.custom-search-bar .search-segment .loc-suggest { top: calc(100% + 10px); }

/* ===== Cancellation policy tier badge (property + checkout) ===== */
.cancel-tier { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.cancel-flexible { background: #E7F5EC; color: #1e7e4f; }
.cancel-moderate { background: #FBF0DD; color: #9a6a00; }
.cancel-strict { background: #FBEAEA; color: #b3261e; }
.cancel-non-refundable { background: #EFEFF1; color: #555; }

/* ===== Hero guest stepper ===== */
.guest-segment { position: relative; }
.guest-display { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.guest-display.has-val { color: var(--text-primary); font-weight: 600; }
.guest-popover {
    position: absolute; top: calc(100% + 12px); right: 0; width: 300px; max-width: 88vw;
    background: #fff; border: 1px solid var(--border-light); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 18px; z-index: 1300; cursor: default;
}
.guest-popover[hidden] { display: none; }
.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guest-row-label strong { display: block; font-size: 15px; color: var(--text-primary); }
.guest-row-label span { font-size: 13px; color: var(--text-secondary); }
.guest-stepper { display: flex; align-items: center; gap: 14px; }
.gs-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border-light);
    background: #fff; color: var(--text-primary); font-size: 20px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: border-color .15s, color .15s;
}
.gs-btn:hover { border-color: var(--accent); color: var(--accent); }
.gs-count { min-width: 22px; text-align: center; font-weight: 700; font-size: 16px; }
.guest-done {
    margin-top: 16px; width: 100%; background: var(--accent); color: #fff; border: none;
    border-radius: 10px; padding: 11px; font-weight: 700; cursor: pointer;
}
.guest-done:hover { background: var(--accent-hover); }

/* ===== Search bar: compact single row on tablets/phones (no stacking) ===== */
@media (max-width: 720px) {
    .custom-search-bar { flex-direction: row; flex-wrap: nowrap; align-items: center; border-radius: 40px; padding: 5px 6px; gap: 0; }
    .custom-search-bar .search-divider { display: block; width: 1px; height: 30px; }
    .custom-search-bar .search-segment { padding: 8px 11px; min-width: 0; border-radius: 30px; }
    .custom-search-bar .search-segment.grow { flex: 2.2 1 0; }
    .custom-search-bar .search-segment.hero-dates { flex: 1.8 1 0; }
    .custom-search-bar .search-segment.guest-segment { flex: 1.1 1 0; }
    .custom-search-bar .search-segment label { font-size: 10px; margin-bottom: 1px; white-space: nowrap; }
    .custom-search-bar .search-segment input,
    .custom-search-bar .search-segment .date-display,
    .custom-search-bar .search-segment .guest-display { font-size: 13px; }
    .custom-search-bar .search-segment input { width: 100%; }
    .custom-search-bar .hero-dates { flex-direction: row !important; gap: 4px; }
    .custom-search-bar .hero-date-col { padding: 2px 4px; }
    .custom-search-bar .hero-date-col label { font-size: 9.5px; }
    .custom-search-bar .search-submit-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; padding: 0; margin: 0; }
    .custom-search-bar .search-submit-btn svg { width: 17px; height: 17px; }
    .guest-popover, .custom-search-bar .dp-popover { left: 0; right: 0; width: auto; }
}
@media (max-width: 520px) {
    .custom-search-bar .search-segment { padding: 6px 8px; }
    .custom-search-bar .search-segment label { font-size: 9px; }
    .custom-search-bar .search-segment input,
    .custom-search-bar .search-segment .date-display,
    .custom-search-bar .search-segment .guest-display { font-size: 11.5px; }
    .custom-search-bar .hero-date-col label { font-size: 8.5px; }
    .custom-search-bar .search-submit-btn { width: 40px; height: 40px; flex: 0 0 40px; }
}

/* ==========================================================================
   Moi fields — one cool, rounded look for EVERY dropdown & search/sort,
   site-wide. style.css loads on every page; the `select.<class>` selectors
   (specificity 0,1,1) intentionally beat the bare `.<class>` rules in the
   later-loaded dashboard.css / admin-global.css, so this is authoritative.
   The bare `select` in the list catches any unclassed dropdown too.
   #sortProperties (the borderless accommodation sort) opts out via :not(.border-0).
   ========================================================================== */
select,
select.list-select, select.form-control, select.form-select:not(.border-0),
select.support-sort, select.inbox-sort, select.buy-sort, select.co-gateway,
select.aio-days, select.search-input, select.dash-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1A1A1A);
    background-color: #fff;
    border: 1.5px solid var(--border-light, #EBEBEB);
    border-radius: 12px;
    padding: 10px 42px 10px 16px;
    line-height: 1.35;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E1F2C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
select:hover,
select.list-select:hover, select.form-control:hover, select.form-select:not(.border-0):hover,
select.support-sort:hover, select.inbox-sort:hover, select.buy-sort:hover, select.co-gateway:hover,
select.aio-days:hover, select.search-input:hover, select.dash-select:hover {
    border-color: var(--accent, #8E1F2C);
    background-color: var(--accent-soft, #F7EAEC);
}
select:focus,
select.list-select:focus, select.form-control:focus, select.form-select:not(.border-0):focus,
select.support-sort:focus, select.inbox-sort:focus, select.buy-sort:focus, select.co-gateway:focus,
select.aio-days:focus, select.search-input:focus, select.dash-select:focus {
    outline: none;
    border-color: var(--accent, #8E1F2C);
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--accent-soft, #F7EAEC);
}
/* The dropdown option list itself (where the browser honours it). */
select option { font-weight: 500; color: var(--text-primary, #1A1A1A); }
select option:checked { background: var(--accent-soft, #F7EAEC); color: var(--accent, #8E1F2C); }

/* Matching search-box polish so "searches and sorts" read as one family. */
.list-search input, .support-search input, input.search-input, .ban-form input[type="search"] {
    border-radius: 12px !important;
}
.list-search input:focus, .support-search input:focus, input.search-input:focus {
    border-color: var(--accent, #8E1F2C) !important;
    box-shadow: 0 0 0 3px var(--accent-soft, #F7EAEC) !important;
}

/* ==========================================================================
   Branded navigation loader (injected + toggled by general/js/script.js)
   ========================================================================== */
.moi-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 247, 249, 0.86);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.moi-loader.is-on { opacity: 1; visibility: visible; }
.moi-loader-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.moi-loader-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid var(--accent-soft, #F7EAEC);
    border-top-color: var(--accent, #8E1F2C);
    animation: moiLoaderSpin .8s linear infinite;
}
.moi-loader-word {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .2px;
    color: var(--accent, #8E1F2C);
}
.moi-loader-sub { font-size: 13px; color: var(--text-secondary, #6B6B6B); margin-top: -6px; }
@keyframes moiLoaderSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .moi-loader-ring { animation-duration: 1.6s; } }

/* ==========================================================================
   Branded error pages (404 / 403 / 500)
   ========================================================================== */
.errpage { min-height: calc(100vh - 320px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.errpage-inner { text-align: center; max-width: 540px; }
.errpage-code {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(72px, 16vw, 128px);
    line-height: 1;
    letter-spacing: -2px;
    color: var(--accent, #8E1F2C);
    opacity: .92;
}
.errpage-title { font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin: 14px 0 10px; color: var(--text-primary, #1A1A1A); }
.errpage-text { font-size: 15.5px; color: var(--text-secondary, #6B6B6B); line-height: 1.6; margin-bottom: 26px; }
.errpage-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.errpage-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    border: 1.5px solid var(--border-light, #EBEBEB);
    color: var(--text-primary, #1A1A1A);
    background: #fff;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.errpage-btn:hover { border-color: var(--accent, #8E1F2C); color: var(--accent, #8E1F2C); }
.errpage-btn-primary { background: var(--accent, #8E1F2C); border-color: var(--accent, #8E1F2C); color: #fff; }
.errpage-btn-primary:hover { background: var(--accent-hover, #741923); border-color: var(--accent-hover, #741923); color: #fff; }

/* ==========================================================================
   Region / language / currency switcher (navbar)
   ========================================================================== */
.nav-locale { position: relative; margin-right: 14px; }
.nav-locale-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--border-light, #EBEBEB);
    border-radius: 30px; padding: 6px 8px 6px 11px; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-primary, #1A1A1A);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .12s ease;
}
.nav-locale-btn:hover { border-color: var(--accent, #8E1F2C); background: var(--accent-soft, #F7EAEC); box-shadow: 0 4px 12px rgba(142,31,44,.12); }
.nav-locale-btn:active { transform: translateY(1px); }
.nav-locale-btn[aria-expanded="true"] { border-color: var(--accent, #8E1F2C); background: var(--accent-soft, #F7EAEC); }
/* Flag images (replace the placeholders in /images_web/flags/ with your own, same names) */
.nav-locale-flag-img { display: inline-block; object-fit: cover; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); background: #eef0f2; flex-shrink: 0; }
.nav-locale-flag-img.is-btn { width: 24px; height: 16px; }
.nav-locale-code { letter-spacing: .03em; color: #1A1A1A; }
.nav-locale-caret { color: var(--text-secondary, #717171); transition: transform .2s ease; }
.nav-locale-btn[aria-expanded="true"] .nav-locale-caret { transform: rotate(180deg); color: var(--accent, #8E1F2C); }

.nav-locale-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 1200;
    width: 320px; max-height: 72vh; overflow-y: auto;
    background: #fff; border: 1px solid var(--border-light, #EBEBEB); border-radius: 16px;
    box-shadow: 0 18px 44px rgba(20,12,14,.18); padding: 10px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    transform-origin: top right;
    animation: navLocaleIn .16s cubic-bezier(.2,.9,.3,1.2);
}
.nav-locale-panel[hidden] { display: none; }
@keyframes navLocaleIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
/* little arrow pointing at the button */
.nav-locale-panel::before {
    content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px;
    background: #fff; border-left: 1px solid var(--border-light, #EBEBEB); border-top: 1px solid var(--border-light, #EBEBEB);
    transform: rotate(45deg);
}
.nav-locale-head { grid-column: 1 / -1; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary, #717171); padding: 6px 6px 4px; }

/* Each locale is a tidy tile: flag on top, country + language·currency centred underneath. */
.nav-locale-opt {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; text-align: center;
    background: #fff; border: 1px solid var(--border-light, #EBEBEB); border-radius: 14px; padding: 14px 8px 12px; cursor: pointer; font: inherit;
    transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .1s ease;
}
.nav-locale-opt:hover { background: var(--accent-soft, #F7EAEC); border-color: #efc9cf; transform: translateY(-1px); }
.nav-locale-opt.active { background: var(--accent-soft, #F7EAEC); border-color: var(--accent, #8E1F2C); box-shadow: inset 0 0 0 1px var(--accent, #8E1F2C); }
.nav-locale-opt.active .nav-locale-meta strong { color: var(--accent, #8E1F2C); }
/* flag image sits centred on top of each tile */
.nav-locale-opt .nav-locale-flag-img { width: 52px; height: 34px; border-radius: 7px; }
.nav-locale-opt.active .nav-locale-flag-img { border-color: #efc9cf; }
.nav-locale-meta { display: flex; flex-direction: column; align-items: center; line-height: 1.3; min-width: 0; gap: 1px; }
.nav-locale-meta strong { font-size: 13.5px; font-weight: 700; color: var(--text-primary, #1A1A1A); }
.nav-locale-meta span { font-size: 11.5px; color: #1A1A1A; }
/* check badge on the active tile (top-right corner) */
.nav-locale-opt.active::after {
    content: ""; position: absolute; right: 9px; top: 9px; width: 5px; height: 10px;
    border: solid var(--accent, #8E1F2C); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}
@media (max-width: 600px) { .nav-locale-code { display: none; } .nav-locale { margin-right: 8px; } .nav-locale-panel { width: 260px; } }

/* ===== "Stays near you" location recommendations ===== */
.nearby-section { padding-bottom: 12px; }
.nearby-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.nearby-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; color: var(--text-primary, #1a1a1a); }
.nearby-sub { font-size: 14.5px; color: var(--text-secondary, #666); margin: 0; max-width: 540px; }
.nearby-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; white-space: nowrap; cursor: pointer; }
.nearby-btn:disabled { opacity: .65; cursor: default; }
.nearby-grid { margin-top: 4px; }
.nearby-dist { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 600px) { .nearby-title { font-size: 22px; } .nearby-btn { width: 100%; justify-content: center; } }

/* ===== Become a Host / Property-seller modal (commission + ID upload gate) ===== */
.moi-become-overlay { position: fixed; inset: 0; background: rgba(17,17,17,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 12000; opacity: 0; transition: opacity .2s; }
.moi-become-overlay.open { opacity: 1; }
.moi-become-modal { background: #fff; border-radius: 20px; max-width: 460px; width: 100%; padding: 30px 28px; position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.3); transform: translateY(12px) scale(.98); transition: transform .2s; max-height: 92vh; overflow-y: auto; }
.moi-become-overlay.open .moi-become-modal { transform: none; }
.moi-become-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f2f4; color: #333; cursor: pointer; font-size: 15px; }
.moi-become-title { font-size: 23px; font-weight: 800; margin: 0 0 4px; color: var(--text-primary, #1a1a1a); }
.moi-become-sub { font-size: 14.5px; color: var(--text-secondary, #666); margin: 0 0 20px; }
.moi-become-point { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.moi-become-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft, #F7EAEC); color: var(--accent, #8E1F2C); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.moi-become-point strong { display: block; font-size: 15px; color: var(--text-primary, #1a1a1a); margin-bottom: 2px; }
.moi-become-point span { font-size: 13.5px; color: var(--text-secondary, #666); line-height: 1.5; }
.moi-become-id { margin: 6px 0 4px; }
.moi-become-checking { font-size: 13.5px; color: #999; margin: 0; }
.moi-become-id-ok { display: inline-flex; align-items: center; gap: 6px; background: #EDF7ED; color: #1E7B34; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; }
.moi-become-upload { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--border-light, #ddd); border-radius: 12px; padding: 16px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent, #8E1F2C); transition: border-color .15s, background .15s; }
.moi-become-upload:hover { border-color: var(--accent, #8E1F2C); background: var(--accent-soft, #F7EAEC); }
.moi-become-msg { color: #b3261e; font-size: 13.5px; font-weight: 600; min-height: 1em; margin: 6px 0; }
.moi-become-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.moi-become-cancel { background: #fff; border: 1px solid var(--border-light, #ddd); border-radius: 24px; padding: 11px 22px; font-weight: 600; cursor: pointer; }
.moi-become-go { background: var(--accent, #8E1F2C); color: #fff; border: none; border-radius: 24px; padding: 11px 24px; font-weight: 700; cursor: pointer; }
.moi-become-go:disabled { opacity: .5; cursor: not-allowed; }

/* ===== "Your request was declined" friendly popup (reuses the become-modal shell) ===== */
.moi-denial-modal { text-align: center; }
.moi-denial-ico {
    width: 54px; height: 54px; margin: 2px auto 12px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    background: var(--accent-soft, #F7EAEC); color: var(--accent, #8E1F2C);
}
.moi-denial-modal .moi-become-sub { text-align: center; }
.moi-denial-reason {
    text-align: left; background: var(--accent-soft, #F7EAEC); border: 1px solid #f0d8dc;
    border-radius: 14px; padding: 13px 16px; margin: 14px 0 4px;
}
.moi-denial-reason-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #8E1F2C); margin-bottom: 4px; }
.moi-denial-reason p { margin: 0; font-size: 14px; line-height: 1.5; color: #4a4a4a; }
.moi-denial-fix { font-size: 13.5px; line-height: 1.55; color: #666; margin: 14px 0 4px; }
.moi-denial-modal .moi-become-actions { justify-content: center; margin-top: 18px; }
.moi-denial-ok { min-width: 140px; }

/* ===== New-user "add a profile photo" nudge on the navbar avatar ===== */
.nav-profile-btn.has-pic-nudge, .nav-mobile-profile.has-pic-nudge { position: relative; overflow: visible; }
.pic-nudge {
    position: absolute; top: calc(100% + 7px); left: 50%;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    pointer-events: none; z-index: 1200;
    animation: picNudgeBob 1.1s ease-in-out infinite;
}
.pic-nudge-arrow { width: 22px; height: 22px; color: var(--accent, #8E1F2C); filter: drop-shadow(0 2px 3px rgba(142,31,44,.25)); }
.pic-nudge-bubble {
    background: var(--accent, #8E1F2C); color: #fff; font-size: 11.5px; font-weight: 700;
    padding: 4px 11px; border-radius: 14px; white-space: nowrap;
    box-shadow: 0 8px 18px rgba(142,31,44,.32);
}
@keyframes picNudgeBob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) { .pic-nudge { animation: none; } }

/* ==========================================================================
   "You might also like" — similar stays / listings at the bottom of a property
   or sale page (shared by property.php + sale.php). Blends with the card style.
   ========================================================================== */
.similar-section { margin: 56px auto 16px; }
.similar-title { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 0 0 4px; }
.similar-sub { color: var(--text-secondary); margin: 0 0 22px; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.similar-card {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden;
    background: var(--bg-surface); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.similar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(142, 31, 44, .12); border-color: #e8c9ce; }
.similar-img-box { aspect-ratio: 16 / 11; background: #f1edee; overflow: hidden; }
.similar-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.similar-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.similar-body { padding: 14px 16px 16px; }
.similar-card-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.similar-price strong { font-size: 16px; color: var(--text-primary); }
.similar-price .promo-strike { color: var(--text-secondary); text-decoration: line-through; font-size: 13px; margin-right: 4px; }
.similar-night { font-size: 12.5px; color: var(--text-secondary); }
.similar-rating { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.similar-rating.similar-new { color: var(--accent); }
@media (max-width: 900px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .similar-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Native date / time inputs — the WHOLE field opens the picker (JS calls
   showPicker() on click; see script.js). Consistent pointer + accent icon
   everywhere, including the admin financials tab.
   ========================================================================== */
input[type="date"], input[type="month"], input[type="week"],
input[type="time"], input[type="datetime-local"] {
    cursor: pointer;
    font-family: inherit;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .6;
    transition: opacity .15s ease;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="month"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }
