/* ==========================================================================
   CasaPerfetta — дизайн-система «бутик-эстетика»
   Тёплый кремовый фон + глубокий зелёный (акцент бренда) + терракотовый
   (акцент действия/CTA). Заголовки — шрифт с засечками (Fraunces/Georgia),
   текст — гуманистический гротеск. Мягкие тени, крупные скругления,
   просторная вёрстка вместо плотной таблично-каталожной.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
    /* Бренд */
    --green: #1F3D2E;
    --green-dark: #142A1F;
    --green-light: #E7EEE7;
    --terracotta: #C9682B;
    --terracotta-dark: #A6531F;
    --terracotta-light: #FBEADD;
    --gold: #B8863B;

    /* Совместимость с уже существующими компонентами (календарь и т.п.),
       которые ссылаются на эти имена переменных — переопределяем значения
       под новую палитру, а не переименовываем, чтобы не переписывать
       каждое отдельное правило. */
    --navy: var(--green);
    --navy-dark: var(--green-dark);
    --blue: var(--terracotta);
    --blue-dark: var(--terracotta-dark);
    --blue-light: var(--terracotta-light);
    --yellow: var(--gold);

    --ink: #26221C;
    --gray-900: #2C2A25;
    --gray-700: #59554C;
    --gray-500: #837C6E;
    --gray-300: #DCD5C6;
    --gray-200: #EAE4D6;
    --gray-100: #F4EFE3;
    --white: #FFFFFF;
    --cream: #FAF6EC;
    --success: #2F6B45;
    --success-bg: #E6F1E9;
    --danger: #B23B2E;
    --danger-bg: #FBEAE6;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(38,34,28,.08);
    --shadow: 0 6px 20px rgba(38,34,28,.10);
    --shadow-lg: 0 20px 48px rgba(38,34,28,.18);

    --font: "Inter", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: "Fraunces", "Noto Sans Arabic", Georgia, "Times New Roman", serif;
    --header-h: 76px;
}

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

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--green-dark);
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--cream);
    color: var(--ink);
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    border-bottom: 1px solid var(--gray-200);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.brand {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand span { color: var(--terracotta); }

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a.nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 9px 14px;
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.main-nav a.nav-link:hover { background: var(--green-light); color: var(--green-dark); }

.lang-switch { display: flex; gap: 4px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--gray-300); }
.lang-switch a {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gray-500);
}
.lang-switch a.active { background: var(--green); color: var(--white); }
.lang-switch a:not(.active):hover { background: var(--gray-100); }

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--green-dark);
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    cursor: pointer;
}

/* ---------- Hero / search ---------- */
.hero {
    background: radial-gradient(120% 140% at 15% 0%, #23422F 0%, var(--green) 45%, var(--green-dark) 100%);
    color: var(--white);
    padding: 96px 0 44px;
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.10) 100%, transparent),
                       radial-gradient(1px 1px at 90px 80px, rgba(255,255,255,.08) 100%, transparent);
    background-size: 140px 140px;
    pointer-events: none;
    z-index: -1;
}
.hero h1 {
    color: var(--white);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    max-width: 640px;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
    position: relative;
    z-index: 1;
}
.hero p.lead {
    color: #D9E3D4;
    font-size: 16px;
    line-height: 1.5;
    max-width: 540px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.search-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.9fr auto;
    gap: 2px;
    align-items: stretch;
    background-color: var(--gray-200);
    position: relative;
}
.field {
    background: var(--white);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.field:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.field label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    margin-bottom: 2px;
}
.field input {
    width: 100%;
    border: none;
    outline: none;
    padding: 2px 0;
    font-size: 14.5px;
    font-family: var(--font);
    color: var(--ink);
    background: transparent;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s, transform .05s, box-shadow .12s;
    white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-dark { background: var(--green); color: var(--white); }
.btn-dark:hover { background: var(--green-dark); }
.btn-outline { background: var(--white); color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.search-panel .btn { border-radius: var(--radius-sm); margin: 3px; }

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
}
.trust-strip .container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--gray-700);
    justify-content: center;
}
.trust-strip .item { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.trust-icon { color: var(--green); flex-shrink: 0; }

/* ---------- Listings grid ---------- */
.section { padding: 52px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-title h2 { font-size: 26px; margin: 0; }
.section-title .sub { font-size: 13.5px; color: var(--gray-500); font-weight: 600; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 26px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card .thumb-wrap { position: relative; aspect-ratio: 4/3; background: var(--gray-200); overflow: hidden; }
.card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb-wrap img { transform: scale(1.05); }
.card .rating-badge {
    position: absolute; left: 12px; bottom: 12px;
    background: rgba(20,42,31,.88); backdrop-filter: blur(2px); color: var(--white);
    font-size: 12px; font-weight: 800;
    padding: 5px 10px; border-radius: 999px;
    display: flex; align-items: center; gap: 5px;
}
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card .city { font-size: 11.5px; color: var(--terracotta); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.card h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; color: var(--green-dark); }
.card p.desc { font-size: 13.5px; color: var(--gray-500); margin: 0 0 14px; flex: 1; }
.card .meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-500); margin-bottom: 14px; flex-wrap: wrap; }
.card .meta span { display: flex; align-items: center; gap: 4px; }
.card .price-row { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed var(--gray-300); padding-top: 12px; }
.card .price { font-size: 20px; font-weight: 800; color: var(--green-dark); }
.card .price small { font-weight: 500; font-size: 11.5px; color: var(--gray-500); display: block; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--gray-500); background: var(--white); border-radius: var(--radius); border: 1px dashed var(--gray-300); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }

.skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 37%, var(--gray-200) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius); }
.skeleton-card { height: 320px; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--gray-500); padding: 16px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--terracotta); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery {
    position: relative;
    display: grid;
    gap: 6px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
}
.gallery-cell { position: relative; overflow: hidden; background: var(--gray-100); }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: filter .15s; display: block; }
.gallery-img:hover { filter: brightness(0.96); }

.gallery-single { grid-template-columns: 1fr; }
.gallery-single .gallery-main { height: 440px; }

.gallery-multi { grid-template-columns: 1.7fr 1fr; height: 440px; }
.gallery-multi .gallery-main { grid-column: 1; grid-row: 1 / -1; height: 100%; }
.gallery-multi .gallery-thumb { grid-column: 2; height: 100%; }

.gallery-viewall {
    position: absolute; right: 16px; bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--ink);
    border: none; border-radius: 999px;
    padding: 10px 18px; font-size: 13px; font-weight: 700;
    cursor: pointer; box-shadow: var(--shadow);
}
.gallery-viewall:hover { background: var(--gray-100); }

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(20, 18, 14, 0.97);
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .18s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 72px 88px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); animation: lightbox-fade-in .18s ease; }
@keyframes lightbox-fade-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
.lightbox-close { position: absolute; top: 18px; right: 20px; background: rgba(255,255,255,.12); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 12.5px; letter-spacing: .05em; background: rgba(255,255,255,.12); padding: 5px 14px; border-radius: 999px; }

/* ---------- Listing detail layout ---------- */
.detail-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.detail-layout h1 { font-size: 30px; margin-bottom: 10px; }
.badge-row { display: flex; gap: 18px; color: var(--gray-700); font-size: 13.5px; margin-bottom: 22px; flex-wrap: wrap; font-weight: 600; }
.badge-row span { display: flex; align-items: center; gap: 5px; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 26px 0; }

.amenity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; list-style: none; padding: 0; font-size: 14px; margin: 0; }
.amenity-list li { display: flex; align-items: center; gap: 9px; }
.amenity-list li::before { content: "✓"; color: var(--success); font-weight: 900; }

/* ---------- Availability calendar ---------- */
.avail-calendar {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.cal-title {
    font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--green-dark);
    letter-spacing: -0.01em; text-transform: capitalize;
}
.cal-nav {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--gray-200); background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--green-dark);
    transition: background .12s, transform .12s;
}
.cal-nav:hover:not(:disabled) { background: var(--terracotta-light); transform: scale(1.06); }
.cal-nav:disabled { opacity: .25; cursor: not-allowed; }

.cal-loading {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 40px 0; color: var(--gray-500); font-size: 13px;
}
.cal-spinner {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2.5px solid var(--gray-200); border-top-color: var(--terracotta);
    animation: cal-spin .7s linear infinite;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }

.cal-dow-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-dow {
    text-align: center; font-size: 10.5px; font-weight: 800; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: .04em; padding: 4px 0;
}

.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { height: 52px; }
.cal-cell.empty { visibility: hidden; }

.cal-day {
    width: 100%; height: 100%;
    border: 1.5px solid var(--gray-200); background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    transition: background .12s, border-color .12s, transform .08s;
    padding: 2px 0;
    position: relative;
}
.cal-day-num { font-size: 13px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.cal-day-price {
    font-size: 9.5px; font-weight: 700; color: var(--terracotta-dark);
    line-height: 1; background: var(--terracotta-light); border-radius: 999px;
    padding: 1.5px 5px;
}

.cal-day:hover:not(.disabled) {
    border-color: var(--terracotta); background: var(--terracotta-light);
    transform: translateY(-1px);
}
.cal-day.today .cal-day-num::after {
    content: ''; display: block; width: 4px; height: 4px; border-radius: 50%;
    background: var(--terracotta); margin: 2px auto 0;
}

.cal-day.disabled {
    cursor: not-allowed;
    background: repeating-linear-gradient(135deg, var(--gray-100), var(--gray-100) 4px, var(--white) 4px, var(--white) 8px);
    border-color: var(--gray-200);
}
.cal-day.disabled .cal-day-num { color: var(--gray-300); text-decoration: line-through; }
.cal-day.disabled .cal-day-price { display: none; }
.cal-day.is-past { background: var(--white); opacity: .45; }

.cal-day.range-start, .cal-day.range-end {
    background: var(--green); border-color: var(--green);
    box-shadow: 0 3px 10px rgba(31,61,46,.25);
}
.cal-day.range-start .cal-day-num, .cal-day.range-end .cal-day-num { color: var(--white); }
.cal-day.range-start .cal-day-price, .cal-day.range-end .cal-day-price { background: rgba(255,255,255,.22); color: var(--white); }
.cal-day.in-range { background: var(--green-light); border-color: var(--green-light); border-radius: 4px; }
.cal-day.in-range .cal-day-num { color: var(--green-dark); }
.cal-day.range-start:not(.range-end) { border-radius: 10px 4px 4px 10px; }
.cal-day.range-end:not(.range-start) { border-radius: 4px 10px 10px 4px; }

.cal-legend { display: flex; gap: 14px; margin-top: 14px; font-size: 11.5px; color: var(--gray-700); justify-content: center; flex-wrap: wrap; }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.cal-legend .dot.available { background: var(--white); border: 1.5px solid var(--gray-300); }
.cal-legend .dot.booked { background: var(--gray-100); border: 1.5px solid var(--gray-300); background-image: repeating-linear-gradient(135deg, var(--gray-300), var(--gray-300) 2px, transparent 2px, transparent 4px); }
.cal-legend .dot.selected { background: var(--green); border: 1.5px solid var(--green); }

.cal-footer {
    margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--gray-200);
    text-align: center;
}
.cal-selection-summary { font-size: 13.5px; font-weight: 700; color: var(--gray-900); }
.cal-live-total {
    margin-top: 6px; font-size: 16px; font-weight: 800; color: var(--green-dark);
}
.cal-live-total .cal-live-total-nights { font-size: 11.5px; font-weight: 600; color: var(--gray-500); margin-left: 4px; }

.cal-currency-note { text-align: center; font-size: 11px; color: var(--gray-500); margin-top: 8px; }

.cal-clear-btn {
    display: block; width: 100%; text-align: center;
    background: none; border: none; color: var(--terracotta); font-size: 12.5px; font-weight: 700;
    cursor: pointer; padding: 4px 0 16px; text-decoration: underline;
}
.cal-clear-btn:hover { color: var(--terracotta-dark); }

@media (max-width: 720px) {
    .cal-cell { height: 44px; }
    .cal-day-num { font-size: 12px; }
    .cal-day-price { font-size: 8.5px; }
}

/* ---------- Booking box ---------- */
.booking-box {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 22px;
}
.booking-box .price-line { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin-bottom: 4px; color: var(--green-dark); }
.booking-box .price-line small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--gray-500); }

.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; }
.date-row .field { border-right: 1px solid var(--gray-300); padding: 8px 12px; margin: 0; }
.date-row .field:last-child { border-right: none; }
.date-row .field input { font-size: 13.5px; }

.price-breakdown { font-size: 14px; margin: 18px 0; }
.price-breakdown .row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--gray-700); }
.price-breakdown .row.total { color: var(--ink); font-weight: 800; border-top: 1px solid var(--gray-200); margin-top: 6px; padding-top: 14px; font-size: 17px; }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; color: var(--gray-700); }
.form-field input, .form-field textarea {
    width: 100%; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    padding: 11px 13px; font-family: var(--font); font-size: 14px;
}
.form-field input:focus, .form-field textarea:focus, .field input:focus { outline: 2px solid var(--terracotta); outline-offset: -1px; }

.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13.5px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--terracotta-light); color: var(--terracotta-dark); }

/* ---------- Contacts page ---------- */
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
    width: 42px; height: 42px; border-radius: 50%; background: var(--green-light); color: var(--green);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: 3px; }
.contact-value { font-size: 15.5px; font-weight: 600; color: var(--green-dark); }
a.contact-value:hover { color: var(--terracotta); }

.contact-form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.contact-form-card h3 { font-size: 18px; margin-bottom: 18px; }

/* ---------- Booking status page ---------- */
.status-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; text-align: center; }
.status-icon { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 28px; }
.status-icon.ok { background: var(--success-bg); color: var(--success); }
.status-icon.bad { background: var(--danger-bg); color: var(--danger); }
.status-icon.pending { background: var(--terracotta-light); color: var(--terracotta-dark); }
.status-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; text-align: left; }
.status-table td { padding: 10px 0; border-top: 1px solid var(--gray-200); }
.status-table td:first-child { color: var(--gray-500); }
.status-table td:last-child { text-align: right; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #C7D3C9; padding: 44px 0 26px; margin-top: 64px; font-size: 13.5px; }
.site-footer a { color: #fff; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 20px; }
.site-footer .footer-brand { font-family: var(--font-serif); font-size: 19px; color: var(--white); font-weight: 600; margin-bottom: 8px; }
.site-footer .footer-brand span { color: var(--terracotta); }
.site-footer .footer-col h4 { font-family: var(--font); color: var(--white); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.site-footer .footer-col p, .site-footer .footer-col div { margin: 6px 0; color: #C7D3C9; }
.site-footer .bottom-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-footer .credit { opacity: .85; }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .search-panel { grid-template-columns: 1fr 1fr; }
    .search-panel .btn { grid-column: 1 / -1; }
    .detail-layout { grid-template-columns: 1fr; }
    .booking-box { position: static; box-shadow: none; border: none; padding: 0; }
    .gallery-multi { grid-template-columns: 1fr; height: auto; grid-template-rows: none !important; }
    .gallery-multi .gallery-main { grid-column: 1; grid-row: auto; height: 260px; }
    .gallery-multi .gallery-thumb { display: none; }
    .gallery-single .gallery-main { height: 260px; }
    .gallery-viewall { right: 10px; bottom: 10px; }
}

@media (max-width: 720px) {
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 4px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--gray-200); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav a.nav-link { padding: 12px 8px; border-bottom: 1px solid var(--gray-200); border-radius: 0; }
    .lang-switch { margin: 10px 8px 0; border-left: none; padding-left: 0; }
    .nav-toggle { display: flex; }

    .hero { padding: 56px 0 52px; }
    .hero h1 { font-size: 27px; }
    .hero p.lead { font-size: 14px; }

    .search-panel { grid-template-columns: 1fr; background-color: transparent; gap: 8px; padding: 0; margin-top: 20px; box-shadow: none; }
    .field { border-radius: var(--radius-sm) !important; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
    .search-panel .btn { margin: 0; }

    .trust-strip .container { gap: 14px; font-size: 12px; }

    .section { padding: 34px 0; }
    .grid { grid-template-columns: 1fr; gap: 16px; }

    .detail-layout h1 { font-size: 23px; }
    .amenity-list { grid-template-columns: 1fr; }
    .contacts-layout { grid-template-columns: 1fr; gap: 28px; }

    #guest-fields { padding-bottom: 8px; }

    .site-footer .footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .lightbox-stage { padding: 56px 12px; }
    .lightbox-nav { width: 38px; height: 38px; }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
    .lightbox-close { top: 10px; right: 10px; }
    .status-card { padding: 26px 20px; }
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .lang-switch { border-left: none; border-right: 1px solid var(--gray-300); padding-left: 0; padding-right: 10px; margin-left: 0; margin-right: 10px; }
html[dir="rtl"] .breadcrumb a { margin-left: 0; }
html[dir="rtl"] .card .rating-badge { left: auto; right: 12px; }
html[dir="rtl"] .gallery-viewall { right: auto; left: 16px; }
html[dir="rtl"] .amenity-list li::before { order: 2; }
