:root {
    --primary-color: #2d5a27;
    --secondary-color: #8fbc8f;
    --accent-color: #d2b48c;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(rgba(45, 90, 39, 0.7), rgba(45, 90, 39, 0.7)), url('https://picsum.photos/seed/forest-glamping/1600/800.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-section {
    background-color: var(--light-color);
}

.contact-info {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.rules-list {
    list-style-type: none;
    padding-left: 0;
}

.rules-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.rules-list li:before {
    content: '\f058';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #1e3a1b;
    border-color: #1e3a1b;
    color: white;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.amenity-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.amenity-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Галерея фотографий */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 90, 39, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
}

/* Стили для модального окна */
.modal-image {
    border-radius: 10px;
    max-height: 90vh;
    object-fit: contain;
}

/* Стрелки навигации в модальном окне */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1040;
    opacity: 0.7;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.modal-nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
}

/* Счетчик изображений */
.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1040;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-nav-prev {
        left: 10px;
    }
    
    .modal-nav-next {
        right: 10px;
    }
    
    .modal-counter {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Видео секция */
.video-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-player {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.video-info {
    padding: 20px;
}

.video-info h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.video-info p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .video-player {
        height: 200px;
    }
}
