/* ============================================================================
   El Bachir Land — Hospitality UI
   Inspired by Marriott + the proposal mockup.
   Palette: deep forest green primary, warm ivory paper, gold accent.
   Typography: Cormorant Garamond (display serif) + Inter (body sans)
   ============================================================================ */
:root {
    /* Backgrounds — warmer, more refined paper tones */
    --bg:           #f7f4ee;
    --bg-deep:      #efe9de;
    --paper:        #ffffff;
    --paper-warm:   #fcf9f3;

    /* Greens — deepened & richer for a premium, sober luxury feel.
       Also the "theme" variables exposed to admins. */
    --green-900:    #07291f;     /* hero/sidebar — near-black forest */
    --green-800:    #0d3d2e;     /* primary brand */
    --green-700:    #14543f;     /* hover */
    --green-600:    #1c6b50;
    --green-100:    #e4ede8;
    --green-50:     #f1f6f3;

    /* Ink & lines */
    --ink:          #16201c;
    --ink-soft:     #45504b;
    --muted:        #837c72;
    --line:         #e6ded0;
    --line-soft:    #f0eadd;

    /* Status / accents — refined champagne gold */
    --gold:         #b8975a;
    --gold-soft:    #d8c49a;
    --ok:           #2d6a4f;
    --warn:         #b07628;
    --err:          #9b2226;

    /* Status pills */
    --st-confirmed-bg: #d8eadd;  --st-confirmed-fg: #1d5c3f;
    --st-pending-bg:   #fdf0d6;  --st-pending-fg:   #a06420;
    --st-arrived-bg:   #d6e4f5;  --st-arrived-fg:   #2c5282;
    --st-cancelled-bg: #f7d7d8;  --st-cancelled-fg: #91272a;

    /* Typography — modern geometric sans throughout */
    --display: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
    --body:    "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

    /* Shape — slightly tighter radii read as more premium */
    --radius:    8px;
    --radius-lg: 14px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(7,41,31,0.05);
    --shadow:    0 10px 30px -12px rgba(7,41,31,0.16), 0 2px 6px rgba(7,41,31,0.04);
    --shadow-lg: 0 28px 60px -24px rgba(7,41,31,0.28);

    --header-h: 80px;
    --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

/* Boot loader */
.boot {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem;
    background: var(--bg);
}
.boot-spinner {
    width: 28px; height: 28px; border: 2px solid var(--line);
    border-top-color: var(--green-800); border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.boot-text {
    color: var(--muted); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500;
}

/* Layout */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ============================================================
   PUBLIC HEADER
   ============================================================ */
.header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left brand right";
    align-items: center;
    padding: 1.25rem 0;
    gap: 0.5rem;
    min-height: var(--header-h);
}
.header-left  { grid-area: left;  justify-self: start; display: flex; align-items: center; gap: 0.5rem; }
.header-right { grid-area: right; justify-self: end;   display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.brand {
    grid-area: brand; justify-self: center;
    text-decoration: none; text-align: center; cursor: pointer; line-height: 1;
}
.brand-logo {
    font-family: var(--display); font-size: 1.35rem; font-weight: 700;
    color: var(--green-900); letter-spacing: 0.22em; text-transform: uppercase;
}
.brand-tag {
    display: block; font-size: 0.62rem; text-transform: uppercase;
    letter-spacing: 0.38em; color: var(--gold); margin-top: 0.45rem; font-weight: 600;
}

.nav { display: flex; gap: 0.25rem; align-items: center; }
.nav a, .nav button {
    font: inherit; font-size: 0.88rem; font-weight: 500;
    padding: 0.55rem 0.95rem;
    background: transparent; border: 0; cursor: pointer;
    color: var(--ink-soft); border-radius: 6px; text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.nav a:hover, .nav button:hover { color: var(--green-800); background: var(--green-50); }
.nav .active { background: var(--green-800); color: #fff; }
.nav .active:hover { background: var(--green-700); color: #fff; }

/* Hamburger button — visible only below 720px (see media query) */
.header-burger {
    display: none;
    background: transparent; border: 0; cursor: pointer;
    padding: 0.5rem; margin: 0;
    color: var(--green-900);
    border-radius: 6px;
    align-items: center; justify-content: center;
    grid-area: left;
    justify-self: start;
}
.header-burger:hover { background: var(--green-50); }
.header-burger-spacer {
    display: none;
    grid-area: right;
    justify-self: end;
    width: 38px;     /* same width as burger, keeps brand centered */
    height: 38px;
}

/* Off-canvas drawer */
.mobile-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 51, 38, 0.55);
    backdrop-filter: blur(2px);
    z-index: 98;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.mobile-drawer-backdrop.open {
    opacity: 1; pointer-events: auto;
}
.mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(82vw, 320px);
    background: var(--paper);
    box-shadow: 4px 0 30px rgba(0,0,0,0.18);
    z-index: 99;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.mobile-drawer-close {
    background: transparent; border: 0; cursor: pointer;
    font-size: 1.7rem; line-height: 1;
    color: var(--ink-soft); padding: 0.3rem 0.5rem;
    border-radius: 6px;
}
.mobile-drawer-close:hover { background: var(--green-50); color: var(--green-900); }
.mobile-drawer-nav {
    display: flex; flex-direction: column;
    padding: 0.75rem;
    gap: 0.2rem;
}
.mobile-drawer-nav a {
    font: inherit; font-size: 1rem; font-weight: 500;
    color: var(--ink-soft);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.mobile-drawer-nav a:hover {
    background: var(--green-50);
    color: var(--green-800);
}
.mobile-drawer-nav a.active {
    background: var(--green-800);
    color: #fff;
}
.mobile-drawer-divider {
    height: 1px; background: var(--line);
    margin: 0.5rem 0.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 560px;
    display: flex; flex-direction: column; justify-content: center;
    padding: 5rem 0 8rem;
    overflow: hidden; isolation: isolate;
    color: #fff;
    /* The actual background image + dark gradient are applied as an inline
       style from React (see the Hero component). This makes the runtime
       theme switching (admin → upload image → save) work reliably across
       browsers — using `var(--hero-bg)` inside a `background` shorthand had
       compatibility issues with relative URLs. */
}
.hero-inner { max-width: 760px; position: relative; }
.hero-eyebrow {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.4em;
    color: var(--gold-soft); font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2.6rem, 6.5vw, 4.75rem);
    line-height: 1.02; letter-spacing: -0.025em;
    margin: 0 0 1.5rem; color: #fff;
}
.hero h1 em {
    font-style: normal; font-weight: 800; color: var(--gold);
    display: inline-block;
}
.hero-sub {
    font-size: 1.12rem; color: rgba(255,255,255,0.9);
    max-width: 560px; line-height: 1.6; margin: 0; font-weight: 400;
}

/* Booking bar overlay */
.booking-bar-wrap { position: relative; margin-top: -5rem; padding-bottom: 2rem; z-index: 5; }
.booking-bar {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 1rem 1rem 1rem 1.5rem;
}
.booking-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 0.9fr auto;
    gap: 0; align-items: stretch;
}
.booking-form .field {
    padding: 0.5rem 1rem 0.5rem 0;
    border-right: 1px solid var(--line-soft);
}
.booking-form .field:nth-last-child(2) { border-right: 0; }
.booking-form .field label {
    display: block; font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--muted); margin-bottom: 0.3rem; font-weight: 600;
}
.booking-form .field input,
.booking-form .field select {
    width: 100%; padding: 0.25rem 0;
    background: transparent; border: 0; font: inherit;
    font-size: 0.96rem; color: var(--ink); font-weight: 500;
}
.booking-form .field input:focus,
.booking-form .field select:focus { outline: none; }
.booking-form > button[type="submit"] { align-self: stretch; margin-left: 0.5rem; }

/* General .field */
.field { min-width: 0; }
.field label {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--muted); margin-bottom: 0.45rem; font-weight: 600;
}
.field input, .field select, .field textarea {
    width: 100%; padding: 0.7rem 0.9rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 8px; font: inherit; color: var(--ink);
    min-width: 0; max-width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green-800);
    box-shadow: 0 0 0 3px rgba(15,74,55,0.12);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.85rem 1.6rem;
    font: inherit; font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.04em;
    border: 0; border-radius: 8px; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    text-decoration: none; white-space: nowrap;
}
.btn-primary {
    background: var(--green-800); color: #fff;
    box-shadow: 0 4px 14px -6px rgba(13,61,46,0.5);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(13,61,46,0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
    background: transparent; color: var(--green-800);
    border: 1px solid var(--green-800);
}
.btn-ghost:hover { background: var(--green-800); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 4px 14px -6px rgba(184,151,90,0.55); }
.btn-gold:hover { background: #a8854a; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2c2c2a; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.82rem; letter-spacing: 0.02em; }
.btn-lg { padding: 1.05rem 2rem; font-size: 0.95rem; }
.btn-danger {
    background: transparent; color: var(--err); border: 1px solid #e8b8ba;
}
.btn-danger:hover { background: #fde2e4; }

/* ============================================================
   PUBLIC SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-head {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap;
}
.section-eyebrow {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.34em;
    color: var(--gold); font-weight: 700; margin-bottom: 0.8rem;
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block;
}
.section h2 {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.08; margin: 0; color: var(--green-900);
    letter-spacing: -0.03em;
}
.section-sub { color: var(--muted); margin: 0.6rem 0 0; max-width: 540px; line-height: 1.6; }

/* Unit cards (browse view) */
.units-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.unit-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.unit-card-img {
    aspect-ratio: 4 / 3;
    background: var(--green-100) center / cover no-repeat;
    position: relative; overflow: hidden;
}
.unit-card-img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(7,41,31,0.28));
    pointer-events: none;
}
.unit-card-body { padding: 1.5rem 1.6rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.unit-card h3 {
    font-family: var(--display); font-weight: 700; font-size: 1.3rem;
    margin: 0 0 0.4rem; color: var(--green-900); letter-spacing: -0.02em;
}
.unit-card-desc { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1rem; line-height: 1.55; }
.unit-card-meta { display: flex; flex-wrap: wrap; gap: 0.85rem; font-size: 0.83rem; color: var(--muted); margin-bottom: 1rem; }
.unit-card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.unit-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-soft);
    gap: 0.75rem; flex-wrap: wrap;
}
.unit-card-price { font-family: var(--display); font-size: 1.4rem; color: var(--green-900); font-weight: 700; }
.unit-card-price small { font-size: 0.7rem; font-family: var(--body); color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; margin-left: 0.3rem; }
.unit-card-actions { display: flex; gap: 0.5rem; }

/* Search results — horizontal layout */
.unit-result {
    display: grid; grid-template-columns: 280px 1fr auto; gap: 1.75rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0; margin-bottom: 1.25rem; overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.unit-result:hover { box-shadow: var(--shadow); }
.unit-result-img {
    aspect-ratio: 4 / 3;
    background: var(--green-100) center / cover no-repeat;
    min-height: 220px;
}
.unit-result-body { padding: 1.5rem 0; display: flex; flex-direction: column; }
.unit-result-body h3 {
    font-family: var(--display); font-weight: 700;
    font-size: 1.7rem; margin: 0 0 0.5rem;
    color: var(--green-900); letter-spacing: -0.005em;
}
.unit-result-desc { color: var(--ink-soft); margin: 0 0 1rem; line-height: 1.55; font-size: 0.95rem; }
.unit-result-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-top: auto; }
.unit-result-side {
    padding: 1.5rem 1.75rem 1.5rem 0;
    text-align: right; min-width: 200px;
    display: flex; flex-direction: column; justify-content: center;
}
.unit-result-side .price-block {
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 1rem; margin-bottom: 1rem;
}
.unit-result-side .amount {
    font-family: var(--display); font-size: 2rem; font-weight: 700;
    color: var(--green-900); line-height: 1;
}
.unit-result-side .per { font-size: 0.72rem; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 0.4rem; font-weight: 500; }
.unit-result-side .total { color: var(--green-800); font-size: 0.9rem; font-weight: 600; margin-top: 0.5rem; }
.unit-result-side .full { color: var(--err); font-weight: 600; font-size: 0.9rem; }
.unit-result-side .actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* ============================================================
   MODAL + GALLERY
   ============================================================ */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(10,51,38,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; padding: 1rem; backdrop-filter: blur(4px);
    animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--paper); border-radius: var(--radius-lg);
    max-width: 540px; width: 100%; padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-height: 92vh; overflow-y: auto;
    animation: rise 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
    position: relative;
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h3 {
    font-family: var(--display); font-weight: 700; font-size: 1.85rem;
    margin: 0 0 0.5rem; color: var(--green-900);
}
.modal-sub { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.92rem; }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: 0; cursor: pointer;
    font-size: 1.3rem; line-height: 1; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.modal-close:hover { background: #fff; }

.gallery-modal { max-width: 880px; padding: 0; }
.gallery-main {
    aspect-ratio: 16 / 10;
    background: var(--green-900) center / cover no-repeat;
    position: relative;
}
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: 0; cursor: pointer;
    font-size: 1.5rem; color: var(--green-900);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.gallery-arrow:hover { background: #fff; }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-count {
    position: absolute; bottom: 1rem; right: 1rem;
    background: rgba(0,0,0,0.55); color: #fff;
    padding: 0.35rem 0.75rem; border-radius: var(--radius-pill);
    font-size: 0.8rem; font-weight: 500; backdrop-filter: blur(4px);
}
.gallery-thumbs {
    display: flex; gap: 0.5rem; padding: 1rem; overflow-x: auto;
    background: var(--bg-deep);
}
.gallery-thumb {
    flex: 0 0 96px; aspect-ratio: 4 / 3;
    background: var(--green-100) center / cover no-repeat;
    border-radius: 6px; cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}
.gallery-thumb.active { border-color: var(--green-800); }
.gallery-info {
    padding: 1.5rem 2rem 2rem;
    display: grid; grid-template-columns: 1fr auto; gap: 2rem;
    align-items: end;
}
.gallery-info h3 { margin-bottom: 0.4rem; }
.gallery-info-desc { color: var(--ink-soft); margin: 0 0 1rem; line-height: 1.55; }
.gallery-info-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.gallery-info-side { text-align: right; }
.gallery-info-side .price { font-family: var(--display); font-size: 1.85rem; color: var(--green-900); font-weight: 700; line-height: 1; }
.gallery-info-side small { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; display: block; margin: 0.4rem 0 0.85rem; }

/* ============================================================
   CONFIRMATION
   ============================================================ */
.confirm {
    text-align: center; padding: 5rem 1rem; max-width: 600px; margin: 0 auto;
}
.confirm-icon {
    width: 72px; height: 72px; margin: 0 auto 1.75rem;
    background: var(--green-100); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.25rem; color: var(--green-800);
}
.confirm h2 {
    font-family: var(--display); font-weight: 700;
    font-size: 2.5rem; margin: 0 0 0.75rem;
    color: var(--green-900); letter-spacing: -0.01em;
}
.confirm-sub { color: var(--muted); margin: 0 0 2rem; font-size: 1rem; }
.confirm-detail {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.75rem;
    text-align: left; margin: 0 0 2rem;
}
.confirm-detail dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 1.5rem; }
.confirm-detail dt { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.confirm-detail dd { margin: 0; font-weight: 500; color: var(--ink); }

/* ============================================================
   PUBLIC LOGIN
   ============================================================ */
.login {
    min-height: calc(100vh - var(--header-h)); display: flex; align-items: center;
    justify-content: center; padding: 2rem;
    background: linear-gradient(135deg, var(--bg) 0%, var(--green-50) 100%);
}
.login-card {
    width: 100%; max-width: 400px; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.5rem; box-shadow: var(--shadow);
}
.login-card h2 {
    font-family: var(--display); font-weight: 700; font-size: 2rem;
    margin: 0 0 0.4rem; color: var(--green-900); letter-spacing: -0.01em;
}
.login-card .sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 2rem; }

/* ============================================================
   ADMIN — sidebar + content
   ============================================================ */
.admin-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    /* Lock the shell to the viewport so the inner content area scrolls
       independently of the sidebar (the "Déconnexion" button stays anchored). */
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg);
}
.admin-sidebar {
    background: var(--green-900);
    color: rgba(255,255,255,0.85);
    padding: 1.5rem 0;
    height: 100%;
    display: flex; flex-direction: column;
    /* If a sidebar ever overflows on a very short screen, scroll it,
       not the page. */
    overflow-y: auto;
}
.sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.25rem;
    text-align: center;
}
.sidebar-brand .brand-logo { color: #fff; font-size: 1.15rem; }
.sidebar-brand .brand-tag {
    color: rgba(255,255,255,0.55); font-size: 0.6rem; margin-top: 0.4rem;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 0.15rem; padding: 0 0.75rem; flex: 1; }
.sidebar-nav button {
    display: flex; align-items: center; gap: 0.85rem;
    width: 100%; padding: 0.72rem 0.9rem;
    background: transparent; border: 0; cursor: pointer;
    color: rgba(255,255,255,0.78);
    font: inherit; font-size: 0.9rem; font-weight: 500;
    border-radius: 8px; text-align: left;
    transition: all 0.15s ease;
}
.sidebar-nav button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav button.active { background: var(--green-800); color: #fff; font-weight: 600; }
.sidebar-icon {
    width: 18px; height: 18px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-foot {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
}

.admin-main {
    display: flex; flex-direction: column;
    min-width: 0; min-height: 0;
    overflow: hidden;
}
.admin-topbar {
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.1rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}
.admin-topbar h1 {
    font-family: var(--display); font-weight: 700; font-size: 1.5rem;
    margin: 0; color: var(--green-900); letter-spacing: -0.005em;
}
.admin-topbar-right { display: flex; align-items: center; gap: 0.5rem; }
.admin-user {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    border-radius: var(--radius-pill);
    background: var(--green-50); border: 1px solid var(--line-soft);
}
.admin-user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--green-800); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.85rem;
}
.admin-user-info { line-height: 1.1; }
.admin-user-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.admin-user-role { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.admin-mobile-toggle {
    display: none;
    background: transparent; border: 0; cursor: pointer;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 8px;
}
.admin-mobile-toggle:hover { background: var(--green-50); }

.admin-content {
    padding: 2rem; flex: 1;
    min-width: 0; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Pagination ------------------------------------------------------------- */
.pagination {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.6rem 0.25rem 0;
    color: var(--muted);
    font-size: 0.85rem;
}
.pagination-info { color: var(--muted); }
.pagination-controls { display: flex; align-items: center; gap: 0.5rem; }
.pagination-page {
    min-width: 4.5rem; text-align: center;
    color: var(--ink); font-weight: 500;
}
.pagination-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--paper); color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px; cursor: pointer;
    font: inherit; font-size: 1rem; line-height: 1;
    transition: all 0.15s ease;
}
.pagination-btn:hover:not(:disabled) {
    background: var(--green-50); border-color: var(--green-800); color: var(--green-900);
}
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.stat {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.25rem 1.4rem;
    display: flex; align-items: center; gap: 1rem;
    transition: box-shadow 0.2s ease;
}
.stat:hover { box-shadow: var(--shadow-sm); }
.stat-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; line-height: 1;
}
.stat-icon.green  { background: var(--st-confirmed-bg); color: var(--st-confirmed-fg); }
.stat-icon.blue   { background: var(--st-arrived-bg);   color: var(--st-arrived-fg); }
.stat-icon.orange { background: #fae0d0;                color: #b15a25; }
.stat-icon.gold   { background: #f7eccc;                color: #8a6a1f; }
.stat-icon.red    { background: var(--st-cancelled-bg); color: var(--st-cancelled-fg); }
.stat-body { min-width: 0; flex: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; font-weight: 500; }
.stat-value { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--green-900); }
.stat-suffix { font-size: 0.95rem; color: var(--muted); margin-left: 0.2rem; font-family: var(--body); }
.stat-foot { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

.card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden;
}
.card-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line-soft);
    gap: 1rem; flex-wrap: wrap;
}
.card-head h3 {
    font-family: var(--display); font-weight: 700; font-size: 1.25rem;
    margin: 0; color: var(--green-900);
}
.card-head-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
/* On narrow screens, give tables a minimum width so columns keep their content
   readable and the wrapper scrolls horizontally instead of crushing cells. */
@media (max-width: 720px) {
    .table-wrap > table { min-width: 640px; }
    .table-wrap { position: relative; border-radius: 10px; }
}
th, td { padding: 0.85rem 1.4rem; text-align: left; vertical-align: middle; }
thead th {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--muted); font-weight: 600;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
}
tbody tr { border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: var(--green-50); }
td .secondary { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

/* Badges */
.badge {
    display: inline-block; padding: 0.22rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
    white-space: nowrap;
}
.badge-pending   { background: var(--st-pending-bg);   color: var(--st-pending-fg); }
.badge-confirmed { background: var(--st-confirmed-bg); color: var(--st-confirmed-fg); }
.badge-cancelled { background: var(--st-cancelled-bg); color: var(--st-cancelled-fg); }
.badge-completed { background: var(--st-arrived-bg);   color: var(--st-arrived-fg); }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.toolbar-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.toolbar-filters select {
    padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: 8px;
    background: var(--paper); font: inherit; font-size: 0.88rem;
    color: var(--ink); cursor: pointer;
}
.toolbar-filters select:focus { outline: none; border-color: var(--green-800); }

/* Toast */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
    background: var(--green-900); color: var(--paper);
    padding: 0.9rem 1.4rem;
    border-radius: 8px; box-shadow: var(--shadow);
    z-index: 200; font-size: 0.92rem;
    animation: slideUp 0.25s ease;
    max-width: calc(100vw - 2rem);
}
.toast.error { background: var(--err); }
@keyframes slideUp { from { transform: translate(-50%, 20px); opacity: 0; } }

/* Empty state */
.empty {
    text-align: center; padding: 3rem 1.5rem; color: var(--muted);
    background: var(--paper); border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty-title { font-family: var(--display); font-size: 1.4rem; color: var(--green-900); margin: 0 0 0.5rem; font-weight: 700; }

/* Footer */
.footer {
    margin-top: auto;
    background: var(--green-900); color: rgba(255,255,255,0.62);
    padding: 4rem 0 2.25rem; text-align: center; font-size: 0.85rem;
    border-top: 3px solid var(--gold);
}
.footer .brand-logo { color: #fff; font-size: 1.2rem; letter-spacing: 0.24em; }
.footer .brand-tag  { color: var(--gold-soft); margin-bottom: 1rem; }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin: 1.75rem 0; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1.75rem; color: rgba(255,255,255,0.4); font-size: 0.78rem; letter-spacing: 0.02em; }

/* Highlights row */
.highlights {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; padding: 4rem 0;
    border-top: 1px solid var(--line);
}
.highlight { display: flex; align-items: flex-start; gap: 0.85rem; }
.highlight-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--green-100); color: var(--green-800);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.highlight-title { font-weight: 600; color: var(--green-900); margin-bottom: 0.2rem; font-size: 0.95rem; }
.highlight-text { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .booking-form { grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.5rem; }
    .booking-form .field {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
        padding: 0.65rem 0.85rem;
    }
    .booking-form .field:nth-child(3),
    .booking-form .field:nth-child(4) { border-bottom: 0; }
    .booking-form > button[type="submit"] { grid-column: 1 / -1; margin: 0.5rem 0 0; }

    .unit-result { grid-template-columns: 1fr; }
    .unit-result-img { aspect-ratio: 16 / 9; min-height: 0; }
    .unit-result-body { padding: 1.5rem 1.5rem 0; }
    .unit-result-side {
        padding: 1.5rem; text-align: left;
        border-top: 1px solid var(--line-soft);
        flex-direction: row; align-items: center; justify-content: space-between;
    }
    .unit-result-side .price-block { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0;
        height: 100dvh; width: min(280px, 80vw);
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .sidebar-overlay {
        position: fixed; inset: 0; background: rgba(10,51,38,0.5);
        z-index: 55; backdrop-filter: blur(2px);
        animation: fade 0.2s ease;
    }
    .admin-mobile-toggle { display: inline-flex; }
    .admin-content { padding: 1.5rem; }
    .admin-topbar { padding: 1rem 1.5rem; }
    .admin-topbar h1 { font-size: 1.3rem; }

    .gallery-info { grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
    .gallery-info-side { text-align: left; }
}

/* Mobile language selector — hidden on desktop, lives in the right grid area */
.header-lang-mobile {
    display: none;
    grid-area: right;
    justify-self: end;
    align-items: center;
}

@media (max-width: 720px) {
    /* Hide desktop nav; show hamburger (left) + language selector (right) */
    .header-nav-desktop { display: none !important; }
    .header-burger { display: inline-flex; }
    .header-burger-spacer { display: none; }
    .header-lang-mobile { display: inline-flex; }
    /* Slightly smaller brand so the selector has room */
    .brand-logo { font-size: 1.25rem; }
}

@media (max-width: 540px) {
    .header-inner { padding: 1rem 0; gap: 0.35rem; }
    .brand-logo { font-size: 1rem; letter-spacing: 0.02em; }
    .brand-tag { font-size: 0.52rem; letter-spacing: 0.2em; margin-top: 0.2rem; }
    .header-left, .header-right { min-width: 0; }
    .nav a, .nav button { padding: 0.45rem 0.65rem; font-size: 0.82rem; }
    /* Compact selector on small screens */
    .header-lang-mobile .lang-select-btn { padding: 0.35rem 0.5rem; font-size: 0.8rem; gap: 0.3rem; }

    .container { padding: 0 1rem; }

    .hero { padding: 3.5rem 0 6rem; min-height: 480px; }

    .booking-form { grid-template-columns: 1fr; }
    .booking-form .field { border-bottom: 1px solid var(--line-soft); padding: 0.65rem 0.85rem; }
    .booking-form .field:nth-last-child(2) { border-bottom: 0; }

    .section { padding: 3rem 0; }
    .section h2 { font-size: 1.85rem; }

    .modal { padding: 1.5rem; }
    .modal h3 { font-size: 1.5rem; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .gallery-info { padding: 1.25rem 1.25rem 1.5rem; }

    .confirm { padding: 3.5rem 1rem; }
    .confirm h2 { font-size: 2rem; }
    .confirm-detail { padding: 1.25rem; }
    .confirm-detail dl { grid-template-columns: 1fr; gap: 0; }
    .confirm-detail dt { margin-top: 0.7rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
    .confirm-detail dl > dt:first-child { margin-top: 0; }
    .confirm-detail dd { margin: 0.15rem 0 0; }

    .admin-content { padding: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat { padding: 1rem; }
    .stat-icon { width: 36px; height: 36px; font-size: 1rem; }
    .stat-value { font-size: 1.4rem; }
    th, td { padding: 0.65rem 0.85rem; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-filters select, .toolbar > .btn { width: 100%; }

    .login { padding: 1rem; }
    .login-card { padding: 1.5rem; }
    .toast { left: 1rem; right: 1rem; transform: none; max-width: none; text-align: center; }
}

@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; }
    .container { padding: 0 0.85rem; }
    .nav a, .nav button { font-size: 0.78rem; padding: 0.4rem 0.5rem; }
}

/* ============================================================
   ROOM DETAIL PAGE — full page replacing modal flow
   ============================================================ */
.room-page {
    background: var(--bg);
    min-height: calc(100vh - var(--header-h));
}
.room-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--green-800); text-decoration: none;
    font-size: 0.88rem; font-weight: 600;
    padding: 0.5rem 0.85rem; border-radius: 8px;
    background: transparent;
    transition: background 0.15s;
}
.room-back:hover { background: var(--green-50); }

.room-hero {
    padding: 1.5rem 0 0;
}
.room-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    max-height: 540px;
    cursor: pointer;
    background: var(--green-100);
}
.room-gallery > div {
    background: var(--green-100) center / cover no-repeat;
    transition: opacity 0.15s;
}
.room-gallery > div:first-child {
    grid-row: 1 / -1;
}
.room-gallery:hover > div { opacity: 0.92; }
.room-gallery-more {
    position: relative;
}
.room-gallery-more::after {
    content: attr(data-more);
    position: absolute; inset: 0;
    background: rgba(10,51,38,0.55);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 600;
    backdrop-filter: blur(2px);
}

.room-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    padding: 3rem 0;
}
.room-info h1 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2.25rem, 4vw, 3rem);
    margin: 0 0 0.5rem;
    color: var(--green-900);
    letter-spacing: -0.01em;
    line-height: 1.05;
}
.room-info-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    color: var(--muted); font-size: 0.92rem;
    margin: 0 0 2rem;
}
.room-info-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.room-info h2 {
    font-family: var(--display); font-weight: 700;
    font-size: 1.5rem; color: var(--green-900);
    margin: 2.5rem 0 0.85rem; letter-spacing: -0.005em;
}
.room-info p { color: var(--ink-soft); line-height: 1.7; margin: 0; }

.room-amenities {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem; margin-top: 1rem;
}
.room-amenity {
    display: flex; align-items: center; gap: 0.65rem;
    color: var(--ink-soft); font-size: 0.92rem;
}
.room-amenity-icon {
    width: 32px; height: 32px;
    background: var(--green-50); color: var(--green-800);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Booking sidebar (sticky) */
.room-booking {
    position: sticky; top: calc(var(--header-h) + 1rem);
    align-self: start;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.room-booking-price {
    display: flex; align-items: baseline; gap: 0.4rem;
    padding-bottom: 1.25rem; margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}
.room-booking-price .amount {
    font-family: var(--display); font-size: 2rem; font-weight: 700;
    color: var(--green-900); line-height: 1;
}
.room-booking-price .per { color: var(--muted); font-size: 0.85rem; }
.room-booking .field { margin-bottom: 0.85rem; }
.room-booking .room-totals {
    background: var(--green-50); border-radius: 8px;
    padding: 0.85rem 1rem; margin: 1rem 0 1.25rem;
    font-size: 0.92rem;
}
.room-booking .room-totals dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem; }
.room-booking .room-totals dt { color: var(--ink-soft); margin: 0; }
.room-booking .room-totals dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.room-booking .room-totals .grand {
    grid-column: 1 / -1; margin-top: 0.5rem; padding-top: 0.6rem;
    border-top: 1px solid rgba(15,74,55,0.15);
    display: flex; justify-content: space-between; align-items: baseline;
}
.room-booking .room-totals .grand-label { font-weight: 600; color: var(--green-900); }
.room-booking .room-totals .grand-amount {
    font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--green-900);
}
.room-booking-availability {
    text-align: center; font-size: 0.83rem; padding: 0.5rem 0;
    border-radius: 6px; margin-bottom: 0.85rem; font-weight: 500;
}
.room-booking-availability.ok { color: var(--ok); background: var(--st-confirmed-bg); }
.room-booking-availability.no { color: var(--err); background: var(--st-cancelled-bg); }

/* Lightbox (full gallery view) */
.lightbox {
    position: fixed; inset: 0; background: rgba(10,15,12,0.95);
    z-index: 200; padding: 2rem 1rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: fade 0.2s ease;
}
.lightbox-img {
    max-width: min(1200px, 100%); max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}
.lightbox-counter {
    color: rgba(255,255,255,0.7); font-size: 0.85rem;
    margin-top: 1rem; text-align: center;
}
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 0; cursor: pointer;
    color: #fff; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 0; cursor: pointer;
    color: #fff; font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ============================================================
   PHOTO UPLOADER (admin TypeForm)
   ============================================================ */
.photo-uploader { margin-top: 0.5rem; }
.photo-uploader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.photo-thumb {
    position: relative;
    aspect-ratio: 1;
    background: var(--green-50) center / cover no-repeat;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.photo-thumb-cover {
    position: absolute; top: 6px; left: 6px;
    background: var(--green-800); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    padding: 0.2rem 0.5rem; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.photo-thumb-remove {
    position: absolute; top: 6px; right: 6px;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,0,0,0.7); border: 0; cursor: pointer;
    color: #fff; font-size: 0.95rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.photo-thumb-remove:hover { background: var(--err); }
.photo-add {
    aspect-ratio: 1;
    border: 2px dashed var(--line);
    border-radius: 8px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.4rem;
    color: var(--muted); cursor: pointer;
    background: var(--paper-warm);
    font-size: 0.78rem; font-weight: 500;
    transition: all 0.15s;
    text-align: center; padding: 0.5rem;
}
.photo-add:hover {
    border-color: var(--green-800); color: var(--green-800);
    background: var(--green-50);
}
.photo-add svg { width: 24px; height: 24px; }
.photo-uploader input[type="file"] { display: none; }
.photo-uploader-status {
    font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem;
}
.photo-uploader-status.error { color: var(--err); }

/* ============================================================
   MODAL ACTIONS — fix mobile button row touching edges
   ============================================================ */
.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.modal-actions .btn {
    min-width: 0;
}

@media (max-width: 540px) {
    .modal-actions {
        flex-direction: column-reverse;  /* primary stays visually on top when stacked */
        gap: 0.5rem;
    }
    .modal-actions .btn { width: 100%; }
}

/* ============================================================
   ROOM PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .room-body {
        grid-template-columns: 1fr;
        gap: 2rem; padding: 2rem 0;
    }
    .room-booking {
        position: static; padding: 1.5rem;
    }
    .room-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        aspect-ratio: 4 / 3;
        max-height: 400px;
    }
    .room-gallery > div:first-child {
        grid-column: 1 / -1; grid-row: 1;
    }
}

@media (max-width: 540px) {
    .room-gallery {
        aspect-ratio: 4 / 3; max-height: 320px;
        gap: 0.3rem;
    }
    .room-info h1 { font-size: 1.85rem; }
    .room-amenities { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-close { top: 1rem; right: 1rem; }
}

/* ============================================================
   Voucher status icons (in reservations table)
   ============================================================ */
.voucher-status {
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.vs-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--bg);
    color: #b9b3a4;
    border: 1px solid var(--line-soft);
    transition: all 0.15s ease;
}
.vs-icon.done {
    background: var(--green-50);
    color: var(--green-900);
    border-color: var(--green-800);
}

/* ============================================================
   Voucher modal
   ============================================================ */
.modal-wide { max-width: 720px; }

.voucher-printable {
    background: var(--paper);
    padding: 1rem 0.5rem 1.5rem;
    color: var(--ink);
}
.voucher-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem; margin-bottom: 1.25rem;
    text-align: center;
}
.voucher-hotel {
    font-family: var(--display);
    font-size: 1.7rem; color: var(--green-900);
    line-height: 1.1;
}
.voucher-tag {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted); margin-top: 0.4rem;
}
.voucher-title { margin-bottom: 1.25rem; }
.voucher-kicker {
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
}
.voucher-ref {
    font-family: var(--display);
    font-size: 1.6rem; font-weight: 600; color: var(--green-900);
    margin: 0.4rem 0 0.5rem;
}
.voucher-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 1.5rem;
    margin: 0;
    font-size: 0.95rem;
}
.voucher-grid dt {
    color: var(--muted);
    border-top: 1px solid var(--line-soft);
    padding-top: 0.6rem;
}
.voucher-grid dd {
    margin: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 0.6rem;
}
.voucher-grid dt:first-of-type,
.voucher-grid dd:first-of-type {
    border-top: 0; padding-top: 0;
}
.voucher-total-label {
    border-top: 2px solid var(--green-900) !important;
    padding-top: 0.85rem !important;
    font-weight: 600; color: var(--ink) !important;
}
.voucher-total-value {
    border-top: 2px solid var(--green-900) !important;
    padding-top: 0.85rem !important;
    font-size: 1.15rem; font-weight: 700; color: var(--green-900);
}
.voucher-notes {
    margin-top: 1.25rem;
    background: var(--bg); border: 1px solid var(--line-soft);
    border-radius: 8px; padding: 0.85rem 1rem;
    font-size: 0.9rem;
}
.voucher-notes .voucher-kicker { margin-bottom: 0.3rem; }
.voucher-foot {
    margin-top: 1.5rem; padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem; color: var(--muted);
    text-align: center;
}

.voucher-actions {
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px dashed var(--line);
    display: flex; flex-direction: column; gap: 0.75rem;
}
.voucher-status-row {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.88rem; color: var(--ink);
}
.voucher-status-text { color: var(--muted); }
.vs-icon.done + .voucher-status-text { color: var(--ink); }

.voucher-email-row {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    align-items: stretch;
}
.voucher-email-row input {
    flex: 1; min-width: 200px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line); border-radius: 8px;
    background: #fff; font: inherit;
}
.voucher-email-row input:focus {
    outline: none; border-color: var(--green-800);
}
.voucher-email-row .btn,
.voucher-button-row .btn {
    display: inline-flex; align-items: center;
}
.voucher-button-row {
    display: flex; gap: 0.5rem; justify-content: flex-end;
    margin-top: 0.5rem;
}

/* (The voucher is printed in a dedicated popup window — see VoucherModal.handlePrint.
   We used to have a body-wide @media print rule here but it was fragile on nested
   modal layouts. The popup approach decouples print layout from the screen DOM.) */

/* ============================================================
   Availability calendar
   ============================================================ */

/* Compact "Voir" pill in the Disponibilité column */
.avail-btn {
    display: inline-flex; align-items: center;
    padding: 0.35rem 0.7rem;
    background: var(--paper); color: var(--green-900);
    border: 1px solid var(--line); border-radius: 999px;
    font: inherit; font-size: 0.85rem; cursor: pointer;
    transition: all 0.15s ease;
}
.avail-btn:hover {
    background: var(--green-50);
    border-color: var(--green-800);
}

.cal-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem;
    margin: 1.25rem 0 0.75rem;
}
.cal-month {
    font-family: var(--display);
    font-size: 1.25rem; color: var(--green-900);
    min-width: 12rem; text-align: center;
    text-transform: capitalize;
}

.cal-legend {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.cal-chip {
    display: inline-flex; align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 500;
    border: 1px solid transparent;
}
.cal-chip::before {
    content: ''; display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 0.45rem;
}
.cal-chip.cal-free    { background: #ebf6e6; color: #2d6a4f; }
.cal-chip.cal-free::before    { background: #4caf50; }
.cal-chip.cal-pending { background: #fff3e0; color: #a86a16; }
.cal-chip.cal-pending::before { background: #f4a02b; }
.cal-chip.cal-booked  { background: #fde2e4; color: #9b2226; }
.cal-chip.cal-booked::before  { background: #d23645; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 0 auto 1.25rem;
    max-width: 380px;          /* keep the calendar compact in the wide modal */
}
.cal-weekday {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.35rem 0 0.5rem;
}
.cal-day {
    aspect-ratio: 1 / 1;
    max-height: 46px;          /* prevent huge cells when modal is wide */
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--paper);
    font: inherit; font-size: 0.88rem; font-weight: 500;
    color: var(--ink);
    cursor: default;
    padding: 0;
    transition: all 0.12s ease;
}
.cal-day-empty {
    border: none; background: transparent; cursor: default;
}
.cal-free    { background: #ebf6e6; color: #2d6a4f; border-color: #c8e6c9; }
.cal-pending { background: #fff3e0; color: #8a5310; border-color: #ffe0b2; }
.cal-booked  { background: #fde2e4; color: #9b2226; border-color: #f8c9cd; }

.cal-today {
    box-shadow: 0 0 0 2px var(--green-900);
    font-weight: 700;
}
.cal-clickable { cursor: pointer; }
.cal-clickable:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.cal-selected {
    box-shadow: 0 0 0 2px var(--green-900);
    transform: translateY(-1px);
}

.cal-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.85rem 0.5rem;
    background: var(--bg);
    border-radius: 8px;
}

.cal-detail {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.cal-detail-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; margin-bottom: 0.85rem;
}
.cal-detail-ref {
    font-family: var(--display);
    font-size: 1.3rem; color: var(--green-900); font-weight: 600;
}
.cal-detail-grid {
    display: grid; grid-template-columns: max-content 1fr;
    gap: 0.45rem 1.25rem;
    margin: 0; font-size: 0.92rem;
}
.cal-detail-grid dt { color: var(--muted); }
.cal-detail-grid dd { margin: 0; }

/* Phone tweaks — smaller day cells, tighter gaps */
@media (max-width: 540px) {
    .cal-grid { gap: 4px; }
    .cal-day  { font-size: 0.85rem; border-radius: 6px; }
    .cal-month { font-size: 1.05rem; min-width: 9rem; }
    .cal-detail-grid { grid-template-columns: 1fr; gap: 0.3rem 0; }
    .cal-detail-grid dt { font-size: 0.78rem; }
}

/* ============================================================
   Theme settings — color pickers & hero-bg uploader
   ============================================================ */
.color-field-row {
    display: flex; align-items: center; gap: 0.5rem;
}
.color-swatch-input {
    width: 44px; height: 44px;
    padding: 0; border: 1px solid var(--line); border-radius: 8px;
    background: transparent; cursor: pointer;
    flex-shrink: 0;
}
.color-swatch-input::-webkit-color-swatch-wrapper { padding: 4px; }
.color-swatch-input::-webkit-color-swatch { border: 0; border-radius: 5px; }
.color-swatch-input::-moz-color-swatch { border: 0; border-radius: 5px; }
.color-hex-input {
    flex: 1; min-width: 100px;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line); border-radius: 8px;
    font: inherit; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    background: #fff;
}
.color-hex-input:focus { outline: none; border-color: var(--green-800); }
.color-hex-input:invalid:not(:placeholder-shown) {
    border-color: var(--err); background: #fff8f9;
}

.hero-bg-uploader {
    display: flex; flex-direction: column; gap: 0.7rem;
}
.hero-bg-preview-big {
    aspect-ratio: 16 / 7;
    background: var(--bg-deep) center / cover no-repeat;
    border: 2px dashed var(--line);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    overflow: hidden; position: relative;
    transition: border-color 0.15s ease;
}
.hero-bg-preview-big.has-image {
    border: 2px solid var(--green-800);
    color: #fff;
}
.hero-bg-preview-content { text-align: center; padding: 1rem; }
.hero-bg-preview-eyebrow {
    font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(255,255,255,0.85); margin-bottom: 0.4rem;
}
.hero-bg-preview-title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
}
.hero-bg-actions {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.hero-bg-actions .btn {
    cursor: pointer;
    display: inline-flex; align-items: center;
}

/* ============================================================
   New reservation modal — live summary + inline mini calendar
   ============================================================ */

/* Live summary card shown as soon as a unit is selected */
.reservation-summary {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.rs-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.3rem 0;
}
.rs-label { color: var(--muted); }
.rs-value { font-weight: 500; color: var(--ink); }
.rs-total {
    border-top: 2px solid var(--green-900);
    margin-top: 0.4rem; padding-top: 0.55rem;
}
.rs-total .rs-label { color: var(--ink); font-weight: 600; }
.rs-total .rs-value { font-size: 1.15rem; font-weight: 700; color: var(--green-900); }
.rs-warning {
    margin-top: 0.7rem;
    padding: 0.55rem 0.75rem;
    background: #fde2e4; color: #9b2226;
    border: 1px solid #f8c9cd; border-radius: 8px;
    font-size: 0.85rem; font-weight: 500;
}

/* Mini calendar block */
.mini-cal-block {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem 1rem;
    margin-bottom: 1.1rem;
    max-width: 340px;       /* keep the calendar compact, not full modal width */
    margin-left: auto;
    margin-right: auto;
}
.mini-cal-head {
    display: flex; align-items: center; justify-content: center;
    gap: 0.85rem; margin-bottom: 0.65rem;
}
.mini-cal-title {
    font-family: var(--display);
    font-size: 1.05rem; color: var(--green-900);
    min-width: 11rem; text-align: center;
    text-transform: capitalize;
}
.mini-cal-legend {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    justify-content: center; margin-bottom: 0.65rem;
}
.mini-chip {
    display: inline-flex; align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 500;
}
.mini-chip::before {
    content: ''; display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    margin-right: 0.35rem;
}
.mini-chip.mini-free      { background: #ebf6e6; color: #2d6a4f; }
.mini-chip.mini-free::before     { background: #4caf50; }
.mini-chip.mini-pending   { background: #fff3e0; color: #a86a16; }
.mini-chip.mini-pending::before  { background: #f4a02b; }
.mini-chip.mini-booked    { background: #fde2e4; color: #9b2226; }
.mini-chip.mini-booked::before   { background: #d23645; }
.mini-chip.mini-selected  { background: var(--green-900); color: #fff; }
.mini-chip.mini-selected::before { background: #fff; }

/* The 7-column grid itself */
.mini-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.mini-cal-grid[aria-busy="true"] { opacity: 0.55; pointer-events: none; }
.mini-cal-weekday {
    text-align: center;
    font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); padding: 0.2rem 0 0.35rem;
}
.mini-cal-day {
    aspect-ratio: 1 / 1;
    max-height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-soft); border-radius: 6px;
    background: var(--paper);
    font: inherit; font-size: 0.82rem; font-weight: 500;
    color: var(--ink); cursor: pointer; padding: 0;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.mini-cal-empty { border: 0; background: transparent; cursor: default; }

/* Status colors — mirror the bigger availability calendar */
.mini-cal-day.mini-free    { background: #ebf6e6; color: #2d6a4f; border-color: #c8e6c9; }
.mini-cal-day.mini-pending { background: #fff3e0; color: #8a5310; border-color: #ffe0b2; cursor: not-allowed; }
.mini-cal-day.mini-booked  { background: #fde2e4; color: #9b2226; border-color: #f8c9cd; cursor: not-allowed; }

.mini-cal-day.mini-past {
    opacity: 0.35; cursor: not-allowed;
}
.mini-cal-day.mini-today {
    box-shadow: inset 0 0 0 1.5px var(--green-900);
    font-weight: 700;
}

/* User's selected range — clear visual feedback */
.mini-cal-day.mini-in-range {
    background: var(--green-100) !important;
    color: var(--green-900);
    border-color: var(--green-800);
}
.mini-cal-day.mini-endpoint {
    background: var(--green-900) !important;
    color: #fff !important;
    border-color: var(--green-900);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(10,51,38,0.25);
}
.mini-cal-day:hover:not(:disabled):not(.mini-endpoint) {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* Phone — tighter grid */
@media (max-width: 540px) {
    .mini-cal-grid { gap: 3px; }
    .mini-cal-day  { font-size: 0.72rem; border-radius: 5px; }
    .mini-cal-title { font-size: 0.92rem; min-width: 8rem; }
}

/* ============================================================
   Page banner (top of Hebergements / Contact)
   ============================================================ */
.page-banner {
    background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 100%);
    color: #fff;
    padding: 5rem 0 5.5rem;
    text-align: center;
    position: relative;
}
.page-banner::after {
    content: ""; position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
    width: 48px; height: 2px; background: var(--gold);
}
.page-banner .section-eyebrow {
    color: var(--gold);
    margin-bottom: 1rem;
    justify-content: center;
}
.page-banner-title {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.06; letter-spacing: -0.03em;
    margin: 0 0 0.95rem; color: #fff;
}
.page-banner-sub {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem; line-height: 1.6;
    max-width: 560px; margin: 0 auto;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.contact-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--green-50); color: var(--green-800);
    display: flex; align-items: center; justify-content: center;
}
.contact-card h3 {
    font-family: var(--display); font-weight: 700;
    font-size: 1.35rem; margin: 0 0 0.5rem;
    color: var(--green-900);
}
.contact-card p {
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}
.contact-link {
    color: var(--green-800);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.contact-link:hover { color: var(--green-700); }
.contact-note {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.contact-note a {
    color: var(--green-800); font-weight: 600;
    text-decoration: none;
}
.contact-note a:hover { text-decoration: underline; }

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-card { padding: 1.5rem 1.25rem; }
}
@media (max-width: 540px) {
    .page-banner { padding: 2.75rem 0 3rem; }
}

/* ============================================================
   Content editor (admin → Contenus des pages)
   ============================================================ */
.content-section-tabs {
    display: flex; gap: 0.4rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}
.content-section-tab {
    flex-shrink: 0;
    font: inherit; font-size: 0.9rem; font-weight: 500;
    padding: 0.65rem 1.1rem;
    background: var(--paper); color: var(--ink-soft);
    border: 1px solid var(--line); border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.content-section-tab:hover {
    border-color: var(--green-800);
    color: var(--green-800);
}
.content-section-tab.active {
    background: var(--green-800); color: #fff;
    border-color: var(--green-800);
}
.content-editor-actions {
    display: flex; gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.content-editor-actions .btn {
    display: inline-flex; align-items: center;
}

/* Make textareas in admin look like the inputs (consistent visual) */
.admin-content textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line); border-radius: 8px;
    font: inherit; background: #fff;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
}
.admin-content textarea:focus { outline: none; border-color: var(--green-800); }

@media (max-width: 540px) {
    .content-editor-actions { flex-direction: column; }
    .content-editor-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Document uploader + extra guests + ID block
   ============================================================ */
.doc-uploader-preview {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.6rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.doc-uploader-pdf {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--paper); color: var(--green-900);
    border: 1px solid var(--line); border-radius: 6px;
    font-weight: 500;
}
.doc-uploader-actions {
    display: flex; gap: 0.4rem; margin-left: auto;
    flex-wrap: wrap;
}

.extra-guests {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 10px;
    padding: 1rem 1rem 1rem;
    margin: 0.85rem 0;
}
.extra-guests-head {
    font-size: 0.85rem; font-weight: 600;
    color: var(--green-900);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}
.extra-guest-block {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
    margin-bottom: 0.65rem;
}
.extra-guest-block:last-of-type { margin-bottom: 0; }
.extra-guest-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; font-weight: 600;
    color: var(--green-900);
    margin-bottom: 0.55rem;
}
.extra-guest-index {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-800); color: #fff;
    border-radius: 50%;
    font-size: 0.72rem; font-weight: 700;
    flex-shrink: 0;
}
.extra-guest-block input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line); border-radius: 6px;
    font: inherit; background: #fff;
    font-size: 0.9rem;
    /* CRITICAL: without box-sizing the 0.8rem padding + 1px border push the
       input wider than its 100%-of-parent container on mobile, which is why
       the form was touching the right edge of the screen. */
    box-sizing: border-box;
}
.extra-guest-block input:focus { outline: none; border-color: var(--green-800); }

.voucher-extras {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
}
.voucher-extras ol {
    margin: 0.45rem 0 0; padding-left: 1.25rem;
    font-size: 0.92rem;
}
.voucher-extras li { padding: 0.25rem 0; }
.voucher-extras a {
    color: var(--green-800); font-weight: 500;
    text-decoration: none; border-bottom: 1px solid currentColor;
}

@media (max-width: 540px) {
    .doc-uploader-preview { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .doc-uploader-actions { margin-left: 0; }
}

/* ============================================================
   Room page — policies grid + nearby services
   ============================================================ */
.room-policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.room-policy {
    background: var(--paper-warm);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}
.room-policy-title {
    font-weight: 600;
    color: var(--green-900);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.room-policy p {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}
.room-nearby {
    list-style: none; padding: 0; margin: 1rem 0 0;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
}
.room-nearby li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 0.92rem;
    color: var(--ink-soft);
}

/* Room booking aside (the form on the right of the page) — make sure on
   tight phones the inputs have breathing room from the screen edge. */
@media (max-width: 720px) {
    .room-booking { padding: 1.25rem; }
}
@media (max-width: 540px) {
    .room-policy-grid,
    .room-nearby { grid-template-columns: 1fr; }
    .room-booking { padding: 1rem; border-radius: 12px; }
    /* Defensive: make sure all form inputs inside a card never exceed their
       container width — combats third-party CSS / browser quirks on Android */
    .room-booking input,
    .room-booking select,
    .room-booking textarea,
    .modal input,
    .modal select,
    .modal textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================================
   Back-to-top floating button
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 1.25rem; bottom: 1.25rem;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-800); color: #fff;
    border: 0; border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(10,51,38,0.30);
    /* Initially hidden + offscreen so it doesn't intercept scroll-area clicks
       on touch when invisible. */
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.25s ease,
                transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
                background 0.15s;
    z-index: 90;   /* under the modal/drawer (z>=98) but above page content */
}
.back-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.back-to-top:hover    { background: var(--green-700); }
.back-to-top:active   { transform: translateY(0) scale(0.93); }
.back-to-top:focus    { outline: none; box-shadow: 0 6px 16px rgba(10,51,38,0.30), 0 0 0 3px rgba(15,74,55,0.30); }

@media (max-width: 540px) {
    .back-to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }
}

/* ============================================================
   Hébergements admin — type cards with nested units
   ============================================================ */
.heb-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.heb-card-head {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.25rem;
    padding: 1.25rem;
    align-items: center;
}
.heb-card-cover {
    width: 120px; height: 90px;
    border-radius: 10px;
    background: var(--bg-deep) center / cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 1.5rem;
    flex-shrink: 0;
}
.heb-card-info { min-width: 0; }
.heb-card-title {
    font-family: var(--display);
    font-size: 1.4rem; font-weight: 600;
    color: var(--green-900);
    line-height: 1.15;
    margin-bottom: 0.35rem;
}
.heb-card-meta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    color: var(--muted); font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.heb-card-desc {
    color: var(--ink-soft); font-size: 0.9rem;
    line-height: 1.5;
    /* Clamp to 2 lines max */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.heb-card-actions {
    display: flex; gap: 0.4rem;
    flex-shrink: 0;
}
.heb-card-units {
    border-top: 1px solid var(--line-soft);
    background: var(--paper-warm);
}
.heb-units-toggle {
    width: 100%;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: transparent; border: 0;
    font: inherit; font-size: 0.9rem; font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    text-align: left;
}
.heb-units-toggle:hover { color: var(--green-800); }
.heb-toggle-icon {
    display: inline-block; width: 16px; text-align: center;
    color: var(--green-800);
}
.heb-units-body {
    padding: 0 1.25rem 1.25rem;
}
.heb-units-table {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.heb-units-table th,
.heb-units-table td {
    padding: 0.6rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.9rem;
}
.heb-units-table tr:last-child td { border-bottom: 0; }
.heb-units-table th {
    background: var(--bg);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); font-weight: 600;
}
.heb-add-unit {
    width: 100%; justify-content: center;
}

/* ============================================================
   TypeForm — sectioned editor
   ============================================================ */
.form-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    overflow: hidden;
}
.form-section-head {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    padding: 0;
}
.form-section-toggle {
    flex: 1;
    background: transparent; border: 0; cursor: pointer;
    padding: 0.85rem 1rem;
    font: inherit; font-size: 0.95rem; font-weight: 600;
    color: var(--green-900);
    display: flex; align-items: center; gap: 0.5rem;
    text-align: left;
}
.form-section-icon {
    display: inline-block; width: 14px; text-align: center;
    color: var(--green-800);
}
.form-section-actions {
    padding-right: 0.85rem;
    display: flex; gap: 0.4rem;
}
.form-section-body {
    padding: 1rem 1.1rem;
}
.form-section:has(> :not(.form-section-head)) .form-section-head {
    border-bottom: 1px solid var(--line-soft);
}

/* "Currently using defaults" preview */
.defaults-preview {
    padding: 0.5rem 0;
}
.defaults-list {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.defaults-chip {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    background: var(--green-50); color: var(--green-900);
    border: 1px solid var(--green-100);
    border-radius: 999px;
    font-size: 0.82rem;
}

/* Generic list editor */
.list-editor { display: flex; flex-direction: column; gap: 0.6rem; }
.list-editor-row {
    display: flex; gap: 0.5rem;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 0.5rem;
}
.list-editor-row input,
.list-editor-row textarea {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line); border-radius: 6px;
    font: inherit; background: #fff;
    font-size: 0.9rem;
    min-width: 0;
    box-sizing: border-box;
}
.list-editor-row input:focus,
.list-editor-row textarea:focus { outline: none; border-color: var(--green-800); }
.list-editor-controls {
    display: flex; gap: 0.25rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}
.list-editor-btn {
    width: 28px; height: 28px;
    background: var(--paper); color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font: inherit; font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.list-editor-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.list-editor-btn:hover:not(:disabled) {
    background: var(--green-50); border-color: var(--green-800); color: var(--green-900);
}
.list-editor-remove:hover:not(:disabled) {
    background: #fde2e4; border-color: var(--err); color: var(--err);
}

@media (max-width: 720px) {
    .heb-card-head {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        text-align: center;
    }
    .heb-card-cover {
        width: 100%; height: 140px;
    }
    .heb-card-meta { justify-content: center; }
    .heb-card-actions { justify-content: center; }
    .heb-card-desc { -webkit-line-clamp: 3; }
    .list-editor-row { flex-wrap: wrap; }
    .list-editor-row input,
    .list-editor-row textarea {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

/* ============================================================
   Room chooser (type page → choose a specific room)
   ============================================================ */
.room-chooser-hint {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5;
}
.room-choices {
    max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem 4rem;
}
.room-choices-title {
    font-family: var(--display); font-weight: 700;
    font-size: 1.85rem; color: var(--green-900);
    margin: 0 0 1.5rem;
}
.room-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.room-choice-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.room-choice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.room-choice-photo {
    aspect-ratio: 16 / 10;
    background: var(--bg-deep) center / cover no-repeat;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.room-choice-noimg { font-size: 2rem; color: var(--muted); }
.room-choice-view {
    position: absolute; top: 0.75rem; left: 0.75rem;
    background: rgba(10,51,38,0.85); color: #fff;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
    backdrop-filter: blur(4px);
}
.room-choice-body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex; flex-direction: column; gap: 0.6rem; flex: 1;
}
.room-choice-name {
    font-family: var(--display); font-weight: 700;
    font-size: 1.25rem; color: var(--green-900);
}
.room-choice-desc {
    color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.room-choice-foot {
    margin-top: auto;
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; padding-top: 0.5rem;
}
.room-choice-price { display: flex; flex-direction: column; }
.rcp-amount { font-size: 1.3rem; font-weight: 700; color: var(--green-900); }
.rcp-per { font-size: 0.8rem; color: var(--muted); }
.rcp-total { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.25rem; }

.heb-unit-view { color: var(--gold); font-weight: 500; font-size: 0.85rem; }

@media (max-width: 540px) {
    .room-choices { padding: 1rem 1rem 3rem; }
    .room-choice-grid { grid-template-columns: 1fr; gap: 1rem; }
    .room-choices-title { font-size: 1.5rem; }
    .room-choice-foot { flex-direction: column; align-items: stretch; }
    .room-choice-foot .btn { width: 100%; }
}

/* Room browse card — view badge */
.unit-card-img { position: relative; }
.unit-card-view {
    position: absolute; top: 0.7rem; left: 0.7rem;
    background: rgba(10,51,38,0.85); color: #fff;
    padding: 0.28rem 0.65rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Login helper links + reset confirmation */
.login-link {
    color: var(--green-800); font-size: 0.88rem; text-decoration: none;
    border-bottom: 1px solid transparent; transition: border-color 0.15s;
}
.login-link:hover { border-bottom-color: var(--green-800); }
.reset-sent {
    background: var(--green-50); border: 1px solid var(--green-100);
    color: var(--green-900); border-radius: 10px;
    padding: 1rem 1.1rem; font-size: 0.9rem; line-height: 1.55;
}

/* Per-type unit search + pager (admin) */
.heb-unit-search {
    position: relative; margin-bottom: 0.7rem;
}
.heb-unit-search input {
    width: 100%; box-sizing: border-box;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--line); border-radius: 8px;
    font: inherit; font-size: 0.88rem; background: #fff;
}
.heb-unit-search input:focus { outline: none; border-color: var(--green-800); }
.heb-unit-search-clear {
    position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border: 0; background: var(--bg);
    border-radius: 50%; cursor: pointer; color: var(--muted);
    font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.heb-unit-search-clear:hover { background: var(--line); color: var(--ink); }

.heb-unit-pager {
    display: flex; align-items: center; justify-content: center;
    gap: 0.85rem; margin-top: 0.75rem;
}
.heb-pager-btn {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--paper);
    font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--green-900);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.12s, border-color 0.12s;
}
.heb-pager-btn:hover:not(:disabled) { background: var(--green-50); border-color: var(--green-800); }
.heb-pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.heb-pager-info { font-size: 0.85rem; color: var(--ink); font-weight: 500; }

/* Front-end "indisponible" elements */
.room-unavail-badge {
    display: inline-block; margin-left: 0.75rem; vertical-align: middle;
    background: #fde2e4; color: #9b2226; border: 1px solid #f8c9cd;
    padding: 0.28rem 0.7rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 600; font-family: var(--sans);
    letter-spacing: 0.02em;
}
.room-booking-blocked {
    background: #fde2e4; border: 1px solid #f8c9cd; color: #9b2226;
    border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.room-booking-blocked strong { font-size: 0.95rem; }
.room-booking-blocked span { font-size: 0.82rem; line-height: 1.5; }

/* Featured-on-home star in admin unit list */
.heb-unit-featured { color: var(--gold); font-weight: 600; font-size: 0.78rem; }

/* ============================================================
   Language selector
   ============================================================ */
.lang-select { position: relative; display: inline-block; }
.lang-select-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: transparent; border: 1px solid var(--line);
    border-radius: 999px; padding: 0.4rem 0.7rem;
    font: inherit; font-size: 0.85rem; font-weight: 600;
    color: var(--ink); cursor: pointer; transition: all 0.15s;
}
.lang-select-btn:hover { border-color: var(--green-800); color: var(--green-900); }
.lang-select-current { letter-spacing: 0.04em; }
.lang-select-caret { font-size: 0.7rem; opacity: 0.7; }
.lang-select-menu {
    position: absolute; right: 0; top: calc(100% + 0.4rem);
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow);
    min-width: 160px; padding: 0.35rem; z-index: 1200;
}
.lang-select-item {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; background: transparent; border: 0; cursor: pointer;
    padding: 0.55rem 0.7rem; border-radius: 8px;
    font: inherit; font-size: 0.9rem; color: var(--ink); text-align: left;
}
.lang-select-item:hover { background: var(--green-50); }
.lang-select-item.active { background: var(--green-50); color: var(--green-900); font-weight: 600; }
.lang-select-item-short { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.mobile-drawer-lang { padding: 0.5rem 0; }

/* RTL (Arabic) support */
body.rtl { direction: rtl; }
body.rtl .lang-select-menu { right: auto; left: 0; }
body.rtl .header-left { text-align: right; }
body.rtl .room-info-meta,
body.rtl .heb-card-meta,
body.rtl .unit-card-meta { flex-direction: row-reverse; }
body.rtl .lang-select-item { text-align: right; }
body.rtl dl,
body.rtl .field { text-align: right; }
body.rtl .btn .lang-select-caret { transform: scaleX(-1); }

/* Hébergements page — live search bar */
.heb-search-bar {
    position: relative; max-width: 520px; margin: 0 auto 2rem;
    display: flex; align-items: center;
}
.heb-search-bar .heb-search-icon {
    position: absolute; left: 1rem; font-size: 1.2rem; color: var(--muted); pointer-events: none;
}
.heb-search-bar input {
    width: 100%; box-sizing: border-box;
    padding: 0.85rem 2.6rem;
    border: 1px solid var(--line); border-radius: 999px;
    font: inherit; font-size: 0.95rem; background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.heb-search-bar input:focus { outline: none; border-color: var(--green-800); }
.heb-search-clear {
    position: absolute; right: 0.8rem; width: 26px; height: 26px;
    border: 0; background: var(--bg); border-radius: 50%; cursor: pointer;
    color: var(--muted); font-size: 1.1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.heb-search-clear:hover { background: var(--line); color: var(--ink); }
body.rtl .heb-search-bar .heb-search-icon { left: auto; right: 1rem; }
body.rtl .heb-search-clear { right: auto; left: 0.8rem; }

/* Language selector inside admin topbar */
.admin-topbar-right { gap: 0.6rem; flex-wrap: nowrap; }
.admin-topbar-right .lang-select-btn { padding: 0.35rem 0.6rem; }

/* On mobile, keep the topbar on one row and show only the username (no role)
   so the language selector doesn't overlap the user block. */
@media (max-width: 720px) {
    .admin-topbar { gap: 0.5rem; flex-wrap: nowrap; }
    .admin-topbar-right { gap: 0.4rem; flex-shrink: 0; }
    .admin-user { padding: 0.3rem 0.6rem 0.3rem 0.3rem; gap: 0.45rem; }
    .admin-user-role { display: none; }
    .admin-user-name { font-size: 0.82rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============================================================
   HERO MEDIA (public) — layered backdrop + content overlay
   ============================================================ */
.hero-has-media { position: relative; overflow: hidden; }
.hero-has-media .hero-media {
    position: absolute; inset: 0; z-index: 0;
}
.hero-has-media .hero-content {
    position: relative; z-index: 2;
}
.hero-bg-fallback {
    position: absolute; inset: 0;
    background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Slider */
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.35);
    font-size: 1.8rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: background 0.15s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.32); }
.hero-arrow-prev { left: 1.25rem; }
.hero-arrow-next { right: 1.25rem; }
.hero-dots {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 0.5rem;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,0.45); border: 0; padding: 0; transition: all 0.15s;
}
.hero-dot.active { background: #fff; width: 26px; border-radius: 5px; }
/* Video */
.hero-video-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.hero-video-yt {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77vh;
    transform: translate(-50%, -50%); border: 0; pointer-events: none;
}
.hero-video-overlay { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,51,38,0.55) 0%, rgba(10,51,38,0.35) 40%, rgba(10,51,38,0.85) 100%); }
/* Panorama */
.hero-pano-wrap { position: absolute; inset: 0; }
.hero-pano { position: absolute; inset: 0; }
.hero-pano-wrap .hero-video-overlay { pointer-events: none; }

/* ============================================================
   HERO EDITOR (admin)
   ============================================================ */
.hero-type-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1.25rem;
}
.hero-type-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    padding: 0.85rem 0.5rem; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--paper); cursor: pointer; transition: all 0.15s; font: inherit;
}
.hero-type-btn:hover { border-color: var(--green-800); }
.hero-type-btn.active { border-color: var(--green-800); background: var(--green-50); }
.hero-type-icon { font-size: 1.5rem; }
.hero-type-label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.hero-editor-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.hero-editor-preview {
    margin-top: 0.75rem; height: 130px; border-radius: 10px;
    background-position: center; background-size: cover; border: 1px solid var(--line);
}
.hero-uol-row { display: flex; gap: 0.5rem; align-items: stretch; }
.hero-uol-row input[type="text"] {
    flex: 1; box-sizing: border-box; padding: 0.6rem 0.75rem;
    border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.88rem;
}
.hero-uol-row input[type="text"]:focus { outline: none; border-color: var(--green-800); }
.hero-uol-upload { white-space: nowrap; display: inline-flex; align-items: center; }
.hero-slide-row {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap;
}
.hero-slide-num {
    width: 24px; height: 24px; border-radius: 50%; background: var(--green-800); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 600;
    flex-shrink: 0;
}
.hero-slide-controls { display: flex; gap: 0.2rem; }
.hero-slide-controls button {
    width: 28px; height: 28px; border: 1px solid var(--line); background: var(--paper);
    border-radius: 6px; cursor: pointer; font-size: 0.9rem; color: var(--ink);
}
.hero-slide-controls button:disabled { opacity: 0.35; cursor: not-allowed; }
.hero-slide-del { color: var(--danger) !important; }
.hero-slide-thumb {
    width: 46px; height: 46px; border-radius: 6px; background-position: center; background-size: cover;
    border: 1px solid var(--line); flex-shrink: 0;
}
.hero-radio-row { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.hero-radio-row label {
    display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
    padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 8px;
    font-size: 0.86rem; transition: all 0.15s;
}
.hero-radio-row label.active { border-color: var(--green-800); background: var(--green-50); }

/* ============================================================
   PAYMENTS — admin settings + public checkout
   ============================================================ */
.pay-cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.pay-cur-item {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem;
    padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
    transition: all 0.15s;
}
.pay-cur-item.active { border-color: var(--green-800); background: var(--green-50); }
.pay-cur-item.pay-cur-locked { opacity: 0.85; cursor: default; }
.pay-gateway { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.pay-gateway-head { }
.pay-switch { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.95rem; }
.pay-switch input { width: 18px; height: 18px; }
.pay-gateway-body { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.pay-mode-row, .pay-choose-options { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.pay-mode-row label, .pay-choose-opt {
    display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
    padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.86rem;
    transition: all 0.15s;
}
.pay-mode-row label.active, .pay-choose-opt.active { border-color: var(--green-800); background: var(--green-50); }
.pay-show-btn {
    position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
    border: 0; background: var(--bg); border-radius: 6px; padding: 0.25rem 0.55rem;
    font-size: 0.75rem; cursor: pointer; color: var(--ink-soft);
}
.pay-hint { font-size: 0.78rem; margin-top: 0.3rem; }
.pay-hint code { background: var(--bg-deep); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85em; }
.pay-choose { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pay-choose-options { margin-bottom: 0; }
/* Payment status badges (admin reservations) */
.pay-badge { display: inline-block; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.pay-badge.paid { background: #e6f4ea; color: #1e7a3d; }
.pay-badge.pending { background: #fff3e0; color: #8a5310; }
.pay-badge.unpaid { background: #f0f0ef; color: #777; }
.pay-badge.failed, .pay-badge.refunded { background: #fde2e4; color: #9b2226; }
body.rtl .pay-show-btn { right: auto; left: 0.4rem; }

/* ============================================================
   CONTACT FORM (public)
   ============================================================ */
.contact-form-wrap {
    max-width: 720px; margin: 0 auto; background: var(--paper);
    border: 1px solid var(--line); border-radius: 16px; padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.contact-form-title { font-family: var(--display); color: var(--green-900); margin: 0 0 0.4rem; }
.contact-form .field { margin-bottom: 1rem; }
.contact-charcount { text-align: right; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.contact-form-sent { text-align: center; }
.contact-form-sent .confirm-icon {
    width: 60px; height: 60px; border-radius: 50%; background: var(--green-50);
    color: var(--green-800); font-size: 1.8rem; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 1rem; border: 2px solid var(--green-100);
}

/* Booking locked notice (public room page) */
.room-booking-locked {
    background: #fff8ec; border: 1px solid #f3e2bd; color: #8a5310;
    border-radius: 10px; padding: 1rem 1.1rem; margin-top: 0.5rem;
    display: flex; flex-direction: column; gap: 0.3rem;
}
.room-booking-locked strong { font-size: 0.95rem; }
.room-booking-locked span { font-size: 0.84rem; line-height: 1.5; }

/* ============================================================
   MESSAGES (admin)
   ============================================================ */
.msg-head-count {
    font-size: 0.75rem; font-weight: 600; background: var(--danger, #c0392b);
    color: #fff; padding: 0.15rem 0.55rem; border-radius: 999px; margin-left: 0.6rem;
    vertical-align: middle;
}
.msg-filter { display: inline-flex; gap: 0.3rem; }
.msg-filter button {
    border: 1px solid var(--line); background: var(--paper); cursor: pointer;
    padding: 0.4rem 0.85rem; border-radius: 999px; font: inherit; font-size: 0.84rem; color: var(--ink-soft);
}
.msg-filter button.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.msg-list { display: flex; flex-direction: column; gap: 0.6rem; }
.msg-item {
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
    padding: 1rem 1.1rem; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.msg-item:hover { border-color: var(--green-800); box-shadow: var(--shadow-sm); }
.msg-item.unread { border-left: 3px solid var(--green-800); background: #fcfdfc; }
.msg-item-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.msg-reason {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--green-800); background: var(--green-50); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger, #c0392b); }
.msg-date { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
.msg-item-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; }
.msg-item-excerpt { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }
.msg-item-attach { margin-top: 0.5rem; display: flex; gap: 0.75rem; font-size: 0.76rem; color: var(--muted); }
.msg-detail { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; margin: 1rem 0; }
.msg-detail dt { color: var(--muted); font-size: 0.85rem; }
.msg-detail dd { margin: 0; font-weight: 500; }
.msg-body-box {
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 1rem; white-space: pre-wrap; line-height: 1.6; font-size: 0.92rem; color: var(--ink);
}
.msg-attachments { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
/* Sidebar unread badge */
.sidebar-badge {
    margin-left: auto; background: var(--danger, #c0392b); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px;
}
body.rtl .msg-date { margin-left: 0; margin-right: auto; }
body.rtl .sidebar-badge { margin-left: 0; margin-right: auto; }

/* Passport / ID document links in the reservations list */
.res-docs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.res-doc-link {
    display: inline-flex; align-items: center; gap: 0.2rem;
    font-size: 0.74rem; color: var(--green-800); text-decoration: none;
    background: var(--green-50); border: 1px solid var(--green-100);
    padding: 0.12rem 0.5rem; border-radius: 999px; white-space: nowrap;
}
.res-doc-link:hover { background: var(--green-100); }
