* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    height: 100vh;
}

.sidebar {
    position: absolute;
    left: 60px;
    top: 100px;
    width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    max-height: 400px;
}

.sidebar.hidden {
    transform: translateX(-360px);
}

.info-panel {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.info-panel.visible {
    display: block;
}

.close-button {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1002;
}

.close-button:hover {
    background-color: #f5f5f5;
}

.toggle-sidebar {
    position: fixed;
    left: 10px;
    top: 90px;
    z-index: 1002;
    background-color: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 16px;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.location-card {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.2s;
}

.location-card:hover {
    background-color: #f5f5f5;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.location-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.location-description {
    font-size: 14px;
    color: #666;
}

.popup-content {
    position: relative;
    padding: 20px;
}

.popup-image {
    position: relative;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.price-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.left-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    cursor: help;
}

.time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.accessibility {
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

.features, .idiomas {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 15px 0;
}

.features p, .idiomas p {
    margin-bottom: 8px;
}

.features-tags, .idioma-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.feature, .idioma {
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e0e0e0;
}

/* Scrollbar Styles */
.sidebar::-webkit-scrollbar,
.info-panel::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.info-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.info-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.info-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.error-message {
    padding: 20px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin: 10px;
    color: #c62828;
}

/* Estilos para el tooltip del marcador */
.marker-tooltip {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #4a90e2;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.marker-tooltip::before {
    border-top-color: #4a90e2;
}

.popup-content p {
    margin: 15px 0;
}

/* Media Queries para Tablets */
@media screen and (max-width: 1024px) {
    .sidebar {
        left: 20px;
        width: 250px;
    }

    .info-panel {
        width: 350px;
    }

    .toggle-sidebar {
        top: 90px;
        left: 10px;
    }

    .toggle-sidebar.hidden {
        left: 20px;
    }

    .popup-image {
        height: 180px;
    }

    .button-container {
        left: 20px;
    }

    .filter-panel {
        left: 20px;
        width: 280px;
    }

    .filter-button {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Media Queries para Móviles */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: 0;
        top: 0;
        height: 50vh;
    }

    .sidebar.hidden {
        transform: translateX(-100%);
    }

    .sidebar.visible {
        transform: translateY(0);
    }

    .info-panel {
        width: 100%;
        right: 0;
        top: auto;
        bottom: 0;
        max-height: 80vh;
    }

    .toggle-sidebar {
        top: 90px;
        left: 10px;
    }

    .toggle-sidebar.hidden {
        left: 20px;
    }

    .price-time {
        flex-wrap: wrap;
        gap: 15px;
    }

    .popup-content {
        padding: 15px;
    }

    .popup-image {
        height: 150px;
        object-fit: cover;
    }

    .features-tags, .idioma-tags {
        gap: 5px;
    }

    .feature, .idioma {
        font-size: 12px;
        padding: 4px 8px;
    }

    .social-icons {
        justify-content: center;
    }

    #map {
        height: 100vh;
    }

    .close-button {
        top: 20px;
        right: 20px;
    }

    .button-container {
        left: 10px;
        top: 90px;
    }

    .filter-panel {
        left: 0;
        top: 130px;
        width: 100%;
        max-height: calc(100vh - 140px);
        border-radius: 0;
        margin: 0;
    }

    .filter-header {
        padding: 15px;
    }

    .filter-options {
        padding: 0 15px;
    }

    .clear-filters {
        padding: 0 15px 10px 15px;
    }

    .close-filter-button {
        top: 5px;
        right: 5px;
    }

    .filter-button {
        width: auto;
        font-size: 13px;
        padding: 6px 12px;
    }

    .map-legend {
        bottom: 10px;
        right: 10px;
        padding: 10px 12px 8px 12px;
        font-size: 13px;
        min-width: 120px;
    }

    .map-legend h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .legend-item {
        margin: 4px 0;
    }

    .legend-color {
        width: 13px;
        height: 13px;
        margin-right: 7px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .popup-content h2 {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .location-title {
        font-size: 16px;
    }

    .close-button {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

/* Ajustes para la orientación landscape en móviles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        height: 100vh;
        width: 250px;
    }

    .sidebar.hidden {
        
        width: 0;
        height: 0;
        overflow: hidden;
    }


    .sidebar.visible {
        transform: translateX(0);
    }

    .info-panel {
        width: 50%;
        right: 0;
        top: 0;
        height: 100vh;
    }

    .filter-panel {
        top: 60px;
        left: 0;
        width: 250px;
        height: calc(100vh - 60px);
        max-height: none;
    }

    .button-container {
        top: 20px;
    }
}

.share-button {
    cursor: pointer;
}

.share-button img:hover {
    opacity: 0.8;
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.share-modal-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.share-option {
    margin: 15px 0;
}

.copy-input {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.copy-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.copy-input button {
    padding: 8px 15px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.copy-input button:hover {
    background-color: #357abd;
}

.close-share-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

@media screen and (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .copy-input {
        flex-direction: column;
    }
    
    .copy-input button {
        align-self: stretch;
    }
}

.description-section {
    margin: 15px 0;
    padding: 0px 0;
    border-bottom: 1px solid #eee;
}

.description-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
}

/* Opcional: Si quieres personalizar el estilo del tooltip */
.price:hover::after {
    content: attr(title);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateY(-25px);
    z-index: 1000;
}

.accessibility-icon {
    margin: 10px 0;
    text-align: center;
}

.accessible-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.non-accessible-icon {
    width: 60px;
    height: 60px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    border-radius: 4px;
}

.button-container {
    position: fixed;
    top: 20px;
    left: 60px;
    display: flex;
    gap: 10px;
    z-index: 1002;
}

.filter-button {
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-button::before {
    font-size: 14px;
}

.filter-button:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.filter-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-panel {
    position: fixed;
    top: 60px;
    left: 60px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
    max-height: 80vh;
    width: 300px;
}

.filter-panel.visible {
    display: flex;
    flex-direction: column;
}

.filter-panel h3 {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 0;
    margin: 0;
    z-index: 2;
    border-bottom: 1px solid #eee;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    cursor: pointer;
}

.filter-option:hover {
    background-color: #f8f9fa;
}

.filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option input[type="checkbox"]:checked {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.filter-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    left: 3px;
    top: -1px;
}

.filter-option input[type="checkbox"]:hover {
    border-color: #4a90e2;
}

.filter-option label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 15px 0;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 2;
    padding-bottom: 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.close-filter-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 3;
}

.apply-filters {
    width: 100%;
    padding: 10px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.apply-filters:hover {
    background-color: #357abd;
}

.clear-filters {
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.clear-filters-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    width: 100%;
    text-align: left;
}

.clear-filters-button:hover {
    background-color: #fff5f5;
    border-radius: 4px;
}

.clear-icon {
    font-size: 12px;
    font-weight: bold;
}

/* Ajustes para pantallas muy pequeñas */
@media screen and (max-width: 320px) {
    .filter-panel {
        top: 120px;
    }

    .filter-header h3 {
        font-size: 16px;
    }

    .filter-option {
        font-size: 13px;
    }
}

#location-cards-container.filtered .location-card {
    pointer-events: none;
    cursor: default;
}

#location-cards-container.filtered .location-card:hover {
    background-color: inherit;
    cursor: default;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.public-filter-button {
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.public-filter-button:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.public-filter-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.public-filter-panel {
    position: fixed;
    top: 60px;
    left: 60px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    width: 300px;
}

.public-filter-panel.visible {
    display: block;
}

.close-public-filter-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 3;
}

.logo-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.logo-container img {
    width: 250px;
    height: auto;
    opacity: 0.9;
}

.leaflet-control-attribution {
    font-size: 11px !important;
}

.update-text {
    margin-left: 5px;
}

.temporality-filter-button {
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.temporality-filter-button:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.temporality-filter-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.temporality-filter-panel {
    position: fixed;
    top: 60px;
    left: 60px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    width: 300px;
}

.temporality-filter-panel.visible {
    display: block;
}

.close-temporality-filter-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 3;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 15px 18px 12px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    z-index: 1000;
    font-size: 15px;
    min-width: 150px;
    border: 1px solid #eee;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    color: #222;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
    letter-spacing: 0.5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 7px 0;
    gap: 8px;
}

.legend-item span:last-child {
    color: #333;
    font-size: 14px;
}

.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
}
.legend-cultura {
    background: #1976d2; /* azul profesional */
}
.legend-naturaleza {
    background: #43a047; /* verde profesional */
}
.legend-queseria {
    background: #ffd600; /* amarillo profesional */
}

.feature-filter-panel {
    position: fixed;
    top: 60px;
    left: 60px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    width: 300px;
}

.feature-filter-panel.visible {
    display: block;
}

.close-feature-filter-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 3;
}

.feature-filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 15px 0;
    overflow-y: auto;
    padding-right: 10px;
}

@media screen and (max-width: 768px) {
    .feature-filter-panel {
        left: 0;
        top: 130px;
        width: 100%;
        max-height: calc(100vh - 140px);
        border-radius: 0;
        margin: 0;
    }
    .close-feature-filter-button {
        top: 10px;
        right: 10px;
    }
}