* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f7f4f0; 
    color: #2a2a2a; 
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   PÄIS (HEADER)
========================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #1a1a1a; 
    border-bottom: 4px solid #c1a075;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.logo-box img { max-width: 160px; height: auto; display: block; border-radius: 8px; }
.main-nav a {
    color: #e3d3c1;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background-color: #c1a075;
    border-radius: 2px;
}

/* =========================================
   MOBIILIMENÜÜ (Hamburger)
========================================= */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #c1a075;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}
.hamburger:hover { color: #fff; }

@media (max-width: 768px) {
    .main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    .hamburger { display: block; }
    .main-nav {
        display: none; 
        width: 100%;
        flex-direction: column;
        text-align: center;
        background: #1a1a1a;
        padding: 20px 0;
        border-top: 1px solid #3d2b1f;
        margin-top: 15px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .main-nav.show-menu { display: flex; }
    .main-nav a { margin: 12px 0; font-size: 1.2rem; display: block; }
}

/* =========================================
   HERO SEKTSIOON (AVALEHE PÄIS)
========================================= */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #ffffff;
    margin-bottom: 50px;
    border-top: 2px solid #c1a075;
    border-bottom: 2px solid #c1a075;
}
.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    color: #c1a075;
    margin-bottom: 10px;
}
.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 1.1rem;
    color: #e8dfd5;
}

/* =========================================
   LEHE PEALKIRI (Hele taust)
========================================= */
.page-title-section {
    text-align: center;
    padding: 0 20px 50px 20px; 
    background-color: transparent; 
}
.page-title-section h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #3d2b1f; 
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.page-title-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #c1a075; 
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}
.page-title-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   SAUNADE KONTEINER JA GALERII (AVALEHT)
========================================= */
#saunas-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sauna-row {
    display: flex;
    align-items: flex-start;
    background: #ffffff; 
    border: 1px solid #e8dfd5;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.sauna-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(193, 160, 117, 0.15);
}

.sauna-image {
    flex: 0 0 350px; 
    padding: 40px;
    border-right: 1px solid #e8dfd5;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f7f4f0 100%);
    border-radius: 16px 0 0 16px;
}
.sauna-image h3 { font-size: 2rem; margin-bottom: 15px; color: #3d2b1f; font-weight: 600; }
.sauna-emoji { font-size: 70px; filter: drop-shadow(0px 8px 10px rgba(0,0,0,0.1)); transition: transform 0.3s ease; }
.sauna-row:hover .sauna-emoji { transform: scale(1.1); }

/* Galerii täpne stiil */
.gallery-container { 
    margin-bottom: 20px; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}
.main-img { 
    width: 100%; 
    max-width: 300px; 
    height: 220px; 
    object-fit: cover; 
    border-radius: 12px; 
    margin-bottom: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: opacity 0.3s ease;
}
.thumbnails { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    flex-wrap: wrap; 
}
.thumb { 
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 8px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: all 0.2s ease; 
}
.thumb:hover { 
    border-color: #c1a075; 
    transform: translateY(-2px);
}

/* =========================================
   KLIENDI KALENDER JA VORM (AVALEHT)
========================================= */
.sauna-calendar { flex: 1; padding: 40px; width: 100%; }
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #3d2b1f;
    font-weight: 600;
}
.calendar-header h5 { font-size: 1.2rem; margin: 0; }
.nav-btn {
    background: #e8dfd5; border: none; padding: 5px 10px;
    border-radius: 4px; cursor: pointer; transition: background 0.2s;
}
.nav-btn:hover { background: #c1a075; color: white; }

.calendar-instructions {
    text-align: center; font-size: 0.95rem; margin-bottom: 15px;
    color: #555; background: #fff; padding: 10px; border-radius: 8px;
    border: 1px dashed #e8dfd5;
}
.text-green { color: #4caf50; font-weight: 700; }
.text-red { color: #f44336; font-weight: 700; }

.weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
    margin-top: 15px; margin-bottom: 10px; text-align: center;
    font-weight: 600; font-size: 0.9rem; color: #888; max-width: 100%;
}
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
    max-width: 100%;
}
.day-box {
    aspect-ratio: 1; width: 100%; max-width: 55px; margin: 0 auto;
    display: flex; justify-content: center; align-items: center;
    background: #ffffff; border: 2px solid #e8dfd5; color: #3d2b1f;
    border-radius: 50%; cursor: pointer; font-weight: 600;
    font-size: 1.1rem; transition: all 0.3s ease;
}
.day-box:hover {
    background: #c1a075; color: #ffffff; transform: scale(1.1);
    border-color: #c1a075; box-shadow: 0 5px 15px rgba(193, 160, 117, 0.3);
}

.day-box.empty { background: transparent; border: none; cursor: default; }
.day-box.empty:hover { transform: none; background: transparent; box-shadow: none; }
.day-box.booked {
    background: #f0ebe4; border: 2px solid #f0ebe4; color: #a9a29a;
    text-decoration: line-through; cursor: not-allowed;
}
.day-box.booked:hover { transform: none; box-shadow: none; background: #f0ebe4; color: #a9a29a; border-color: #f0ebe4; }

.day-box.selected-start { 
    background: #4caf50; color: #ffffff; border-color: #4caf50; 
    transform: scale(1.1); box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4); 
}
.day-box.selected-end { 
    background: #f44336; color: #ffffff; border-color: #f44336; 
    transform: scale(1.1); box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4); 
}
.day-box.selected { background: #4caf50; color: #ffffff; border-color: #4caf50; }
.day-box.in-range { 
    background: #e8dfd5; color: #3d2b1f; border-color: #e8dfd5; border-radius: 8px; 
}

/* VORMI ALA KALENDRI ALL */
.booking-form-area {
    margin-top: 25px; padding: 20px; background: #fdfaf7; 
    border: 1px solid #e8dfd5; border-radius: 12px; display: none; 
    animation: fadeIn 0.4s ease; width: 100%;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.booking-form-area h4 { margin-bottom: 15px; color: #3d2b1f; }
.price-display {
    font-size: 1.2rem; font-weight: 600; color: #c1a075; margin-bottom: 15px;
    padding-top: 10px; border-top: 1px dashed #e8dfd5;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #555; font-weight: 600; }
.form-group input {
    width: 100%; padding: 12px 15px; background: #ffffff; border: 1px solid #e8dfd5;
    border-radius: 8px; color: #2a2a2a; font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}
.form-group input:focus { outline: none; border-color: #c1a075; box-shadow: 0 0 10px rgba(193, 160, 117, 0.1); }
.submit-btn {
    width: 100%; padding: 15px; background: #c1a075; color: #ffffff; border: none;
    font-weight: 600; font-size: 1.1rem; border-radius: 8px; cursor: pointer;
    transition: transform 0.2s, background 0.3s; margin-top: 10px;
    box-shadow: 0 4px 15px rgba(193, 160, 117, 0.3);
}
.submit-btn:hover { background: #b08f64; transform: translateY(-2px); }

/* AVALEHE MOBIILIVAADE */
@media (max-width: 768px) {
    .page-title-section h1 { font-size: 2.2rem; }
    .page-title-section h2 { font-size: 1rem; }
    .sauna-row { flex-direction: column; }
    .sauna-image { flex: auto; border-right: none; border-bottom: 1px solid #e8dfd5; border-radius: 16px 16px 0 0; }
    .thumbnails { display: none !important; }
}

/* =========================================
   TEENUSTE LEHE KUJUNDUS
========================================= */
.services-container { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }
.service-block {
    background: #ffffff; border: 1px solid #e8dfd5; border-radius: 16px;
    padding: 40px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-block:hover { box-shadow: 0 15px 40px rgba(193, 160, 117, 0.15); }
.service-block h3 {
    font-size: 2rem; color: #3d2b1f; margin-bottom: 20px; border-bottom: 2px solid #c1a075;
    display: inline-block; padding-bottom: 5px;
}
.service-block p { margin-bottom: 15px; font-size: 1.15rem; color: #444; }
.service-block p:last-child { margin-bottom: 0; }
.service-block strong { color: #3d2b1f; }

.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.highlight-card {
    background: #ffffff; border: 1px solid #e8dfd5; border-radius: 12px;
    padding: 30px 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.highlight-card:hover { transform: translateY(-5px); border-color: #c1a075; }
.highlight-card h4 { color: #3d2b1f; font-size: 1.3rem; margin-bottom: 15px; }
.highlight-card p { color: #555; font-size: 1rem; margin: 0; }

@media (max-width: 768px) {
    .highlights-grid { grid-template-columns: 1fr; }
    .service-block { padding: 25px; }
    .service-block h3 { font-size: 1.6rem; }
}

/* =========================================
   GALERII LEHE KUJUNDUS
========================================= */
.gallery-page-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.gallery-section { margin-bottom: 70px; }
.section-title {
    font-size: 2.2rem; color: #3d2b1f; margin-bottom: 30px; text-align: center;
    border-bottom: 2px solid #c1a075; display: inline-block; padding-bottom: 5px;
    position: relative; left: 50%; transform: translateX(-50%);
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px;
}
.gallery-item {
    background: #fff; border: 1px solid #e8dfd5; border-radius: 12px;
    overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(193, 160, 117, 0.2); }
.img-wrapper { width: 100%; height: 250px; overflow: hidden; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
    padding: 15px; text-align: center; font-weight: 600; color: #3d2b1f;
    font-size: 1.05rem; background: #fff; border-top: 1px solid #e8dfd5;
}
.location-banner {
    background: #e8dfd5; padding: 30px; border-radius: 12px; text-align: center;
    font-size: 1.2rem; color: #3d2b1f; margin-top: 20px; border-left: 6px solid #c1a075;
}
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .location-banner { font-size: 1.05rem; padding: 20px; }
}

/* =========================================
   HINNAKIRJA LEHE KUJUNDUS
========================================= */
.pricing-page-container { max-width: 900px; margin: 0 auto; padding: 0 20px 60px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.pricing-card {
    background: #fff; border: 1px solid #e8dfd5; border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(193, 160, 117, 0.15); }
.pricing-header { background: #3d2b1f; color: #fff; padding: 20px; text-align: center; }
.pricing-header h3 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.pricing-list { list-style: none; padding: 0; margin: 0; }
.pricing-list li {
    display: flex; justify-content: space-between; padding: 15px 25px;
    border-bottom: 1px solid #f0ebe4; color: #444; font-size: 1.1rem;
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list li strong { color: #c1a075; font-size: 1.2rem; }
.pricing-list .highlight-row { background: #fdfaf7; font-weight: 600; }
.info-banner {
    background: #e8dfd5; padding: 20px; border-radius: 12px; text-align: center;
    font-size: 1.2rem; color: #3d2b1f; border-left: 6px solid #c1a075; margin-bottom: 40px;
}
.cta-section { text-align: center; }
.cta-btn {
    display: inline-block; background: #c1a075; color: #fff; padding: 15px 40px;
    font-size: 1.2rem; font-weight: 600; border-radius: 8px; text-decoration: none;
    transition: background 0.3s, transform 0.2s; box-shadow: 0 5px 15px rgba(193, 160, 117, 0.3);
}
.cta-btn:hover { background: #b08f64; transform: translateY(-3px); }

/* =========================================
   KKK (Korduma Kippuvad Küsimused) KUJUNDUS
========================================= */
.faq-page-container { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background: #fff; border: 1px solid #e8dfd5; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); overflow: hidden;
}
.faq-item summary {
    padding: 20px; font-size: 1.15rem; font-weight: 600; color: #3d2b1f; cursor: pointer;
    list-style: none; position: relative; transition: background 0.3s;
}
.faq-item summary:hover { background: #fdfaf7; color: #c1a075; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 20px; font-size: 1.5rem;
    color: #c1a075; transition: transform 0.3s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
    padding: 0 20px 20px 20px; color: #555; font-size: 1.05rem;
    border-top: 1px dashed #e8dfd5; margin-top: 10px; padding-top: 15px;
}
.final-cta {
    background: linear-gradient(135deg, #3d2b1f 0%, #2a2a2a 100%); color: #fff;
    padding: 50px 30px; text-align: center; border-radius: 16px; margin-top: 60px;
    border-top: 4px solid #c1a075;
}
.final-cta h3 { font-size: 2rem; color: #c1a075; margin-bottom: 15px; }
.final-cta p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 30px; color: #e8dfd5; }
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .final-cta { padding: 30px 20px; }
    .final-cta h3 { font-size: 1.5rem; }
}

/* =========================================
   KONTAKTI LEHE KUJUNDUS
========================================= */
.contact-page-container { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; margin-bottom: 50px;
}
.contact-card {
    background: #ffffff; border: 1px solid #e8dfd5; border-radius: 12px;
    padding: 40px 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px); border-color: #c1a075;
    box-shadow: 0 15px 30px rgba(193, 160, 117, 0.15);
}
.contact-card .icon { font-size: 3rem; margin-bottom: 15px; }
.contact-card h3 { color: #3d2b1f; font-size: 1.3rem; margin-bottom: 10px; }
.contact-card p { color: #555; font-size: 1.1rem; font-weight: 600; margin: 0; }
.contact-card a { color: #3d2b1f; text-decoration: none; transition: color 0.3s ease; }
.contact-card a:hover { color: #c1a075; }

.seo-keywords-section {
    background: #fdfaf7; border: 1px solid #e8dfd5; border-radius: 12px;
    padding: 30px; margin-top: 40px;
}
.tags-container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag {
    background: #ffffff; border: 1px solid #e8dfd5; color: #666;
    font-size: 0.95rem; padding: 8px 18px; border-radius: 30px;
    transition: background 0.3s ease, color 0.3s ease;
}
.tag:hover { background: #c1a075; color: #ffffff; border-color: #c1a075; }
@media (max-width: 768px) {
    .contact-card { padding: 30px 15px; }
    .contact-card .icon { font-size: 2.5rem; }
}

/* =========================================
   ADMIN PANEELI KUJUNDUS
========================================= */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.admin-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-bottom: 40px;
}
.stat-card {
    background: #ffffff; border: 1px solid #e8dfd5; border-radius: 12px;
    padding: 30px 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.stat-card.highlight-stat {
    background: linear-gradient(135deg, #3d2b1f 0%, #2a2a2a 100%);
    color: #ffffff; border: none; box-shadow: 0 10px 20px rgba(61, 43, 31, 0.2);
}
.stat-card h3 { font-size: 1.1rem; color: #666; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.stat-card.highlight-stat h3, .stat-card.highlight-stat p { color: #e8dfd5; }
.stat-value { font-size: 2.5rem; font-weight: 600; color: #c1a075; margin-bottom: 5px; }

.admin-section {
    background: #ffffff; border: 1px solid #e8dfd5; border-radius: 12px;
    padding: 30px; margin-bottom: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.admin-section.bg-light { background: #fdfaf7; }
.admin-section h2 { color: #3d2b1f; border-bottom: 2px solid #e8dfd5; padding-bottom: 15px; margin-bottom: 25px; font-size: 1.5rem; }
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f0ebe4; color: #444; }
.admin-table th { background: #fdfaf7; color: #3d2b1f; font-weight: 600; }
.admin-table tbody tr:hover { background: #faf7f2; }
.btn-small {
    background: #c1a075; color: #ffffff; border: none; padding: 8px 12px;
    border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.3s;
}
.btn-small:hover { background: #b08f64; }
.btn-delete { background: #d9534f; }
.btn-delete:hover { background: #c9302c; }

.block-dates-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; }
.block-dates-form .form-group { flex: 1; min-width: 150px; }
.block-dates-form label { display: block; margin-bottom: 8px; font-weight: 600; color: #3d2b1f; }
.block-dates-form input, .block-dates-form select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit;
}
.block-dates-form input:focus, .block-dates-form select:focus { outline: none; border-color: #c1a075; }

/* =========================================
   ADMIN VISUAALNE KALENDER
========================================= */
.calendar-header-admin {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    border-bottom: 2px solid #e8dfd5; padding-bottom: 15px; margin-bottom: 25px; gap: 15px;
}
.calendar-header-admin h2 { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.calendar-legend { display: flex; gap: 15px; font-size: 0.9rem; color: #555; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.color-box { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.color-box.free { background: #fdfaf7; border: 1px solid #e8dfd5; }
.color-box.sauna { background: #c1a075; } 
.color-box.tub { background: #6b8e23; }  
.color-box.both { background: #d9534f; } 

.admin-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-name { text-align: center; font-weight: 600; color: #3d2b1f; padding-bottom: 10px; }
.cal-day {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-weight: 600; font-size: 1.1rem; color: #3d2b1f;
    border: 1px solid #e8dfd5; background: #fdfaf7; cursor: default; position: relative;
}
.cal-day.prev-month, .cal-day.next-month { color: #bbb; background: #fafafa; border-color: #eee; }
.cal-day.sauna-booked { background: #c1a075; color: #fff; border-color: #c1a075; }
.cal-day.tub-booked { background: #6b8e23; color: #fff; border-color: #6b8e23; }
.cal-day.both-booked { background: #d9534f; color: #fff; border-color: #d9534f; }
.cal-day.current-day { border: 3px solid #3d2b1f; } 

.tooltip:hover::after {
    content: attr(title); position: absolute; bottom: 110%; left: 50%;
    transform: translateX(-50%); background: #3d2b1f; color: #fff; padding: 6px 10px;
    border-radius: 6px; font-size: 0.8rem; white-space: nowrap; z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-calendar-grid.split-view .cal-day {
    display: flex; flex-direction: column; padding: 0; position: relative;
    overflow: hidden; background: #fdfaf7; border: 1px solid #e8dfd5;
    border-radius: 8px; aspect-ratio: 1 / 1;
}
.date-badge {
    position: absolute; top: 4px; left: 4px; background: rgba(255, 255, 255, 0.95);
    color: #3d2b1f; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.2); z-index: 2;
}
.admin-calendar-grid.split-view .prev-month, .admin-calendar-grid.split-view .next-month {
    background: #f5f5f5; border-color: #eee;
}
.admin-calendar-grid.split-view .prev-month .date-badge, .admin-calendar-grid.split-view .next-month .date-badge {
    color: #bbb; box-shadow: none; background: transparent;
}
.slot {
    flex: 1; width: 100%; display: flex; align-items: center; justify-content: flex-end;
    padding-right: 6px; font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.2); cursor: help;
}
.slot:last-child { border-bottom: none; }
.slot.free { background-color: #7bc07b; }
.slot.booked { background-color: #d9534f; }
.slot[title] { position: relative; }

.calendar-controls { display: flex; align-items: center; gap: 15px; }
.calendar-controls h2 { margin: 0; border: none; padding: 0; font-size: 1.5rem; min-width: 150px; text-align: center; }
.calendar-controls button {
    background: #c1a075; color: white; border: none; width: 36px; height: 36px;
    border-radius: 8px; cursor: pointer; font-size: 1.2rem; display: flex;
    align-items: center; justify-content: center; transition: background 0.3s;
}
.calendar-controls button:hover { background: #b08f64; }

/* =========================================
   ADMIN PILTIDE HALDUSE STIILID
========================================= */
.image-preview-container {
    display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; margin-top: 10px;
}
.image-wrapper {
    position: relative; width: 120px; height: 100px;
    border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid #e8dfd5;
}
.image-wrapper img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
}
.delete-img-btn {
    position: absolute; top: -8px; right: -8px; background: #d9534f; color: white;
    border: none; width: 24px; height: 24px; border-radius: 50%; font-weight: bold;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: background 0.2s, transform 0.2s;
}
.delete-img-btn:hover { background: #c9302c; transform: scale(1.1); }

@media (max-width: 768px) {
    .thumbnails {
        display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px;
    }
    .thumb { width: 60px; height: 60px; object-fit: cover; }
}

/* ==========================================
   SKELETON LOADERS (Laadimise kastid)
   ========================================== */
.skeleton {
    background: #e2e2e2;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 8px; background-size: 200% 100%; animation: 1.5s shine linear infinite;
}
@keyframes shine { to { background-position-x: -200%; } }
.skeleton-img { height: 250px; width: 100%; margin-bottom: 15px; }
.skeleton-title { height: 30px; width: 60%; margin-bottom: 15px; }
.skeleton-text { height: 20px; width: 90%; margin-bottom: 10px; }
.skeleton-cal { height: 400px; width: 100%; }

/* ==========================================
   MESSENGERI UJUV NUPP
   ========================================== */
.messenger-float {
    position: fixed; bottom: 25px; right: 25px; display: flex;
    align-items: center; text-decoration: none; z-index: 9999; font-family: 'Outfit', sans-serif;
}
.messenger-icon {
    background: radial-gradient(circle at bottom left, #00B2FF, #006AFF);
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0, 106, 255, 0.4);
    transition: transform 0.3s ease; position: relative; z-index: 2;
}
.messenger-float:hover .messenger-icon { transform: scale(1.1); }
.messenger-tooltip {
    background: white; color: #333; padding: 12px 20px; border-radius: 20px; margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); font-size: 0.95rem; font-weight: 600;
    opacity: 0; transform: translateX(20px); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative; pointer-events: none;
}
.messenger-tooltip::after {
    content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
    border-width: 7px 0 7px 7px; border-style: solid; border-color: transparent transparent transparent white;
}
.messenger-tooltip.show { opacity: 1; transform: translateX(0); }

/* =========================================
   JALUS (FOOTER) JA ADMIN LINK - KORRASTATUD
========================================= */
.main-footer {
    background-color: transparent !important;
    padding: 20px 0 90px 0 !important; /* All 90px tühja ruumi Messengeri nupu jaoks */
    color: #888888;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    margin-top: 60px;
}
.main-footer:hover { opacity: 1; }
.main-footer p { margin: 0; font-size: 0.95rem; }

.footer-admin-link {
    color: #444; 
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-admin-link:hover { color: #c1a075; }

.hidden-admin-footer {
    color: transparent !important;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    cursor: default;
}
.hidden-admin-footer:hover {
    color: #c1a075 !important;
    cursor: pointer;
}
/* =========================================
   ADMIN LINGI JA MESSENGERI KONFLIKTI PARANDUS
========================================= */
.main-footer {
    position: relative !important;
    padding-bottom: 80px !important; 
}

.hidden-admin-footer, 
.footer-admin-link {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    padding: 20px !important; /* Teeb näpule vajutamise ala hästi suureks! */
    color: #d3ccc3 !important; /* Teeb teksti vaevumärgatavalt helehalliks/beežiks */
    opacity: 0.5 !important;
    margin: 0 !important;
    z-index: 99 !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
}

/* Kui klikid/vajutad, muutub kuldseks */
.hidden-admin-footer:active,
.hidden-admin-footer:hover {
    color: #c1a075 !important;
    opacity: 1 !important;
}