/* =========================================
   CHINTAMANI HEIGHTS
   INTERACTIVE CONNECTIVITY EXPERIENCE
========================================= */


/* =========================================
   BASIC RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #111;
    color: #fff;
}

body {
    overflow: hidden;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 76px;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;

    background: rgba(10, 10, 10, 0.88);

    backdrop-filter: blur(12px);

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


/* Logo */

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

.logo span {
    display: block;

    font-size: 11px;
    font-weight: 400;

    letter-spacing: 5px;

    margin-top: 4px;
}


/* Header right */

.header-label {
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0.65;
}


/* =========================================
   MAP WRAPPER
========================================= */

.map-wrapper {
    position: relative;

    width: 100vw;
    height: 100vh;
}


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

#map {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}


/* =========================================
   MAP TITLE
========================================= */

.map-title {
    position: absolute;

    top: 110px;
    left: 40px;

    z-index: 500;

    width: 360px;

    padding: 28px;

    border-radius: 16px;

    background: rgba(15, 15, 15, 0.86);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}

.map-title h1 {
    margin-top: 8px;

    font-size: 32px;
    line-height: 1.1;

    font-weight: 600;
}

.map-title p {
    margin-top: 12px;

    font-size: 14px;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.68);
}


/* =========================================
   SMALL LABEL
========================================= */

.small-label {
    font-size: 10px;

    letter-spacing: 2.5px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.55);
}


/* =========================================
   PROJECT CALLOUT
========================================= */

.project-callout {
    position: absolute;

    right: 35px;
    top: 110px;

    z-index: 600;

    width: 330px;

    overflow: hidden;

    border-radius: 18px;

    background: rgba(14, 14, 14, 0.94);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45);

    animation: calloutIn 0.5s ease;
}


/* Callout animation */

@keyframes calloutIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   BUILDING IMAGE
========================================= */

.building-image {
    display: block;

    width: 100%;
    height: 190px;

    object-fit: cover;
}


/* =========================================
   CALLOUT CONTENT
========================================= */

.callout-content {
    padding: 22px;
}

.callout-content h2 {
    margin-top: 7px;

    font-size: 25px;

    font-weight: 600;
}

.callout-content p {
    margin-top: 7px;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.62);
}


/* =========================================
   DIVIDER
========================================= */

.callout-divider {
    width: 100%;
    height: 1px;

    margin: 18px 0;

    background: rgba(255, 255, 255, 0.12);
}


/* =========================================
   CONNECTIVITY TITLE
========================================= */

.callout-title {
    margin-bottom: 10px;

    font-size: 10px;

    letter-spacing: 2px;

    color: rgba(255, 255, 255, 0.55);
}


/* =========================================
   CONNECTIVITY ITEMS
========================================= */

#connectivityList {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.connectivity-item {
    width: 100%;

    padding: 12px 13px;

    display: flex;

    align-items: center;
    justify-content: space-between;

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

    border-radius: 10px;

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

    color: #fff;

    cursor: pointer;

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

.connectivity-item:hover {
    background: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.25);

    transform: translateX(-3px);
}

.connectivity-left {
    display: flex;

    align-items: center;

    gap: 10px;
}

.connectivity-icon {
    font-size: 17px;
}

.connectivity-name {
    font-size: 12px;

    font-weight: 500;
}

.connectivity-arrow {
    font-size: 16px;

    opacity: 0.5;
}


/* =========================================
   CLOSE CALLOUT
========================================= */

.close-callout {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    width: 30px;
    height: 30px;

    border: 0;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.6);

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    line-height: 30px;

    transition: background 0.2s ease;
}

.close-callout:hover {
    background: rgba(0, 0, 0, 0.85);
}


/* =========================================
   ROUTE INFORMATION CARD
========================================= */

.route-info {
    position: absolute;

    left: 40px;
    bottom: 35px;

    z-index: 700;

    width: 370px;

    padding: 24px;

    border-radius: 16px;

    background: rgba(12, 12, 12, 0.94);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4);

    animation: routeIn 0.45s ease;
}

@keyframes routeIn {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.route-info h2 {
    margin-top: 6px;

    font-size: 21px;

    font-weight: 500;

    line-height: 1.3;
}


/* =========================================
   ROUTE STATS
========================================= */

.route-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 18px;
}

.route-stats div {
    padding: 13px;

    border-radius: 10px;

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

    border: 1px solid rgba(255, 255, 255, 0.07);
}

.route-stats span {
    display: block;

    font-size: 9px;

    letter-spacing: 1.5px;

    color: rgba(255, 255, 255, 0.5);
}

.route-stats strong {
    display: block;

    margin-top: 5px;

    font-size: 17px;

    font-weight: 500;
}


/* =========================================
   ROUTE STATUS
========================================= */

#routeStatus {
    margin-top: 15px;

    font-size: 11px;

    line-height: 1.5;

    color: rgba(255, 255, 255, 0.5);
}


/* =========================================
   CLOSE ROUTE
========================================= */

.close-route {
    position: absolute;

    top: 13px;
    right: 13px;

    width: 28px;
    height: 28px;

    border: 0;

    border-radius: 50%;

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

    color: #fff;

    font-size: 18px;

    cursor: pointer;
}

.close-route:hover {
    background: rgba(255, 255, 255, 0.16);
}


/* =========================================
   HIDE ELEMENT
========================================= */

.hidden {
    display: none !important;
}


/* =========================================
   MAPLIBRE CONTROLS
========================================= */

.maplibregl-ctrl-group {
    border: 0 !important;

    border-radius: 10px !important;

    overflow: hidden;

    background: rgba(15, 15, 15, 0.85) !important;

    backdrop-filter: blur(10px);
}

.maplibregl-ctrl-group button {
    background-color: transparent !important;
}

.maplibregl-ctrl-group button:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}


/* =========================================
   PROJECT MARKER
========================================= */

.project-marker {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #111;

    border: 3px solid #fff;

    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.5);

    cursor: pointer;

    animation: markerPulse 2s infinite;
}

.project-marker::after {
    content: "";

    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #fff;
}

@keyframes markerPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(255, 255, 255, 0.35),
            0 8px 25px rgba(0, 0, 0, 0.5);
    }

    70% {
        box-shadow:
            0 0 0 16px rgba(255, 255, 255, 0),
            0 8px 25px rgba(0, 0, 0, 0.5);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(255, 255, 255, 0),
            0 8px 25px rgba(0, 0, 0, 0.5);
    }
}


/* =========================================
   DESTINATION MARKER
========================================= */

.destination-marker {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #111;

    border: 2px solid #fff;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.4);

    font-size: 14px;
}


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

@media (max-width: 800px) {

    .header {
        height: 64px;

        padding: 0 18px;
    }

    .logo {
        font-size: 16px;
    }

    .header-label {
        display: none;
    }

    .map-title {
        top: 82px;
        left: 15px;

        width: calc(100% - 30px);

        padding: 20px;
    }

    .map-title h1 {
        font-size: 25px;
    }

    .project-callout {
        left: 15px;
        right: 15px;

        top: auto;
        bottom: 15px;

        width: auto;

        max-height: 48vh;

        overflow-y: auto;
    }

    .building-image {
        height: 145px;
    }

    .route-info {
        left: 15px;
        right: 15px;

        bottom: 15px;

        width: auto;
    }

}