/* =========================================================
   Zuzumbo Resort and SPA — styles.css

   1. Токены (цвета, размеры)     6. Карточки: услуги и меню
   2. База                        7. Карта отеля
   3. Шапка и навигация           8. Подвал, чат, конвертер
   4. Главная (hero, галерея)     9. Нижняя навигация, адаптив
   5. Кнопки                     10. Карта Грузии
   ========================================================= */

/* =========================================================
   1. ТОКЕНЫ
   ========================================================= */
:root {
    /* Цвета */
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface-2: #eef3f1;
    --text: #172322;
    --muted: #566665;
    --line: #dce6e3;
    --primary: #0f3d3e;
    --primary-2: #176163;
    --on-primary: #ffffff;        /* текст на фоне --primary */
    --accent: #c99a4a;
    --accent-text: #8a5f17;       /* акцент для текста на светлом фоне (контраст 5:1) */
    --accent-soft: #f6ecd9;

    /* Категории объектов на карте */
    --cat-wellness: #176163;
    --cat-leisure: #c99a4a;
    --cat-dining: #c0603f;
    --cat-facility: #6b7a78;

    /* Форма и тени */
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 18px 45px rgba(15, 61, 62, .12);
    --shadow-sm: 0 8px 25px rgba(15, 61, 62, .07);

    /* Типографика */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-md: 1rem;

    /* Нижняя навигация */
    --bottom-nav-h: calc(68px + env(safe-area-inset-bottom, 0px));

    --luxury-green: #123c35;
    --luxury-green-deep: #08251f;
    --luxury-cream: #f3efe7;
    --luxury-gold: #c79b56;
}

[data-theme="dark"] {
    --bg: #0b2224;
    --surface: #102c2e;
    --surface-2: #153638;
    --text: #edf7f5;
    --muted: #a8bfbb;
    --line: #28484a;
    --primary: #7bc4bd;
    --primary-2: #59a9a2;
    --on-primary: #06201f;
    --accent: #e3bd72;
    --accent-text: #e3bd72;
    --accent-soft: #3a3224;
    --shadow: 0 20px 50px rgba(0, 0, 0, .32);
    --shadow-sm: 0 8px 25px rgba(0, 0, 0, .26);
    --cat-wellness: #7bc4bd;
    --cat-leisure: #e3bd72;
    --cat-dining: #e08a68;
    --cat-facility: #a8bfbb;
}

/* =========================================================
   2. БАЗА
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background-color .25s, color .25s;
}

ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }

:focus-visible {
    outline: 3px solid rgba(201, 154, 74, .6);
    outline-offset: 3px;
}

[hidden] { display: none !important; }

.container {
    width: min(1240px, calc(100% - 40px));
    margin: auto;
}

/* SVG-иконки, которые вставляет app.js */
.icon { width: 1.25em; height: 1.25em; flex: none; }
[data-icon] { display: inline-flex; }

/* Если картинка не загрузилась, app.js добавляет .is-broken — показываем градиент */
.is-broken { background: linear-gradient(135deg, var(--surface-2), var(--line)) !important; }
.is-broken img { display: none; }

/* =========================================================
   3. ШАПКА И НАВИГАЦИЯ
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(8, 37, 31, .94);
    color: #fff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: .04em;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: .02em;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.lang-switch {
    display: flex;
    gap: 3px;
    padding: 4px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
}

.lang-btn {
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #dceceb;
    font-size: var(--fs-xs);
    font-weight: 800;
}

.lang-btn[aria-pressed="true"] {
    background: #fff;
    color: #0f3d3e;
}

.main-nav {
    position: sticky;
    top: 76px;
    z-index: 1000;
    background: rgba(243, 239, 231, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(18, 60, 53, .10);
}
[data-theme="dark"] .main-nav { background: rgba(8, 37, 31, .96); }

.nav-scroll {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }

.nav-tab {
    flex: 0 0 auto;
    padding: 15px 24px 13px;
    border-bottom: 1px solid transparent;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s;
}
.nav-tab:hover { color: var(--primary); }
.nav-tab[aria-current="page"] {
    color: var(--primary);
    border-color: var(--accent);
}

.page { padding: 28px 0 60px; }

.tab-content:not([hidden]) { animation: tab-fade .28s ease; }
@keyframes tab-fade {
    from { opacity: .2; transform: translateY(5px); }
    to   { opacity: 1; transform: none; }
}

/* =========================================================
   4. ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================= */
.eyebrow {
    color: var(--accent-text);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 16px;
}
.section-heading h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
}
/* =========================================================
   5. КНОПКИ
   ========================================================= */
.btn {
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 800;
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--accent);
    color: #172322;
}
.btn-secondary {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* =========================================================
   6. КАРТОЧКИ: УСЛУГИ И МЕНЮ
   ========================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 35px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

/* --- Услуги --- */
.service-card {
    position: relative;
    isolation: isolate;
    min-height: 310px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #176163, #0f3d3e);
    transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(15, 61, 62, .20);
}
.service-gallery {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.service-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.service-gallery-track::-webkit-scrollbar { display: none; }
.service-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
}
.service-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.service-gallery-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 24px;
    background: rgba(8, 37, 31, .62);
    color: #fff;
    backdrop-filter: blur(8px);
}
.service-gallery-controls button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
}
.service-gallery-controls span { min-width: 32px; text-align: center; font-size: .68rem; }
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 15%, rgba(4, 20, 21, .92) 100%);
    pointer-events: none;
}
.service-content { position: relative; z-index: 2; padding: 20px; color: #fff; pointer-events: none; }
.service-content h3 {
    margin-bottom: 7px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
}
.service-content p {
    margin-bottom: 13px;
    color: #e4eeec;
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.service-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    background: rgba(255, 255, 255, .13);
    font-size: var(--fs-xs);
    font-weight: 800;
}

.room-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.rooms-intro { margin-top: 8px; color: var(--muted); }
.room-category-card {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.room-category-card strong { display: block; padding: 15px 18px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.room-category-image { display: block; height: 220px; overflow: hidden; background: var(--surface-2); }
.room-category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.room-category-card:hover .room-category-image img { transform: scale(1.04); }
.room-gallery { margin-top: 24px; }
.room-gallery-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 14px; }
.room-gallery-head .text-link { justify-self: start; margin: 0; }
.room-gallery-head h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; text-align: center; }
.room-gallery-controls { display: flex; justify-self: end; gap: 8px; }
.room-gallery-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.4rem;
}
.room-gallery-track {
    display: flex;
    overflow-x: auto;
    border-radius: var(--radius);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.room-gallery-track::-webkit-scrollbar { display: none; }
.room-gallery-slide { flex: 0 0 100%; height: min(68vh, 620px); overflow: hidden; scroll-snap-align: start; background: var(--surface-2); }
.room-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

/* --- Меню ресторана --- */
.menu-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.menu-filter {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}
.menu-filter::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 800;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.search-box {
    min-width: 220px;
    height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
}
.search-box:focus-within { border-color: var(--primary-2); }
.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: var(--fs-sm);
}

.menu-sections { display: grid; gap: 10px; }
.menu-section {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.menu-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}
.menu-section summary::-webkit-details-marker { display: none; }
.menu-section summary::after {
    content: "+";
    color: var(--accent-text);
    font-size: 1.25rem;
    line-height: 1;
}
.menu-section[open] summary::after { content: "−"; }
.menu-items {
    margin: 0;
    padding: 0 18px 8px;
    list-style: none;
}
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.menu-item-copy { display: grid; gap: 4px; min-width: 0; }
.menu-item-desc { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; line-height: 1.45; }
.menu-item-price { flex: 0 0 auto; color: var(--accent-text); white-space: nowrap; }
.menu-section-empty { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: var(--fs-sm); }

/* =========================================================
   7. КАРТА ОТЕЛЯ — интерактивная фото-карта
   ========================================================= */
.resort-map-page {
    --map-stay: #0f5b55;
    --map-food: #c9943e;
    --map-activities: #0d7ec2;
    --map-transport: #74418f;
    padding: 18px 0 8px;
}

.resort-map-head {
    max-width: 700px;
    margin-bottom: 18px;
}

.resort-map-head h2 {
    margin: 7px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5vw, 3.45rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.045em;
}

.resort-map-head p {
    max-width: 66ch;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}

.resort-map-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
}
.resort-map-filters::-webkit-scrollbar { display: none; }

.resort-map-filter {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 61, 62, .05);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.resort-map-filter:hover { transform: translateY(-1px); border-color: var(--primary-2); }
.resort-map-filter[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 9px 22px rgba(15, 61, 62, .2);
}
.resort-map-filter-icon { display: grid; place-items: center; }
.resort-map-filter .icon { width: 18px; height: 18px; }

.resort-map-visual {
    position: relative;
}

.resort-map-canvas {
    position: relative;
    min-height: 0;
    aspect-ratio: 2.25 / 1;
    overflow: hidden;
    border: 1px solid rgba(15, 61, 62, .1);
    border-radius: 24px 24px 0 0;
    background: #1b342b;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.resort-map-zoom-layer {
    --map-zoom: 1;
    position: absolute;
    inset: 0;
    transform: scale(var(--map-zoom));
    transform-origin: center center;
    transition: transform .28s ease;
}

.resort-map-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.06) contrast(1.03);
    user-select: none;
    -webkit-user-drag: none;
}

.resort-map-zoom-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 29, 25, .03), transparent 28%, transparent 72%, rgba(6, 29, 25, .08));
}

.resort-map-pins {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.resort-map-pin {
    --pin-tone: var(--map-stay);
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-22px, -50%);
    color: var(--text);
    transition: transform .18s ease, filter .18s ease;
}
.resort-map-pin[data-tone="food"] { --pin-tone: var(--map-food); }
.resort-map-pin[data-tone="activities"] { --pin-tone: var(--map-activities); }
.resort-map-pin[data-tone="transport"] { --pin-tone: var(--map-transport); }

.resort-map-pin-marker {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, .95);
    border-radius: 50% 50% 50% 8px;
    background: var(--pin-tone);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
    transform: rotate(-45deg);
}
.resort-map-pin-marker .icon { width: 19px; height: 19px; transform: rotate(45deg); }

.resort-map-pin-label {
    position: relative;
    z-index: 1;
    min-height: 34px;
    display: flex;
    align-items: center;
    margin-left: -7px;
    padding: 0 15px 0 17px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 0 999px 999px 0;
    background: rgba(255, 255, 255, .94);
    color: #172322;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.resort-map-pin-dot {
    position: absolute;
    left: 15px;
    top: calc(50% + 28px);
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--pin-tone);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

.resort-map-pin:hover,
.resort-map-pin[aria-pressed="true"] { z-index: 8; transform: translate(-22px, -50%) scale(1.04); }
.resort-map-pin[aria-pressed="true"] .resort-map-pin-label {
    border-color: color-mix(in srgb, var(--pin-tone) 55%, white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.resort-map-pin:focus-visible { outline: none; }
.resort-map-pin:focus-visible .resort-map-pin-marker { box-shadow: 0 0 0 4px rgba(201, 154, 74, .5), 0 8px 20px rgba(0, 0, 0, .26); }

.resort-map-controls {
    position: absolute;
    right: 16px;
    bottom: 18px;
    z-index: 20;
    display: grid;
    gap: 8px;
}
.resort-map-controls button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 61, 62, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    color: #173a37;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    font-size: 1.35rem;
    font-weight: 600;
}
.resort-map-controls button:disabled { opacity: .45; cursor: default; }
.resort-map-controls button:last-child { margin-top: 2px; border-radius: 50%; }
.resort-map-controls .icon { width: 18px; height: 18px; }

.resort-map-popup {
    position: absolute;
    top: 20px;
    right: 76px;
    z-index: 30;
    width: min(350px, 32vw);
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 12px;
    padding: 11px;
    border: 1px solid rgba(15, 61, 62, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    color: #172322;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.resort-map-popup-media {
    min-height: 104px;
    overflow: hidden;
    border-radius: 12px;
    background: #dce6e3;
}
.resort-map-popup-media img { width: 100%; height: 100%; object-fit: cover; }
.resort-map-popup-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 3px 4px 2px 0; }
.resort-map-popup-body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.15; }
.resort-map-popup-body p { margin: 6px 0 8px; color: #62706f; font-size: .76rem; line-height: 1.45; }
.resort-map-popup-link {
    margin-top: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-text);
    font-size: .78rem;
    font-weight: 800;
}
.resort-map-details {
    grid-column: 1 / -1;
    padding: 12px 4px 3px;
    border-top: 1px solid rgba(15, 61, 62, .12);
    color: #62706f;
    font-size: .82rem;
    line-height: 1.6;
}

.resort-map-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 61, 62, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #173a37;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.resort-map-popup-close:hover { transform: translateY(-1px); }
[data-theme="dark"] .resort-map-popup-close {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(16, 44, 46, .96);
    color: var(--text);
}

[data-theme="dark"] .resort-map-popup { background: rgba(16, 44, 46, .96); color: var(--text); }
[data-theme="dark"] .resort-map-popup-body p { color: var(--muted); }
[data-theme="dark"] .resort-map-details { border-color: var(--line); color: var(--muted); }
[data-theme="dark"] .resort-map-pin-label { background: rgba(16, 44, 46, .95); color: var(--text); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .resort-map-controls button { background: rgba(16, 44, 46, .96); color: var(--text); border-color: rgba(255,255,255,.12); }

@media (max-width: 1000px) {
    .resort-map-page { padding-top: 24px; }
    .resort-map-canvas { aspect-ratio: 1.65 / 1; border-radius: 20px 20px 0 0; }
    .resort-map-popup { top: 18px; right: 68px; width: 300px; grid-template-columns: 40% 1fr; }
    .resort-map-pin { transform: translate(-18px, -50%); }
    .resort-map-pin:hover,
    .resort-map-pin[aria-pressed="true"] { transform: translate(-18px, -50%) scale(1.03); }
    .resort-map-pin-marker { width: 36px; height: 36px; flex-basis: 36px; }
    .resort-map-pin-marker .icon { width: 16px; height: 16px; }
    .resort-map-pin-label { min-height: 30px; padding: 0 11px 0 14px; font-size: .64rem; }
    .resort-map-pin-dot { left: 12px; top: calc(50% + 24px); width: 8px; height: 8px; }
}

@media (max-width: 700px) {
    .resort-map-page { padding-top: 18px; }
    .resort-map-head { margin-bottom: 14px; }
    .resort-map-head h2 { font-size: clamp(2.25rem, 12vw, 3rem); }
    .resort-map-head p { font-size: .9rem; }

    .resort-map-filters {
        width: calc(100vw - 20px);
        margin-right: calc((100vw - 100%) / -2);
        padding-right: 16px;
        gap: 8px;
    }
    .resort-map-filter { min-height: 42px; padding: 0 16px; font-size: .78rem; }

    .resort-map-visual { margin: 0 -2px; }
    .resort-map-canvas {
        aspect-ratio: .98 / 1;
        border-radius: 20px;
    }
    .resort-map-photo { object-position: 50% 51%; }

    .resort-map-pin { transform: translate(-15px, -50%); }
    .resort-map-pin:hover,
    .resort-map-pin[aria-pressed="true"] { transform: translate(-15px, -50%) scale(1.02); }
    .resort-map-pin-marker { width: 31px; height: 31px; flex-basis: 31px; border-width: 2px; }
    .resort-map-pin-marker .icon { width: 14px; height: 14px; }
    .resort-map-pin-label { min-height: 27px; max-width: 140px; padding: 0 9px 0 12px; overflow: hidden; font-size: .59rem; text-overflow: ellipsis; }
    .resort-map-pin-dot { left: 10px; top: calc(50% + 21px); width: 7px; height: 7px; }

    .resort-map-controls { right: 10px; bottom: 14px; gap: 6px; }
    .resort-map-controls button { width: 38px; height: 38px; border-radius: 11px; }

    .resort-map-popup {
        position: relative;
        top: auto;
        right: auto;
        width: calc(100% - 24px);
        margin: -38px auto 0;
        grid-template-columns: 38% 1fr;
        gap: 11px;
        padding: 10px;
        border-radius: 18px;
    }
    .resort-map-popup-media { min-height: 112px; }
    .resort-map-popup-body h3 { font-size: 1.2rem; }
    .resort-map-popup-body p { font-size: .74rem; }

}

@media (max-width: 470px) {
    .resort-map-canvas { aspect-ratio: .88 / 1; }
    .resort-map-pin-label { max-width: 112px; }
    .resort-map-popup { grid-template-columns: 40% 1fr; }
    .resort-map-popup-media { min-height: 105px; }
}

/* =========================================================
   8. ПОДВАЛ, КОНВЕРТЕР ВАЛЮТ, ЧАТ
   ========================================================= */
.footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: var(--fs-sm);
}
.footer-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer a {
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.floating-tools {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    transition: transform .2s;
}
.floating-btn:hover { transform: translateY(-2px); }

.currency-btn {
    border-radius: 14px;
    background: var(--accent);
    color: #172322;
    font-size: 1.1rem;
    font-weight: 900;
}
.chat-btn {
    border-radius: 18px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 1.25rem;
}

/* Панели раскрываются над обеими кнопками (позиция считается от .floating-tools) */
.currency-panel,
.chat-window {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 101;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: var(--fs-sm);
}
.panel-head button,
.chat-header button {
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
}

/* --- Конвертер --- */
.currency-panel { width: 290px; padding: 16px; }
.currency-grid { display: grid; gap: 8px; }
.currency-grid label {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 800;
}
.currency-grid input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: var(--bg);
    color: var(--text);
}
.currency-grid input:focus { border-color: var(--primary-2); }
.currency-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: var(--fs-xs);
}

/* --- Чат --- */
.chat-window {
    width: 360px;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--primary);
    color: var(--on-primary);
}
.chat-person { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent);
    color: #173131;
    font-weight: 900;
}
.chat-header strong { display: block; font-size: var(--fs-sm); }
.chat-header small { display: block; margin-top: 1px; font-size: .72rem; opacity: .8; }

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    overflow-y: auto;
    background: var(--bg);
}
.chat-msg {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.chat-msg.bot {
    align-self: flex-start;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    background: var(--surface);
}
.chat-msg.user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--primary);
    color: var(--on-primary);
}
.chat-msg.typing { color: var(--muted); letter-spacing: 3px; }

.chat-quick-questions {
    display: grid;
    gap: 5px;
    max-height: 125px;
    padding: 8px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.chat-q-btn {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text);
    font-size: .8rem;
    text-align: left;
}
.chat-q-btn:hover { border-color: var(--primary-2); }

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.chat-input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    outline: 0;
    background: var(--bg);
    color: var(--text);
    font-size: var(--fs-sm);
}
.chat-input-row input:focus { border-color: var(--primary-2); }
.chat-input-row button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
}

/* =========================================================
   9. НИЖНЯЯ НАВИГАЦИЯ И АДАПТИВ
   ========================================================= */
.bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    display: none;                 /* показывается на экранах ≤ 900px */
    height: var(--bottom-nav-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #0d2322;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, .7);
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.bottom-nav a[aria-current="page"] { color: #e0b46a; }
.bottom-nav a:active { transform: scale(.95); }
.nav-icon { width: 24px; height: 24px; }

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .main-nav { display: none; }
    .bottom-nav { display: flex; }
    body { padding-bottom: var(--bottom-nav-h); }
    .floating-tools { bottom: calc(var(--bottom-nav-h) + 12px); }
}

@media (max-width: 620px) {
    .header-inner { height: 70px; }
    .cards-grid { grid-template-columns: 1fr; }

    .menu-toolbar { display: block; }
    .menu-filter { margin-bottom: 10px; padding-bottom: 4px; }
    .search-box { width: 100%; }

    .chat-window {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(var(--bottom-nav-h) + 12px);
        width: auto;
        height: min(75vh, 500px);
    }
    .currency-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--bottom-nav-h) + 12px);
        width: auto;
    }

    .footer-inner { display: block; padding: 14px 0; text-align: center; }
    .footer-inner > span { display: block; margin-top: 4px; }
}

/* =========================================================
   Уменьшение анимации (настройка системы)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   ПРАВИЛА ЗАВЕДЕНИЯ
   ========================================================= */

.rules-intro {
    max-width: 68ch;
    margin: -8px 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

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

.rule-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--cat-facility);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 61, 62, .12);
}

.rule-card[data-tone="danger"] {
    border-left-color: var(--cat-dining);
}

.rule-card[data-tone="warn"] {
    border-left-color: var(--accent);
}

.rule-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d1ebdd;
    color: #157347;
    box-shadow: 0 0 0 1px rgba(21, 115, 71, .22) inset;
}

.rule-icon svg {
    width: 24px;
    height: 24px;
}

.rule-body {
    flex: 1;
    min-width: 0;
}

.rule-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--text);
}

.rule-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rule-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px !important;
    font-size: .9rem;
    color: var(--accent-text);
}

.rule-note [data-icon] {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.rule-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.rule-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.rule-list li:last-child {
    margin-bottom: 0;
}

.rule-penalty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 80, 60, .08);
    color: var(--text);
    font-weight: 600;
}

.rule-penalty [data-icon] {
    flex: none;
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .rule-icon {
    background: rgba(31, 138, 76, .22);
    color: #4ecb8a;
}

[data-theme="dark"] .rule-penalty {
    background: rgba(220, 80, 60, .14);
}

/* =========================================================
   10. LUXURY RESORT LANDING + PRIVATE GUEST EXPERIENCE VIEW
   ========================================================= */
.page { padding-top: 0; }

#home { padding-top: 24px; }
.luxury-hero {
    position: relative;
    min-height: min(74vh, 760px);
    border-radius: 0 0 32px 32px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 28px 70px rgba(8, 37, 31, .18);
}
.hero-media,
.hero-shade { position: absolute; inset: 0; }
.hero-media {
    z-index: -3;
    background:
        url("https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1800&q=90") center 54% / cover no-repeat,
        var(--luxury-green-deep);
    transform: scale(1.015);
}
.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(4, 28, 23, .86) 0%, rgba(4, 28, 23, .42) 52%, rgba(4, 28, 23, .14) 100%),
        linear-gradient(0deg, rgba(4, 28, 23, .66), transparent 55%);
}
.luxury-hero-content {
    width: min(760px, 78%);
    padding: clamp(38px, 6vw, 84px);
    color: #fff;
}
.hero-eyebrow { color: #e2c18c; }
.luxury-hero h1 {
    max-width: 760px;
    margin: 12px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: .98;
    font-weight: 400;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.luxury-hero p {
    max-width: 620px;
    color: rgba(255,255,255,.82);
    font-size: clamp(.98rem, 1.6vw, 1.14rem);
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn-gold,
.btn-ghost-light {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 2px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.btn-gold { border: 1px solid var(--luxury-gold); background: var(--luxury-gold); color: #102d27; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.10); }
.hero-signature {
    position: absolute;
    right: clamp(24px, 4vw, 54px);
    bottom: clamp(24px, 4vw, 54px);
    display: grid;
    justify-items: end;
    color: rgba(255,255,255,.82);
}
.hero-signature span { font-size: .62rem; letter-spacing: .22em; }
.hero-signature strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }

.availability-strip {
    position: relative;
    z-index: 5;
    width: calc(100% - clamp(24px, 8vw, 110px));
    margin: 34px auto 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    background: #fff;
    box-shadow: 0 24px 60px rgba(8, 37, 31, .14);
}
[data-theme="dark"] .availability-strip { background: var(--surface); }
.availability-strip > div {
    min-height: 104px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    border-right: 1px solid var(--line);
}
.availability-strip > div [data-icon] { grid-row: 1 / 3; align-self: center; color: var(--luxury-gold); }
.availability-strip small { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.availability-strip strong { color: var(--text); font-size: .94rem; font-weight: 600; }
.availability-cta {
    min-width: 180px;
    border: 0;
    padding: 0 28px;
    background: var(--luxury-green);
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
}
.availability-cta:hover { background: var(--luxury-green-deep); }

.editorial-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
    gap: clamp(34px, 8vw, 110px);
    align-items: end;
    padding: 24px clamp(10px, 3vw, 36px) 76px;
}
.editorial-intro h2,
.media-story-copy h2,
.guest-feedback-section h2 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.4vw, 4rem);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.02em;
}
.editorial-copy p { color: var(--muted); line-height: 1.85; }
.text-link {
    margin-top: 18px;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
}
.danger-link { color: #a34942; }

.home-feature-section { padding-bottom: 96px; }
.editorial-heading { margin-bottom: 24px; }
.feature-showcase {
    display: grid;
    grid-template-columns: 1.3fr .85fr;
    grid-template-rows: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    min-height: 720px;
}
.feature-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--luxury-green-deep);
}
.feature-tile-large { grid-row: 1 / 3; }
.feature-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.65,.2,1);
}
.feature-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3,25,20,.8), rgba(3,25,20,.05) 62%);
}
.feature-tile:hover img { transform: scale(1.045); }
.feature-tile-copy {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    bottom: 24px;
    color: #fff;
}
.feature-tile-copy > span { color: #dfbd83; font-size: .72rem; letter-spacing: .15em; }
.feature-tile-copy h3 { margin: 4px 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 400; }
.feature-tile-copy p { color: rgba(255,255,255,.75); }

.media-story {
    margin: 0 0 96px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 590px;
    background: var(--luxury-green-deep);
    color: #fff;
}
.media-story-visual { position: relative; min-height: 520px; overflow: hidden; }
.media-story-visual img { width: 100%; height: 100%; object-fit: cover; }
.media-story-badge {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 118px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    background: rgba(8,37,31,.72);
    backdrop-filter: blur(8px);
}
.media-story-badge strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.media-story-badge span { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.media-story-copy { padding: clamp(38px, 7vw, 86px); align-self: center; }
.media-story-copy .eyebrow { color: #dfbd83; }
.media-story-copy h2 { margin-bottom: 20px; }
.media-story-copy p { color: rgba(255,255,255,.72); line-height: 1.85; }
.media-story-copy .btn { margin-top: 28px; background: #fff; color: var(--luxury-green-deep); border-color: #fff; }

.guest-feedback-section {
    margin-bottom: 96px;
    padding: clamp(28px, 5vw, 64px);
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(32px, 7vw, 84px);
    background: #eae3d7;
}
[data-theme="dark"] .guest-feedback-section { background: #14322f; }
.feedback-copy p { margin-top: 16px; color: var(--muted); line-height: 1.75; }
.feedback-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feedback-form label { display: grid; gap: 7px; }
.feedback-form label > span { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    border: 1px solid rgba(18,60,53,.18);
    border-radius: 0;
    background: rgba(255,255,255,.78);
    color: #172322;
    padding: 13px 14px;
    outline: 0;
}
[data-theme="dark"] .feedback-form input,
[data-theme="dark"] .feedback-form select,
[data-theme="dark"] .feedback-form textarea { background: #0d2926; color: #edf7f5; border-color: #35514e; }
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus { border-color: var(--luxury-gold); box-shadow: 0 0 0 3px rgba(199,155,86,.12); }
.feedback-message-field { grid-column: 1 / -1; }
.feedback-form-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.feedback-form-footer p { color: var(--muted); font-size: .88rem; }

.feedback-popup-open { overflow: hidden; }
.feedback-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 16px;
}
.feedback-popup-backdrop { position: absolute; inset: 0; background: rgba(4, 20, 21, .68); backdrop-filter: blur(5px); }
.feedback-popup-dialog {
    position: relative;
    width: min(100%, 680px);
    max-height: min(90vh, 820px);
    max-height: min(90dvh, 820px);
    overflow-y: auto;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 90px rgba(0,0,0,.32);
}
.feedback-popup-dialog h2 { max-width: 520px; margin: 10px 38px 0 0; font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 400; line-height: 1.12; }
.feedback-popup-desc { margin: 12px 0 22px; color: var(--muted); }
.feedback-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
}
.feedback-popup-dialog .feedback-form { gap: 12px; }

.admin-dashboard { padding: 46px 0 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.admin-head h2 { margin-top: 6px; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 400; }
.admin-head p { color: var(--muted); }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-kpis article { padding: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-kpis span, .admin-kpis small { display: block; color: var(--muted); }
.admin-kpis span { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.admin-kpis strong { display: block; margin: 8px 0 2px; font-family: var(--font-display); font-size: 2.35rem; font-weight: 400; }
.admin-kpis small { font-size: .72rem; }
.admin-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.admin-panel { padding: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-panel-wide { margin-top: 18px; }
.admin-panel-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.admin-panel-title h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.admin-panel-title > span { color: var(--muted); font-size: .82rem; }
.rating-chart { display: grid; gap: 12px; }
.rating-row { display: grid; grid-template-columns: 42px 1fr 34px; gap: 10px; align-items: center; font-size: .84rem; }
.rating-track { height: 9px; overflow: hidden; background: var(--surface-2); }
.rating-fill { height: 100%; background: linear-gradient(90deg, #a77b37, #dfbd83); }
.admin-feedback-list { display: grid; gap: 10px; }
.feedback-record { padding: 15px 16px; border: 1px solid var(--line); background: var(--bg); }
.feedback-record-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.feedback-record-head strong { font-size: .88rem; }
.feedback-record-head time { color: var(--muted); font-size: .76rem; }
.feedback-record p { color: var(--muted); line-height: 1.55; }
.feedback-record-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.feedback-chip { padding: 4px 8px; background: var(--surface-2); color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.feedback-chip.complaint { background: #f7e4e1; color: #913d35; }
.feedback-chip.closed { background: #dcefe5; color: #2d6e49; }
.feedback-close-btn { margin-left: auto; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--primary); font-size: .75rem; font-weight: 700; }
.admin-empty { padding: 24px 0; color: var(--muted); text-align: center; }
.admin-view-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-view-tab { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 700; }
.admin-view-tab[aria-selected="true"] { border-bottom-color: var(--luxury-gold); color: var(--text); }
.admin-content-panel > .admin-panel { display: grid; gap: 18px; }
.admin-content-selectors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; max-width: 760px; }
.admin-content-selectors label,
.admin-content-field { display: grid; gap: 7px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.admin-content-selectors select,
.admin-content-field input,
.admin-content-field textarea,
.admin-content-field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--text); font: inherit; }
.admin-content-fields { display: grid; gap: 18px; }
.admin-localized-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); }
.admin-localized-fields legend { padding: 0 8px; color: var(--text); font-weight: 700; }
.admin-content-field textarea { min-height: 88px; resize: vertical; }
.admin-content-note,
#admin-content-status { color: var(--muted); font-size: .86rem; }
#admin-content-status[data-state="error"] { color: #a33a32; }
.admin-content-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-content-actions p { margin: 0; }
.admin-content-actions button:disabled { cursor: wait; opacity: .7; }
.admin-image-panel { margin-top: 18px; display: grid; gap: 18px; }
.admin-image-panel > .admin-content-field { max-width: 760px; }
.admin-image-preview-wrap { display: grid; justify-items: start; gap: 8px; }
.admin-image-preview-wrap img { display: block; width: min(100%, 640px); max-height: 360px; object-fit: contain; background: var(--surface-2); }
.admin-image-preview-wrap p { margin: 0; }
.admin-image-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#admin-image-status { color: var(--muted); font-size: .86rem; }
#admin-image-status[data-state="error"] { color: #a33a32; }

@media (max-width: 900px) {
    .luxury-hero { min-height: 640px; }
    .luxury-hero-content { width: 100%; padding: 42px 28px 54px; }
    .hero-signature { display: none; }
    .availability-strip { width: calc(100% - 28px); grid-template-columns: 1fr 1fr; margin-bottom: 60px; }
    .availability-strip > div { min-height: 88px; }
    .availability-strip > div:nth-child(2) { border-right: 0; }
    .availability-cta { min-height: 64px; grid-column: 1 / -1; }
    .editorial-intro,
    .media-story,
    .guest-feedback-section,
    .admin-grid { grid-template-columns: 1fr; }
    .feature-showcase { min-height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 440px 300px; }
    .feature-tile-large { grid-column: 1 / -1; grid-row: auto; }
    .admin-kpis { grid-template-columns: 1fr 1fr; }
    .admin-localized-fields { grid-template-columns: 1fr; }
    .room-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .container { width: min(100% - 20px, 1240px); }
    #home { padding-top: 10px; }
    .luxury-hero { min-height: 590px; border-radius: 0 0 22px 22px; }
    .hero-media { background-position: 62% center; }
    .luxury-hero-content { padding: 34px 22px 44px; }
    .luxury-hero h1 { font-size: 2.7rem; }
    .hero-actions .btn { width: 100%; }
    .availability-strip { margin-top: 20px; grid-template-columns: 1fr; }
    .availability-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .editorial-intro { gap: 24px; padding: 12px 4px 58px; }
    .editorial-intro h2,
    .media-story-copy h2,
    .guest-feedback-section h2 { font-size: 2.35rem; }
    .home-feature-section { padding-bottom: 64px; }
    .feature-showcase { grid-template-columns: 1fr; grid-template-rows: repeat(3, 330px); gap: 10px; }
    .feature-tile-large { grid-column: auto; }
    .feature-tile-copy { left: 20px; right: 20px; bottom: 18px; }
    .media-story { margin-bottom: 64px; }
    .media-story-visual { min-height: 360px; }
    .media-story-copy { padding: 30px 22px 36px; }
    .guest-feedback-section { margin-bottom: 64px; padding: 28px 20px; }
    .feedback-form { grid-template-columns: 1fr; }
    .feedback-message-field, .feedback-form-footer { grid-column: auto; }
    .feedback-form-footer { align-items: stretch; flex-direction: column; }
    .room-category-grid { grid-template-columns: 1fr; }
    .room-category-image { height: 240px; }
    .room-gallery-head { grid-template-columns: 1fr auto; }
    .room-gallery-head h3 { grid-column: 1 / -1; grid-row: 1; text-align: left; }
    .room-gallery-head .text-link { grid-column: 1; grid-row: 2; }
    .room-gallery-controls { grid-column: 2; grid-row: 2; }
    .room-gallery-slide { height: min(60vh, 460px); }
    .feedback-popup { padding: 10px; }
    .feedback-popup-dialog { padding: 28px 20px 20px; }
    .admin-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-kpis article { padding: 16px; }
    .admin-head { align-items: stretch; flex-direction: column; }
    .admin-content-selectors { grid-template-columns: 1fr; }
    .admin-content-actions { align-items: stretch; flex-direction: column; }
    .admin-image-actions { flex-direction: column; }
}

@media (max-width: 620px) {
    .brand { gap: 8px; min-width: 0; }
    .brand-mark { width: 40px; height: 40px; flex: 0 0 40px; font-size: .88rem; }
    .brand-name { max-width: 215px; font-size: 1rem; line-height: 1.08; }
    .header-actions { gap: 5px; }
    .lang-btn { padding: 7px 9px; }
}
