:root {
    --primary: #5D4037; /* Темно-коричневий (для гарного контрасту з жовтим) */
    --secondary: #8D6E63; /* Світло-коричневий */
    --accent: #FFA000; /* Темно-жовтий/оранжевий */
    --light: #FFF8E1; /* Дуже світлий жовтий */
    --white: #ffffff;
    --black: #1a1a1a;
    --yellow-bg: #FFEB3B; /* Основний жовтий фон */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--yellow-bg);
    color: var(--black);
    line-height: 1.6;
}

/* Навігація */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s, padding 0.3s;
    background-color: var(--primary);
}

.navbar.scrolled {
    background-color: var(--primary);
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.book-btn {
    background-color: var(--accent);
    color: var(--black);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Герой секція */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('./img/holovna.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--black);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Секція про нас */
.about {
    padding: 100px 10%;
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--yellow-bg);
}

.about-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 30px;
}

/* Номери */
.rooms {
    padding: 100px 10%;
    background-color: var(--light);
}

.rooms-header {
    text-align: center;
    margin-bottom: 50px;
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.room-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.room-img {
    height: 250px;
    overflow: hidden;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.room-card:hover .room-img img {
    transform: scale(1.05);
}

.room-info {
    padding: 25px;
}

.room-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary);
}

.room-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--black);
}

.book-now {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.book-now:hover {
    background-color: var(--secondary);
}

/* Форма бронювання */
.booking {
    padding: 100px 10%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1518633629427-0b31a550a3b3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-title {
    text-align: center;
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 16px;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--accent);
    color: var(--black);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 30px auto 0;
}

.submit-btn:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Контакти */
.contact {
    padding: 100px 10%;
    display: flex;
    gap: 50px;
    background-color: var(--yellow-bg);
}

.contact-info {
    flex: 1;
}

.contact-card {
    background-color: var(--light);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    color: var(--primary);
}

.map {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Футер */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px 10% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--black);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features {
    padding: 5rem 10%;
    background-color: var(--yellow-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Галерея */
.gallery {
    columns: 3 300px;
    column-gap: 20px;
    margin-top: 60px;
    background-color: var(--yellow-bg);
    padding: 2rem 10%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
    /* Стилі для мініатюр */
    .thumbnail-container {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }
    
    .room-thumbnail {
        width: 80px;
        height: 80px;
        object-fit: cover;
        cursor: pointer;
        border: 2px solid #ddd;
        border-radius: 4px;
        transition: 0.3s;
    }
    
    .room-thumbnail:hover {
        border-color: #aa8453;
    }
    
    /* Стилі для модального вікна */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        padding-top: 50px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.9);
    }
    
    .modal-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 800px;
        max-height: 80vh;
    }
    
    .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
    }
    
    .close:hover {
        color: #aa8453;
    }
    
    #caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 800px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
    }

/* Анімації */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Адаптивність */
@media (max-width: 992px) {
    .about, .contact {
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
}