/* ==========================================================
   UBICACIONES
========================================================== */

.ubicaciones {
    position: relative;
    padding: 120px 8% 130px;
    background: #0b0710;
    color: #fff;
    overflow: hidden;
}

.ubicaciones::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    right: -180px;
    background: rgba(155, 77, 202, 0.12);
    filter: blur(100px);
    pointer-events: none;
}

.ubicaciones-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.ubicaciones-label {
    margin: 0 0 12px;
    color: #c98cff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.ubicaciones h2 {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .95;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(155, 77, 202, .25);
}

.ubicaciones-text {
    max-width: 600px;
    margin: 25px 0 40px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================
   TOGGLE
========================================================== */

.ubicaciones-toggle {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    margin-bottom: 35px;
    border: 1px solid rgba(201, 140, 255, .25);
    border-radius: 50px;
    background: rgba(17, 11, 25, .8);
}

.ubicacion-toggle {
    border: 0;
    border-radius: 50px;
    padding: 11px 22px;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: .25s ease;
}

.ubicacion-toggle:hover {
    color: #fff;
}

.ubicacion-toggle.active {
    background: #9b4dca;
    color: #fff;
    box-shadow: 0 0 18px rgba(155, 77, 202, .35);
}

/* ==========================================================
   PANELES
========================================================== */

.ubicaciones-panel {
    display: none;
}

.ubicaciones-panel.active {
    display: block;
}

/* ==========================================================
   RUTA DE SALAS
========================================================== */

#vista-ruta {
    max-width: 760px;
    margin: 25px auto 0;
    padding: 55px 50px;
    background: #110b19;
    border: 1px solid rgba(201, 140, 255, .16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.ruta-header {
    text-align: center;
    margin-bottom: 65px;
}

.ruta-eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.ruta-header h3 {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: clamp(36px, 6vw, 56px);
    line-height: .95;
    text-transform: uppercase;
}

.ruta-header h3 span {
    color: #c98cff;
    text-shadow: 0 0 18px rgba(201, 140, 255, .3);
}

.ruta {
    position: relative;
    padding-left: 35px;
}

.ruta::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(201, 140, 255, .4),
        rgba(201, 140, 255, .4) 6px,
        transparent 6px,
        transparent 12px
    );
}

.ruta-stop {
    position: relative;
    margin-bottom: 55px;
}

.ruta-stop:last-child {
    margin-bottom: 0;
}

.ruta-stop::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9b4dca;
    box-shadow:
        0 0 0 4px #110b19,
        0 0 0 5px rgba(201, 140, 255, .35),
        0 0 15px rgba(155, 77, 202, .8);
}

.ruta-stop h4 {
    margin: 0 0 14px;
    font-family: "DM Serif Display", serif;
    font-size: 27px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ruta-venues {
    border-top: 1px solid rgba(201, 140, 255, .18);
}

.ruta-venue {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(201, 140, 255, .18);
}

.ruta-venue a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: .2s ease;
}

.ruta-venue a:hover {
    color: #c98cff;
}

.ruta-venue span {
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
    text-align: right;
}

.ruta-footer {
    margin: 65px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, .4);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ruta-footer span {
    color: #c98cff;
    margin: 0 6px;
}

/* ==========================================================
   MAPA
========================================================== */

.mapa-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 650px;
    border: 1px solid rgba(201, 140, 255, .16);
    background: #110b19;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.mapa-sidebar {
    display: flex;
    flex-direction: column;
    background: #110b19;
    border-right: 1px solid rgba(201, 140, 255, .15);
    overflow: hidden;
}

.mapa-sidebar-head {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(201, 140, 255, .15);
}

.mapa-sidebar-head h3 {
    margin: 0 0 5px;
    font-family: "DM Serif Display", serif;
    font-size: 30px;
    line-height: 1;
}

.mapa-sidebar-head h3 span {
    color: #c98cff;
}

.mapa-sidebar-head p {
    margin: 0;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    line-height: 1.5;
}

.mapa-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(201, 140, 255, .15);
}

.mapa-filter-btn {
    border: 1px solid rgba(201, 140, 255, .2);
    border-radius: 50px;
    padding: 7px 11px;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: .2s ease;
}

.mapa-filter-btn:hover {
    color: #fff;
    border-color: #c98cff;
}

.mapa-filter-btn.active {
    color: #fff;
    background: #9b4dca;
    border-color: #9b4dca;
}

.mapa-venue-list {
    flex: 1;
    overflow-y: auto;
}

.mapa-venue-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 22px;
    border: 0;
    border-bottom: 1px solid rgba(201, 140, 255, .1);
    background: transparent;
    color: #fff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: .2s ease;
}

.mapa-venue-item:hover,
.mapa-venue-item.selected {
    background: rgba(155, 77, 202, .12);
}

.mapa-venue-item .name {
    font-size: 14px;
    font-weight: 700;
}

.mapa-venue-item .city {
    color: rgba(255, 255, 255, .4);
    font-size: 11px;
}

.mapa-venue-item .city::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #9b4dca;
    box-shadow: 0 0 7px rgba(155, 77, 202, .8);
}

#mapa-monocromatics {
    width: 100%;
    min-height: 650px;
    background: #0b0710;
}

/* ==========================================================
   LEAFLET
========================================================== */

.leaflet-popup-content-wrapper {
    background: #110b19;
    color: #fff;
    border: 1px solid rgba(201, 140, 255, .25);
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .5);
}

.leaflet-popup-tip {
    background: #110b19;
}

.leaflet-popup-close-button {
    color: rgba(255, 255, 255, .6) !important;
}

.popup-name {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
}

.popup-city {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
}

.popup-link {
    color: #c98cff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.popup-link:hover {
    color: #fff;
}

.leaflet-control-attribution {
    background: rgba(11, 7, 16, .8) !important;
    color: rgba(255, 255, 255, .4) !important;
}

.leaflet-control-attribution a {
    color: rgba(201, 140, 255, .7) !important;
}

.mapa-marker {
    background: transparent;
    border: 0;
}

.mapa-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9b4dca;
    border: 2px solid #0b0710;
    box-shadow:
        0 0 0 4px rgba(155, 77, 202, .18),
        0 0 15px rgba(155, 77, 202, .8);
    transition: .2s ease;
}

.mapa-pin:hover {
    transform: scale(1.3);
}

.mapa-pin.dim {
    opacity: .2;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
    .mapa-layout {
        grid-template-columns: 260px 1fr;
    }

    .mapa-sidebar-head {
        padding-left: 18px;
        padding-right: 18px;
    }

    .mapa-venue-item {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 700px) {
    .ubicaciones {
        padding: 90px 5% 100px;
    }

    #vista-ruta {
        padding: 40px 25px;
    }

    .mapa-layout {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .mapa-sidebar {
        max-height: 390px;
        border-right: 0;
        border-bottom: 1px solid rgba(201, 140, 255, .15);
    }

    #mapa-monocromatics {
        min-height: 500px;
    }
}

@media (max-width: 520px) {
    .ubicaciones-toggle {
        width: 100%;
    }

    .ubicacion-toggle {
        flex: 1;
    }

    #vista-ruta {
        padding: 35px 20px;
    }

    .ruta {
        padding-left: 28px;
    }

    .ruta-stop::before {
        left: -29px;
    }

    .ruta-venue {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .ruta-venue span {
        text-align: left;
    }

    .ruta-header {
        margin-bottom: 50px;
    }

    .ruta-header h3 {
        font-size: 34px;
    }

    .ruta-stop h4 {
        font-size: 24px;
    }
}