/* Additional refinements for Barangay Directory */
.barangay-card-refined {
    background: white;
    border: 1px solid rgba(180, 83, 9, 0.1);
    transition: all 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.barangay-card-refined:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.12);
    border-color: var(--heritage-gold);
}

.card-stamp {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    opacity: 0.8;
}

.barangay-search-wrap {
    margin-top: -3rem;
    position: relative;
    z-index: 30;
}

.view-toggle-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    font-weight: 700;
    border-width: 2px;
}

.view-toggle-btn.active {
    background-color: var(--heritage-green);
    color: white;
    border-color: var(--heritage-green);
}

.view-toggle-btn.inactive {
    background-color: white;
    color: var(--heritage-green);
    border-color: var(--heritage-green);
}

.view-toggle-btn.inactive:hover {
    background-color: rgba(6, 78, 59, 0.05);
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--heritage-gold);
    background: var(--heritage-cream);
}

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

/* Fixed missing Tailwind margins */
.mt-32 {
    margin-top: 8rem;
}
