﻿/* =========================================================
   FORGE LABS – INTERACTIVE PROJECT MAP
   ========================================================= */

.forge-map-page {
    background: #111315;
    color: #f5f5f5;
}

.forge-map-hero {
    padding: 110px 0 55px;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(239, 100, 35, .12), transparent 45%),
        #111315;
}

.forge-map-hero .eyebrow {
    color: #f07836;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
}

.forge-map-hero h1 {
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(54px, 8vw, 100px);
    line-height: .95;
    font-weight: 800;
    margin: 0 0 24px;
}

.forge-map-hero > .container > p:last-child {
    max-width: 600px;
    color: #aeb2b5;
    font-size: 17px;
    line-height: 1.7;
}

.forge-map-section {
    padding: 20px 0 110px;
    background: #111315;
}

#forge-project-map {
    width: 100%;
    height: min(68vw, 680px);
    min-height: 420px;
    background: #25292c;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1;
}

.forge-map-count {
    margin: 18px 0 0;
    color: #858b90;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* PROJECT MARKERS */

.forge-map-marker-wrap {
    background: transparent;
    border: 0;
}

.forge-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(240, 120, 54, .2);
    border: 1px solid #f07836;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(240, 120, 54, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.forge-map-marker span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f07836;
    box-shadow: 0 0 12px rgba(240, 120, 54, .8);
}

.forge-map-marker-wrap:hover .forge-map-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(240, 120, 54, .16);
}

/* LEAFLET POPUP */

.forge-map-leaflet-popup .leaflet-popup-content-wrapper,
.forge-map-leaflet-popup .leaflet-popup-tip {
    background: #1c2023;
    color: #fff;
}

.forge-map-leaflet-popup .leaflet-popup-content-wrapper {
    border: 1px solid rgba(240, 120, 54, .35);
    border-radius: 4px;
    box-shadow: 0 15px 45px rgba(0,0,0,.4);
}

.forge-map-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
}

.forge-map-leaflet-popup .leaflet-popup-close-button {
    color: #fff !important;
    font-size: 22px !important;
    padding: 8px 10px 0 0 !important;
    z-index: 2;
}

.forge-map-popup > img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.forge-map-popup-content {
    padding: 17px 18px 19px;
}

.forge-map-popup-location {
    color: #f07836;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.forge-map-popup-content h3 {
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 25px;
    line-height: 1.1;
    margin: 0 0 10px;
}

.forge-map-popup-content > p:not(.forge-map-popup-location) {
    color: #aeb2b5;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 15px;
}

.forge-map-popup-content a {
    display: inline-block;
    color: #f07836;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color .2s ease;
}

.forge-map-popup-content a:hover {
    color: #fff;
}

/* MAP CONTROLS */

#forge-project-map .leaflet-control-zoom a {
    background: #1c2023;
    color: #fff;
    border-color: #41474b;
}

#forge-project-map .leaflet-control-zoom a:hover {
    background: #f07836;
    color: #111315;
}

#forge-project-map .leaflet-control-attribution {
    background: rgba(17,19,21,.8);
    color: #aeb2b5;
}

#forge-project-map .leaflet-control-attribution a {
    color: #f07836;
}

/* MOBILE */

@media (max-width: 680px) {
    .forge-map-hero {
        padding: 75px 0 35px;
    }

    .forge-map-hero > .container > p:last-child {
        font-size: 15px;
    }

    .forge-map-section {
        padding: 10px 0 70px;
    }

    #forge-project-map {
        height: 115vw;
        min-height: 390px;
        max-height: 560px;
        border-radius: 3px;
    }

    .forge-map-leaflet-popup .leaflet-popup-content {
        width: 225px !important;
    }
}
/* =========================================================
   FORGE LABS – PROJECT LIST
   ========================================================= */

.forge-project-list-section {
    padding: 100px 0 120px;
    background: #171a1c;
    color: #f5f5f5;
}

.forge-project-list-heading {
    max-width: 650px;
    margin-bottom: 45px;
}

.forge-project-list-heading .eyebrow {
    color: #f07836;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    margin-bottom: 16px;
}

.forge-project-list-heading h2 {
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 18px;
}

.forge-project-list-heading > p:last-child {
    color: #aeb2b5;
    font-size: 16px;
    line-height: 1.7;
}

.forge-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.forge-project-list-card {
    min-width: 0;
    overflow: hidden;
    background: #202427;
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .25s ease, border-color .25s ease;
}

.forge-project-list-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240,120,54,.5);
}

.forge-project-list-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #292e31;
}

.forge-project-list-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.forge-project-list-card:hover .forge-project-list-image img {
    transform: scale(1.04);
}

.forge-project-list-content {
    padding: 25px;
}

.forge-project-list-location {
    color: #f07836;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.forge-project-list-content h3 {
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 13px;
}

.forge-project-list-description {
    color: #aeb2b5;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 22px;
}

.forge-project-list-link {
    display: inline-block;
    color: #f07836;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color .2s ease;
}

.forge-project-list-link:hover {
    color: #fff;
}

.forge-project-list-empty {
    color: #aeb2b5;
    padding: 25px;
    background: #202427;
    border-left: 3px solid #f07836;
}

/* TABLET */

@media (max-width: 1000px) {
    .forge-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .forge-project-list-section {
        padding: 75px 0 90px;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .forge-project-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .forge-project-list-section {
        padding: 55px 0 70px;
    }

    .forge-project-list-heading {
        margin-bottom: 30px;
    }

    .forge-project-list-content {
        padding: 21px;
    }

    .forge-project-list-content h3 {
        font-size: 25px;
    }

    .forge-project-list-image {
        aspect-ratio: 16 / 10;
    }
}

/* MOBILE ORDER: PROJECTS FIRST, MAP AFTER */

@media (max-width: 680px) {
    .forge-map-page {
        display: flex;
        flex-direction: column;
    }

    .forge-map-hero {
        order: 1;
    }

    .forge-project-list-section {
        order: 2;
    }

    .forge-map-section {
        order: 3;
    }
}
