/* Custom Styles for Memora Mobile & Lightbox */

.font-handwriting {
    font-family: 'Caveat', cursive;
}

/* Washi Tape Effect */
.washi-tape-pink {
    background-color: rgba(244, 197, 214, 0.75);
    transform: rotate(-2deg);
}

/* Custom Marker Pin Styling for Leaflet */
.custom-memory-marker {
    background: transparent;
    border: none;
}

/* Optimization for Android Map Gesture Control */
#map {
    touch-action: pan-x pan-y !important;
}

/* Memastikan area peta terisolasi penuh dari event scroll halaman di HP */
.leaflet-container {
    background-color: #F4EFEB !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    z-index: 1 !important;
    outline: none;
}

/* Marker Touch Target Area */
.marker-pin-container {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.marker-pin-container {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    padding: 4px 10px 4px 6px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(139, 127, 184, 0.3);
    border: 1.5px solid rgba(244, 197, 214, 0.9);
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
}

.marker-heart-icon {
    width: 24px;
    height: 24px;
    background: #C5B4E3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 6px;
}

.marker-title-label {
    font-weight: 600;
    font-size: 12px;
    color: #4A3E59;
}

/* Fix Map Leaflet Touch Responsiveness on Android */
#map {
    touch-action: pan-x pan-y !important;
}

.leaflet-container {
    background-color: #F4EFEB !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    z-index: 1 !important;
}

/* Route & Active Marker Highlight Styles */

/* Animasi Putus-putus Garis Perjalanan */
.journey-route-line {
    stroke-dasharray: 8, 8;
    animation: dashAnimation 20s linear infinite;
    transition: all 0.4s ease;
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Marker Aktif / Terpilih */
.marker-pin-container.active-pin {
    background: #8B7FB8 !important;
    border-color: #F4C5D6 !important;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(139, 127, 184, 0.45);
}

.marker-pin-container.active-pin .marker-title-label {
    color: #FFFFFF !important;
}

.marker-pin-container.active-pin .marker-heart-icon {
    background: #F4C5D6 !important;
    color: #8B7FB8 !important;
}

/* Modal Lightbox Animation */
#image-lightbox {
    transition: opacity 0.25s ease-in-out;
}