/* =========================================================
   VENUES MAP
   ========================================================= */


/* ---------------------------------------------------------
   FONT
   --------------------------------------------------------- */

@font-face {
    font-family: "Isidora";

    src:
        url("./assets/fonts/isidora-light.woff")
        format("woff");

    font-weight: 300;

    font-style: normal;

    font-display: swap;
}


/* ---------------------------------------------------------
   RESET
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    padding: 0;

    background: #f7f3ed;

    font-family:
        "Isidora",
        Arial,
        sans-serif;

    color: #24142e;

    -webkit-font-smoothing: antialiased;
}


/* ---------------------------------------------------------
   SECTION
   --------------------------------------------------------- */

.dev1-cbox-venues-map {
    width: 100%;

    padding:
        75px
        2.5vw
        80px;

    background:
        linear-gradient(
            120deg,
            #f8f4ee 0%,
            #f7f3ee 55%,
            #f5f0f4 100%
        );
}


/* ---------------------------------------------------------
   CONTAINER
   --------------------------------------------------------- */

.dev1-cbox-venues-map__container {
    width: 100%;

    max-width: 1740px;

    margin: 0 auto;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.dev1-cbox-venues-map__header {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.65fr);

    align-items: end;

    gap: 50px;

    margin-bottom: 48px;
}


/* ---------------------------------------------------------
   EYEBROW
   --------------------------------------------------------- */

.dev1-cbox-venues-map__eyebrow {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 12px;

    color: #b12883;

    font-size: 14px;

    line-height: 1;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.dev1-cbox-venues-map__eyebrow-line {
    width: 38px;

    height: 2px;

    flex-shrink: 0;

    background: #e4b52b;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.dev1-cbox-venues-map__title {
    margin: 0;

    color: #180d25;

    font-size:
        clamp(
            50px,
            5vw,
            78px
        );

    line-height: 1;

    font-weight: 300;

    letter-spacing: -0.035em;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.dev1-cbox-venues-map__intro {
    max-width: 570px;

    margin:
        0
        0
        4px
        auto;

    color: #81758b;

    font-size: 18px;

    line-height: 1.7;

    font-weight: 300;
}


/* ---------------------------------------------------------
   MAP WRAPPER
   --------------------------------------------------------- */

.dev1-cbox-venues-map__wrapper {
    width: 100%;

    min-height: 615px;

    display: grid;

    grid-template-columns:
        minmax(0, 3.4fr)
        minmax(350px, 1.1fr);

    overflow: hidden;

    border:
        1px solid
        #d8c8dc;

    border-radius:
        30px
        0
        30px
        0;

    background: #ffffff;

    box-shadow:
        0 18px 40px
        rgba(54, 28, 70, 0.08);
}


/* ---------------------------------------------------------
   MAP
   --------------------------------------------------------- */

.dev1-cbox-venues-map__map {
    position: relative;

    min-width: 0;

    min-height: 615px;

    overflow: hidden;
}


.dev1-cbox-venues-map__canvas {
    width: 100%;

    height: 100%;

    min-height: 615px;

    background: #c9dce0;
}


/* ---------------------------------------------------------
   LEAFLET
   --------------------------------------------------------- */

.dev1-cbox-venues-map__canvas
.leaflet-control-zoom {
    margin:
        14px
        0
        0
        14px;
}


.dev1-cbox-venues-map__canvas
.leaflet-control-zoom a {
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #542283;

    background: #ffffff;

    border: 1px solid #d6c8dc;
}


.dev1-cbox-venues-map__canvas
.leaflet-control-zoom a:first-child {
    border-radius:
        7px
        7px
        0
        0;
}


.dev1-cbox-venues-map__canvas
.leaflet-control-zoom a:last-child {
    border-radius:
        0
        0
        7px
        7px;
}


/* ---------------------------------------------------------
   CUSTOM MARKER
   --------------------------------------------------------- */

.dev1-cbox-venues-map__marker {
    position: relative;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        3px solid
        #ffffff;

    border-radius: 50% 50% 50% 0;

    background:
        linear-gradient(
            145deg,
            #f7a24c,
            #e24c9b
        );

    box-shadow:
        0 5px 14px
        rgba(38, 17, 54, 0.35);

    transform:
        rotate(-45deg);
}


.dev1-cbox-venues-map__marker::after {
    content: "";

    width: 11px;

    height: 11px;

    border-radius: 50%;

    background: #ffffff;
}


/* ---------------------------------------------------------
   POPUP
   --------------------------------------------------------- */

.dev1-cbox-venues-map__popup {
    position: absolute;

    z-index: 500;

    top: 12px;

    left: 12%;

    width: 320px;

    padding:
        17px
        22px
        18px;

    border-radius:
        14px;

    background: #ffffff;

    box-shadow:
        0 10px 30px
        rgba(27, 15, 37, 0.22);
}


.dev1-cbox-venues-map__popup-title {
    margin:
        0
        0
        5px;

    color: #2a1537;

    font-size: 18px;

    font-weight: 600;
}


.dev1-cbox-venues-map__popup-address {
    margin: 0;

    color: #8a7f91;

    font-size: 14px;

    line-height: 1.5;
}


.dev1-cbox-venues-map__popup-close {
    position: absolute;

    top: 9px;

    right: 12px;

    width: 28px;

    height: 28px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #716875;

    font-size: 22px;

    cursor: pointer;
}


.dev1-cbox-venues-map__popup-pointer {
    position: absolute;

    left: 50%;

    bottom: -11px;

    width: 22px;

    height: 22px;

    background: #ffffff;

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* ---------------------------------------------------------
   LOCATIONS PANEL
   --------------------------------------------------------- */

.dev1-cbox-venues-map__locations {
    min-width: 0;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #21102d 0%,
            #190c23 100%
        );

    color: #ffffff;
}


/* ---------------------------------------------------------
   PANEL HEADER
   --------------------------------------------------------- */

.dev1-cbox-venues-map__locations-header {
    min-height: 60px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding:
        0
        20px;

    background: #1a0925;

    border-bottom:
        1px solid
        rgba(255,255,255,0.08);
}


.dev1-cbox-venues-map__locations-count {
    color: #e7d2ef;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.04em;
}


.dev1-cbox-venues-map__directions {
    color: #e6b52b;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   LIST
   --------------------------------------------------------- */

.dev1-cbox-venues-map__locations-list {
    flex: 1;

    overflow-y: auto;

    padding:
        10px
        12px
        18px;
}


.dev1-cbox-venues-map__locations-list::-webkit-scrollbar {
    width: 7px;
}


.dev1-cbox-venues-map__locations-list::-webkit-scrollbar-track {
    background: transparent;
}


.dev1-cbox-venues-map__locations-list::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background: #765b84;
}


/* ---------------------------------------------------------
   LOCATION
   --------------------------------------------------------- */

.dev1-cbox-venues-map__location {
    width: 100%;

    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin: 0 0 12px;

    padding:
        17px
        16px;

    border:
        1px solid
        rgba(224, 192, 231, 0.14);

    border-radius:
        18px
        18px
        18px
        0;

    background:
        rgba(255,255,255,0.035);

    color: #ffffff;

    text-align: left;

    font-family: inherit;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.dev1-cbox-venues-map__location:hover {
    background:
        rgba(145, 65, 170, 0.16);

    border-color:
        rgba(214, 172, 226, 0.3);

    transform: translateX(-3px);
}


.dev1-cbox-venues-map__location--active {
    background:
        rgba(144, 61, 168, 0.22);

    border-color:
        rgba(211, 171, 226, 0.32);
}


/* ---------------------------------------------------------
   NUMBER
   --------------------------------------------------------- */

.dev1-cbox-venues-map__location-number {
    width: 38px;

    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius:
        11px
        11px
        11px
        0;

    background:
        rgba(235, 177, 57, 0.12);

    color: #e4bd58;

    font-size: 13px;

    font-weight: 600;
}


/* ---------------------------------------------------------
   LOCATION CONTENT
   --------------------------------------------------------- */

.dev1-cbox-venues-map__location-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.dev1-cbox-venues-map__location-content strong {
    color: #ffffff;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 500;
}


.dev1-cbox-venues-map__location-content small {
    color: #b9a9c1;

    font-size: 13px;

    line-height: 1.45;

    font-weight: 300;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (max-width: 1400px) {

    .dev1-cbox-venues-map {
        padding:
            70px
            3vw
            70px;
    }

    .dev1-cbox-venues-map__header {
        margin-bottom: 40px;
    }

    .dev1-cbox-venues-map__wrapper {
        grid-template-columns:
            minmax(0, 3fr)
            minmax(330px, 1fr);
    }

    .dev1-cbox-venues-map__popup {
        left: 13%;
    }
}


/* =========================================================
   TABLET LANDSCAPE
   ========================================================= */

@media (max-width: 1100px) {

    .dev1-cbox-venues-map {
        padding:
            60px
            25px
            60px;
    }

    .dev1-cbox-venues-map__header {
        grid-template-columns: 1fr;

        gap: 20px;

        margin-bottom: 35px;
    }

    .dev1-cbox-venues-map__intro {
        max-width: 650px;

        margin: 0;
    }

    .dev1-cbox-venues-map__wrapper {
        grid-template-columns:
            1fr;

        min-height: auto;
    }

    .dev1-cbox-venues-map__map {
        min-height: 500px;
    }

    .dev1-cbox-venues-map__canvas {
        min-height: 500px;
    }

    .dev1-cbox-venues-map__locations {
        max-height: 430px;
    }
}


/* =========================================================
   TABLET PORTRAIT
   ========================================================= */

@media (max-width: 768px) {

    .dev1-cbox-venues-map {
        padding:
            55px
            20px
            55px;
    }

    .dev1-cbox-venues-map__title {
        font-size:
            clamp(
                42px,
                8vw,
                60px
            );
    }

    .dev1-cbox-venues-map__eyebrow {
        font-size: 12px;
    }

    .dev1-cbox-venues-map__eyebrow-line {
        width: 30px;
    }

    .dev1-cbox-venues-map__intro {
        font-size: 16px;

        line-height: 1.6;
    }

    .dev1-cbox-venues-map__map {
        min-height: 430px;
    }

    .dev1-cbox-venues-map__canvas {
        min-height: 430px;
    }

    .dev1-cbox-venues-map__popup {
        top: 15px;

        left: 50%;

        width: 280px;

        transform:
            translateX(-50%);
    }

    .dev1-cbox-venues-map__locations-header {
        min-height: 58px;
    }

    .dev1-cbox-venues-map__locations {
        max-height: 390px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dev1-cbox-venues-map {
        padding:
            45px
            14px
            45px;
    }

    .dev1-cbox-venues-map__header {
        margin-bottom: 28px;
    }

    .dev1-cbox-venues-map__eyebrow {
        gap: 9px;

        font-size: 11px;
    }

    .dev1-cbox-venues-map__eyebrow-line {
        width: 25px;
    }

    .dev1-cbox-venues-map__title {
        font-size: 38px;

        line-height: 1.03;
    }

    .dev1-cbox-venues-map__intro {
        font-size: 14px;

        line-height: 1.55;
    }

    .dev1-cbox-venues-map__wrapper {
        border-radius:
            24px
            0
            24px
            0;
    }

    .dev1-cbox-venues-map__map {
        min-height: 360px;
    }

    .dev1-cbox-venues-map__canvas {
        min-height: 360px;
    }

    .dev1-cbox-venues-map__popup {
        top: 12px;

        width:
            calc(100% - 30px);

        padding:
            14px
            17px;
    }

    .dev1-cbox-venues-map__popup-title {
        font-size: 16px;
    }

    .dev1-cbox-venues-map__popup-address {
        font-size: 12px;
    }

    .dev1-cbox-venues-map__locations {
        max-height: none;
    }

    .dev1-cbox-venues-map__locations-header {
        min-height: 55px;

        padding:
            0
            15px;
    }

    .dev1-cbox-venues-map__locations-count {
        font-size: 11px;
    }

    .dev1-cbox-venues-map__directions {
        font-size: 12px;
    }

    .dev1-cbox-venues-map__locations-list {
        padding:
            10px
            10px
            15px;
    }

    .dev1-cbox-venues-map__location {
        padding:
            14px
            12px;

        gap: 11px;
    }

    .dev1-cbox-venues-map__location-number {
        width: 34px;

        height: 34px;

        font-size: 11px;
    }

    .dev1-cbox-venues-map__location-content strong {
        font-size: 14px;
    }

    .dev1-cbox-venues-map__location-content small {
        font-size: 11px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .dev1-cbox-venues-map {
        padding:
            38px
            10px
            38px;
    }

    .dev1-cbox-venues-map__title {
        font-size: 32px;
    }

    .dev1-cbox-venues-map__map,
    .dev1-cbox-venues-map__canvas {
        min-height: 320px;
    }

    .dev1-cbox-venues-map__locations-header {
        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        gap: 4px;

        padding:
            10px
            14px;
    }
}