body {
    font-family: 'Comfortaa', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 5px;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.filter-btn,
.card-title,
.legend h6 {
    font-family: 'Comfortaa', cursive;
    font-weight: 800;
}

#map {
    width: 100%;
    height: 500px;
}

.navbar {
    background: linear-gradient(135deg, #2e3d96, #0277bd);
}

.navbar-toggler {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 992px) {
    .navbar-toggler {
        display: block !important;
        border: 1px solid rgba(255,255,255,0.3);
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        background-color: #0277bd;
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
}

.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    height: calc(100vh - 76px);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    position: sticky;
    /* top: 76px; */
    top: 0;
}

.filter-btn {
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    font-weight: 500;
    border-width: 2px;
}

/* Estilos para botón Naturaleza */
.btn-naturaleza {
    border-color: #006064;
    color: #006064;
}

.btn-naturaleza:hover,
.btn-naturaleza:active,
.btn-naturaleza:focus {
    background-color: #006064;
    color: white !important;
    border-color: #006064;
}

/* Estilos para botón Cultural */
.btn-cultural {
    border-color: #ef6c00;
    color: #ef6c00;
}

.btn-cultural:hover,
.btn-cultural:active,
.btn-cultural:focus {
    background-color: #ef6c00;
    color: white !important;
    border-color: #ef6c00;
}

/* Estilos para botón Playas */
.btn-playas {
    border-color: #0277bd;
    color: #0277bd;
}

.btn-playas:hover,
.btn-playas:active,
.btn-playas:focus {
    background-color: #0277bd;
    color: white !important;
    border-color: #0277bd;
}

/* Estilos para botón Vinicultura */
.btn-vinicultura {
    border-color: #6a1b9a;
    color: #6a1b9a;
}

.btn-vinicultura:hover,
.btn-vinicultura:active,
.btn-vinicultura:focus {
    background-color: #6a1b9a;
    color: white !important;
    border-color: #6a1b9a;
}

/* Estilos para botón Todos */
.btn-todos {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-todos:hover,
.btn-todos:active,
.btn-todos:focus {
    background-color: #6c757d;
    color: white !important;
    border-color: #6c757d;
}

.location-card {
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-nature {
    border-left: 4px solid #006064;
}

.card-cultural {
    border-left: 4px solid #ef6c00;
}

.card-playas {
    border-left: 4px solid #0277bd;
}

.card-vinicultura {
    border-left: 4px solid #6a1b9a;
}

/* Estilo mejorado para la ventana de información con flecha */
.info-window {
    padding: 15px;
    max-width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    font-family: 'Comfortaa', cursive;
    position: relative;
}

/* Flecha tipo chevron que apunta al marcador */
.info-window::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.info-title {
    font-weight: bold;
    font-size: 16px;
    color: #006064;
    margin-bottom: 5px;
}

.info-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    margin-bottom: 8px;
    font-family: 'Comfortaa', cursive;
    font-weight: 500;
}

.type-nature {
    background-color: #006064;
}

.type-cultural {
    background-color: #ef6c00;
}

.type-playas {
    background-color: #0277bd;
}

.type-vinicultura {
    background-color: #6a1b9a;
}

.legend {
    background: white;
    opacity: .6;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
}

.legend-item {
    margin: 8px 0;
    display: flex;
    align-items: center;
    font-family: 'Comfortaa', cursive;
    font-size: 12px;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.scroll-container {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 5px;
}

.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.geolocate-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.geolocate-btn:hover {
    background-color: #006064;
    color: white;
}

@media (max-width: 992px) {
    .sidebar {
        height: auto;
        position: relative;
        top: 0;
    }
    
    .scroll-container {
        max-height: 300px;
    }
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.spinner-border {
    color: #006064;
}

.card-header {
    font-family: 'Comfortaa', cursive;
    font-weight: 600;
}

/* Estilo para el overlay del popup */
.ol-popup {
    position: absolute;
    background-color: transparent;
    padding-bottom: 15px;
    bottom: 12px;
    left: -50px;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .sidebar {
        background-color: #2c2c2c;
        color: #f1f1f1;
    }
    
    .card {
        background-color: #2c2c2c;
        color: #f1f1f1;
    }
    
    .location-card {
        background-color: #3c3c3c;
    }
}