/* ==========================================================
   CSS CUSTOM - tybatyba.com (Full Restored & Organized)
   ========================================================== */

:root {
    --navy: #004682;
    --dark-navy: #001f3f;
    --accent: #e7a22d;       
    --accent-dark: #d67a0a;  
    --accent-glow: #ff9d00;  
    --light-gray: #f8f9fa;
    --text-main: #333333;
}

/* Membiarkan HTML & BODY murni tanpa kunci agar Navbar bebas menempel */
html, body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    color: var(--text-main); 
    background-color: #ffffff; 
    -webkit-font-smoothing: antialiased; 
    width: 100%;
    position: relative;
}

/* KOTAK KARANTINA ANTI-GESER SAMPING (Menahan bocor animasi AOS) */
.main-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================
   KELAS UTILITAS PENTING
   ========================================================== */
.fw-extrabold { font-weight: 800; }
.tracking-wide { letter-spacing: 2px; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-dark-navy { background-color: var(--dark-navy) !important; }
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-light-gray { background-color: var(--light-gray) !important; }
.text-justify { text-align: justify !important; }

/* ==========================================================
   LAYOUT BLOCKING & SLIDER
   ========================================================== */
.galeriSwiper { height: 250px; overflow: hidden; }
.testimoniSwiper { min-height: 220px; overflow: hidden; }
.swiper-pagination-bullet-active { background-color: var(--navy) !important; }

/* ==========================================================
   MAP AUTOCOMPLETE SUGGESTIONS (TAMBAHAN DESAIN PETA)
   ========================================================== */
.autocomplete-suggestions {
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0;
    background: #ffffff; 
    z-index: 1050; 
    max-height: 200px;
    overflow-y: auto; 
    display: none; 
    border: 1px solid #e9ecef;
}

.sug-item { 
    padding: 10px 15px; 
    cursor: pointer; 
    font-size: 0.85rem; 
    border-bottom: 1px solid #f8f9fa; 
    transition: 0.2s; 
}

.sug-item:hover { 
    background-color: var(--light-gray); 
    color: var(--accent-dark); 
    font-weight: 700; 
}

.sug-item:last-child { 
    border-bottom: none; 
}

/* ==========================================================
   FLUID TYPOGRAPHY (Ukuran Teks Dinamis PC & Mobile)
   ========================================================== */
.hero-title { font-size: clamp(2.2rem, 4vw, 3.6rem) !important; line-height: 1.2 !important; }
.section-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem) !important; }
.fluid-p { font-size: clamp(0.875rem, 1vw, 1rem) !important; }
.fluid-logo { font-size: clamp(1.4rem, 2vw, 1.75rem) !important; }
.fluid-nav .nav-link { font-size: clamp(0.85rem, 1.1vw, 1rem) !important; }

@media (min-width: 992px) { 
    .text-nowrap-desktop { white-space: nowrap !important; } 
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar-nav .nav-link { 
    color: var(--navy) !important; 
    background-color: transparent;
    transition: all 0.3s ease; 
    padding: 6px 12px !important; 
    margin: 0 2px; 
    border-radius: 6px;
    font-weight: 600;
}
.navbar-nav .nav-link:hover { 
    background-color: var(--accent-dark) !important; 
    color: #ffffff !important; 
}

/* ==========================================================
   BADGES, BUTTONS & FORMS
   ========================================================== */
.badge-premium { background-color: #1a1a1a !important; color: #e7a22d !important; } 
.badge-mpv { background-color: #0d6efd !important; color: #fff !important; } 
.badge-medium { background-color: #198754 !important; color: #fff !important; } 
.badge-small { background-color: #0dcaf0 !important; color: #000 !important; } 
.badge-bus { background-color: #dc3545 !important; color: #fff !important; } 

.btn-navy { background-color: var(--navy); color: #fff; border: none; transition: all 0.3s ease; }
.btn-navy:hover { background-color: var(--dark-navy); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 70, 130, 0.2); }
.btn-accent { background-color: var(--accent); color: #fff; border: none; transition: all 0.3s ease; }
.btn-accent:hover { background-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.form-control:focus, .form-select:focus { 
    border-color: var(--navy) !important; 
    box-shadow: 0 0 0 0.25rem rgba(0, 70, 130, 0.25); 
}
.hover-lift { transition: transform 0.2s ease; }
.hover-lift:hover { transform: translateY(-3px); }

/* ==========================================================
   HERO DESKTOP
   ========================================================== */
.hero-section { 
    position: relative; 
    min-height: 85vh; 
    background: url('assets/img/hero-bg.jpg') center/cover no-repeat; 
    background-color: var(--dark-navy); 
    width: 100%;
}
.hero-section::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.85); 
}

/* ==========================================================
   CARDS ARMADA (FIX Z-INDEX)
   ========================================================== */
.card-armada { 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.card-armada:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}
.card-img-top-wrapper { 
    background-color: #f1f4f6; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.card-img-top-wrapper span.badge { z-index: 10 !important; }
.card-img-top-wrapper img { 
    position: relative; 
    z-index: 1; 
    width: 100%; 
    max-height: 100%; 
    padding: 10px 15px !important; /* Menimpa class p-4 HTML agar mobil lebih besar dan dekat ke bingkai */
    object-fit: contain; 
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}
.card-armada:hover .card-img-top-wrapper img { 
    transform: scale(1.12); /* Efek zoom mobil saat disorot kursor dibuat sedikit lebih besar */
}

.spesifikasi-text { font-size: 0.85rem; font-weight: 500; }
.spesifikasi-text span { color: #d1d5db; }

/* ==========================================================
   FOOTER
   ========================================================== */
.custom-footer-list li { display: flex; align-items: flex-start; }
.custom-footer-list li::before { 
    content: "■"; color: var(--navy); background-color: white; 
    padding: 0px 4px; font-size: 0.5rem; margin-right: 12px; 
    border-radius: 2px; margin-top: 6px; 
}
footer a.text-white { transition: all 0.2s ease; }
footer a.text-white i { transition: transform 0.2s ease; display: inline-block; }
footer a.text-white:hover { 
    color: var(--accent-glow) !important; font-weight: 700; 
    text-shadow: 0px 2px 8px rgba(255, 157, 0, 0.4); 
}
footer a.text-white:hover i { color: var(--accent-glow) !important; transform: scale(1.15); }

/* ==========================================================
   MODE MOBILE SECARA PERMANEN DAN STABIL
   ========================================================== */
@media (max-width: 991px) {
    .hero-section { height: auto; min-height: 550px !important; padding: 95px 0 50px 0; }
    .navbar-collapse { text-align: center; }
    .navbar-nav { align-items: center; justify-content: center; width: 100%; }
    .trigger-booking { display: block; margin: 15px auto !important; width: fit-content; }
    
    /* Penyesuaian khusus agar teks hero proporsional di HP seperti screenshot */
    .hero-title { font-size: 2.1rem !important; margin-bottom: 1.5rem !important; }
}

/* ==========================================================
   FLOATING LANGUAGE SWITCHER
   ========================================================== */
.floating-lang {
    position: fixed;
    left: 0; 
    top: 95px;
    z-index: 9999;
    display: flex;
    align-items: center;
    transform: translateX(-48px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-lang::before {
    content: ''; 
    position: absolute; 
    top: -40px; bottom: -40px; left: -100px; right: -40px; 
    z-index: -1;     
}

.lang-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 0 12px 0 16px;
    height: 44px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.15);
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    width: 85px; 
}
.lang-btn:hover { background-color: var(--accent-dark); }
.lang-btn i { display: inline-block; transition: transform 0.6s ease; }

.lang-menu {
    display: flex;
    background: #ffffff;
    border-radius: 30px; 
    padding: 0 20px 0 35px; 
    height: 44px;
    align-items: center; 
    margin-left: -30px; 
    box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    white-space: nowrap;
}
.lang-menu a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    margin: 0 4px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: 0.2s;
}
.lang-menu a:hover { background: var(--light-gray); color: var(--accent-glow) !important; }

@media (min-width: 769px) {
    .floating-lang { flex-direction: row; }
    .floating-lang:hover { transform: translateX(15px); }
    .floating-lang:hover .lang-menu { max-width: 500px; opacity: 1; }
    .floating-lang:hover .lang-btn i { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .floating-lang { flex-direction: column; align-items: flex-start; }
    .floating-lang.active { transform: translateX(15px); }
    .floating-lang.active .lang-btn i { transform: rotate(360deg); }
    
    .lang-menu {
        flex-direction: column;
        margin-left: 0;
        margin-top: -30px; 
        padding: 40px 10px 10px 10px; 
        height: auto; 
        align-items: stretch;
        border-radius: 35px; 
        max-width: 85px !important; 
        width: 85px;
        max-height: 0; 
        opacity: 0;
        overflow-y: auto; 
        overflow-x: hidden;
        box-shadow: 2px 5px 15px rgba(0,0,0,0.15);
        transition: max-height 0.4s ease 0.1s, opacity 0.3s ease 0.1s;
        overscroll-behavior: contain; 
        -webkit-overflow-scrolling: touch;
    }
    
    .floating-lang:not(.active) .lang-menu { transition: max-height 0.3s ease, opacity 0.2s ease; }
    .floating-lang.active .lang-menu { max-height: 250px !important; opacity: 1 !important; }
    
    .lang-menu a { display: block; text-align: center; margin: 4px 0; padding: 10px 0; border-radius: 50%; }
    .lang-menu::-webkit-scrollbar { width: 0px; background: transparent; }
}

/* ==========================================================
   BACK TO TOP BUTTON
   ========================================================== */
.back-to-top {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: -60px; 
    background-color: var(--accent);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.back-to-top:hover {
    background-color: var(--accent-dark);
    transform: translateX(-50%) translateY(-5px);
}
.back-to-top.show {
    bottom: 25px; 
}