:root { 
    --spa-primary: #4a5d48; /* Mature Deep Sage */
    --spa-light-sage: #7c9679; 
    --spa-accent: #9a7c65;  /* Muted Earthy Clay */
    --spa-bg: #fdfaf5;      /* Warm Luxury Parchment */
    --spa-text: #2d3436; 
    --spa-muted: #636e72;
    --spa-border: #eee9e2;
}
body, h1, h2, h3, h4, h5, .playfair { font-family: 'Plus Jakarta Sans', sans-serif; }
body { color: var(--spa-text); background-color: var(--spa-bg); line-height: 1.8; -webkit-font-smoothing: antialiased; }

/* Premium Floating Header */
.tenant-header {
    padding: 20px 0;
    background: var(--spa-bg);
    border-bottom: 2px solid #f8f9fa;
    position: sticky; 
    top: 0; 
    z-index: 1010;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Container Logo Tenant */
.tenant-logo-wrapper {
    width: 55px; height: 55px;
    overflow: hidden;
    border: 1px solid var(--spa-border);
    padding: 7px;
}
.tenant-logo-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

.carousel-item img {
    height: calc(100vh - 220px); /* Mengisi ruang tersisa agar tagline berada di dasar layar */
    min-height: 400px;
    max-height: none; /* Hilangkan batas max-height agar bisa mengisi layar monitor besar */
    object-fit: cover;
    object-position: center 20%; /* Fokus ke area atas/wajah agar tidak terpotong */
}

.service-card { 
    border: 1px solid rgba(0,0,0,0.03); border-radius: 24px; transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    background: white; overflow: hidden; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(74, 93, 72, 0.1); border-color: var(--spa-light-sage); }

.category-title { 
    font-size: 0.9rem; font-weight: 800; letter-spacing: 3px; color: var(--spa-primary);
    text-transform: uppercase; margin-bottom: 40px; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 20px;
}
.category-title::before, .category-title::after {
    content: ""; height: 1px; width: 40px; background: var(--spa-border);
}

.price-tag { color: var(--spa-accent); font-weight: 800; font-size: 1.15rem; }
.duration-tag { font-size: 0.75rem; color: var(--spa-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.sticky-booking {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 1000; width: auto;
}
.btn-booking { 
    background: var(--spa-primary); color: white; padding: 16px 40px; border-radius: 100px;
    font-weight: 700; box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 12px;
    letter-spacing: 1px; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-booking:hover { background: #2d3436; transform: translateY(-10px) scale(1.05); box-shadow: 0 20px 45px rgba(0,0,0,0.3); }

.opening-hours { font-size: 0.85rem; border-radius: 24px; background: #fff; padding: 35px; border: 1px solid var(--spa-border); box-shadow: 0 15px 40px rgba(0,0,0,0.02); }
.day-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f8f8f8; }
.day-row:last-child { border-bottom: none; }

/* Category Tabs Styling */
.category-nav {
    display: flex; gap: 8px; 
    overflow-x: auto; 
    overflow-y: hidden; /* Paksa sembunyikan scrollbar vertical */
    padding: 10px; margin-bottom: 50px;
    background: #fff; border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--spa-border);
    position: sticky; top: 105px; z-index: 900;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.05) transparent; /* Firefox */

    transition: all 0.3s ease;
}

/* Chrome, Safari, and Opera */
.category-nav::-webkit-scrollbar {
    height: 2px; /* Membuat scrollbar horizontal sangat tipis */
}
.category-nav::-webkit-scrollbar-track {
    background: transparent;
}
.category-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05); /* Warna sangat samar */
    border-radius: 10px;
}

.nav-pill-custom {
    white-space: nowrap; padding: 10px 24px; border-radius: 50px; background: transparent;
    color: var(--spa-muted); font-weight: 600; border: none; cursor: pointer;
    transition: all 0.3s ease; font-size: 0.85rem;
}
.nav-pill-custom.active { background: var(--spa-light-sage); color: white; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Button Select Styling */
.btn-select { 
    border: 1.5px solid var(--spa-light-sage); color: var(--spa-light-sage); 
    font-weight: 800; border-radius: 50px; padding: 6px 22px; transition: all 0.3s;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; background: white;
}
.btn-select.active { background: var(--spa-light-sage); color: white; border-color: var(--spa-light-sage); }
.cart-counter { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; background: #ff4b5c; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid white; }

.text-spa-primary { color: var(--spa-primary) !important; }
.bg-spa-light { background-color: rgba(139, 168, 136, 0.1) !important; }
.border-spa-light { border-color: rgba(139, 168, 136, 0.2) !important; }

.social-link { color: #5a6a85; transition: all 0.4s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #ffffff; border: 1px solid var(--spa-border); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.social-link i { font-size: 1.2rem; }
.social-link img { width: 24px; height: 24px; object-fit: contain; transition: all 0.3s ease; }
.social-link:hover { color: #fff; background: var(--spa-primary); border-color: var(--spa-primary); box-shadow: 0 8px 20px rgba(74, 93, 72, 0.2); transform: translateY(-4px); }
.social-link:hover img { filter: brightness(0) invert(1); }

/* Footer specific social link */
footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}
footer .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}


.contact-hero-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--spa-primary); color: white; padding: 22px; border-radius: 20px; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 10px 25px rgba(74, 93, 72, 0.2); border: none; }
.contact-hero-btn:hover { background: #2d3436; transform: translateY(-5px); color: white; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.contact-hero-btn i { font-size: 1.6rem; margin-bottom: 8px; }
.contact-hero-btn span { font-weight: 800; letter-spacing: 2px; font-size: 0.85rem; }
.contact-hero-btn small { font-size: 0.7rem; opacity: 0.8; font-weight: 400; margin-top: 2px; }

.contact-sub-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--spa-border); color: var(--spa-primary); text-decoration: none; font-weight: 700; font-size: 0.75rem; transition: all 0.3s ease; background: white; text-transform: uppercase; letter-spacing: 1px; }
.contact-sub-link:hover { border-color: var(--spa-primary); background: var(--spa-bg); color: var(--spa-primary); transform: translateY(-2px); }

.tagline-section { padding: 40px 0; background: var(--spa-bg); border-bottom: 1px solid var(--spa-border); }
.tagline-text { font-style: italic; font-size: 1.25rem; color: var(--spa-primary); line-height: 1.8; max-width: 800px; margin: 0 auto; }
.tagline-divider { width: 60px; height: 1px; background: var(--spa-accent); margin: 35px auto; opacity: 0.6; }

.is-autofilled { background-color: #f0f7f0 !important; border-color: var(--spa-primary) !important; transition: all 0.5s ease; }
.verify-shimmer { animation: shimmer 1.5s infinite; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.form-check-input:checked { background-color: var(--spa-primary); border-color: var(--spa-primary); }
.form-check-input:focus { border-color: var(--spa-primary); box-shadow: 0 0 0 0.25rem rgba(139, 168, 136, 0.25); }

.ts-wrapper.single .ts-control { border-radius: 0.375rem; padding: 0.5rem 0.75rem; border: 1px solid #dee2e6; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.ts-wrapper.focus .ts-control { border-color: var(--spa-primary) !important; box-shadow: 0 0 0 0.25rem rgba(139, 168, 136, 0.25) !important; }
.ts-dropdown .active { background-color: var(--spa-primary) !important; color: white !important; }

@media (max-width: 768px) {
    .tenant-header { padding: 15px 0; }
    .h4 { font-size: 1.1rem; }
    .service-card { flex-direction: column; align-items: flex-start !important; gap: 15px !important; }
    .service-card img, .service-card .bg-light { width: 100% !important; height: 220px !important; }
    .carousel-item img { height: 50vh; min-height: 350px; max-height: 450px; }
    .category-nav {
        margin: 0 -15px 25px -15px !important;
        top: 75px; /* Penyesuaian presisi tinggi header mobile */
        border-radius: 0;
        border-left: none; border-right: none;
        border-top: 1px solid rgba(0,0,0,0.05); /* Garis pemisah halus */
        box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Shadow lebih tipis agar menyatu */
    }
    .tagline-text { font-size: 1.2rem; padding: 0 20px; }

    /* Fix Name & Price Crowding */
    .service-card h5 { font-size: 1rem; line-height: 1.4; margin-bottom: 4px !important; }
    .service-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 2px;
    }
    .service-card .price-tag { font-size: 0.95rem; margin-bottom: 5px; }
}

/* Promotion Styles */
.promo-card {
    background: #fff; border: 2px dashed var(--spa-border); border-radius: 20px;
    padding: 20px; position: relative; overflow: hidden; display: flex;
    align-items: center; justify-content: space-between; transition: all 0.3s ease;
}
.promo-card:hover { border-color: var(--spa-accent); transform: scale(1.02); }
.promo-title { font-weight: 800; color: var(--spa-primary); margin-bottom: 2px; font-size: 1.1rem; }
.promo-desc { font-size: 0.8rem; margin-bottom: 5px; color: var(--spa-muted); }
.promo-code { font-weight: 800; color: var(--spa-text); background: var(--spa-bg); padding: 2px 8px; border-radius: 5px; }
.promo-validity { font-size: 0.65rem; color: #a6adba; font-style: italic; }
.btn-copy-promo {
    background: var(--spa-bg); border: none; width: 40px; height: 40px;
    border-radius: 50%; color: var(--spa-primary); transition: all 0.2s;
}
.btn-copy-promo:hover { background: var(--spa-primary); color: white; }

/* Promo Price Styling */
.text-strike { text-decoration: line-through; opacity: 0.5; font-size: 0.85em; font-weight: 400; }

/* Language Switcher Refinement */
.btn-lang {
    border: 1px solid var(--spa-border);
    background: white;
    padding: 4px 10px;
    border-radius: 50px;
    width: auto; 
    height: 34px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    color: var(--spa-muted);
    font-size: 0.7rem;
}
.btn-lang img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.btn-lang.active { border-color: var(--spa-primary); background-color: var(--spa-bg); color: var(--spa-primary); box-shadow: 0 4px 10px rgba(74, 93, 72, 0.15); }
.btn-lang.active span { color: var(--spa-primary); }
.btn-lang:hover:not(.active) { border-color: var(--spa-light-sage); transform: translateY(-2px); }

/* Global smooth transition class */
.page-fade-out { opacity: 0; transition: opacity 0.5s ease; }

/* Smooth entrance for booking modal when triggered via USE promo */
.modal-booking-smooth .modal-content {
    animation: modalSmoothFadeUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    will-change: transform, opacity;
}



@keyframes modalSmoothFadeUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}