body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fdfbf7;
    color: #1a3c34;
}

h1, h2, h3, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* Mapbox GL JS Custom Styling */
#map {
    width: 100%;
    height: 520px;
    border-radius: 1rem;
}

/* Marker Popup Styling */
.mapboxgl-popup-content {
    background: #fdfbf7 !important;
    border: 2px solid #b85c37;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    box-shadow: 0 10px 25px -5px rgba(26, 60, 52, 0.25) !important;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: #b85c37 !important;
}

/* .spice-marker adalah elemen dalam (bukan root yang diposisikan Mapbox),
   sehingga transform scale aman dipakai tanpa merusak posisi marker. */
.spice-marker {
    width: 42px;
    height: 42px;
    background: #b85c37;
    border: 2px solid #ffffff;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.spice-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spice-marker:hover {
    transform: scale(1.12);
    z-index: 10;
}

/* Rempah yang menjadi tujuan jalur resep yang sedang aktif */
.spice-marker.is-active {
    border-color: #e0a030;
    box-shadow: 0 0 0 4px rgba(224, 160, 48, 0.45), 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.28);
    z-index: 11;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f0e8d9;
}
::-webkit-scrollbar-thumb {
    background: #b85c37;
    border-radius: 4px;
}

/* Chatbot Overlay */
.chat-glass {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
}

/* Tombol tutup (X) popup: bulat, jelas, dan tidak menempel di tepi */
.mapboxgl-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 28px;
    height: 28px;
    padding: 0 0 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    background: #b85c37 !important;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mapboxgl-popup-close-button:hover {
    background: #964828 !important;
    transform: scale(1.08);
}

.mapboxgl-popup-close-button:focus-visible {
    outline: 2px solid #e0a030;
    outline-offset: 2px;
}

/* Area Fun Fact yang bisa di-scroll di dalam popup */
.fun-fact-scroll {
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b85c37 #f0e8d9;
}