/* =========================================
    1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗА
   ========================================= */
:root {
    --bg-cream: #FDFBF4;      
    --navy: #244471;
    --gold-accent: #d4a373;  
    --white: #ffffff;
    --footer-bg: #ece9e2;    
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-cream); margin: 0; line-height: 1.6; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 40px; color: var(--navy); text-transform: uppercase; font-weight: 700; }

/* =========================================
    КНОПКИ И ОБЩИЕ ЭЛЕМЕНТЫ (Сохранено для использования в секциях)
   ========================================= */
.btn-dark { background: var(--navy); color: #fff !important; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; display: inline-flex; justify-content: center; align-items: center; }

/* =========================================
    HERO & BOOKING MODULE (STRICT LAYOUT)
   ========================================= */
.hero {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    margin-bottom: 120px; 
}

.hero-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); 
}

.hero-card {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    text-align: left;
}

.hero-card h1 {
    color: #ffffff !important; 
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-card p {
    color: #ffffff !important; 
    font-size: 18px;
}

.search-panel {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1100px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 10;
}

/* =========================================
    3. СЕТКИ (ДЕСКТОП)
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-main-img { width: 100%; height: 450px; object-fit: cover; border-radius: 15px; }

.amenities-row { display: flex; justify-content: space-between; margin: 25px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 0; }
.amenity-item { text-align: center; font-size: 12px; flex: 1; }
.amenity-item i { margin-bottom: 5px; display: block; }
.location-details { margin-bottom: 25px; font-size: 14px; }
.location-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.location-line i { flex-shrink: 0; margin-top: 3px; }
.about-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.about-thumbs img { width: 100%; height: 80px; object-fit: cover; border-radius: 10px; }

.features-grid { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 30px; 
    align-items: stretch; 
    width: 100%; 
    max-width: 1140px; 
    margin: 0 auto; 
}
.feature-card { 
    background: #fff; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    justify-content: center; 
    margin: 0; 
    width: auto;
}
.feature-card i { font-size: 32px; margin-bottom: 15px; color: var(--navy); }

.reviews-grid-new { display: flex !important; justify-content: center !important; gap: 20px !important; width: 100%; max-width: 1140px; margin: 0 auto; flex-wrap: wrap; }
.review-card-modern { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; width: min(100%, 350px); flex: 1 1 280px; }

.review-card-modern .stars, .review-card-modern .stars-wrapper { display: flex !important; gap: 5px; color: #ffb400; margin-bottom: 10px; }

.gallery-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 15px; }
.gallery-item { height: 250px; border-radius: 12px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.gallery-overlay svg,
.gallery-overlay i, 
.gallery-text {
    color: #ffffff !important;
    stroke: #ffffff !important; 
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
    4. ФУТЕР
   ========================================= */
.footer { background: var(--footer-bg); padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--navy); margin-bottom: 15px; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 13px; color: #777; border-top: 1px solid #d4d1ca; margin-top: 30px; }

/* =========================================
    5. АДАПТИВНОСТЬ (MOBILE)
   ========================================= */
.mobile-booking-btn { display: none !important; }

@media (max-width: 768px) {
    .hero { height: auto; min-height: clamp(360px, 65vh, 520px); margin-bottom: 40px; }
    .hero-card h1 { font-size: 32px; }
    .search-panel { position: static; bottom: auto; width: 100%; margin: 16px 0 0; left: 0; transform: none; box-sizing: border-box; }
    .about-grid, .features-grid, .footer-grid { grid-template-columns: 1fr !important; }
    .reviews-grid-new { flex-direction: column !important; align-items: center !important; }
    .review-card-modern { width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    .search-panel {
        width: calc(100% - 30px);
        left: 15px;
        transform: none;
        padding: 20px;
    }
}