/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================================================== */
:root { --color-black: #050505; --color-dark-brown: #5c3a21; --color-light-brown: #b58554; --color-beige: #c2b9b0; --color-blue-grey: #9aa8bc; --color-white: #ffffff; --font-main: 'Montserrat', sans-serif; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*:not(i) { font-family: 'Montserrat', sans-serif !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-black); background-color: var(--color-white); line-height: 1.6; overflow-x: hidden; }
.main-logo { display: none; }

/* Глобальная типографика */
h2, h3, .section-title, .accordion-header { font-size: 0.9rem !important; font-weight: 600 !important; letter-spacing: 0.5px !important; }
p, .footer-text p { font-size: 0.75rem !important; line-height: 1.6 !important; }
.menu-list li a { font-size: 0.85rem !important; }

/* Универсальные закрывающие крестики */
.btn-close { position: absolute; background: transparent; border: none; color: #ffffff; cursor: pointer; line-height: 1; padding: 0; margin: 0; top: 15px; right: 15px; font-size: 30px; z-index: 50; opacity: 0.6; transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease; }
.btn-close:hover { opacity: 1; }
.wifi-close { top: 5px; right: 12px; font-size: 22px; }
.qr-close-btn { top: 10px; }
.lightbox-close { top: 20px; right: 30px; font-size: 40px; z-index: 2001; }
.lightbox-close:hover { color: var(--color-light-brown); }

/* ==========================================================================
   2. ГЛАВНЫЙ ЭКРАН (HERO) И ФОНЫ
   ========================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-start; padding: 40px 20px; }
.hero__video { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; object-fit: cover; object-position: center center; z-index: -2; }
.mobile-video { display: block; }
.desktop-video { display: none; }
.hero__overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.4); z-index: -1; }
.hero__content { color: var(--color-white); width: 100%; max-width: 500px; margin: 0; padding: 25px; background: rgba(0, 0, 0, 0.02); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); }
.hero__content h1 { font-size: 0.9rem; font-weight: 600; line-height: 1.4; margin-bottom: 14px; letter-spacing: 0.5px; text-align: center; }
.hero__content p { font-size: 0.75rem; line-height: 1.6; margin-bottom: 12px; text-align: justify; }
.hero__content p:last-of-type { margin-bottom: 0; }
.hero__wrapper { display: flex; flex-direction: column; width: 100%; max-width: 500px; gap: 15px; z-index: 10; }
.hero__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.btn { display: flex; justify-content: center; align-items: center; flex: 1; padding: 12px 10px; background-color: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.4); color: var(--color-white); text-decoration: none; text-transform: uppercase; font-size: 0.8rem; border-radius: 8px; transition: all 0.3s ease; white-space: nowrap; }
.btn:hover, .btn:active { background-color: rgba(181, 133, 84, 0.85); border-color: rgba(181, 133, 84, 0.2); }

/* Единое фоновое стекло (Маска) */
.glass-bg-master { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 2; pointer-events: none; --top-edge: 0%; --bottom-edge: 100%; -webkit-mask-image: linear-gradient(to bottom, black var(--top-edge), transparent var(--top-edge), transparent var(--bottom-edge), black var(--bottom-edge)); mask-image: linear-gradient(to bottom, black var(--top-edge), transparent var(--top-edge), transparent var(--bottom-edge), black var(--bottom-edge)); }
.global-glass-container { margin-top: 65vh; position: relative; z-index: 10; padding-top: 30px; padding-bottom: 40px; }

/* ==========================================================================
   3. НАВИГАЦИЯ: МЕНЮ, ЛОГОТИП И ИНДИКАТОРЫ
   ========================================================================== */
.floating-controls { position: fixed; bottom: 30px; left: 35px; display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 1000; transition: transform 0.2s ease-out; }
.floating-controls.hidden-on-scroll { transform: translateY(250px); transition: transform 0.4s ease-in; }
.floating-logo { width: 200px; height: auto; }
.glass-bubble { width: 55px; height: 55px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); cursor: pointer; transition: all 0.4s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--color-white); }
.glass-bubble:active { transform: scale(0.95); }
.glass-menu { position: fixed; bottom: 90px; left: 20px; transform-origin: bottom left; width: 230px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); padding: 12px; transform: translateY(20px) scale(0.9); opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 999; }
.glass-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.menu-list { list-style: none; text-align: center; }
.menu-list li a { color: var(--color-white); text-decoration: none; display: block; padding: 8px 15px; font-size: 0.85rem; border-radius: 8px; transition: background 0.2s, transform 0.2s; }
.menu-list li a:hover, .menu-list li a:active { background-color: rgba(181, 133, 84, 0.85); }

/* Индикатор скролла (3 стрелочки) */
.scroll-more-indicator { position: absolute; right: 45px; z-index: 100; display: flex; flex-direction: column; gap: 4px; pointer-events: none; transition: opacity 0.3s ease; transform: scale(0.85) !important; }
.scroll-more-indicator.hidden { opacity: 0; visibility: hidden; }
.chevron { width: 14px; height: 14px; border-right: 3px solid rgba(255, 255, 255, 0.9); border-bottom: 3px solid rgba(255, 255, 255, 0.9); transform: rotate(45deg); animation: scrollArrows 1.5s infinite; filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.4)); }
.chevron:nth-child(1) { animation-delay: 0s; }
.chevron:nth-child(2) { animation-delay: 0.15s; }
.chevron:nth-child(3) { animation-delay: 0.3s; }
@keyframes scrollArrows { 0% { opacity: 0; transform: translateY(-5px) rotate(45deg); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(5px) rotate(45deg); } }

/* Пульсация кнопки меню */
@keyframes menu-pulse { 0% { box-shadow: 0 0 0 0 rgba(181, 133, 84, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(181, 133, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(181, 133, 84, 0); } }
#menuToggle { animation: menu-pulse 2s infinite; }
#menuToggle:hover { animation: none; }
.floating-controls:has(.glass-menu.active) #menuToggle { animation: none !important; background-color: rgba(181, 133, 84, 0.85); border-color: rgba(181, 133, 84, 0.2); }

/* ==========================================================================
   4. WI-FI ВИДЖЕТ И QR-КОД
   ========================================================================== */
.wifi-notification { display: flex; align-items: center; justify-content: space-between; width: auto; box-sizing: border-box; background: rgba(0, 0, 0, 0.45) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 5px 20px; color: #ffffff; animation: slideUpFade 0.5s ease forwards; }
.wifi-content { display: flex; align-items: center; gap: 15px; flex: 1; }
.wifi-icon { width: 40px; opacity: 0.9; }
.wifi-text { display: flex; flex-direction: column; align-items: flex-start; font-size: 0.75rem !important; letter-spacing: 0.5px; margin: 0 auto; }
.w-light { opacity: 0.6; margin-right: 5px; }
.w-bold { font-weight: 600; }
.w-divider { display: none; }
.w-group { display: flex; align-items: center; }

/* Кнопка QR */
.qr-trigger { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 3px !important; background: none; border: none; color: white; cursor: pointer; width: auto !important; height: auto; padding: 0; opacity: 0.8; transition: 0.3s; animation: line-color-pulse 2.5s infinite ease-in-out !important; }
.qr-trigger svg { width: 40px !important; height: 40px !important; flex-shrink: 0; display: block !important; }
.qr-trigger svg line { stroke: currentColor !important; }
.qr-text { display: flex !important; flex-direction: column !important; align-items: flex-start !important; font-size: 11px !important; font-weight: 800; line-height: 1 !important; text-align: left; flex-shrink: 0; }

/* Окно QR */
.qr-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; transition: opacity 0.3s ease; }
.qr-window { background: rgba(30, 30, 30, 0.85); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; padding: 30px; text-align: center; color: white; position: relative; max-width: 300px; width: 90%; transform: scale(0.9); transition: transform 0.3s ease; }
.qr-window h3 { font-size: 1.1rem; margin-bottom: 5px; }
.qr-window p { font-size: 0.8rem; opacity: 0.7; margin-bottom: 20px; }
.qr-large-img { width: 100%; border-radius: 8px; }

@keyframes line-color-pulse { 0% { color: #ffffff; } 50% { color: #8c5a2b; } 100% { color: #ffffff; } }

/* Блокиратор Wi-Fi */
html.wifi-dead #wifi-bar, html.wifi-dead .wifi-notification, html.wifi-dead .wifi-notification * { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; animation: none !important; transition: none !important; }

/* ==========================================================================
   5. СЕКЦИИ КОНТЕНТА: О НАС, КАРТА, ГАЛЕРЕЯ
   ========================================================================== */
.about-section { padding: 0 20px 20px; }
.about-container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.2rem; color: var(--color-dark-brown); margin-bottom: 25px; text-align: center; font-weight: 600; }

.location-section { padding: 20px 0 0; }
.location-section h2 { margin-bottom: 20px; }
.location-container { display: flex; flex-direction: column; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 700px; gap: 15px; }
.location-map, .location-panorama { border-radius: 12px; border: none; overflow: hidden; flex: 1; width: 100%; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.gallery-img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-img:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* Лайтбокс */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; z-index: 9200 !important; }
#lightbox { z-index: 9200 !important; position: fixed !important; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-loader { position: absolute; width: 40px; height: 40px; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: var(--color-white); border-radius: 50%; animation: spin 1s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox-loader.active { display: block; }
.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 4px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.4s ease; cursor: grab; touch-action: none; user-select: none; }
.lightbox-img:active { cursor: grabbing; }
.lightbox.active .lightbox-img { opacity: 1; transform: scale(1); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.6); font-size: 40px; cursor: pointer; z-index: 2002; padding: 20px; transition: color 0.3s; user-select: none; }
.lightbox-nav:hover { color: #fff; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

/* ==========================================================================
   6. ПРЕМИАЛЬНЫЕ КНОПКИ (С БЛИКАМИ)
   ========================================================================== */
.main-info-buttons { display: flex; flex-direction: column; gap: 20px; width: 95%; max-width: 1000px; margin: 30px auto 60px auto !important; }
.main-info-buttons .btn, .premium-btn { width: 100%; padding: 16px 20px; background: rgba(0, 0, 0, 0.45) !important; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 12px; cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s ease, background 0.3s ease; text-decoration: none; box-sizing: border-box; display: flex; justify-content: center; align-items: center; }
.main-info-buttons .btn { padding: 20px; }

.main-info-buttons .btn:hover, .premium-btn:hover { background: rgba(181, 133, 84, 0.95) !important; border-color: rgba(181, 133, 84, 0.5) !important; box-shadow: 0 4px 20px rgba(181, 133, 84, 0.4); }

.main-info-buttons .btn::before, .premium-btn::before { content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent); transform: skewX(-25deg); animation: sweep-glare 6s infinite; pointer-events: none; z-index: 1; }
.main-info-buttons .btn span, .premium-btn span { position: relative; z-index: 2; font-size: 0.95rem; font-weight: 500; text-transform: uppercase; text-align: center; line-height: 1; background: linear-gradient(115deg, #fff 40%, #000 50%, #fff 60%); background-size: 300% 100%; color: #fff !important; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: sweep-text 6s infinite; display: block; }
.main-info-buttons .btn span { font-size: 1rem; font-weight: 400; }

.main-info-buttons .trigger-recs::before, .main-info-buttons .trigger-recs span { animation-delay: 0.1s; }
.premium-btn.delayed::before, .premium-btn.delayed span { animation-delay: 0.75s; }

@keyframes sweep-glare { 0% { left: -50%; } 50% { left: 150%; } 100% { left: 150%; } }
@keyframes sweep-text { 0% { background-position: 100% center; } 50% { background-position: 0% center; } 100% { background-position: 0% center; } }

/* ==========================================================================
   7. УНИВЕРСАЛЬНЫЕ МОДАЛЬНЫЕ ОКНА И ВКЛАДКИ
   ========================================================================== */
.recs-overlay, .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(5px); z-index: 9500 !important; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 0 5vh 0; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.recs-overlay.active, .modal-overlay.active { opacity: 1; visibility: visible; }
.recs-window, .modal-window { background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 20px; width: 95%; max-width: 500px; max-height: 85vh; padding: 25px 15px; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.15); transform: translateY(20px); transition: all 0.4s ease; margin: 0 auto; overflow: hidden; margin-top: -30px !important; }
.recs-overlay.active .recs-window, .modal-overlay.active .modal-window { transform: translateY(0); }
.recs-window::-webkit-scrollbar { width: 6px; }
.recs-window::-webkit-scrollbar-thumb { background-color: rgba(181, 133, 84, 0.5); border-radius: 10px; }
.recs-window::-webkit-scrollbar-track { background: transparent; }
.recs-title, .modal-title { text-align: center; margin-top: 0; margin-bottom: 20px; font-size: 1.4rem; color: #fff; font-weight: 500; }
.recs-tab-content, .modal-tab-content { overflow-y: auto; max-height: calc(85vh - 150px); scrollbar-width: none; overscroll-behavior: none !important; -webkit-overflow-scrolling: touch !important; }
.recs-tab-content::-webkit-scrollbar, .modal-tab-content::-webkit-scrollbar { display: none; }
.recs-tab-content::after, .modal-tab-content::after { content: ''; display: block; height: 40px; width: 100%; }

/* Вкладки */
.glass-tabs-container { position: relative !important; display: flex; background: rgba(255, 255, 255, 0.15); padding: 0px !important; margin-bottom: 10px; overflow: hidden !important; white-space: normal !important; border-radius: 8px !important; border: none !important; height: 50px !important; flex-shrink: 0 !important; }
.glass-tabs-container::-webkit-scrollbar { display: none; }
.tab-indicator { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(181, 133, 84, 0.85); border-radius: 0 !important; transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), width 0.3s ease; z-index: 1; pointer-events: none; }
.glass-tab { position: relative; z-index: 2; flex: 1; min-width: 0 !important; background: transparent !important; border: none !important; padding: 10px 5px !important; font-size: 0.85rem; color: #fff; font-weight: 500; line-height: 1.1 !important; text-align: center !important; cursor: pointer; transition: background 0.3s ease, color 0.3s ease; -webkit-appearance: none; appearance: none; border-radius: 0 !important; white-space: normal !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.glass-tab.active { font-weight: 500; }
.glass-tab:not(.active):hover { background: rgba(181, 133, 84, 0.4); }

/* Саб-меню */
.sub-tabs-container { display: flex !important; width: 100% !important; height: 40px !important; background: rgba(70, 70, 70, 1) !important; margin: 0 auto 10px auto !important; padding: 0 !important; position: sticky !important; top: 0 !important; z-index: 50 !important; border-radius: 8px !important; overflow: hidden !important; white-space: normal !important; transform: translateZ(0) !important; will-change: transform !important; }
.sub-tabs-container .tab-indicator { border-radius: 0 !important; }
.sub-tabs-container .glass-tab { flex: 1 1 0 !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; height: 100% !important; }

/* Анимация переключения вкладок */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }
.sub-pane { display: none; padding: 40px 5px 0 5px !important; }
.sub-pane.active { display: flex; flex-direction: column; gap: 15px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   8. КАРТОЧКИ И ДЕТАЛЬНОЕ ОКНО
   ========================================================================== */
/* Карточки сервисов */
.service-card { background: rgba(255, 255, 255, 0.4); border: none; border-radius: 15px; padding: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 130px !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; overflow: hidden !important; }
.service-name { display: flex; justify-content: flex-start; align-items: flex-end; gap: 12px; font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; color: #111; line-height: 1; }
.service-desc { font-size: 0.9rem; color: #444; margin-bottom: 0; }
.service-links { display: flex; gap: 6px; align-items: flex-end; margin-top: auto !important; }
.service-links a { color: #0066cc; text-decoration: none; font-size: 0.9rem; font-weight: bold; }
.app-icon { color: #333; display: inline-flex; transition: transform 0.2s ease, color 0.2s ease; }
.app-icon:hover { color: rgba(181, 133, 84, 1); transform: scale(1.15); }

/* Карточки рекомендаций */
.rec-card { position: relative; height: 120px; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s; display: flex; flex-direction: column; justify-content: flex-end; }
.rec-card:active { transform: scale(0.98); }
.rec-img-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.rec-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.rec-img-wrapper::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%); }
.rec-info { position: relative; z-index: 2; padding: 13px 20px; }
.rec-info h3 { margin: 0 0 2px; font-size: 1.3rem; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.rec-info p { margin: 0; font-size: 1.05rem; color: rgba(255,255,255,0.9); text-shadow: 0 1px 3px rgba(0,0,0,0.5); white-space: normal !important; overflow: hidden; text-overflow: ellipsis; line-height: 1.3 !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; }

/* Тексты (Информация о госте) */
.info-content-wrapper { padding: 5px; color: #fff; }
.info-list { padding-left: 20px; margin: 0; }
.info-list li { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.4; }
.guest-memo-item { margin-bottom: 20px; }
.guest-memo-item strong { display: block; color: rgba(181, 133, 84, 1); margin-bottom: 5px; font-size: 0.95rem; }
.guest-memo-item p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.maps-container { display: flex; flex-direction: column; gap: 15px; padding-bottom: 20px; }
.maps-container iframe { width: 100%; border-radius: 15px; border: none; }
.map-frame { height: 170px; }
.pano-frame { height: 320px; }

/* Детальное окно карточки */
.detail-overlay { z-index: 9999 !important; position: fixed !important; overflow-y: auto; scrollbar-width: none; }
.detail-overlay::-webkit-scrollbar { display: none; }
.detail-window { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.detail-img-wrapper { height: 35vh; min-height: 200px; width: 100%; position: relative; }
.detail-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { padding: 25px 20px; flex: 1; overflow-y: auto; background: rgba(255,255,255,0.8); scrollbar-width: none; overscroll-behavior: none !important; -webkit-overflow-scrolling: touch !important; }
.detail-content::-webkit-scrollbar { display: none; }
.detail-title { margin-top: 0; margin-bottom: 10px; font-size: 1.5rem; color: #111; }
.detail-desc { font-size: 0.95rem; line-height: 1.6; color: #333; margin-bottom: 25px; }
.detail-contacts { margin-bottom: 25px; font-size: 0.9rem; color: #555; }
.detail-geo-btn { display: block; width: 100%; text-align: center; padding: 15px; background: rgba(181, 133, 84, 0.9); color: #fff !important; border-radius: 12px; text-decoration: none; font-weight: bold; font-size: 1rem; transition: background 0.3s; }
.detail-geo-btn:hover { background: rgba(181, 133, 84, 1); }

/* Анимация стрелочек возврата в карточке */
.back-arrows-trigger { position: fixed; left: 50%; transform: translateX(-50%); bottom: 250px; display: flex; flex-direction: row; align-items: center; justify-content: center; cursor: pointer; padding: 15px; z-index: 1000; pointer-events: none; }
.b-arrow { width: 28px; height: 28px; color: rgba(255, 255, 255, 0.8); margin: 0 -6px; opacity: 0; animation: wave-left 1.5s infinite ease-in-out; }
.back-arrows-trigger .a1 { animation-delay: 0s; }
.back-arrows-trigger .a2 { animation-delay: 0.15s; }
.back-arrows-trigger .a3 { animation-delay: 0.3s; }
@keyframes wave-left { 0% { opacity: 0; transform: translateX(5px); } 50% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-5px); } }
.back-arrows-trigger:hover .b-arrow { color: #ffffff; }

/* ==========================================================================
   9. БРОНИРОВАНИЕ И FLATPICKR (Календарь)
   ========================================================================== */
#booking-modal { z-index: 9000 !important; position: fixed !important; }
.booking-grid { display: flex; flex-direction: column; }
.booking-left { width: 100%; padding: 15px 20px; padding-bottom: 35px; background: rgba(0,0,0,0.2); box-sizing: border-box; }
.booking-right { width: 100%; padding: 15px 20px; padding-bottom: 35px; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; }
.booking-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; margin-top: 15px; }
.booking-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); }
.booking-summary-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.3); padding: 5px 25px !important; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
#res-days { color: #b58554; font-weight: 600; }
#res-dates { color: #ffffff !important; opacity: 0.8; }
#go-to-form-btn.active { opacity: 1 !important; pointer-events: auto; }

button.direct-link[data-tab="info-object"], #go-to-form-btn { width: max-content !important; min-width: 230px !important; height: 40px !important; margin: 0px auto 0px auto !important; display: block !important; padding-top: 0 !important; padding-bottom: 0 !important; align-items: center !important; justify-content: center !important; }
#go-to-form-btn { min-width: auto !important; height: 38px !important; margin: 5px 0px !important; }

/* Стилизация календаря Flatpickr */
.flatpickr-calendar.inline { display: block !important; width: 315px !important; min-width: 315px !important; max-width: 315px !important; margin: 0 auto !important; padding: 0 !important; box-sizing: border-box !important; background: #757475 !important; background-color: #757475 !important; box-shadow: none !important; border: 1px solid #ffffff !important; border-radius: 12px !important; }
#calendar-container .flatpickr-innerContainer, #calendar-container .flatpickr-rContainer, #calendar-container .flatpickr-days, #calendar-container .dayContainer { width: 315px !important; min-width: 315px !important; max-width: 315px !important; margin: 0 auto !important; padding: 0 !important; box-sizing: border-box !important; background: transparent !important; background-color: transparent !important; border: none !important; }
#calendar-container .flatpickr-weekdays, #calendar-container .flatpickr-weekdaycontainer { width: 315px !important; min-width: 315px !important; max-width: 315px !important; margin: 0 auto !important; padding: 0 !important; box-sizing: border-box !important; border: none !important; }
#calendar-container .flatpickr-weekdaycontainer, #calendar-container .dayContainer { display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; }
#calendar-container .flatpickr-day, span.flatpickr-weekday { width: 65px !important; min-width: 45px !important; max-width: 45px !important; flex-basis: 45px !important; height: 40px !important; line-height: 40px !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; border: none !important; }

/* Цвета Flatpickr */
.flatpickr-day, .flatpickr-current-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year { color: #ffffff !important; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: rgba(255, 255, 255, 0.3) !important; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { color: #ffffff !important; fill: #ffffff !important; }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: #ffffff !important; }
.flatpickr-weekdays { background: rgba(181, 133, 84, 0.8) !important; border-radius: 6px; height: 35px !important; margin-bottom: 10px; }
span.flatpickr-weekday { color: #fff !important; font-size: 0.75rem !important; opacity: 1 !important; font-weight: 600 !important; }
.flatpickr-current-month .numInputWrapper span, .flatpickr-current-month > svg { display: none !important; }
.flatpickr-current-month input.cur-year { pointer-events: none !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { appearance: none !important; -webkit-appearance: none !important; pointer-events: none !important; }
.flatpickr-current-month .numInputWrapper:hover, .flatpickr-current-month input.cur-year:hover { background: transparent !important; background-color: transparent !important; }

/* Поведение дней */
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: #b58554 !important; border-color: #b58554 !important; color: #ffffff !important; box-shadow: none !important; }
.flatpickr-day.inRange, .flatpickr-day.prevMonthDay.inRange, .flatpickr-day.nextMonthDay.inRange, .flatpickr-day.today.inRange, .flatpickr-day:hover, .flatpickr-day:focus { background: rgba(181, 133, 84, 0.2) !important; border-color: transparent !important; box-shadow: none !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: rgba(181, 133, 84, 1) !important; background: transparent !important; cursor: not-allowed !important; border-color: transparent !important; box-shadow: none !important; }

/* ==========================================================================
   10. АНКЕТА ГОСТЯ (ПОЛЯ ВВОДА)
   ========================================================================== */
.booking-step { display: none; opacity: 0; transform: translateX(-10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.booking-step.active { display: block; opacity: 1; transform: translateX(0); }
#guest-form label { display: block; color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; margin-bottom: 5px; }
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; flex-direction: column; }
.form-row .half { flex: 1; margin-bottom: 0; }
#guest-form input[type="text"], #guest-form input[type="number"], #guest-form input[type="time"], #guest-form select, #guest-form textarea { width: 100%; padding: 10px 15px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; color: #fff; font-family: inherit; font-size: 0.95rem; box-sizing: border-box; transition: border-color 0.2s, background 0.2s; }
#guest-form input:focus, #guest-form select:focus, #guest-form textarea:focus { outline: none; border-color: #b58554; background: rgba(0, 0, 0, 0.6); }

/* Выравнивание полей в Шаге 2 */
#step-2 input[type="text"] { height: 44px !important; box-sizing: border-box !important; }
#step-2 .form-group, #step-2 .form-row { margin-bottom: 20px !important; }
#step-2 .form-row .form-group { margin-bottom: 0 !important; }
#special-requests { height: 135px !important; resize: none !important; box-sizing: border-box; }
#contact-info:disabled { background: rgba(0, 0, 0, 0.2) !important; color: rgba(255, 255, 255, 0.3) !important; cursor: not-allowed !important; }
.contact-wrapper:hover #contact-type-btn { border-color: #b58554; }

/* Кастомные выпадающие списки (Стекло) */
.custom-select-wrapper, .contact-wrapper { position: relative; display: flex; gap: 10px; width: 100%; }
.custom-select-btn, .contact-btn { width: 100%; height: 44px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; color: #fff; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; padding: 0 15px; transition: 0.2s; text-align: left; }
.contact-btn { width: 55px; padding: 0; justify-content: center; }
.custom-select-btn:hover, .contact-btn:hover { border-color: #b58554; background: rgba(0, 0, 0, 0.6); }

.custom-select-dropdown, .contact-dropdown { display: none; position: absolute; top: 50px; left: 0; background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 5px; margin: 0; list-style: none; z-index: 100; width: 100%; min-width: 180px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); max-height: 210px; overflow-y: auto; }
.custom-select-dropdown.active, .contact-dropdown.active { display: block; }
.custom-select-dropdown li, .contact-dropdown li { padding: 10px 15px; cursor: pointer; color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; border-radius: 4px; transition: 0.2s; }
.custom-select-dropdown li:hover, .contact-dropdown li:hover { background: rgba(181, 133, 84, 0.2); color: #fff; }

/* Скроллбар для кастомных списков */
.custom-select-dropdown::-webkit-scrollbar, .contact-dropdown::-webkit-scrollbar { width: 12px; }
.custom-select-dropdown::-webkit-scrollbar-track, .contact-dropdown::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; margin-block: 8px; border: 3px solid transparent; background-clip: padding-box; }
.custom-select-dropdown::-webkit-scrollbar-thumb, .contact-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.custom-select-dropdown::-webkit-scrollbar-thumb:hover, .contact-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(181, 133, 84, 0.8); border: 3px solid transparent; background-clip: padding-box; }

/* Блоки сетки Анкеты */
#guest-count { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; border-left: none !important; text-align: center; padding-left: 0 !important; }
#guest-count::-webkit-outer-spin-button, #guest-count::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.guest-row { display: grid !important; grid-template-columns: 130px 1fr !important; gap: 10px !important; }
.guest-row .half { flex: none !important; width: 100% !important; }
.guest-row .custom-select-btn { justify-content: center !important; padding: 0 !important; }
.time-split { display: flex; flex-direction: row !important; gap: 10px !important; width: 100%; }
.time-split .half { flex: 1; min-width: 0; }

/* Кнопки навигации внутри бронирования */
#step-1 .btn, #step-1 .premium-btn, #step-2 .btn, #step-2 .premium-btn { height: 44px !important; min-height: 44px !important; font-size: 1rem !important; font-family: inherit !important; color: #ffffff !important; padding: 0 30px !important; display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; font-weight: 100 !important; text-transform: uppercase !important; }

/* Скроллбар фона модального окна бронирования */
#booking-modal.recs-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; display: flex !important; align-items: flex-start !important; justify-content: center !important; padding: 20px 10px !important; box-sizing: border-box !important; }
#booking-modal.recs-overlay:not(.active) { display: none !important; }
#booking-modal .recs-window { position: relative !important; margin: auto !important; max-height: none !important; height: auto !important; overflow: visible !important; width: 100% !important; max-width: 850px !important; }

/* ==========================================================================
   11. ПОДВАЛ (FOOTER)
   ========================================================================== */
.footer { background-color: rgba(5, 5, 5, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 15px 20px; color: var(--color-white); text-align: center; position: relative; z-index: 15; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-icons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; align-items: center; }
.booking-real-logo { height: 28px; opacity: 0.9; transition: all 0.3s ease; position: relative; top: 5px; }
.booking-link:hover .booking-real-logo { opacity: 1; transform: scale(1.1); }
.social-icon { color: var(--color-blue-grey); font-size: 1.5rem; transition: color 0.3s ease, transform 0.3s ease; text-decoration: none; }
.social-icon:hover, .social-icon:active { color: var(--color-white); transform: scale(1.15); }
.footer-text h3 { font-size: 0.9rem; font-weight: 600; color: var(--color-white); margin-bottom: 5px; letter-spacing: 0.5px; }
.footer-text a { color: var(--color-white); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.footer-text a:hover { color: var(--color-light-brown); }

/* ==========================================================================
   *** ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ
   ========================================================================== */
/* Обертка склеенных полей */
.merged-input-wrapper { display: flex; gap: 0; }
/* Квадрат с иконкой (слева) */
.merged-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); border-right: none; border-radius: 8px 0 0 8px; color: #fff; display: flex; align-items: center; justify-content: center; }
/* Кнопка с текстом (справа) */
.merged-btn { flex: 1; border-top-left-radius: 0; border-bottom-left-radius: 0; text-align: center; justify-content: center; padding-left: 0; }
/* Кнопка иконки контакта */
.contact-icon-btn { border-top-right-radius: 0; border-bottom-right-radius: 0; flex-shrink: 0; width: 44px; position: relative; z-index: 2; }
/* Поле ввода контакта */
.contact-input-field { flex: 1; margin-top: 0; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; width: 100%; position: relative; z-index: 1; margin-left: -1px; }
/* Карточка с итоговой ценой */
.final-price-card { margin-bottom: 20px; padding-left: 20px; background: rgba(0,0,0,0.3); border-radius: 8px; border: 1px solid rgba(181, 133, 84, 0.5); }
.final-price-card h4 { color: #b58554; margin-bottom: 0px; font-weight: normal; margin-top: 10px; }
.final-price-value { font-size: 1.8rem; font-weight: bold; color: #fff; }
/* Обертка кнопок Назад/Забронировать */
.submit-buttons-wrapper { display: flex; gap: 15px; }
.btn-back-style { background: transparent; border: 1px solid rgba(255,255,255,0.3); width: 35%; }
.btn-submit-style { width: 65%; }
/* Главное окно бронирования (ограничитель ширины) */
.booking-main-window { max-width: 850px !important; padding: 0 !important; overflow: hidden !important; }
/* Центрированные тексты над календарем */
.calendar-title { text-align: center; margin-bottom: 1px; }
.calendar-subtitle { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
/* Правая колонка с кнопками в Шаге 1 */
.booking-right-flex { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.btn-next-style { width: auto; padding: 10px 25px; opacity: 0.4; } /* Кнопка "Далее" */
.btn-details-style { width: 100%; margin-top: auto; margin-bottom: 20px; } /* Кнопка "Подробнее" */
/* Сноска со звездочкой под временем заезда */
.booking-note-text { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: -10px; }

/* --- ПОЛИРОВКА ВЫПАДАЮЩИХ СПИСКОВ И ПОЛЕЙ --- */

/* 1, 2, 4. Выбранные значения (кнопки) */
.custom-select-btn {
    padding: 0 15px !important; /* Отступы по краям (решает проблему прилипания) */
    text-align: left !important; /* Прижимаем текст влево */
    justify-content: flex-start !important; 
    white-space: normal !important; /* Разрешаем перенос текста на ПК (в 2 строки) */
    line-height: 1.2 !important; /* Чтобы перенесенный текст смотрелся аккуратно */
}

/* Исключение для коротких цифр (Гости) и Времени, чтобы они оставались по центру */
.guest-row .custom-select-btn,
.time-split .custom-select-btn {
    text-align: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
}

/* 3. Значения внутри самих списков строго по центру */
.custom-select-dropdown li, 
.contact-dropdown li {
    text-align: center !important;
}

/* ВОЗВРАЩАЕМ ФИРМЕННЫЙ СТИЛЬ ДЛЯ ПОЛЕЙ ТЕЛЕФОНА И EMAIL */
#guest-form input[type="tel"],
#guest-form input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

#step-2 input[type="tel"],
#step-2 input[type="email"] {
    height: 44px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   СТИЛИ ДЛЯ ОКНА ЗАСЕЛЕНИЯ (ИДЕАЛЬНАЯ СЕТКА)
   ========================================================================== */

/* 1. Отключаем резину, чтобы поля прижались друг к другу с равным шагом */
#checkin-form .booking-right {
    justify-content: flex-start !important;
}

/* 2. Равномерные отступы ровно по 20px */
#checkin-form .form-group,
#checkin-form .form-row {
    margin-bottom: 20px !important;
}
#checkin-form .form-row .form-group {
    margin-bottom: 0 !important;
}

/* 3. Опускаем первую строку справа ровно на уровень первой строки слева */
#checkin-form .booking-right > .form-group:first-child {
    margin-top: 10px !important;
}

/* 4. Кнопки выталкиваем в самый низ окна */
#checkin-form .submit-buttons-wrapper {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* 5. Внешний вид всех полей ввода (белый текст, темный фон) */
#checkin-form input[type="text"],
#checkin-form input[type="date"],
#checkin-form textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important; 
    color-scheme: dark; 
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}
#checkin-form input::-webkit-input-placeholder,
#checkin-form textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 6. Размеры полей */
#checkin-form input[type="text"],
#checkin-form input[type="date"] {
    height: 44px !important;
}

/* Твой царский размер комментария (зафиксирован намертво) */
#checkin-form textarea {
    height: 135px !important; 
    resize: none !important;
}

/* 7. Лейблы (светлые описания над полями) */
#checkin-form label {
    display: block !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem !important;
    margin-bottom: 5px !important;
}

/* 1. Возвращаем прямой левый стык полю ввода контакта */
#checkin-form .contact-input-field {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* 2. Делаем ВСЕ остальные выпадающие списки (гости, время, парковка) снова круглыми */
#checkin-form .custom-select-dropdown {
    border-radius: 8px !important;
}
/* Железобетонно убираем скругление слева у поля контакта в окне заселения */
#checkin-form input#ci-contact-info {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* 2. Делаем окно заселения скроллящимся (по аналогии с календарем) */
#checkin-modal {
    overflow-y: auto !important;
    display: flex !important;
    align-items: flex-start !important;
    padding: 20px 10px !important;
}

#checkin-modal .recs-window {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: auto !important;
}

/* Применяем темный дизайн к полям телефона и email в окне заселения */
#checkin-form input[type="tel"],
#checkin-form input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important; 
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    height: 44px !important;
}

/* Убираем левое скругление для телефона и email (стык с кнопкой) */
#checkin-form input[type="tel"]#ci-contact-info,
#checkin-form input[type="email"]#ci-contact-info {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* --- СЕКРЕТНАЯ АДМИН-ПАНЕЛЬ (GLASS STYLE) --- */
#admin-popup {
    display: none; 
    position: fixed; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    width: 90%; max-width: 420px; 
    background: rgba(20, 20, 25, 0.85); /* Темное стекло */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    padding: 25px 20px; 
    border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    color: #fff; /* Белый текст */
    font-family: sans-serif;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 30px; /* ОТОДВИНУЛИ тушку календаря от крестика вниз */
}

.admin-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 5px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.admin-nav-btn:hover { background: rgba(255, 255, 255, 0.2); }

#admin-month-name { 
    margin: 0; font-size: 18px; font-weight: 500; 
    color: #b58554; /* Фирменный золотой */
}

.admin-weekdays {
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.admin-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 5px; 
    text-align: center; 
}

.admin-day { 
    padding: 8px 0; 
    border-radius: 8px; 
    font-size: 13px; 
    background: rgba(255, 255, 255, 0.05); /* Легкий контур у пустых ячеек */
    transition: transform 0.2s;
}
.admin-day.empty { background: transparent; }

/* Цветовые метки бронирований */
.day-local { background: rgba(46, 204, 113, 0.9) !important; color: white; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.5);}   
.day-booking { background: rgba(0, 113, 194, 0.9) !important; color: white; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.5);} 
.day-airbnb { background: rgba(255, 90, 95, 0.9) !important; color: white; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.5);}  
.day-clean { background: rgba(241, 196, 15, 0.9) !important; color: black; font-weight: bold; }   
.longblock { background-color: #9b59b6; color: white; }

.admin-legend { 
    margin-top: 20px; 
    display: flex; 
    justify-content: space-around; 
    font-size: 11px; 
    color: rgba(255, 255, 255, 0.7);
}
.admin-close { 
    position: absolute;
    top: 10px; /* Прижали крестик выше к верхнему краю */
    right: 15px; /* Прижали чуть правее */
    cursor: pointer; 
    font-size: 26px; /* Сделали сам крестик чуть крупнее для удобства */
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
    line-height: 1;
}
.admin-close:hover { color: #fff; }

.leg-local { color: #2ecc71; }
.leg-booking { color: #3498db; }
.leg-airbnb { color: #ff5a5f; }
.leg-clean { color: #f1c40f; }

/* Общие стили для обоих окон */
#password-modal .recs-window,
#alert-modal .recs-window {
    max-width: 320px;
    padding: 40px 20px;
    text-align: center;
    height: auto;
    border-radius: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Стили окна пароля */
#password-modal h3 {
    color: #b58554;
    margin-bottom: 20px;
}

#admin-pass-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    outline: none;
}

/* Стили окна уведомлений */
#alert-modal .recs-window > div {
    font-size: 40px;
    color: #b58554;
    margin-bottom: 15px;
}

#alert-modal h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

#alert-modal-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
    font-size: 14px;
}

/* Уменьшение масштаба главных кнопок до 75% */
#admin-pass-submit,
#alert-modal-ok {
    width: 100%;
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -15px; /* Компенсация пустого места после сжатия */
}

/* ==========================================================================
   12. MEDIA QUERIES (АДАПТИВ)
   ========================================================================== */

/* --- ТОЛЬКО ДЛЯ ПК И ПЛАНШЕТОВ (Широкий экран) --- */
@media (min-width: 1025px) {
    .desktop-video { display: block; }
    .mobile-video { display: none; }
    .floating-logo { width: 260px; } 
    .hero { align-items: flex-start; justify-content: flex-end; padding: 20px 40px; }
    .hero__content { max-width: 500px; transform-origin: top right; }
    .main-info-buttons { width: 750px; margin: 0 auto; }
    .recs-window, .modal-window { width: 90%; max-width: 850px; padding: 30px; }
    .sub-pane.active { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .sub-pane.active:has(.service-card) { grid-template-columns: repeat(3, 1fr) !important; }
}

/* --- ТОЛЬКО ДЛЯ ГОРИЗОНТАЛЬНЫХ ТЕЛЕФОНОВ (iPhone Landscape и др.) --- */
@media (orientation: landscape) and (max-height: 500px) {
    .global-glass-container { margin-top: 45vh !important; } 
    .hero { justify-content: flex-end !important; padding-right: 5% !important; }
    .hero__wrapper { max-width: 45% !important; margin-right: 5% !important; }
    .hero__content { max-width: 100% !important; padding: 15px !important; margin: 0 !important; background: rgba(0, 0, 0, 0.3) !important; }
    .hero__content h1 { font-size: 0.85rem !important; margin-bottom: 8px !important; }
    .hero__content p { font-size: 0.7rem !important; -webkit-line-clamp: 3 !important; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    
    .floating-controls { bottom: 10px; left: 15px; scale: 0.85; }
    .glass-menu { position: absolute !important; top: auto !important; bottom: calc(50vh - 65px) !important; left: 160px !important; transform: translateY(50%) scale(0.9) !important; transform-origin: left center !important; }
    .glass-menu.active { transform: translateY(50%) scale(1) !important; }
    .menu-list li a { padding: 12px !important; font-size: 0.9rem !important; }

    .recs-overlay, .modal-overlay { overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; align-items: flex-start !important; padding-top: 15px !important; padding-bottom: 15px !important; padding-left: 0 !important; padding-right: 0 !important; }
    .recs-window, .modal-window { width: 80% !important; max-width: none !important; min-height: 80vh !important; height: auto !important; max-height: none !important; top: 0 !important; margin: 0 !important; }
    .recs-title, .modal-title { margin-bottom: 10px !important; font-size: 1.1rem !important; }
    .glass-tabs-container { height: 40px !important; margin-bottom: 5px !important; }
    .glass-tab { font-size: 0.8rem !important; padding: 5px !important; }
    .recs-tab-content { max-height: calc(96vh - 90px) !important; }

    .gallery-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
    .gallery-img { height: auto !important; aspect-ratio: 1 / 1 !important; }
    .sub-pane.active { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .sub-pane.active:has(.service-card) { grid-template-columns: repeat(3, 1fr) !important; }

    .main-info-buttons { flex-direction: row !important; width: 96% !important; height: 60px !important; max-width: 560px !important; margin: 0 auto 30px auto !important; gap: 15px !important; padding: 0 !important; }
    .main-info-buttons .btn, .main-info-buttons .premium-btn { padding: 12px 10px !important; flex: 1 !important; }
    .main-info-buttons .btn span, .main-info-buttons .premium-btn span { font-size: 1rem !important; }

    .desktop-video { display: block !important; }
    .mobile-video { display: none !important; }
    .hero__video { object-fit: cover !important; object-position: center center !important; width: 100vw !important; height: 100vh !important; }

    .wifi-text { flex-direction: row !important; align-items: center !important; gap: 0 !important; }
    .w-divider { display: inline-block !important; margin: 0 12px !important; }
    .wifi-notification { margin-left: 25px !important; margin-right: 25px !important; }

    /* Применяем скролл и выравнивание к ОБЕИМ анкетам */
    #booking-modal, #checkin-modal { 
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch !important; 
        align-items: flex-start !important; 
        padding-top: 15px !important; 
        padding-bottom: 15px !important; 
    }
    
    /* Снимаем ограничения по высоте и РАСТЯГИВАЕМ ОБА окна */
    #booking-modal > div, #checkin-modal > div, .booking-container { 
        height: auto !important; 
        max-height: none !important; 
        margin-top: 0 !important; 
        margin-bottom: 0 !important; 
        width: 100% !important; 
        max-width: none !important;
    }
    /* Отступ для анкеты бронирования (оставляем как было) */
    #booking-modal .booking-right .form-group:first-of-type { 
        margin-top: 40px !important; 
    }
    
    /* УБИРАЕМ этот отступ для окна заселения и подтягиваем наверх */
    #checkin-form .booking-right {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #checkin-form .booking-right > .form-group:first-of-type { 
        margin-top: 0 !important; 
    }
    
    #step-1 .booking-summary-bar { margin-top: 70px !important; margin-bottom: 15px !important; }
    #step-1 .booking-right > div:last-child { margin-top: 0 !important; }
	
}

/* --- ОБЩИЕ ПРАВИЛА ДЛЯ ПЛАНШЕТОВ И ПК --- */
@media (min-width: 768px) {
    h2, h3, .section-title, .accordion-header { font-size: 1.15rem !important; }
    .section-title { font-size: 1.3rem; }
    .menu-list li a { font-size: 0.8rem; }
    .footer-text h3 { font-size: 1.15rem !important; }
    
    .hero__wrapper { max-width: 500px !important; margin-right: 0 !important; }
    .floating-controls { bottom: 35px; left: 35px; } 
    .glass-bubble { width: 65px; height: 65px; }
    .glass-menu { bottom: 105px; left: 35px; width: 260px; }
    .about-section { padding: 40px 20px 20px; }
    .detail-window { width: 60%; max-width: 800px; padding: 0 !important; }
    
    .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; width: 70%; margin: 0 auto; }
    .gallery-img { height: 250px; }
    
    .location-container { flex-direction: row; height: 450px; gap: 20px; }
    .location-map { flex: 1; }
    .location-panorama { flex: 2; }

    .wifi-text { flex-direction: row !important; align-items: center !important; gap: 0 !important; }
    .qr-trigger { gap: 1px !important; }
    .qr-text { font-size: 11px !important; line-height: 1 !important; }
    .w-group { flex-direction: column !important; align-items: flex-start !important; gap: 0px !important; }
    .w-light { margin-right: 0 !important; font-size: 0.75rem !important; margin-bottom: -3px !important; }
    .w-divider { display: inline-block !important; height: 24px !important; margin: 0 15px !important; }
    .wifi-notification { margin-left: 25px !important; margin-right: 25px !important; }

    .booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .booking-left { border-right: 1px solid rgba(255,255,255,0.1); padding-right: 30px; padding-left: 30px; }
    .booking-right { padding-left: 13px; padding-right: 30px; }
    .booking-gallery { margin-bottom: 60px !important; margin-top: 0px !important; height: 100%; }
    
    .booking-right .form-group:first-of-type { margin-top: 55px; }
    .booking-summary-bar { margin-bottom: 30px !important; margin-top: 60px !important; }
    .booking-right > div:last-child { margin-top: 70px !important; } 

    #step-1 .booking-grid { align-items: start !important; }
    #step-1 .booking-right { display: flex; flex-direction: column; justify-content: flex-start !important; height: 100%; }
    #step-1 .booking-right > div:first-child { margin-top: 0 !important; }

    #step-2 .booking-grid { align-items: stretch; }
    #step-1 .booking-right .btn, #step-1 .booking-right .premium-btn { flex-shrink: 0 !important; }
	#checkin-form .booking-right > .form-group:first-child { margin-top: 55px !important; }
}

/* --- МАЛЕНЬКИЕ ЭКРАНЫ --- */
@media (max-width: 360px) {
    .hero__actions { flex-direction: column; } 
    .btn { width: 100%; }
}