/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar for dark mode */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #121212; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Leaflet Dark Mode Adjustments */
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-container {
    background: #0a0a0a !important;
}

/* Custom Marker Popup */
.leaflet-popup-content-wrapper {
    background: #1e1e1e !important;
    color: #e5e7eb !important;
    border: 1px solid #374151;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
}
.leaflet-popup-tip {
    background: #1e1e1e !important;
    border: 1px solid #374151;
    border-top: none;
    border-left: none;
}
.leaflet-popup-content {
    margin: 12px !important;
    font-family: 'Inter', sans-serif;
    min-width: 200px !important;
}
.leaflet-popup-close-button {
    color: #9ca3af !important;
    top: 10px !important;
    right: 10px !important;
}
.leaflet-popup-close-button:hover {
    color: #fff !important;
}

/* Custom Marker Icon styles */
.custom-marker {
    background: none;
    border: none;
}
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #FF8C00;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.marker-pin::after {
    content: '';
    width: 22px;
    height: 22px;
    margin: 4px 0 0 4px;
    background: #1e1e1e;
    position: absolute;
    border-radius: 50%;
}
.custom-marker i {
    position: absolute;
    width: 22px;
    font-size: 12px;
    left: 0;
    right: 0;
    margin: 10px auto;
    text-align: center;
    color: #fff;
    z-index: 10;
}

/* Filter buttons active state */
.filter-btn.active {
    background-color: rgba(255, 140, 0, 0.1);
    border-color: #FF8C00;
    color: #FF8C00;
}

/* Place Card Hover Effects */
.place-card:active {
    transform: scale(0.98);
}
.place-card {
    transition: all 0.2s ease;
}
.place-card:hover {
    border-color: #FF8C00;
    box-shadow: 0 4px 6px -1px rgba(255, 140, 0, 0.1);
}

/* Evitar zoom al hacer focus en inputs en iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Fix for sidebar toggle button when hidden */
#sidebar.-translate-x-full #toggleSidebarBtn {
    transform: translate(100%, -50%) !important;
}