/* ============================================================
   KUYGO — 4 FIXES
   Paste ke paling bawah style.css
   ============================================================ */

/* ── FIX 1: Teks alamat terpotong di location pill ── */
/* Beri ruang lebih pada loc-text, kurangi batasan max-width */
.loc-text {
    font-size: 12px !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: none !important;
    flex: 1 !important;
    min-width: 0 !important;
}
/* Baris lokasi di header — beri max-width lebih lega */
#locationPill {
    max-width: 100% !important;
}

/* ── FIX 2: Hover teks button TIDAK berubah putih ── */
/* tm-btn-secondary: teks tetap biru saat hover */
.tm-btn-secondary:hover {
    background: #e3f2fd !important;
    color: #1976d2 !important;     /* teks tetap biru, BUKAN putih */
}
/* btn-lihat: teks tetap biru saat hover */
.btn-lihat:hover {
    background: #e3f2fd !important;
    color: #1976d2 !important;     /* teks tetap biru */
}
/* Filter tab active: hover tidak mengubah warna teks */
.filter-tab:hover {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    border-color: #1976d2 !important;
}
.filter-tab.active:hover {
    background: #1565c0 !important;
    color: #fff !important;        /* active boleh putih */
    border-color: #1565c0 !important;
}

/* ── FIX 3: Navbar FIXED di mobile, tidak ikut scroll ── */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;    /* full width di mobile */
    transform: translateZ(0) !important;   /* GPU layer, cegah flicker */
    -webkit-transform: translateZ(0) !important;
    z-index: 9999 !important;
    background: #fff !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08) !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    display: flex !important;
    will-change: transform !important;  /* hint browser: elemen ini fixed */
}

/* Desktop: navbar mengikuti lebar mobile-wrapper */
@media (min-width: 480px) {
    .bottom-nav {
        max-width: 480px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateZ(0) !important;
        -webkit-transform: translateX(-50%) translateZ(0) !important;
        width: 480px !important;
    }
}

/* Pastikan konten tidak tertutup navbar */
.mobile-wrapper,
.main-content {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Cegah header ikut turun saat scroll */
.header,
header.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}
/* ── EMERGENCY FIX: paste ke paling bawah style.css ── */

/* Fix 1: teks alamat tidak terpotong */
.loc-text,
#locText,
span.loc-text {
    max-width: none !important;
    width: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
}

/* Container location pill */
#locationPill,
.location-pill {
    max-width: 100% !important;
    flex: 1 !important;
}