.map-section {
    background-color: #0066cb;
    padding: 25px 0;
    text-align: center;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}


.map-container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

.map-header {
    text-align: center;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    max-width: 1200px;
}


.small-text {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    margin-bottom: 10px;
}

.map-title {
    font-size: 52px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: left;
    margin: 0px;
}

.map-subtitle {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: right;
    padding-bottom: 50px;
}

.map-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.map-sidebar {
    text-align: left;
    max-width: 250px;
    width: 100%;
    position: absolute;
    left: 0;
    padding: 0 10px;
    color: white;
    z-index: 5;
    box-sizing: border-box;
    overflow-x: hidden;
}



.map-sidebar h3 {
    font-size: 25px;
    color: white;
    border-bottom: 1px solid white;
    padding-bottom: 30px;
}

.map-sidebar ul {
    list-style: none;
    padding: 0;
    font-size: 18px;
    color: white;
    text-align: center;
    margin: 0 !important;
}

.map-sidebar li {
    margin-bottom: 10px;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
    color: white;
    padding: 30px 0px;
    margin-top: 0px;
}

.map-wrapper {
    overflow-x: hidden;
    width: 100%;
    height: auto;
    padding: 0 10px;
}


.map {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    margin-left: 10%;
}

.map-location {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    transform: translate(-50%, -50%);
    z-index: 100;
    white-space: nowrap;
}

.map-location img {
    width: 20px;
    height: auto;
}

.map-label {
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    position: relative;
    left: 3px;
    z-index: 1;
    /* 馃斀 bajamos prioridad */
}

.tooltip {
    position: absolute;
    background: #111827;
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.6;
    display: none;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    min-width: 280px;
    max-width: 320px;
    text-align: left;
    transform: translate(-50%, -100%);
    top: -20px;
    left: 50%;
    word-break: break-word;
}

.tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}


.map-location:hover .tooltip {
    display: block;
}

.tooltip div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tooltip img {
    width: 14px;
    height: auto;
    vertical-align: middle;
}

.tooltip strong,
.tooltip span {
    text-align: left;
    display: block;
}

.tooltip strong {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.tooltip-block {
    margin-bottom: 16px;
}

.tooltip-block.last {
    margin-bottom: 0;
}


@keyframes bounce-horizontal {
    0% {
        transform: scaleX(1);
    }

    25% {
        transform: scaleX(1.3);
    }

    50% {
        transform: scaleX(0.9);
    }

    75% {
        transform: scaleX(1.15);
    }

    100% {
        transform: scaleX(1);
    }
}


.map-location img,
.map-location .map-label {
    animation: bounce-horizontal 1.5s ease-in-out infinite;
    transform-origin: center;
}

.map-location:hover img,
.map-location:hover .map-label {
    animation: none !important;
}

.map-location:nth-child(odd) img,
.map-location:nth-child(odd) .map-label {
    animation-delay: 0.3s;
}

.map-location:nth-child(even) img,
.map-location:nth-child(even) .map-label {
    animation-delay: 0.8s;
}


.tooltip p {
    margin: 0;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.tooltip p:last-child {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .map-section {
        height: auto;
        padding: 40px 0;
    }

    .map-header {
        margin: 0 50px;
        text-align: center;
    }

    .map-title,
    .map-subtitle,
    .small-text {
        text-align: center;
    }

    .map-content {
        flex-direction: column;
        align-items: center;
    }

    .map-sidebar {
        position: relative;
        max-width: 100%;
        text-align: center;
        padding-left: 0;
    }

    .map-wrapper {
        height: 500px;
        overflow: hidden;
    }

    .map {
        width: 100%;
        max-width: 900px;
        height: auto;
        margin-left: 0;
    }

    .map-location {
        display: none;
    }

    .map-title {
        font-size: 38px;
    }

    .map-subtitle {
        font-size: 18px;
    }

    .map-sidebar h3 {
        font-size: 20px;
    }

    .map-sidebar ul {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .map-title {
        font-size: 30px;
    }

    .map-subtitle {
        font-size: 16px;
    }

    .map-sidebar {
        position: relative;
        padding: 20px;
        text-align: center;
    }

    .map-sidebar h3 {
        font-size: 18px;
    }

    .map-sidebar ul {
        font-size: 14px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .map-sidebar li {
        width: 45%;
        padding: 8px 0;
        border-bottom: 1px solid white;
    }
}


@media (max-width: 480px) {
    .map-title {
        font-size: 24px;
    }

    .map-subtitle {
        font-size: 14px;
    }

    .map-sidebar h3 {
        font-size: 16px;
    }

    .map-sidebar ul {
        font-size: 12px;
    }

    .map-sidebar li {
        width: 100%;
        padding: 6px 0;
    }

    .map {
        max-width: 100%;
        height: 300px;
    }

    .map-wrapper {
        height: 300px;
    }

    .map-location {
        display: none;
    }

    .map-label {
        font-size: 8px;
    }

    .tooltip {
        font-size: 10px;
        padding: 8px;
        max-width: 180px;
    }
}

@media (max-width: 992px) {
    .map-header {
        margin-left: 40px;
        margin-right: 40px;
    }

    .map-title {
        font-size: 38px;
        text-align: center;
    }

    .map-subtitle {
        font-size: 18px;
        text-align: center;
        padding-bottom: 30px;
    }

    .map-sidebar {
        position: relative;
        text-align: center;
        max-width: 100%;
        padding: 20px 10px;
        margin-bottom: 30px;
        order: 2;
    }

    .map-sidebar h3 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .map-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 16px;
    }

    .map-sidebar li {
        border-bottom: 1px solid white;
        padding: 10px 0;
        width: 45%;
    }
}

@media (max-width: 768px) {
    .map-header {
        margin: 0 20px;
    }

    .map-title {
        font-size: 30px;
    }

    .map-subtitle {
        font-size: 16px;
    }

    .map-content {
        flex-direction: column;
        align-items: center;
    }

    .map-sidebar ul {
        font-size: 14px;
        gap: 10px;
    }

    .map-sidebar li {
        width: 100%;
        padding: 8px 0;
    }

    .map-sidebar h3 {
        font-size: 18px;
    }

    .map-wrapper {
        order: 1;
    }
}

@media (max-width: 480px) {
    .map-title {
        font-size: 24px;
    }

    .map-subtitle {
        font-size: 14px;
    }

    .map-sidebar {
        padding: 10px;
    }

    .map-sidebar h3 {
        font-size: 16px;
    }

    .map-sidebar ul {
        font-size: 12px;
    }

    .map-sidebar li {
        padding: 6px 0;
    }

    .map-wrapper {
        padding: 0;
    }

    .tooltip {
        font-size: 11px;
        padding: 12px;
    }

    .tooltip-block {
        font-size: 11px;
    }

    .map-label {
        font-size: 10px;
    }
}