
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
   MAPS PAGE — FOLLOWTHEIMPRINTS
   ========================================================= */

.fti-maps-page {
    --ink: #103b49;
    --teal: #035975;
    --rust: #a34c35;
    --muted: #66757b;
    --line: #e4e9e8;
    --paper: #fbfaf7;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 70px;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
}

.fti-maps-page *,
.fti-maps-page *::before,
.fti-maps-page *::after {
    box-sizing: border-box;
}

.fti-maps-page .fti-maps-serif {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
}

/* =========================================================
   HERO BANNER — CENTERED, ROUNDED, WITH TOP SPACING
   ========================================================= */

.fti-maps-page .fti-maps-banner {
    position: relative;
    width: 100%;
    max-width: 1180px;
    min-height: 400px;
    margin: 36px auto 0;
    border-radius: 24px;
    overflow: hidden;
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #254b57;
}

.fti-maps-page .fti-maps-banner-overlay {
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 60px 7%;
    background: linear-gradient(
        90deg,
        rgba(5, 28, 36, 0.68) 0%,
        rgba(5, 28, 36, 0.38) 55%,
        rgba(5, 28, 36, 0.06) 100%
    );
}

.fti-maps-page .fti-maps-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 740px;
}

.fti-maps-page .fti-maps-banner-eyebrow,
.fti-maps-page .fti-maps-kicker,
.fti-maps-page .fti-map-number {
    display: block;
    color: var(--rust);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.6;
}

.fti-maps-page .fti-maps-banner-eyebrow {
    margin-bottom: 18px;
    color: #f5d7b5;
}

.fti-maps-page .fti-maps-banner h1 {
    max-width: 700px;
    margin: 0 0 18px;
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.fti-maps-page .fti-maps-banner p {
    max-width: 560px;
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.8;
}

/* =========================================================
   INTRODUCTION
   ========================================================= */

.fti-maps-page .fti-maps-intro {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 16px 42px;
    text-align: center;
}

.fti-maps-page .fti-maps-kicker {
    margin-bottom: 14px;
}

.fti-maps-page .fti-maps-intro h2,
.fti-maps-page .fti-maps-coming h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
}

.fti-maps-page .fti-maps-intro p,
.fti-maps-page .fti-maps-coming p {
    max-width: 660px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

/* =========================================================
   COUNTRY NAVIGATION
   ========================================================= */

.fti-maps-page .fti-map-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 48px;
    padding: 18px 0 30px;
    border-bottom: 1px solid var(--line);
}

.fti-maps-page .fti-map-nav a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 17px;
    border: 1px solid #cbd9db;
    border-radius: 999px;
    background: #fff;
    color: var(--teal);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.fti-maps-page .fti-map-nav a:hover,
.fti-maps-page .fti-map-nav a:focus-visible {
    background: var(--teal);
    color: #fff;
}

.fti-maps-page .fti-map-nav a span {
    font-size: 15px;
}

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

.fti-maps-page .fti-map-card {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0 0 36px;
    padding: 34px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--teal);
    border-radius: 16px;
    background: #fff;
    scroll-margin-top: 28px;
}

.fti-maps-page .fti-map-card-header {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.fti-maps-page .fti-map-number {
    margin-bottom: 10px;
}

.fti-maps-page .fti-map-card-header h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
}

.fti-maps-page .fti-map-card-header p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* MapGeo shortcode output */
.fti-maps-page .fti-map-container {
    width: 100%;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
    border-radius: 10px;
    background: #f7f9f8;
}

.fti-maps-page .fti-map-container > * {
    max-width: 100%;
}

.fti-maps-page .fti-map-container iframe,
.fti-maps-page .fti-map-container img {
    max-width: 100%;
}

/* =========================================================
   COMING SOON
   ========================================================= */

.fti-maps-page .fti-maps-coming {
    margin-top: 48px;
    padding: 48px 24px;
    border: 1px dashed #c8d6d7;
    border-radius: 16px;
    background: var(--paper);
    text-align: center;
}

.fti-maps-page .fti-maps-coming h2 {
    font-size: clamp(29px, 4vw, 38px);
}

/* Keyboard accessibility */
.fti-maps-page a:focus-visible {
    outline: 2px solid var(--rust);
    outline-offset: 4px;
}

/* =========================================================
   ASTRA LAYOUT FIX — MAPS PAGE ONLY
   ========================================================= */

body.page .site-content > .ast-container:has(.fti-maps-page) {
    display: block;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

body.page .site-content .fti-maps-page {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .fti-maps-page {
        padding: 0 14px 48px;
    }

    .fti-maps-page .fti-maps-banner {
        min-height: 340px;
        margin-top: 24px;
        border-radius: 18px;
        background-position: center 32%;
    }

    .fti-maps-page .fti-maps-banner-overlay {
        min-height: 340px;
        padding: 36px 25px;
        background: linear-gradient(
            90deg,
            rgba(5, 28, 36, 0.75),
            rgba(5, 28, 36, 0.28)
        );
    }

    .fti-maps-page .fti-maps-banner h1 {
        font-size: clamp(40px, 9vw, 58px);
    }

    .fti-maps-page .fti-maps-banner p {
        font-size: 15px;
    }

    .fti-maps-page .fti-maps-intro {
        padding: 52px 4px 30px;
    }

    .fti-maps-page .fti-map-nav {
        margin-bottom: 32px;
        gap: 9px;
    }

    .fti-maps-page .fti-map-card {
        padding: 25px 20px;
        margin-bottom: 24px;
    }

    .fti-maps-page .fti-map-card-header h2 {
        font-size: 28px;
    }

    .fti-maps-page .fti-maps-coming {
        margin-top: 32px;
        padding: 36px 20px;
    }

    body.page .site-content > .ast-container:has(.fti-maps-page) {
        padding-left: 14px;
        padding-right: 14px;
    }
}

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

@media (max-width: 480px) {
    .fti-maps-page .fti-maps-banner {
        min-height: 310px;
        margin-top: 18px;
        border-radius: 14px;
        background-position: center 28%;
    }

    .fti-maps-page .fti-maps-banner-overlay {
        min-height: 310px;
        padding: 28px 20px;
    }

    .fti-maps-page .fti-maps-banner h1 {
        font-size: 39px;
    }

    .fti-maps-page .fti-maps-banner-eyebrow {
        font-size: 10px;
    }

    .fti-maps-page .fti-map-nav a {
        padding: 10px 13px;
        font-size: 12px;
    }

    .fti-maps-page .fti-map-card {
        padding: 21px 13px;
    }

    .fti-maps-page .fti-map-card-header h2 {
        font-size: 25px;
    }

    .fti-maps-page .fti-map-container {
        padding: 5px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fti-maps-page *,
    .fti-maps-page *::before,
    .fti-maps-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
