/* Custom map styles */
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.leaflet-popup-content {
    margin: 0;
    width: 260px !important;
}

.leaflet-popup-close-button {
    color: white !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 50%;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    text-align: center;
    font-size: 18px !important;
    top: 10px !important;
    right: 10px !important;
    padding: 0 !important;
    transition: background 0.2s ease-in-out;
}

.leaflet-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Custom Marker Pins mapped to categories */
.custom-pin-w {
    background: transparent;
    border: none;
}

.custom-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    margin: -18px 0 0 -18px;
    /* center pin tip */
    position: relative;
    box-shadow: -3px 3px 6px 0 rgba(0, 0, 0, 0.25);
    border: 3px solid white;
}

.custom-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: white;
    position: absolute;
    border-radius: 50%;
    box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.3);
}

.pin-commercial {
    background: #3b82f6;
}

/* Tailwind blue-500 */

.pin-residential {
    background: #a855f7;
}

/* Tailwind purple-500 */
.pin-industrial {
    background: #ef4444;
}

/* Tailwind red-500 */
.pin-rustic {
    background: #10b981;
}

/* Tailwind amber-500 */
.pin-desarrollo {
    background: #f59e0b;
}

/* Tailwind green-500 */

/* Hide scrollbar for gallery thumbnails */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Category Button active state */
.category-btn.active.border-transparent {
    border-color: #102a43;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-btn.active>div.rounded-full {
    background-color: #102a43 !important;
    /* Navy 900 */
    color: white !important;
}

/* Leaflet Container Transitions */
.leaflet-container {
    font-family: 'Inter', sans-serif;
}