.map-section {
    padding: 60px 20px;
    margin: 0 auto;
}

.map-section-title {
    text-align: center;
    margin-bottom: 40px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.map-section-heading {
    margin: 0 0 15px 0;
}

.map-section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.map-container {
    --toggle-button-width: 120px;
    --quality-btn-width: 140px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16/9;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

#park-map {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.info-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    max-width: calc(100vw - 40px);
    z-index: 100;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    scrollbar-width: thin;
    box-sizing: border-box;
}

.info-card::-webkit-scrollbar {
    width: 6px;
}

.info-card::-webkit-scrollbar-track {
    background: transparent;
}

.info-card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.info-card::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.info-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.info-card.switching {
    transition: opacity 0.15s ease-out, transform 0.15s ease-out !important;
    opacity: 0 !important;
    transform: translate(-50%, -50%) translateY(10px) !important;
}

.info-card-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.info-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.info-card-close {
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card .ecoparque-item {
    display: flex !important;
    flex-direction: column !important;
    margin: 10px !important;
    padding: 20px 15px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
    max-height: 100%;
    overflow-y: visible;
    overflow-x: hidden;
    box-sizing: border-box !important;
    align-items: center !important;
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
}


.info-card .ecoparque-image-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1/1 !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}


.info-card .info-card-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px !important;
}

.info-card .ecoparque-title {
    font-size: 1.3rem !important;
    margin: 0 0 12px 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

.info-card .text-content {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.info-card .text-paragraph {

    padding: 0 5px !important;
    line-height: 1.5 !important;
    text-align: justify !important;
    hyphens: none;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}


.info-card .loading-spinner {
    font-size: 14px !important;
    margin: 10px 0 !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.map-status-message {
    display: none !important;
}

.map-scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    pointer-events: none;
}

.map-scroll-message {
    padding: 12px 20px;
    max-width: 280px;
    transform: translateY(10px);
}

.map-scroll-overlay.show {
    display: flex;
}

.map-container.loading .map-loading {
    display: flex;
}

.map-container.loaded .map-loading {
    display: none;
}

.leaflet-control-container .leaflet-top.leaflet-right {
    top: 70px;
    z-index: 1000;
}

.leaflet-control-container .leaflet-bottom.leaflet-left {
    margin-left: 15px;
    margin-bottom: 15px;
}

.map-container .leaflet-control-container .leaflet-control-attribution {
    margin-left: 160px;
    margin-bottom: 0;
    transition: margin-left 0.3s ease;
}

.map-container:has(.quality-toggle-btn[style*="display: flex"]) .leaflet-control-container .leaflet-control-attribution {
    margin-left: 160px;
    margin-bottom: 0;
}

.map-container.height-constrained {
    max-height: 80vh !important;
    aspect-ratio: 4/8 !important;
    width: 100%;
}