/* ========================================
   FONTS
   ======================================== */

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/Inter_18pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/Inter_18pt-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter/Inter_18pt-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/assets/fonts/dm-sans/DMSans_18pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/assets/fonts/dm-sans/DMSans_18pt-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   ROOT VARIABLES (Под референс — бежевый фон)
   ======================================== */

:root {
    --primary-color: #2b2623;
    --background-color: #f5f0eb;
    --card-background: #ffffff;
    --text-primary: #2b2623;
    --text-secondary: #6e675f;
    --text-muted: #9c958d;
    --border-color: #e3dcd4;
    --shadow-color: rgba(43, 38, 35, 0.05);
    --max-width: 480px;
    --bottom-image-height: 200px;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'DM Sans', sans-serif;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ========================================
   RESET & BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}



/* No scroll styles */
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}
/* End of No scroll styles */





#app {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ========================================
   TOPBAR (Поверх заставки)
   ======================================== */

#topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 20px;
    background: transparent;
    pointer-events: none;
}

.topbar-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.topbar-right {
    margin-left: auto;
}

/* Кнопки и выпадающий список языков */
.back-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.lang-select {
    pointer-events: auto;
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
    padding: 8px 32px 8px 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232b2623' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */

#page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background-color);
}

/* ========================================
   INLINE MAP BANNER IN CARDS
   ======================================== */

.card-map-banner {
    display: block;
    width: 100%;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-map-banner:active {
    transform: scale(0.98);
}

.card-map-banner img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Подпись "Показать на Гугл-картах" поверх/снизу фото */
.banner-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   HOME PAGE ( Точный референс )
   ======================================== */

.page-home {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Фотография сверху на 58% высоты */
.home-hero-image {
    width: 100%;
    height: 58vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Бежевый блок под картинкой */
.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 36px;
    text-align: center;
    background: var(--background-color);
}

/* WELCOME BOOK — Полужирный */
.home-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

/* Your guide ! */
.home-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

/* Кнопка "Open Menu" */
.home-content .menu-button {
    display: inline-block;
    padding: 14px 44px;
    background: var(--text-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
}

.home-content .menu-button:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Адрес с пином (в одну строку, строго по центру) */
.home-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 100%;
    width: 100%;
    white-space: nowrap;
    line-height: 1;
}

.home-address .icon-pin {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 1.8;
    flex-shrink: 0;
    display: block;
}

/* ========================================
   MENU PAGE (Точно по макету)
   ======================================== */

.page-menu {
    padding: 24px 16px !important;
    background: var(--background-color);
}

/* Шапка меню с линией */
.menu-header {
    text-align: center;
    margin-bottom: 24px;
}

.menu-header h1 {
    font-family: var(--font-heading);
    font-size: 45px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.menu-divider {
    width: 60%;
    height: 1px;
    background: var(--border-color);
    margin: 0 auto 8px auto;
}

.menu-subtitle {
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

/* Сетка 3 в ряд */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
    width: 100%;
}

.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Темно-бежевая плашка под иконку */
.menu-grid-item .icon-box {
    width: 68px;
    height: 68px;
    background: #e9e3da; /* Более темный бежевый фон под иконку */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-grid-item:active .icon-box {
    transform: scale(0.94);
    background: #dfd8cd;
}

/* Настройки иконки внутри плашки */
.menu-grid-item .icon-box svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 14;
}

/* Подпись под иконкой (строго в 1 строку) */
.menu-grid-item span {
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ========================================
   HOUSE RULES PAGE
   ======================================== */

.page-rules {
    position: relative;
    /* padding-bottom: 280px !important; Запас снизу, чтобы контент не перекрывался фоновым фото */
}

/* Карточка-благодарность внизу правил */
.ui-footer-card {
    position: relative;
    max-width: 420px;
    width: 100%;
    margin: 28px auto 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 20px 20px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    z-index: 2; /* Отображается поверх фонового фото */
}

/* Вынесенная наверх иконка-смайлик */
.footer-smile-badge {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9e3da;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.footer-smile-badge svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 14;
}

.ui-footer-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.ui-footer-card p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

/* Фоновое изображение для страницы правил */
.page-rules .bottom-img {
    background-image: url('/assets/images/pic-2.webp');
}
/* ========================================
   BASE PAGE LAYOUT & HEADERS
   ======================================== */

.page {
    padding: 50px 16px 0px;
    background: var(--background-color);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    /* Запас снизу, чтобы последний элемент красиво скроллился над картинкой */
    padding-bottom: calc(var(--bottom-image-height) - 20px);
    /* padding-bottom: var(--bottom-image-heigh); */
}

/* Гарантируем, что все карточки и тексты находятся поверх фиксированной картинки */
.page-header,
.ui-card-list,
.ui-footer-card,
.ui-note-card,
.ui-note-text {
    position: relative;
    z-index: 1;
}

.page-fullscreen {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    align-items: center;
}

.page-header {
    text-align: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-intro {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    max-width: 340px;
    margin: 12px auto 0 auto;
}

.bottom-img {
    position: fixed; /* Фиксирует картинку на экране независимо от скролла */
    bottom: 0;
    /* left: 0; */
    width: 100%;
    max-width: var(--max-width);
    height: var(--bottom-image-height);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0; /* Под контентом */
    pointer-events: none; /* Чтобы картинка не мешала кликам и тапам */
    
    /* Плавное растворение кверху */
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}


/* ========================================
   UI CARD LIST COMPONENT (Checkin, Wifi, Transport, etc.)
   ======================================== */

.ui-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto 24px auto;
}

/* Универсальная карточка */
.ui-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Эффект клика для ссылочных карточек */
a.ui-card:active {
    transform: scale(0.98);
    background: #faf8f5;
}

.ui-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Круглая бежевая подложка под иконку */
.ui-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e9e3da;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ui-card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 14;
}

/* Информационный блок внутри карточки */
.ui-card-info {
    display: flex;
    flex-direction: column;
}

.ui-card-info .label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.ui-card-info .value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.ui-card-info .value-lg {
    font-size: 26px;
    line-height: 1.1;
}

.ui-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Описание под заголовком внутри карточки меню */
.ui-card-description {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-secondary);
    margin: 3px 0 0 0;
}

/* ========================================
   UNIVERSAL CARD COMPONENTS
   ======================================== */

/* Универсальная карточка-ссылка (вертикальная ориентация) */
.ui-card-clickable {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px 14px 20px;
    gap: 12px;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ui-card-clickable:active {
    transform: scale(0.98);
}

/* Универсальная нижняя ссылка с чертой (Подробнее, Карта и т.д.) */
.card-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.ui-card:active .card-footer-link,
.card-footer-link:active {
    opacity: 0.6;
}

/* Текстовая карточка для статей/списков (Transport Items) */
.ui-card-text {
    flex-direction: column;
    align-items: flex-start;
}

.ui-card-text h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.ui-card-text p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   UI NOTE / EXCLAMATION CARD
   ======================================== */

.ui-note-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: #e9e3da;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-sizing: border-box;
}

.ui-note-card svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 16;
    flex-shrink: 0;
    margin-top: 2px;
}

.ui-note-card p,
.ui-note-text {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    text-align: center;
    max-width: 340px;
    margin: 0 auto;
}

/* ========================================
   UI BUTTONS (Copy)
   ======================================== */

.copy-btn {
    background: #e9e3da;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.copy-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 16;
}

.copy-btn:active {
    transform: scale(0.92);
    background: #dfd8cd;
}

.copy-btn.copied {
    background: #2e7d32;
}

.copy-btn.copied svg {
    stroke: #ffffff;
}

/* ========================================
   SUB-PAGES GRID NAVIGATION (3 in a row)
   ======================================== */

.sub-pages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
    width: 100%;
    max-width: 440px;
    margin: 28px auto 0 auto;
}

.sub-page-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.sub-page-item .icon-box {
    width: 68px;
    height: 68px;
    background: #e9e3da;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.sub-page-item:active .icon-box {
    transform: scale(0.94);
    background: #dfd8cd;
}

.sub-page-item .icon-box svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 14;
}

.sub-page-item span {
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.25;
}


/* ========================================
   Check In/Out Page
   ======================================== */

.page-checkin .bottom-img {
    background-image: url('/assets/images/check-in-out.webp');
}   

/* ========================================
   Breakfast Page
   ======================================== */

.page-breakfast .bottom-img {
    background-image: url('/assets/images/breakfast.webp');
}   

/* ========================================
   WiFi Page
   ======================================== */

.page-wifi .bottom-img {
    background-image: url('/assets/images/wifi.webp');
}   

/* ========================================
   Emergency Page
   ======================================== */

.page-emergency .bottom-img {
    background-image: url('/assets/images/emergency.webp');
}

/* ========================================
   Reception Page Background
   ======================================== */

.page-reception .bottom-img {
    background-image: url('/assets/images/reception.webp');
}


/* ========================================
   Transport Page
   ======================================== */

.page-transport .bottom-img {
    background-image: url('/assets/images/pic-4.webp');
}
.page-transport-taxi .bottom-img {
    background-image: url('/assets/images/taxi.webp');
}
.transport-boat .bottom-img {
    background-image: url('/assets/images/boats.webp');
}
.transport_local .bottom-img {
    background-image: url('/assets/images/city-bus.webp');
}
.transport_intercity .bottom-img {
    background-image: url('/assets/images/intercity-bus.webp');
}


/* ========================================
   LOCATION PAGE & MAP CARD
   ======================================== */

.ui-card-address .value-address {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

/* Контейнер для адаптивной карты */
/* .map-card-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
} */

/* Карточка с фоновым изображением карты */
/* .map-image {
    width: 100%;
    height: 260px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-image: url('/assets/images/map.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
} */

.ui-card-address {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
}

.ui-card-address .ui-card-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Баннер карты внутри карточки */
.ui-card-address .card-map-banner {
    margin-top: 4px;
}

/* При желании — фоновая картинка самого низа страницы */
/* .page-location .bottom-img {
    background-image: url('/assets/images/location-bg.webp');
} */





/* ========================================
   WELLNESS & VENDOR CARDS
   ======================================== */

.page-wellness .bottom-img {
    background-image: url('/assets/images/wellness.webp');
}

.ui-card-vendor {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
}

.vendor-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Круглый логотип заведения */
.vendor-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #e9e3da;
    flex-shrink: 0;
}

.vendor-info {
    display: flex;
    flex-direction: column;
}

.vendor-info h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vendor-rating {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.vendor-category {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Ряд круглых кнопок действий */
.vendor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.vendor-actions .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9e3da;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.vendor-actions .action-btn:active {
    transform: scale(0.92);
    background: #dfd8cd;
}

.vendor-actions .action-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    /* stroke: currentColor; */
    stroke-width: 14;
}

/* ========================================
   DINING PAGE STYLES
   ======================================== */

.page-dining .bottom-img {
    background-image: url('/assets/images/dining.webp');
}

/* Квадратная закруглённая плашка для фото заведений */
.vendor-photo {
    width: 90px;
    height: 70px;
    border-radius: 15%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #e9e3da;
    flex-shrink: 0;
}

.vendor-address {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-secondary);
    margin: 3px 0 0 0;
}

/* ========================================
   ATTRACTIONS & MEDIA CARDS (16:9 Photo)
   ======================================== */

.page-attractions .bottom-img {
    background-image: url('/assets/images/go-balerina.webp');
}

/* Карточка без внутренних отступов для вывода обложки */
.ui-card-media {
    flex-direction: column;
    align-items: stretch;
    padding: 0 !important;
    overflow: hidden;
}

/* Контейнер картинки со соотношением сторон 16:9 */
.card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e9e3da;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контентный блок с текстовыми отступами */
.card-content {
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.card-header-row h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.card-header-row .action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e9e3da;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.card-header-row .action-btn:active {
    transform: scale(0.92);
}

.card-header-row .action-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 14;
}

/* ========================================
   BEACHES PAGE STYLES
   ======================================== */

.page-beaches .bottom-img {
    background-image: url('/assets/images/beach-mogren.webp');
}


/* ========================================
   SAFE PAGE STYLES
   ======================================== */

.page-safe .bottom-img {
    background-image: url('/assets/images/bg-safe.webp');
}


/* ========================================
   CURRENCY EXCHANGE PAGE (Exact HTML Fix)
   ======================================== */

.page-exchange {
    position: relative;
}

/* Блок важных советов (Important tips) */
.page-exchange .important-section {
    max-width: 420px;
    margin: 0 auto 20px auto;
    background: rgba(233, 227, 218, 0.45);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.page-exchange .important-section h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

/* Общий контейнер списка банков */
.page-exchange .places-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Белая плашка-карточка банка */
.page-exchange .place-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.page-exchange .place-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.page-exchange .place-type {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    opacity: 0.75;
}

.page-exchange .place-address,
.page-exchange .place-phone,
.page-exchange .place-hours,
.page-exchange .place-note {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 3px 0;
}

.page-exchange .place-note {
    margin-top: 6px;
    font-style: italic;
}

/* Ссылка на Google карты внизу карточки */
.page-exchange .map-link {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.page-exchange .map-link:active {
    opacity: 0.6;
}


.page-exchange .bottom-img {
    background-image: url('/assets/images/exchange.webp');
}

/* ========================================
   FAQ ACCORDION STYLES
   ======================================== */

.page-faq .bottom-img {
    background-image: url('/assets/images/faq-bg.webp');
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}

/* Элемент аккордеона */
.faq-item {
    display: block;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Вопрос / Шапка кликабельного блока */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    list-style: none; /* Убираем дефолтную стрелку браузера */
}

/* Скрываем маркер в Safari / Chrome */
.faq-question::-webkit-details-marker,
.faq-question::marker {
    display: none;
}

/* Иконка стрелки */
.faq-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 12px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 16;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Поворот стрелки на 180 градусов при открытии */
.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

/* Контейнер ответа */
.faq-answer {
    padding: 0 20px 18px 20px;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
    border-top-color: var(--border-color);
    padding-top: 12px;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}
































/* ========================================
   FOOTER & RESPONSIVE
   ======================================== */

#footer {
    background: transparent;
    padding: var(--spacing-md);
    text-align: center;
    font-family: var(--font-accent);
    font-size: 12px;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    #app {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    }
}

