/* 
    SAMUDRA BEKAM INDONESIA - PROFESSIONAL STYLESHEET
*/
:root {
    --main-color: #007bbd; /* Biru menyesuaikan logo SBI */
    --secondary-color: #2c3e50;
    --accent-color: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-main-text, .nav-link, .btn-nav-reservasi {
    font-family: 'Poppins', sans-serif;
}

/* --- NAVBAR DESKTOP --- */
.navbar {
    padding: 1rem 0;
    background: var(--white);
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-main-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.brand-sub-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--main-color);
    letter-spacing: 2px;
}

/* --- Desktop Navigation Hover Animation --- */
.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative; /* Penting untuk posisi garis */
    transition: color 0.3s ease;
}

/* Membuat garis bawah yang muncul dari tengah */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--main-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--main-color) !important;
}

/* Animasi saat di-hover: garis melebar ke samping */
.nav-link:hover::after {
    width: 70%; /* Lebar garis 70% dari teks agar elegan */
}

/* --- Reservasi Button Customization --- */
.btn-nav-reservasi {
    background-color: var(--main-color);
    color: var(--white) !important;
    border-radius: 4px;
    padding: 12px 24px !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--main-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Jarak antara ikon kalender dan teks */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 123, 189, 0.2);
}

.btn-nav-reservasi2 {
    display: flex;
    align-items: center;
    justify-content: center; /* Menaruh teks & icon tepat di tengah */
    text-align: center;
    background-color: var(--main-color); /* Warna Biru Utama SBI */
    color: #ffffff !important;
    border: 2px solid var(--main-color);
    padding: 15px 25px;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
}

.btn-nav-reservasi2:hover {
    /* Kita ganti ke warna biru yang sedikit lebih gelap saat hover */
    background-color: #005a8d; 
    border-color: #005a8d;
    color: #ffffff !important; /* Teks tetap putih agar tidak hilang */
    transform: translateY(-3px); /* Efek melayang sedikit */
    box-shadow: 0 8px 20px rgba(0, 90, 141, 0.3); /* Bayangan lebih dalam */
}
.btn-nav-reservasi2 i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-nav-reservasi2:hover i {
    transform: rotate(25deg) scale(1.1);
}

.btn-nav-reservasi i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-nav-reservasi:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* --- HAMBURGER ANIMATION --- */
.nav-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--main-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Perbaikan Mobile Overlay agar Tombol Selalu Tampil --- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 100%;
    /* Menggunakan dvh agar akurat di layar HP */
    height: 100vh; 
    height: 100dvh; 
    background: #ffffff;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    
    /* Gunakan Flexbox */
    display: flex;
    flex-direction: column; 
    overflow: hidden; /* Mencegah seluruh overlay scroll */
}

.mobile-overlay.open {
    left: 0;
}

/* Header Popup (Tetap di atas) */
.overlay-header {
    flex-shrink: 0; /* Jangan biarkan header mengecil */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Bagian Tengah Menu (Bisa di-scroll jika menu banyak) */
.mobile-menu-body {
    flex: 1; /* Mengambil sisa ruang yang tersedia */
    overflow-y: auto; /* Hanya bagian ini yang bisa di-scroll */
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; /* Scroll halus di iPhone */
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
}

.mobile-link {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-bottom: 1px solid #f8f9fa;
    transition: 0.3s;
}

.mobile-link i {
    width: 30px;
    color: var(--main-color);
    font-size: 1.2rem;
}

.mobile-link:hover {
    background: #f9f9f9;
    padding-left: 40px;
}

/* Footer Popup (Tombol Reservasi - Terkunci di Bawah) */
.overlay-footer {
    flex-shrink: 0; /* Pastikan bagian ini tidak terpotong */
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom)); /* Support Notch iPhone */
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03); /* Sedikit bayangan agar terlihat terpisah */
}

/* Tombol Reservasi Mobile */
.overlay-footer .btn-nav-reservasi {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
}

body.no-scroll {
    overflow: hidden;
}

/* --- HERO SLIDER ENHANCEMENT --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    background: #000;
    overflow: hidden;
}
.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
}

.slider-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
    transition: transform 6s linear;
}

.slider-item.active .slider-bg {
    transform: scale(1);
}

.slider-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.2) 100%);
}

.slider-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 750px;
    padding: 0 20px;
}

.slider-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    transform: translateY(40px);
    opacity: 0;
    transition: var(--transition);
    transition-delay: 0.4s;
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    transform: translateY(40px);
    opacity: 0;
    transition: var(--transition);
    transition-delay: 0.6s;
}

.slider-item.active h1,
.slider-item.active p {
    transform: translateY(0);
    opacity: 1;
}

/* SLIDER CONTROLS */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    border-radius: 4px;
}

.slider-arrow:hover { background: var(--main-color); border-color: var(--main-color); }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 35px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active { background: var(--main-color); width: 60px; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .brand-main-text { font-size: 1.1rem; }
    .brand-sub-text { font-size: 0.7rem; }
    .slider-content h1 { font-size: 2.2rem; }
    .slider-arrow { display: none; } /* Sembunyikan panah di mobile */
}



/* --- HERO SLIDER ENHANCEMENT --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    background: #000;
    overflow: hidden;
}

.slider-container { width: 100%; height: 100%; }

.slider-item {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity 1s ease-in-out;
    display: flex; align-items: center;
}

.slider-item.active { opacity: 1; visibility: visible; z-index: 5; }

.slider-bg {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transform: scale(1.1); transition: transform 8s linear;
}

.slider-item.active .slider-bg { transform: scale(1); }

.slider-overlay {
    position: absolute; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.slider-content { position: relative; z-index: 10; color: white; max-width: 700px; }

/* Animasi Teks */
.animate-text { transform: translateY(30px); opacity: 0; transition: all 0.8s ease-out; }
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }
.slider-item.active .animate-text { transform: translateY(0); opacity: 1; }

/* Thumbnail Bergaris */
.slider-thumbnails {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 20;
}

.thumb-line {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100px;
    opacity: 0.5;
    transition: 0.3s;
}

.thumb-line.active { opacity: 1; }

.line-number {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.line-progress {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.thumb-line.active .line-progress::after {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 100%;
    background: var(--main-color);
    animation: progressAnim 5s linear forwards;
}

@keyframes progressAnim {
    from { width: 0; }
    to { width: 100%; }
}

/* Panah Navigasi */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 4px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: white; z-index: 30; transition: 0.3s;
}
.slider-arrow:hover { background: var(--main-color); border-color: var(--main-color); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }

@media (max-width: 768px) {
    .slider-arrow { display: none; }
    .slider-thumbnails { width: 90%; gap: 10px; }
    .thumb-line { width: 100%; }
    .slider-content h1 { font-size: 2rem; }
}





/* --- State Navigasi Aktif (Desktop) --- */
/* Pastikan warna teks menjadi biru saat aktif */
.nav-link.active {
    color: var(--main-color) !important;
}

/* Membuat garis bawah muncul permanen saat aktif */
.nav-link.active::after {
    width: 70%; 
    background-color: var(--main-color);
}

/* --- State Navigasi Aktif (Mobile Popup) --- */
.mobile-link.active {
    color: var(--main-color) !important;
    background-color: #f0f7ff; /* Beri background biru sangat muda agar terlihat beda */
    border-left: 4px solid var(--main-color); /* Tambahkan aksen garis di samping kiri */
    padding-left: 40px; /* Sedikit menjorok ke dalam */
}

.mobile-link.active i {
    color: var(--main-color);
}





/*================================= UNTUK HOME (SESRVICE) ==============================================*/
.text-main { color: var(--main-color) !important; }
.bg-main { background-color: var(--main-color) !important; }

/* Menyesuaikan tombol outline agar serasi dengan brand */
.btn-outline-primary {
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn-outline-primary:hover {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: white;
}

/* Memastikan transisi smooth pada card */
.service-card {
    transition: all 0.3s ease;
    border: 2px solid #edf2f7 !important;
}

.service-card:hover {
    border-color: var(--main-color) !important;
    transform: translateY(-10px);
}


/*================= UNTUK HOME (OUTLET) ===========*/
/* Header Location Style */
.location-header {
    border-left: 5px solid var(--main-color);
    padding-left: 20px;
}
.location-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Outlet List Container */
.outlet-list-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar */
#style-scroll::-webkit-scrollbar { width: 6px; }
#style-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
#style-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
#style-scroll::-webkit-scrollbar-thumb:hover { background: var(--main-color); }

.outlet-item {
    transition: 0.3s;
}
.outlet-item:hover {
    background-color: #f8fbff;
}

.btn-share-location {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-share-location:hover {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

/* Responsif Map */
@media (max-width: 767px) {
    #map-outlet { height: 300px !important; }
}
/* Styling Popup di Peta */
.leaflet-popup-content-wrapper { border-radius: 8px; padding: 5px; }
.popup-title { font-weight: 800; color: var(--secondary-color); margin-bottom: 10px; display: block; }

.share-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-share-wa {
    background-color: #25D366;
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-copy-link {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Tooltip Animation */
.copy-tooltip {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    z-index: 2000;
    display: none;
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; top: 10px; }
    20% { opacity: 1; top: 20px; }
    80% { opacity: 1; top: 20px; }
    100% { opacity: 0; top: 10px; }
}

.x-small { font-size: 0.75rem; }

/* --- Outlet Action Buttons --- */
.btn-outlet-action {
    border: none;
    border-radius: 6px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
}

/* Tombol Lihat (Lebih Lebar) */
.btn-main-view {
    background-color: var(--main-color);
    color: white;
    flex-grow: 1; /* Biar tombol LIHAT lebih dominan */
    padding: 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-main-view:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Tombol WhatsApp */
.btn-wa-share {
    background-color: #25D366;
    color: white;
    width: 45px; /* Kotak untuk icon saja */
}
.btn-wa-share:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Tombol Copy Link */
.btn-copy-link-alt {
    background-color: #edf2f7;
    color: #4a5568;
    width: 45px;
}
.btn-copy-link-alt:hover {
    background-color: #e2e8f0;
    color: var(--main-color);
    transform: translateY(-2px);
}

/* Penyesuaian Tooltip Copy agar muncul di atas segalanya */
#copy-tooltip {
    position: fixed; /* Ubah ke fixed agar tidak terpotong kontainer map */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 10001;
    display: none;
    color: white;
    font-weight: 600;
}


/*================== UNTUK HOME (ARTIKEL) ==================*/
/* --- Article Card Styling --- */
.article-card {
    transition: all 0.4s ease;
    border-radius: 12px !important;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.article-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-img-wrapper img {
    transform: scale(1.1);
}

.article-date-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--main-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hover-main:hover {
    color: var(--main-color) !important;
}

/* Penyesuaian teks judul artikel */
.article-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi judul maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4rem; /* Menjaga konsistensi tinggi kartu */
}








/*=================================================== UNTUK MENU LAYANAN.PHP ===================================*/
/* --- Service Card Styling --- */
.service-card {
    border: 2px solid #e9ecef; /* Border lebih jelas */
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--main-color); /* Berubah biru saat hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 189, 0.1);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #f0f7ff;
    color: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--main-color);
    color: #fff;
}

.btn-book-now {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-top: auto; /* Tombol selalu di bawah */
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-book-now:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
    border: none;
}
.modal-header {
    background-color: var(--main-color);
    color: white;
    border-radius: 8px 8px 0 0;
}
.btn-close-white {
    filter: brightness(0) invert(1);
}
.form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 189, 0.1);
}

.x-small {
    font-size: 0.75rem;
}

#modalServiceInput {
    color: var(--main-color);
    cursor: default;
}

.modal-header .btn-close {
    background-color: white; /* Membuat tombol X lebih terlihat */
    opacity: 0.8;
}

/* Container Grid untuk Jam */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom di desktop */
    gap: 10px;
}

/* Style Kotak Jam (Chips) */
/* --- Modern & Simple Inputs --- */
.modern-date-input {
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: #ffffff;
    height: 48px; /* Samakan tinggi dengan dropdown jam */
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-date-input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 189, 0.1);
    outline: none;
}

/* --- Custom Time Dropdown Penyesuaian --- */
.custom-time-dropdown {
    position: relative;
    width: 100%;
}

.selected-time-display {
    height: 48px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Menu Dropdown Jam agar lebih presisi */
.time-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0; /* Rata kanan agar tidak keluar layar mobile */
    width: 250px; /* Lebar tetap agar grid tetap rapi */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 1050;
    padding: 15px;
    display: none;
    border: 1px solid #e2e8f0;
}

/* Grid Jam di dalam dropdown (2 kolom agar muat saat berdampingan) */
.time-grid-inside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.time-chip {
    padding: 8px 0;
    text-align: center;
    border: 1.5px solid #edf2f7;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.time-chip.active {
    background: var(--main-color) !important;
    color: #fff !important;
    border-color: var(--main-color);
}

.alert-soft-warning {
    background-color: #fff9e6;
    color: #856404;
    border: none;
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 8px;
}

/* Responsif Mobile: Berbaris ke bawah di layar kecil */
@media (max-width: 768px) {
    .time-dropdown-menu {
        width: 100%; /* Full width di mobile */
    }
}

/* --- Location Card Choice Style --- */
.location-option-card {
    position: relative;
    height: 100%;
}

.location-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.location-option-card .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 2px solid #dee2e6;
    border-radius: 4px; /* Sesuai permintaan radius kecil */
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
    height: 100%;
}

.location-option-card .option-content i {
    font-size: 1.2rem;
    color: #a0aec0;
}

.location-option-card .option-content span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Hover State */
.location-option-card:hover .option-content {
    border-color: var(--main-color);
    background-color: #f0f7ff;
}

/* Selected State */
.location-option-card input[type="radio"]:checked + .option-content {
    border-color: var(--main-color);
    background-color: #f0f7ff;
}

.location-option-card input[type="radio"]:checked + .option-content i {
    color: var(--main-color);
}

.location-option-card input[type="radio"]:checked + .option-content span {
    color: var(--main-color);
}

#modal_service_name {
    background-color: #f8f9fa !important; /* Abu sangat muda */
    color: var(--main-color) !important; /* Teks Biru SBI */
    border: 2px dashed #dee2e6; /* Border putus-putus untuk menandakan readonly */
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}







/*============================ UNTUK MENU GALLERY.PHP ======================================================*/
/* --- Gallery SBI Styles --- */
.gallery-card-sbi {
    position: relative;
    border-radius: 4px; /* Radius dikurangi sesuai permintaan */
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: #eee;
    cursor: zoom-in;
    border: 1px solid #eee;
}
.gallery-card-sbi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay-sbi {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 123, 189, 0.7); /* Warna Biru SBI */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item-wrapper:hover .gallery-card-sbi img {
    transform: scale(1.15);
}

.gallery-item-wrapper:hover .gallery-overlay-sbi {
    opacity: 1;
}

.gallery-overlay-sbi i {
    font-size: 2rem;
    transform: translateY(10px);
    transition: 0.4s;
}

.gallery-item-wrapper:hover .gallery-overlay-sbi i {
    transform: translateY(0);
}

/* --- Pagination Style --- */
.pagination-sbi {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.pagination-sbi li a {
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 4px; /* Radius dikurangi agar seragam */
    color: #2c3e50;
    font-weight: 700;
    background: #fff;
    transition: 0.3s;
}

.pagination-sbi li.active a {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.pagination-sbi li.disabled a {
    opacity: 0.3;
    pointer-events: none;
    background: #f8f9fa;
}

.pagination-sbi li:not(.active):hover a {
    border-color: var(--main-color);
    color: var(--main-color);
}





/*====================================== UNTUK HALAMAN OUTLET.PHP ========================================*/
/* --- Outlet Page Styles --- */
.map-section {
    border-bottom: 5px solid var(--main-color);
}

.outlet-card {
    background: #ffffff;
    /* Border dibuat lebih tebal (2px) dan warna lebih kontras (#dee2e6) */
    border: 2px solid #dee2e6; 
    border-radius: 4px; /* Radius sedikit diperhalus agar elegan */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.outlet-card:hover {
    /* Border berubah menjadi warna biru utama saat hover */
    border-color: var(--main-color); 
    box-shadow: 0 10px 30px rgba(0, 123, 189, 0.15);
    transform: translateY(-5px);
    background-color: #fcfdfe;
}
.outlet-card::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 0;
    height: 5px;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}
.outlet-card:hover::before {
    width: 100%;
}

.bg-soft-primary {
    background-color: #f0f7ff;
}

/* Styling Judul agar lebih menonjol */
.outlet-card h5 {
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    margin-bottom: 15px !important;
}

/* Memperjelas pemisah tombol aksi */
.outlet-card .d-flex.gap-2 {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 5px;
}
.outlet-info p {
    line-height: 1.5;
}

/* Marker Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 5px;
}

.leaflet-popup-content b {
    color: var(--main-color);
    font-size: 1rem;
}

/* --- Tooltip Copy Notification --- */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10005;
    display: none; /* Hidden by default */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* --- Map Popup Custom Buttons --- */
.popup-btn-group {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.btn-popup-share {
    background: #25D366;
    color: white !important;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-popup-copy {
    background: var(--main-color);
    color: white !important;
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
}

.leaflet-popup-content b {
    font-size: 1rem;
    text-transform: uppercase;
}





/*===================================== UNTUK HALAMAN TENTANG-KAMI.PHP ====================================*/
/* --- Profil Page Card Styling --- */

/* Frame Logo di samping deskripsi */
.about-logo-frame {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    transition: 0.3s;
}
.about-logo-frame:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

/* Kartu Informasi Profil */
.info-profile-card {
    background: #ffffff;
    padding: 30px;
    height: 100%;
    /* Border Utama 2px Solid */
    border: 2px solid #dee2e6; 
    border-radius: 1px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

/* Icon Bulat di dalam kartu */
.card-icon {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Efek Hover: Border berubah jadi warna utama */
.info-profile-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(0, 123, 189, 0.1);
    transform: translateY(-5px);
}

/* Variasi Warna Border Samping (Aksen) */
.border-primary-sbi { border-left: 6px solid var(--main-color) !important; }
.border-success-sbi { border-left: 6px solid #28a745 !important; }
.border-danger-sbi  { border-left: 6px solid #dc3545 !important; }

/* Typo adjustment */
.info-profile-card h5 {
    line-height: 1.4;
    letter-spacing: -0.2px;
}


/*======================================== UNTUK HALAMAN ARTIKEL.PHP =========================================*/
/* --- Artikel Page Styles --- */

.article-index-card {
    transition: all 0.4s ease;
    border-radius: 12px;
}

.article-index-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 189, 0.12) !important;
}

.article-thumb-container {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.article-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-index-card:hover .article-thumb-container img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--main-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.title-hover:hover {
    color: var(--main-color) !important;
}

.btn-read-more {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.btn-read-more:hover {
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

/* Pagination Professional */
.pagination-professional {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.pagination-professional li a {
    text-decoration: none;
    padding: 12px 20px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 700;
    background: white;
    transition: 0.3s;
}

.pagination-professional li.active a {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

.pagination-professional li.disabled a {
    opacity: 0.4;
    pointer-events: none;
    background: #f8f9fa;
}

.pagination-professional li:not(.active):not(.disabled) a:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}
/* Mengecilkan meta info sedikit agar judul lebih menonjol */
.x-small {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Memastikan tinggi gambar artikel seragam */
.article-thumb-container {
    height: 200px; /* Ukuran pas untuk layout 3 kolom */
    background: #f8f9fa;
}

/* Mempercantik tombol navigasi pagination agar berbentuk bulat/kotak simetris */
.pagination-professional li a {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Override padding sebelumnya */
    border-radius: 4px; /* Border radius kecil sesuai tema profesional */
}

/* Efek transisi antar halaman */
main {
    transition: opacity 0.4s ease;
}






/*================================ UNTUK HALAMAN RESERVASI.PHP ============================================*/
.modern-input {
    border: 2px solid #edf2f7;
    border-radius: 8px;
    padding: 12px 15px;
    font-weight: 500;
    color: var(--secondary-color);
}

.modern-input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 189, 0.05);
}

.card {
    border-radius: 15px;
}

.bg-main {
    background-color: var(--main-color) !important;
}

/* Memastikan transisi smooth pada form halaman */
#formReservasiUtama {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Location Option Cards --- */
.location-option-card {
    position: relative;
}

.location-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fff;
}

.option-content i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #a0aec0;
    transition: 0.3s;
}

.option-content span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* State: Hover */
.location-option-card:hover .option-content {
    border-color: var(--main-color);
    background-color: #f0f7ff;
}

/* State: Checked (Selected) */
.location-option-card input[type="radio"]:checked + .option-content {
    border-color: var(--main-color);
    background-color: #f0f7ff;
    box-shadow: 0 4px 15px rgba(0, 123, 189, 0.1);
}

.location-option-card input[type="radio"]:checked + .option-content i {
    color: var(--main-color);
    transform: scale(1.1);
}
textarea.modern-input {
    resize: none; /* Mencegah user menarik ukuran textarea */
    min-height: 100px;
}

/* --- Multi-Select Service Chips --- */
.service-check-option {
    position: relative;
    height: 100%;
}

.service-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.service-label .check-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.7rem;
    color: transparent; /* Sembunyikan icon centang saat tidak dipilih */
    transition: 0.3s;
}

.service-label .service-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* State: Hover */
.service-label:hover {
    border-color: var(--main-color);
    background-color: #f0f7ff;
}

/* State: Checked (Terpilih) */
.service-checkbox:checked + .service-label {
    border-color: var(--main-color);
    background-color: #f0f7ff;
    box-shadow: 0 4px 10px rgba(0, 123, 189, 0.1);
}

.service-checkbox:checked + .service-label .check-icon {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff; /* Munculkan icon centang putih */
}

.service-checkbox:checked + .service-label .service-title {
    color: var(--main-color);
}

/* Animasi tombol saat memproses */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Feedback visual sukses (Opsional) */
.form-success-msg {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Menyamakan tampilan input flatpickr dengan desain modern kita */
.flatpickr-input.form-control.input {
    background-color: #ffffff !important;
}

.modern-date-input {
    height: 48px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Pastikan input bayangan (altInput) flatpickr juga rapi */
.flatpickr-mobile {
    display: none;
}























































/* --- FOOTER STYLING --- */
footer {
    border-top: 5px solid var(--main-color);
}

/* --- FOOTER TOP (Tetap Biru Gelap) --- */
.footer-top {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 40px 0;
    position: relative;
    z-index: 2; /* Agar di atas parallax */
}

.footer-top a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-top a:hover {
    color: var(--main-color);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* --- FOOTER SEO OPTIMIZATION STYLE --- */
.footer-bottom-parallax {
    position: relative;
    width: 100%;
     background-image: url('https://images.unsplash.com/photo-1519823551278-64ac92734fb1?q=80&w=1600'); 
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 50px 0;
    z-index: 1;
}

.footer-bottom-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Lebar dipersempit sedikit agar teks tidak terlalu melar */
    margin: 0 auto;
}

.footer-bottom-parallax::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Overlay dipertebal */
    z-index: 1;
}

.footer-bottom-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.footer-section-item {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.footer-section-item h4 {
    font-size: 1.05rem;
    color: var(--main-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-section-item p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45); /* Transparan */
    line-height: 1.5;
    text-align: justify;
}
/* Responsive penyesuaian */
@media (max-width: 768px) {
    .footer-bottom-parallax {
        padding: 40px 20px;
    }
    .footer-section-item h4 {
        font-size: 1.1rem;
    }
}