.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.drop-cap::first-letter {
    float: left;
    font-size: 5rem;
    line-height: 4rem;
    padding-top: 0.5rem;
    padding-right: 0.75rem;
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    color: #735c00;
}

.cultural-pattern {
    mask-image: radial-gradient(circle, black 1px, transparent 1px);
    mask-size: 24px 24px;
    opacity: 0.05;
}

.gallery-masonry {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════
   PETA DIGITAL PAGE STYLES
   ═══════════════════════════════════════════════════ */

/* Pulse dot */
.peta-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    animation: petaPulse 2s ease-in-out infinite;
}

@keyframes petaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* Main Wrapper */
.peta-digital-wrapper {
    display: flex;
    gap: 0;
    height: 620px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px -12px rgba(3, 33, 25, 0.15),
                0 0 0 1px rgba(3, 33, 25, 0.05);
    position: relative;
    background: #f5f3ee;
}

.peta-digital-wrapper.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    height: 100vh;
    border-radius: 0;
}

/* Sidebar */
.peta-sidebar {
    width: 340px;
    min-width: 340px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(3, 33, 25, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
}

.peta-sidebar-toggle {
    display: none;
}

.peta-sidebar-search {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(3, 33, 25, 0.06);
}

.peta-sidebar-categories {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(3, 33, 25, 0.06);
}

.peta-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}

.peta-sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.peta-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.peta-sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(3, 33, 25, 0.12);
    border-radius: 4px;
}

/* Category Chips */
.peta-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #414845;
    background: #f0eee9;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.peta-category-chip:hover {
    background: #e4e2dd;
    transform: translateY(-1px);
}

.peta-category-chip.active {
    background: #032119;
    color: #fff;
    border-color: #032119;
    box-shadow: 0 2px 8px rgba(3, 33, 25, 0.25);
}

.peta-category-chip.active .material-symbols-outlined {
    color: #aecdc0 !important;
}

.peta-chip-count {
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(3, 33, 25, 0.08);
    color: #414845;
}

.peta-category-chip.active .peta-chip-count {
    background: rgba(174, 205, 192, 0.25);
    color: #aecdc0;
}

/* Location List Items */
.peta-location-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1.5px solid transparent;
    margin-bottom: 4px;
}

.peta-location-item:hover {
    background: rgba(3, 33, 25, 0.03);
    border-color: rgba(3, 33, 25, 0.06);
}

.peta-location-item.active {
    background: rgba(115, 92, 0, 0.06);
    border-color: rgba(115, 92, 0, 0.15);
}

.peta-location-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.peta-location-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e4e2dd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #727975;
}

.peta-location-thumb-placeholder .material-symbols-outlined {
    font-size: 20px;
}

.peta-location-info {
    flex: 1;
    min-width: 0;
}

.peta-location-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #032119;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.peta-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--badge-color, #1A362D) 12%, transparent);
    color: var(--badge-color, #1A362D);
}

.peta-location-distrik {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    color: #727975;
    margin-top: 3px;
}

/* Map Container */
.peta-map-container {
    flex: 1;
    position: relative;
    min-width: 0;
}

.peta-map {
    width: 100%;
    height: 100%;
}

/* Map Markers */
.peta-marker-icon {
    background: none !important;
    border: none !important;
}

.peta-marker {
    width: 34px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.peta-marker::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mk-color, #1A362D);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    border: 2.5px solid rgba(255,255,255,0.9);
}

.peta-marker .material-symbols-outlined {
    position: relative;
    z-index: 1;
    font-size: 16px;
    color: #fff;
    margin-top: -6px;
    font-variation-settings: 'FILL' 1;
}

/* Clusters */
.peta-cluster-icon {
    background: none !important;
    border: none !important;
}

.peta-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 14px rgba(3, 33, 25, 0.3);
    animation: clusterPop 0.3s ease-out;
}

.peta-cluster-sm {
    background: linear-gradient(135deg, #304c42, #1A362D);
    font-size: 0.75rem;
}

.peta-cluster-lg {
    background: linear-gradient(135deg, #735c00, #574500);
    font-size: 0.85rem;
}

.peta-cluster-xl {
    background: linear-gradient(135deg, #753401, #532300);
    font-size: 0.95rem;
}

@keyframes clusterPop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Zoom Controls */
.peta-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.peta-zoom-controls button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(3, 33, 25, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #032119;
}

.peta-zoom-controls button:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.peta-zoom-controls button .material-symbols-outlined {
    font-size: 20px;
}

/* Detail Panel */
.peta-detail-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 320px;
    max-height: calc(100% - 32px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(3, 33, 25, 0.06);
    z-index: 500;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.peta-detail-panel.show {
    transform: translateX(0);
    opacity: 1;
}

.peta-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.peta-detail-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

.peta-detail-close .material-symbols-outlined {
    font-size: 18px;
}

.peta-detail-thumb {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.peta-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.peta-detail-body {
    padding: 16px 18px 20px;
}

.peta-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--badge-color, #1A362D) 12%, transparent);
    color: var(--badge-color, #1A362D);
    margin-bottom: 8px;
}

.peta-detail-title {
    font-family: 'Noto Serif', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #032119;
    margin: 0 0 10px;
    line-height: 1.3;
}

.peta-detail-desc {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.55;
    margin: 0 0 14px;
}

.peta-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.peta-detail-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
    color: #666;
}

.peta-detail-meta-item .material-symbols-outlined {
    font-size: 15px;
    color: #999;
    flex-shrink: 0;
    margin-top: 1px;
}

.peta-detail-coords {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #aaa;
    padding-top: 10px;
    border-top: 1px solid rgba(3, 33, 25, 0.06);
}

.peta-detail-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #032119;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.peta-detail-link:hover {
    background: #0a3d2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 33, 25, 0.3);
}

.peta-detail-link .material-symbols-outlined {
    font-size: 16px;
}

/* Empty State */
.peta-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

/* Hide Leaflet default zoom */
.peta-map .leaflet-control-zoom {
    display: none !important;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .peta-digital-wrapper {
        flex-direction: column-reverse;
        height: calc(100vh - 180px);
        min-height: 500px;
    }

    .peta-sidebar {
        width: 100%;
        min-width: unset;
        max-height: 60px;
        border-right: none;
        border-top: 1px solid rgba(3, 33, 25, 0.08);
        transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        overflow: hidden;
    }

    .peta-sidebar.mobile-open {
        max-height: 65%;
        overflow-y: auto;
    }

    .peta-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        width: 100%;
        background: none;
        border: none;
        color: #727975;
        cursor: pointer;
    }

    .peta-sidebar.mobile-open .peta-sidebar-toggle .material-symbols-outlined {
        transform: rotate(180deg);
    }

    .peta-detail-panel {
        top: auto;
        bottom: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 60%;
    }

    .peta-zoom-controls {
        bottom: 75px;
        right: 12px;
    }

    .peta-zoom-controls button {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .peta-sidebar {
        width: 280px;
        min-width: 280px;
    }

    .peta-digital-wrapper {
        height: 550px;
    }
}

