/* Põhistiilid ja sujuv kerimine */
html {
    scroll-behavior: smooth; /* See rida teebki kerimise sujuvaks! */
    scroll-padding-top: 100px; /* Jätab kleepuva menüü jaoks ruumi, et see teksti peale ei sõidaks */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #333;
    background-color: #fff;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Kleepuv Header */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Õrn vari, mis tekib kerides */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 38px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d8a29b;
}

/* Sektsioonide üldine paigutus */
.section-padding {
    padding: 80px 0; /* Jätab sektsioonide vahele mõnusa hingamisruumi */
}

.section-divider {
    border-top: 1px solid #f0f0f0; /* Õrn eraldusjoon sektsioonide vahel */
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* Hero Section (Pealeht) */
.hero-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

/* Pildigalerii */
.image-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    min-height: 400px;
    background-color: #eee;
    border: 1px solid #ddd;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail-images img {
    width: calc(33.33% - 7px);
    height: auto;
    min-height: 100px;
    background-color: #eee;
    border: 1px solid #ddd;
    object-fit: cover;
}

/* Booking Section */
.booking-section {
    background-color: #fdf2f1;
    padding: 40px;
    border-radius: 5px;
}

.booking-section h2 {
    font-family: "Playfair Display", serif;
    font-weight: bold;
    color: #333;
    margin-top: 0;
}

.booking-section p {
    color: #555;
    margin-bottom: 30px;
}

.calendar-form {
    border: 1px solid #eee;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header span {
    font-weight: bold;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #d8a29b;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th, .calendar-table td {
    text-align: center;
    padding: 8px;
    font-size: 12px;
}

.calendar-table th {
    font-weight: normal;
    color: #888;
}

.calendar-table td.available {
    cursor: pointer;
}

.calendar-table td.available.selected {
    background-color: #d8a29b;
    color: #fff;
    border-radius: 50%;
}

.calendar-table td.empty {
    visibility: hidden;
}

/* Dropdowns - UUENDATUD ILUSAM DISAIN */
.dropdown-group {
    display: grid;
    grid-template-columns: 1fr; /* Nüüd ainult 1 veerg, kuna meister on eemaldatud */
    margin: 25px 0;
}

.dropdown label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    appearance: none; /* Eemaldab brauseri vana koleda noole */
    /* Lisame ise uue ilusa noole SVG ikoonina */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.dropdown select:focus {
    outline: none;
    border-color: #d8a29b;
    box-shadow: 0 0 0 3px rgba(216, 162, 155, 0.2);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
}

.time-slot.selected {
    background-color: #d8a29b;
    color: #fff;
    border: 1px solid #d8a29b;
}

.booking-btn {
    width: 100%;
    background-color: #d8a29b;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 15px 0;
    font-size: 14px;
    cursor: pointer;
    margin-top: 30px;
    font-weight: bold;
}

/* UUS: Teenused CSS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Tõstab kasti õrnalt, kui hiir on peal */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-card h3 {
    color: #d8a29b;
    margin-top: 0;
}

/* HINNAKIRJA PARANDUS */
.price-list {
    max-width: 800px; /* Teeme veidi laiemaks, et oleks õhku */
    margin: 0 auto;
}

.price-item {
    border-bottom: 1px solid #eee;
    padding: 20px 10px; /* Lisame polsterdust, et poleks kokku surutud */
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column; /* Nimi/hind on üleval, kirjeldus all */
}

.price-item:hover {
    background-color: #fdf2f1;
}

.price-header {
    display: flex;
    justify-content: space-between; /* Nimi vasakul, hind paremal */
    align-items: center;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
}

.price-desc {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 0; /* Alguses pole vahet */
}

/* Kui klikitakse lahti */
.price-item.active .price-desc {
    max-height: 200px;
    margin-top: 15px; /* Tekitame teksti kohale vahe */
    padding-bottom: 5px;
}

.price .arrow {
    font-size: 12px;
    margin-left: 8px;
    color: #d8a29b;
    display: inline-block;
    transition: transform 0.3s;
}

.price-item.active .arrow {
    transform: rotate(180deg);
}

.price {
    color: #d8a29b;
    white-space: nowrap; /* Hind ei lähe kahele reale */
}

/* UUS: Kontakt CSS */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.contact-info p {
    margin: 10px 0;
}
/* Dünaamilise Kalendri CSS */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: #888;
    margin-bottom: 10px;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.calendar-day:hover:not(.empty-day) {
    background-color: #fdf2f1;
}

.calendar-day.selected {
    background-color: #d8a29b;
    color: white;
    font-weight: bold;
}

.calendar-day.empty-day {
    cursor: default;
}

/* =========================================
   MOBIILIVAATE (RESPONSIVE) TÄIUSTUSED 
========================================= */
/* Veendu, et booking-section on relative, et märk teaks, kuhu kinnituda */
.booking-section {
    position: relative; 
}

/* KUU PAKKUMISE MÄRK (Hõljub nurgas) */
.promo-badge {
    position: absolute;
    top: -25px; 
    right: -25px; 
    width: 130px;
    height: 130px;
    background-color: #fff;
    border-radius: 50%;
    border: 3px solid #d8a29b; 
    box-shadow: 0 8px 25px rgba(216, 162, 155, 0.4); 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100; 
    overflow: hidden; 
    animation: pulsePromo 3s infinite; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.promo-badge:hover {
    transform: scale(1.1) rotate(5deg); 
    animation: none; 
    box-shadow: 0 12px 30px rgba(216, 162, 155, 0.6);
}

.promo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tekst diagonaalselt üle pildi */
.promo-text {
    position: absolute;
    bottom: 20px;
    text-align: center;
    font-weight: 900;
    color: #fff;
    background-color: rgba(216, 162, 155, 0.95);
    padding: 6px 0;
    width: 120%; 
    font-size: 12px;
    transform: rotate(-15deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Pulseerimise animatsioon */
@keyframes pulsePromo {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 162, 155, 0.5); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(216, 162, 155, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 162, 155, 0); }
}
@media (max-width: 850px) {
    /* 1. Teeme sisu laiemaks (80% asemel 95%), et telefonis poleks tühje ääri */
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* 2. Menüü ja logo tõstame üksteise alla, et vältida kokkusurumist */
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }

    /* Menüülingid murrame uuele reale, kui ruumi jääb väheks */
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    nav a {
        font-size: 16px;
        padding: 5px;
    }
/* Logo tsentreerimise parandus mobiilis */
    .logo-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo-link img {
        transform: scale(1.5) !important; /* Mobiilis veidi väiksem suum, et sobiks ilusti */
        transform-origin: center center !important; /* SUURENEB KESKELT, mitte vasakult! */
        margin: 10px 0;
    }
/* 3. Pealehe paigutus: Broneerimine üles, pildid alla */
    .hero-section {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .booking-section {
        order: 1; /* Tõstab broneerimise esimeseks */
        padding: 25px 15px;
    }

    .image-gallery {
        order: 2; /* Lükkab pildid broneerimiskalendri alla */
    }
    /* 4. Broneerimiskasti padding väiksemaks ja nupud suuremaks */
    .booking-section {
        padding: 25px 15px;
    }
    
    .section-padding {
        padding: 50px 0; /* Sektsioonide vahed väiksemaks */
    }

    /* Kellaajad 4 tulba asemel 2 tulpa - siis on sõrmega hea vajutada! */
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .time-slot {
        padding: 12px 0; /* Teeme nupud paksemaks */
        font-size: 14px;
    }

    /* 5. Kuu pakkumise märk väiksemaks, et ei tekitaks horisontaalset kerimist */
    .promo-badge {
        top: -15px;
        right: -5px;
        width: 100px;
        height: 100px;
    }
    
    .promo-text {
        font-size: 10px;
        bottom: 12px;
    }

    /* 6. Teenuste kastid üksteise alla */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
}

/* Veel väiksemad ekraanid (väikesed telefonid) */
@media (max-width: 480px) {
    nav ul {
        gap: 10px;
    }
    
    nav a {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }
    
    .booking-section h2 {
        font-size: 22px;
    }

    .calendar-day {
        padding: 8px 0;
        font-size: 13px;
    }
}
.price-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 10px;
    cursor: pointer;
}
.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-desc {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #777;
    padding-top: 0;
}
.price-item.active .price-desc {
    max-height: 100px;
    padding-top: 10px;
}
.arrow {
    font-size: 10px;
    transition: transform 0.3s;
}
.price-item.active .arrow {
    transform: rotate(180deg);
}