/* =========================================================
   VISIT CHAMOLI
   INTERACTIVE CHAMOLI MAP
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.vc-map-section {
    position: relative;

    width: 100%;
    min-height: 390px;

    overflow: hidden;

    background: #062631;

    color: #ffffff;
}


/* =========================================================
   BACKGROUND IMAGE
========================================================= */

.vc-map-background {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    background-image:
        url("/assets/images/backgrounds/chamoli-map-bg.jpg");

    background-repeat: no-repeat;

    background-position: center center;

    background-size: cover;
}


/* =========================================================
   OVERLAY
========================================================= */

.vc-map-overlay {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(2, 24, 33, 0.82) 0%,
            rgba(2, 28, 37, 0.42) 32%,
            rgba(2, 30, 39, 0.08) 65%,
            rgba(2, 25, 34, 0.48) 100%
        );

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.vc-map-container {
    position: relative;

    z-index: 5;

    width: min(1450px, calc(100% - 80px));

    min-height: 390px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        230px
        minmax(500px, 1fr)
        125px;

    align-items: center;

    gap: 25px;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.vc-map-intro {
    position: relative;

    z-index: 10;
}


.vc-map-eyebrow {
    display: block;

    margin-bottom: 9px;

    color: #f5b82e;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    line-height: 1;
}


.vc-map-heading {
    margin: 0 0 13px;

    color: #ffffff;

    font-size: 28px;

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.7px;
}


.vc-map-heading span {
    display: block;
}


.vc-map-description {
    max-width: 205px;

    margin: 0 0 20px;

    color: rgba(255,255,255,0.76);

    font-size: 9px;

    font-weight: 400;

    line-height: 1.6;
}


/* =========================================================
   EXPLORE BUTTON
========================================================= */

.vc-map-explore-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    height: 35px;

    padding: 0 15px;

    border: 0;

    border-radius: 4px;

    background: #f5b82e;

    color: #122d3a;

    font-size: 8px;

    font-weight: 800;

    cursor: pointer;

    transition: all 0.3s ease;
}


.vc-map-explore-btn i {
    font-size: 9px;

    transition: transform 0.3s ease;
}


.vc-map-explore-btn:hover {
    background: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.25);
}


.vc-map-explore-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   MAP VISUAL
========================================================= */

.vc-map-visual {
    position: relative;

    width: 100%;

    height: 390px;

    min-width: 0;
}


.vc-map-image-wrap {
    position: relative;

    width: 100%;

    height: 100%;
}


/* =========================================================
   CHAMOLI MAP IMAGE
========================================================= */

.vc-map-image {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 94%;
    height: 92%;

    object-fit: contain;

    transform:
        translate(-50%, -50%)
        perspective(1000px)
        rotateX(4deg);

    filter:
        drop-shadow(
            0 22px 25px rgba(0,0,0,0.48)
        );

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   MAP MARKER
========================================================= */

.vc-map-marker {
    position: absolute;

    left: var(--marker-x);
    top: var(--marker-y);

    z-index: 20;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ffffff;

    transform:
        translate(-50%, -50%);

    cursor: pointer;

    text-align: left;

    transition:
        transform 0.3s ease;

    --marker-color: #249bd3;
}


.vc-map-marker:hover,
.vc-map-marker.active {
    z-index: 50;

    transform:
        translate(-50%, -50%)
        scale(1.07);
}


/* =========================================================
   3D PIN
========================================================= */

.vc-map-marker-icon {
    position: relative;

    width: 34px;
    height: 41px;

    flex: 0 0 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.30),
            transparent 32%
        ),
        var(--marker-color);

    color: #ffffff;

    border:
        2px solid rgba(255,255,255,0.90);

    border-radius:
        50%
        50%
        50%
        0;

    transform:
        rotate(-45deg);

    box-shadow:
        0 5px 0 rgba(0,0,0,0.20),
        0 10px 18px rgba(0,0,0,0.38);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}


.vc-map-marker-icon::before {
    content: "";

    position: absolute;

    inset: 4px;

    border:
        1px solid rgba(255,255,255,0.35);

    border-radius:
        50%
        50%
        50%
        0;
}


.vc-map-marker-icon i {
    position: relative;

    z-index: 2;

    font-size: 14px;

    transform:
        rotate(45deg);

    text-shadow:
        0 2px 3px rgba(0,0,0,0.35);
}


.vc-map-marker:hover
.vc-map-marker-icon,

.vc-map-marker.active
.vc-map-marker-icon {

    transform:
        rotate(-45deg)
        translateY(-6px)
        scale(1.12);

    filter:
        brightness(1.12);

    box-shadow:
        0 7px 0 rgba(0,0,0,0.22),
        0 18px 30px rgba(0,0,0,0.45);
}


/* =========================================================
   PIN COLORS
========================================================= */

.vc-marker-auli {
    --marker-color: #249bd3;
}

.vc-marker-joshimath {
    --marker-color: #7165d9;
}

.vc-marker-badrinath {
    --marker-color: #f07838;
}

.vc-marker-mana {
    --marker-color: #69a96d;
}

.vc-marker-valley {
    --marker-color: #b94d9d;
}

.vc-marker-hemkund {
    --marker-color: #36a8ca;
}

.vc-marker-gopeshwar {
    --marker-color: #d5b83d;
}


/* =========================================================
   PIN PULSE
========================================================= */

.vc-map-marker::after {
    content: "";

    position: absolute;

    left: 17px;
    top: 20px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background:
        var(--marker-color);

    opacity: 0.25;

    transform:
        translate(-50%, -50%)
        scale(0.55);

    z-index: -1;

    pointer-events: none;

    animation:
        vcMapMarkerPulse 2.6s ease-out infinite;
}


@keyframes vcMapMarkerPulse {

    0% {
        opacity: 0.30;

        transform:
            translate(-50%, -50%)
            scale(0.55);
    }

    70% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(1.55);
    }

    100% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(1.55);
    }

}


/* =========================================================
   PIN LABEL
========================================================= */

.vc-map-marker-label {
    display: flex;

    flex-direction: column;

    min-width: 90px;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.80);
}


.vc-map-marker-label strong {
    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    line-height: 1.15;
}


.vc-map-marker-label small {
    margin-top: 3px;

    color: rgba(255,255,255,0.82);

    font-size: 7px;

    line-height: 1.2;
}


/* =========================================================
   PREVIEW CARD
========================================================= */

.vc-map-preview {
    position: absolute;

    left: 50%;
    bottom: 15px;

    z-index: 100;

    width: 300px;

    display: flex;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,0.20);

    border-radius: 8px;

    background:
        rgba(5,29,39,0.97);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.42);

    opacity: 0;

    visibility: hidden;

    transform:
        translate(-50%, 20px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}


.vc-map-preview.active {
    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   PREVIEW CLOSE
========================================================= */

.vc-map-preview-close {
    position: absolute;

    top: 7px;
    right: 7px;

    z-index: 10;

    width: 21px;
    height: 21px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
        rgba(0,0,0,0.40);

    color: #ffffff;

    font-size: 9px;

    cursor: pointer;
}


/* =========================================================
   PREVIEW IMAGE
========================================================= */

.vc-map-preview-image {
    width: 105px;

    min-width: 105px;

    height: 110px;

    overflow: hidden;
}


.vc-map-preview-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.vc-map-preview:hover
.vc-map-preview-image img {
    transform:
        scale(1.08);
}


/* =========================================================
   PREVIEW CONTENT
========================================================= */

.vc-map-preview-content {
    padding:
        15px
        28px
        12px
        14px;
}


.vc-map-preview-content > span {
    display: block;

    margin-bottom: 3px;

    color: #f5b82e;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


.vc-map-preview-content h3 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 800;
}


.vc-map-preview-content p {
    margin: 0 0 9px;

    color: rgba(255,255,255,0.65);

    font-size: 7px;

    line-height: 1.45;
}


.vc-map-preview-content a {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #ffffff;

    font-size: 7px;

    font-weight: 800;

    text-decoration: none;
}


.vc-map-preview-content a i {
    color: #f5b82e;

    transition:
        transform 0.3s ease;
}


.vc-map-preview-content a:hover i {
    transform:
        translateX(3px);
}


/* =========================================================
   RIGHT CONTROLS
========================================================= */

.vc-map-controls {
    position: relative;

    z-index: 30;

    width: 120px;

    padding: 7px;

    border:
        1px solid rgba(255,255,255,0.20);

    border-radius: 8px;

    background:
        rgba(4,31,41,0.58);

    backdrop-filter:
        blur(9px);

    -webkit-backdrop-filter:
        blur(9px);
}


.vc-map-control {
    width: 100%;

    min-height: 59px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    padding: 5px;

    border: 0;

    border-bottom:
        1px solid rgba(255,255,255,0.10);

    background: transparent;

    color:
        rgba(255,255,255,0.72);

    font-size: 7px;

    font-weight: 600;

    cursor: pointer;

    transition:
        all 0.3s ease;
}


.vc-map-control:last-child {
    border-bottom: 0;
}


.vc-map-control:hover,
.vc-map-control.active {
    color: #ffffff;

    background:
        rgba(255,255,255,0.08);
}


.vc-map-control-icon {
    width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 13px;
}


.vc-map-control.active
.vc-map-control-icon {
    color: #f5b82e;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199px) {

    .vc-map-container {
        width:
            min(
                1100px,
                calc(100% - 40px)
            );

        grid-template-columns:
            190px
            minmax(400px, 1fr)
            105px;

        gap: 15px;
    }


    .vc-map-heading {
        font-size: 23px;
    }


    .vc-map-controls {
        width: 105px;
    }

}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 991px) {

    .vc-map-section {
        min-height: auto;
    }


    .vc-map-container {
        width:
            calc(100% - 35px);

        display: grid;

        grid-template-columns: 1fr;

        gap: 0;

        padding:
            45px 0 30px;
    }


    .vc-map-intro {
        margin-bottom: 10px;

        text-align: center;
    }


    .vc-map-description {
        max-width: 400px;

        margin-left: auto;
        margin-right: auto;
    }


    .vc-map-visual {
        height: 420px;
    }


    .vc-map-controls {
        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        padding: 0;

        border-radius: 7px;
    }


    .vc-map-control {
        min-height: 55px;

        border-right:
            1px solid rgba(255,255,255,0.10);

        border-bottom: 0;
    }


    .vc-map-control:last-child {
        border-right: 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .vc-map-container {
        width:
            calc(100% - 25px);

        padding-top: 38px;
    }


    .vc-map-heading {
        font-size: 29px;
    }


    .vc-map-visual {
        height: 340px;
    }


    .vc-map-image {
        width: 120%;
    }


    .vc-map-marker-icon {
        width: 28px;
        height: 34px;

        flex-basis: 28px;
    }


    .vc-map-marker-icon i {
        font-size: 11px;
    }


    .vc-map-marker-label {
        min-width: 65px;
    }


    .vc-map-marker-label strong {
        font-size: 9px;
    }


    .vc-map-marker-label small {
        font-size: 6px;
    }


    .vc-map-preview {
        width: 250px;
    }


    .vc-map-preview-image {
        width: 85px;

        min-width: 85px;

        height: 95px;
    }


    .vc-map-preview-content {
        padding:
            12px
            24px
            10px
            11px;
    }


    .vc-map-preview-content h3 {
        font-size: 15px;
    }


    .vc-map-control {
        min-height: 50px;

        font-size: 6px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .vc-map-visual {
        height: 295px;
    }


    .vc-map-image {
        width: 135%;
    }


    .vc-map-marker-label {
        display: none;
    }


    .vc-map-marker {
        transform:
            translate(-50%, -50%)
            scale(0.88);
    }


    .vc-map-marker:hover,
    .vc-map-marker.active {
        transform:
            translate(-50%, -50%)
            scale(1.05);
    }


    .vc-map-preview {
        width: 225px;
    }

}