﻿:root {
    --cream: #edcdbb;
    --cream-light: #f7ede4;
    --cream-dark: #d9b49e;
    --cream-deep: #c49a80;
    --brown: #5c3d2e;
    --brown-light: #7a5243;
    --gold: #c8a96e;
    --gold-light: #e0c99a;
    --text-dark: #2c1a12;
    --text-mid: #5c3d2e;
    --text-soft: #8b6553;
    --white: #fffaf7;
    --red: #c0392b;
    --red-bg: #fdf0ee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans',sans-serif;
    background: var(--cream-light);
    color: var(--text-dark);
    min-height: 100vh;
}

/* HEADER */
.site-header {
    background: var(--brown);
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 20px rgba(44,26,18,.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-title {
    font-family: 'Cormorant Garamond',serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: .03em;
    line-height: 1;
}

.brand-sub {
    font-size: .6rem;
    color: var(--gold-light);
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 300;
}

.cart-btn {
    position: relative;
    background: var(--gold);
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    color: var(--brown);
    font-weight: 500;
    font-size: .82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

    .cart-btn:hover {
        background: var(--gold-light);
    }

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .68rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* HERO */
.hero {
    background: linear-gradient(140deg,var(--brown) 0%,#7a5243 55%,var(--cream-deep) 100%);
    padding: 44px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23edcdbb' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    }

.hero-tag {
    font-size: .68rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
    position: relative;
}

.hero h1 {
    font-family: 'Cormorant Garamond',serif;
    font-size: clamp(1.9rem,7vw,3rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.1;
    position: relative;
}

    .hero h1 em {
        font-style: italic;
        color: var(--gold-light);
    }

.hero-divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 14px auto;
    position: relative;
}

.hero p {
    color: var(--cream-dark);
    font-size: .88rem;
    font-weight: 300;
    position: relative;
}

/* NAV TABS - STICKY UPDATE */
.menu-nav {
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    padding: 0 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 58px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Screen under 410px */
@media (max-width:481px) {
    .menu-nav {
        top: 110px;
    }
}

.menu-nav::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    display: inline-block;
    padding: 13px 16px;
    border: none;
    background: transparent;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-soft);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}

    .nav-tab.active {
        color: var(--brown);
        border-bottom-color: var(--gold);
        font-weight: 500;
    }

    .nav-tab:hover {
        color: var(--brown);
    }

/* CONTENT */
.menu-content {
    padding: 20px 12px 130px;
    max-width: 720px;
    margin: 0 auto;
}

.menu-section {
    display: none;
}

    .menu-section.active {
        display: block;
    }

/* GROUP HEADING */
.group-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 6px;
}

    .group-heading:first-child {
        margin-top: 0;
    }

.group-icon {
    font-size: 1rem;
}

.group-label {
    font-family: 'Cormorant Garamond',serif;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--brown);
    white-space: nowrap;
}

.group-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right,var(--cream-dark),transparent);
}

.group-desc {
    font-size: .73rem;
    color: var(--text-soft);
    margin: 0 0 12px;
    line-height: 1.5;
    padding: 6px 10px;
    background: rgba(237,205,187,.3);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

/* MENU CARD */
.menu-card {
    background: var(--white);
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 9px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 1px 6px rgba(92,61,46,.07);
    transition: transform .15s,box-shadow .15s;
    position: relative;
}

    .menu-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 18px rgba(92,61,46,.13);
    }

.badge-hot {
    position: absolute;
    top: -1px;
    left: 12px;
    background: var(--red);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 2px 8px;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
}

.badge-new {
    position: absolute;
    top: -1px;
    left: 12px;
    background: var(--brown);
    color: var(--cream);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 2px 8px;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
}

.has-badge {
    padding-top: 20px;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 2px;
}

.card-desc {
    font-size: .72rem;
    color: var(--text-soft);
    font-weight: 300;
    line-height: 1.45;
    margin-bottom: 5px;
}

.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px;
}

.price-block {
    text-align: right;
}

.price-orig {
    font-size: .9rem;
    color: #bbb;
    text-decoration: line-through;
    display: block;
    line-height: 1.2;
}

.price-now {
    <!-- font-family: 'Cormorant Garamond',serif; -->
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown);
}

.price-disc {
    font-size: .66rem;
    color: var(--red);
    font-weight: 600;
    background: var(--red-bg);
    padding: 1px 6px;
    border-radius: 50px;
    margin-top: 2px;
    display: inline-block;
}

.add-btn {
    background: var(--brown);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background .2s,transform .12s;
}

    .add-btn:hover {
        background: var(--gold);
        color: var(--brown);
    }

    .add-btn:active {
        transform: scale(.9);
    }

/* VARIANTS */
.variant-wrap {
    margin-top: 6px;
}

.variant-label {
    font-size: .67rem;
    color: var(--text-soft);
    margin-bottom: 4px;
    font-weight: 400;
}

.variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.var-chip {
    border: 1px solid var(--cream-dark);
    background: transparent;
    border-radius: 50px;
    padding: 3px 11px;
    font-size: .69rem;
    color: var(--text-mid);
    cursor: pointer;
    transition: all .15s;
    font-family: 'DM Sans',sans-serif;
}

    .var-chip.sel, .var-chip:hover {
        background: var(--brown);
        border-color: var(--brown);
        color: var(--cream);
    }

/* COMBO CARD */
.combo-card {
    background: linear-gradient(135deg,#3d2516 0%,var(--brown) 100%);
    border-radius: 14px;
    padding: 14px 14px;
    margin-bottom: 9px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(44,26,18,.25);
    position: relative;
    overflow: hidden;
}

    .combo-card::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 80px;
        height: 80px;
        background: rgba(200,169,110,.08);
        border-radius: 50%;
    }

.combo-tag {
    display: inline-block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--brown);
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 5px;
}

.combo-card .card-name {
    color: var(--cream);
}

.combo-card .card-desc {
    color: rgba(237,205,187,.75);
}

.combo-card .variant-label {
    color: var(--gold-light);
}

.combo-card .var-chip {
    border-color: rgba(237,205,187,.25);
    color: var(--cream-dark);
}

    .combo-card .var-chip.sel, .combo-card .var-chip:hover {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--brown);
    }

.combo-card .price-orig {
    color: rgba(255,255,255,.3);
}

.combo-card .price-now {
    color: var(--gold-light);
}

.combo-card .price-disc {
    background: rgba(192,57,43,.3);
    color: #f5a99a;
}

.combo-card .add-btn {
    background: var(--gold);
    color: var(--brown);
}

    .combo-card .add-btn:hover {
        background: var(--cream);
    }

.combo-card .badge-hot, .combo-card .badge-new {
    background: rgba(200,169,110,.9);
    color: var(--brown);
}

/* OFFCANVAS */
.offcanvas {
    --bs-offcanvas-width: min(420px,100vw);
}

.offcanvas-header {
    background: var(--brown);
    color: var(--cream);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.offcanvas-title {
    font-family: 'Cormorant Garamond',serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
}

    .cart-empty i {
        font-size: 2.8rem;
        color: var(--cream-dark);
        display: block;
        margin-bottom: 12px;
    }

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--cream-light);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: .87rem;
    font-weight: 500;
    color: var(--text-dark);
}

.cart-item-var {
    font-size: .71rem;
    color: var(--gold);
    margin-bottom: 1px;
}

.cart-item-price {
    font-size: .78rem;
    color: var(--text-soft);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.qty-btn {
    background: var(--cream-light);
    border: 1px solid var(--cream-dark);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    color: var(--brown);
    transition: background .15s;
}

    .qty-btn:hover {
        background: var(--cream-dark);
    }

.qty-num {
    font-weight: 600;
    font-size: .88rem;
    min-width: 18px;
    text-align: center;
}

.cart-footer {
    border-top: 2px solid var(--cream-dark);
    padding-top: 14px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.cart-total-label {
    font-size: .88rem;
    color: var(--text-soft);
}

.cart-total-val {
    font-family: 'Cormorant Garamond',serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brown);
}

.inp-group {
    margin-bottom: 10px;
}

    .inp-group label {
        font-size: .74rem;
        color: var(--text-soft);
        display: block;
        margin-bottom: 4px;
    }

    .inp-group input, .inp-group textarea {
        width: 100%;
        border: 1px solid var(--cream-dark);
        border-radius: 10px;
        padding: 9px 12px;
        font-size: .85rem;
        font-family: 'DM Sans',sans-serif;
        background: var(--cream-light);
        color: var(--text-dark);
        outline: none;
        resize: none;
    }

        .inp-group input:focus, .inp-group textarea:focus {
            border-color: var(--gold);
        }

.wa-btn {
    width: 100%;
    background: #25D366;
    border: none;
    border-radius: 50px;
    padding: 13px;
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background .2s;
}

    .wa-btn:hover {
        background: #1abe5c;
    }

/* FLOATING CART */
.float-cart {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brown);
    color: var(--cream);
    border: none;
    border-radius: 50px;
    padding: 13px 26px;
    font-size: .88rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(44,26,18,.35);
    z-index: 998;
    white-space: nowrap;
}

    .float-cart.show {
        display: flex;
    }

    .float-cart:hover {
        background: var(--brown-light);
    }

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(200, 169, 110, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 169, 110, 0);
    }
}

.tab-next-hint {
    animation: pulse-gold 2s infinite;
    background-color: #c0392b !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: bold;
}

.inp-group label {
    font-size: 0.8rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.inp-group input,
.inp-group textarea {
    font-size: 0.85rem;
}


/* Membuat overlay menutupi seluruh layar */
.location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white; /* Ubah ke putih agar terasa seperti halaman baru */
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
/* Membuat box lokasi mengambil seluruh tinggi dan lebar */
.location-box {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    border-radius: 0 !important; /* Hilangkan rounded corner */
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Membuat peta menjadi fleksibel mengisi ruang yang ada */
#leafletMap {
    flex-grow: 1; /* Peta akan mengambil sisa ruang yang tersedia */
    height: auto !important;
    min-height: 300px;
    margin-bottom: 15px;
    border-radius: 12px;
}

/* Pastikan judul dan tombol tetap rapi */
.location-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.btn-location-reset {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/* Container utama header */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    /* Tambahkan ini agar item bisa turun jika tidak muat */
    flex-wrap: wrap;
    gap: 10px;
}

/* Pengaturan khusus untuk Mobile */
@media (max-width: 480px) {
    .header-inner {
        /* Memastikan konten rata tengah saat turun ke bawah */
        justify-content: center;
        text-align: center;
    }

    .brand-wrap {
        /* Memberikan lebar penuh agar tombol dipaksa turun ke baris baru */
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .cart-btn {
        /* Opsional: membuat tombol sedikit lebih ringkas di mobile */
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Grup tombol di sebelah kanan */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antar tombol (bisa diatur sesuai selera) */
}

/* Tombol Reset Lokasi agar lebih proporsional */
.btn-location-reset {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px; /* Mengikuti gaya cart-btn */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-location-reset:hover {
        background: #eeeeee;
    }

/* Penyesuaian cart-btn agar tidak terlalu lebar di mobile */
.cart-btn {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Update pada IDAFMenu.css */

@media (max-width: 576px) {
    #cartFooter {
        font-size: 0.8rem; /* Mengurangi 20% dari basis 1rem */
    }

        #cartFooter label {
            font-size: 0.75rem; /* Membuat label sedikit lebih kecil lagi agar proporsional */
            margin-bottom: 2px;
        }

        #cartFooter .form-control {
            font-size: 0.8rem; /* Ukuran teks di dalam input box */
            padding: 6px 10px;
        }

        #cartFooter .cart-summary span {
            font-size: 0.85rem; /* Ukuran teks subtotal/total */
        }

        #cartFooter .wa-btn {
            font-size: 0.9rem; /* Tombol WA tetap agak besar supaya mudah ditekan */
            padding: 10px;
        }

        #cartFooter hr {
            margin: 8px 0; /* Mengurangi jarak antar elemen */
        }
}


/* Membuat marker lebih besar dan bergaya */
.custom-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Label teks "Geser Saya" di atas marker */
.marker-label {
    background: #c0392b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 10px; /* Jarak antara teks dan pin */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Memposisikan tombol lokasi di dalam peta */
.map-container {
    position: relative;
}

.btn-locate-me {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0392b;
    cursor: pointer;
}








/* ========================================= */
/* REDESIGN MODAL LOKASI PENGIRIMAN - IDAF KITCHEN */
/* DENGAN SCROLLING YANG BAIK */
/* ========================================= */

.location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 26, 18, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.3s ease;
}

.location-card {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    max-height: 90vh; /* Maksimal 90% dari tinggi viewport */
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Penting: konten di luar akan diatur oleh child */
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Modal - Fixed */
.location-header {
    background: var(--brown);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold);
    flex-shrink: 0; /* Mencegah header mengecil */
}

.location-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon-small {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--brown);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title-small {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cream);
    line-height: 1.2;
}

.brand-sub-small {
    font-size: 0.65rem;
    color: var(--gold-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.btn-close-location {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--cream);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-close-location:hover {
        background: var(--red);
        color: white;
        transform: rotate(90deg);
    }

/* Body Modal - Scrollable */
.location-body-scrollable {
    padding: 24px 24px 0 24px; /* Padding kanan kiri, bottom 0 */
    overflow-y: auto; /* INI YANG MEMBUAT SCROLL */
    flex: 1; /* Mengambil sisa ruang */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--cream-light);
}

    /* Custom scrollbar untuk Webkit (Chrome, Safari, Edge) */
    .location-body-scrollable::-webkit-scrollbar {
        width: 6px;
    }

    .location-body-scrollable::-webkit-scrollbar-track {
        background: var(--cream-light);
        border-radius: 10px;
    }

    .location-body-scrollable::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 10px;
    }

        .location-body-scrollable::-webkit-scrollbar-thumb:hover {
            background: var(--brown);
        }

.location-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.location-subtitle {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 20px;
    padding-left: 34px;
}

/* Tombol Lokasi Saat Ini */
.btn-current-location-mobile {
    width: 100%;
    background: var(--cream-light);
    border: 2px dashed var(--gold);
    border-radius: 50px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-current-location-mobile:hover {
        background: var(--gold-light);
        border-style: solid;
        border-color: var(--gold);
    }

/* Map Container */
.map-container {
    position: relative;
    margin-bottom: 12px;
}

#leafletMap {
    height: 250px;
    border-radius: 20px;
    border: 2px solid var(--cream-dark);
    box-shadow: 0 10px 20px -5px rgba(92,61,46,0.3);
    z-index: 1;
}

.btn-locate-map {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 1000;
    background: var(--brown);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

    .btn-locate-map:hover {
        background: var(--gold);
        color: var(--brown);
        transform: scale(1.1);
    }

.map-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--cream-light);
    padding: 6px 12px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

    .map-hint i {
        font-size: 0.9rem;
    }

/* Input Group */
.inp-group-location {
    margin-top: 10px;
    margin-bottom: 10px;
}

    .inp-group-location label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--brown);
        margin-bottom: 8px;
    }

.form-control-location {
    width: 100%;
    border: 2px solid var(--cream-dark);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    background: var(--cream-light);
    color: var(--text-dark);
    outline: none;
    resize: vertical; /* Bisa di-resize vertical oleh user */
    min-height: 80px;
    transition: all 0.2s;
}

    .form-control-location:focus {
        border-color: var(--gold);
        background: white;
        box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.2);
    }

.form-text {
    display: block;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    color: var(--text-soft);
    padding-left: 4px;
}

/* Footer Modal - Fixed */
.location-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    background: var(--cream-light);
    border-top: 1px solid var(--cream-dark);
    flex-shrink: 0; /* Mencegah footer mengecil */
}

.btn-location-cancel {
    flex: 1;
    background: transparent;
    border: 2px solid var(--cream-dark);
    border-radius: 50px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-location-cancel:hover {
        background: var(--cream-dark);
        color: var(--brown);
    }

.btn-location-confirm {
    flex: 2;
    background: var(--brown);
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 16px -4px rgba(92,61,46,0.4);
}

    .btn-location-confirm:hover {
        background: var(--gold);
        color: var(--brown);
        transform: translateY(-2px);
        box-shadow: 0 12px 20px -6px rgba(200,169,110,0.5);
    }

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    .location-card {
        max-height: 95vh; /* Lebih besar di mobile */
        border-radius: 24px;
    }

    .location-header {
        padding: 16px 20px;
    }

    .brand-title-small {
        font-size: 1.2rem;
    }

    .location-body-scrollable {
        padding: 20px 20px 0 20px;
    }

    .location-title {
        font-size: 1.4rem;
    }

    .location-subtitle {
        font-size: 0.8rem;
        padding-left: 0;
    }

    .location-footer {
        flex-direction: column;
        padding: 16px 20px 20px;
    }

    .btn-location-cancel, .btn-location-confirm {
        width: 100%;
    }

    #leafletMap {
        height: 200px; /* Peta sedikit lebih kecil di mobile */
    }
}

/* Untuk layar sangat kecil (height < 600px) */
@media (max-height: 600px) {
    .location-card {
        max-height: 98vh;
    }

    .location-header {
        padding: 12px 20px;
    }

    .location-body-scrollable {
        padding: 16px 20px 0 20px;
    }

    #leafletMap {
        height: 160px;
    }

    .btn-current-location-mobile {
        padding: 10px;
        margin-bottom: 12px;
    }

    .location-footer {
        padding: 12px 20px 16px;
    }
}

/* Fix untuk marker kustom */
.custom-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.3));
}

.marker-label {
    background: var(--red);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid var(--gold);
}

/* Animasi loading untuk tombol */
.btn-locate-map:disabled, .btn-current-location-mobile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}