/* ============================================================
   SELF-HOSTED FONTS
   Place .woff2 files in geolocation/fonts/
   ============================================================ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/outfit-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/outfit-semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/outfit-extrabold.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/JetBrainsMono-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/JetBrainsMono-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/PlayfairDisplay-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/PlayfairDisplay-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/PlayfairDisplay-ExtraBold.woff2') format('woff2');
}

/* ============================================================
   BASE STYLES (from original styles.css)
   ============================================================ */
body {
    margin: 0;
    height: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at top, #111116 0%, #050508 100%);
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* Fix: force detail-page elements to expand in flex body */
.location-hero,
.quick-stats,
.key-info-box,
.video-embed-container,
.section-heading,
.location-card,
.mini-map-container,
.related-section,
.back-link,
.page-footer {
    flex-shrink: 0;
    width: 100%;
    max-width: 960px;
}

/* Fix: override global p width for detail pages */
.location-card p,
.key-info-box p,
.key-info-box .info-text,
.section-heading p,
.page-footer p,
.card-description {
    width: 100% !important;
    font-size: inherit;
    margin-bottom: 0;
    text-align: center;
    box-sizing: border-box;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    font-family: 'Outfit', 'Inter', sans-serif;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.nav-links li {
    margin: 0 20px;
    height: 100%;
    position: relative;
}

.nav-links a {
    color: #f8f8f8;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #14b8a6;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

/* ============================================================
   MAIN MAP PAGE STYLES
   ============================================================ */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 60px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

p {
    width: 63%;
    font-size: 17px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 1px;
}

/* Pill-style links — only on main map page wrapper */
.wrapper p a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.wrapper p a:hover {
    background: linear-gradient(135deg, #14b8a6, #f59e0b);
    color: #111116;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.wrapper p a:active {
    transform: translateY(0);
}

h3 {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Dropdowns (shared) */
.dropdown {
    height: 100%;
    position: relative;
}

.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 160%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    z-index: 999;
    min-width: 140px;
    transform: translateX(-24%);
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.5);
}

.dropdown-content a:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.dropdown-content a:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #14b8a6;
}

/* Maps */
#leaflet-map,
#mapbox-map {
    width: 75%;
    height: 500px;
    margin: 10px auto 50px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wrapper2,
.wrapper3 {
    width: 100%;
}

#leaflet-map {
    display: none;
}

/* Map toggle */
.map-toggle-buttons button {
    padding: 8px 16px;
    margin: 0 6px;
    border: none;
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.map-toggle-buttons button:hover {
    background-color: #c19456;
}

.map-toggle-buttons button.active {
    background-color: #ff9800;
    color: #1a1a1a;
}

.space {
    margin-top: 80px;
    width: 100%;
    display: block;
    background-color: transparent;
}

/* Leaflet popup */
.leaflet-popup-content-wrapper {
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-popup-tip {
    background: #1a1a2e !important;
}

.leaflet-popup-content b {
    color: #0d9488 !important;
}

.leaflet-popup-content strong {
    color: #e0e0e0 !important;
}

.leaflet-popup-content a {
    color: #f59e0b !important;
}

.leaflet-popup-content code {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #e0e0e0 !important;
}

/* Mapbox popup */
.mapboxgl-popup-content {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.mapboxgl-popup-content b {
    color: #0d9488 !important;
}

.mapboxgl-popup-content strong {
    color: #e0e0e0 !important;
}

.mapboxgl-popup-content a {
    color: #f59e0b !important;
}

.mapboxgl-popup-tip {
    border-top-color: #1a1a2e !important;
}

.mapboxgl-popup-content code {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #e0e0e0 !important;
}

/* Search bar */
.search-container {
    margin: 20px auto;
    text-align: center;
}

#location-search {
    width: 300px;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 25px;
    background-color: #1a1a2e;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

#location-search:focus {
    border-color: #f59e0b;
}

#location-search::placeholder {
    color: #888;
}

#search-results-count {
    display: inline-block;
    margin-left: 15px;
    color: #4ade80;
    font-size: 14px;
}

/* Messages dropdown */
.messages-dropdown {
    height: 100%;
    position: relative;
}

.messages-dropdown .dropbtn {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 0px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.messages-dropdown .unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.messages-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 160%;
    left: 0;
    transform: translateX(-40%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    z-index: 999;
    min-width: 150px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.5);
}

.messages-dropdown .dropdown-content a:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.messages-dropdown .dropdown-content a:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.messages-dropdown .dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.messages-dropdown:hover .dropdown-content {
    display: block;
}

.messages-dropdown .dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.messages-dropdown .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #14b8a6;
}

.profile-link {
    color: #f59e0b;
    text-decoration: none;
}

.profile-link:hover {
    text-decoration: underline;
}

a.underline-anim {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

a.underline-anim:hover {
    border-bottom-color: #007bff;
    cursor: pointer;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   LOCATION DETAIL PAGE — HERO
   ============================================================ */
.location-hero {
    max-width: 960px;
    margin: 80px auto 0;
    padding: 48px 20px 24px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.location-hero .breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #ffffff !important;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.location-hero .breadcrumb a {
    color: #f59e0b !important;
    text-decoration: none;
    transition: color 0.2s;
}

.location-hero .breadcrumb a:hover {
    color: #ff9800 !important;
    text-decoration: underline;
}

.location-hero .breadcrumb .separator {
    margin: 0 10px;
    color: #555 !important;
}

.location-hero .status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.location-hero .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d9488;
    box-shadow: 0 0 12px #0d9488;
    animation: pulse 2s infinite;
}

.location-hero .status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #0d9488;
    font-weight: 600;
}

.location-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.15;
    background: linear-gradient(135deg, #f8f8f8 0%, #14b8a6 50%, #f59e0b 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.location-hero .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #0d9488;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.location-hero .meta-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #ffffff !important;
    margin: 4px 0;
}

.location-hero .meta-line a {
    color: #f59e0b !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.location-hero .meta-line a:hover {
    border-bottom-color: #f59e0b !important;
}

/* ============================================================
   QUICK STATS
   ============================================================ */
.quick-stats {
    display: flex;
    justify-content: center;
    max-width: 540px;
    margin: 24px auto 32px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.quick-stats .stat {
    flex: 1;
    text-align: center;
    padding: 20px 16px;
    position: relative;
}

.quick-stats .stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #1a1a2e;
}

.quick-stats .stat-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
    margin-bottom: 6px;
}

.quick-stats .stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================================
   KEY INFO BOX
   ============================================================ */
.key-info-box {
    max-width: 960px;
    margin: 0 auto 28px;
    padding: 0 20px;
}

.key-info-box .inner {
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid #14b8a6;
    padding: 18px 22px;
    background: rgba(20, 184, 166, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 12px 12px 0;
}

.key-info-box .info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #0d9488;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.key-info-box .info-text {
    font-size: 13px;
    color: #888;
    line-height: 1.75;
}

.key-info-box .info-text .highlight {
    color: #f59e0b;
    font-weight: 600;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    max-width: 960px;
    margin: 44px auto 20px;
    padding: 0 20px;
}

.section-heading h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: #e0e0e0;
    margin: 0 0 4px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a2e;
    position: relative;
    text-align: center;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d9488, transparent);
}

.section-heading p {
    font-size: 0.95rem;
    color: #888;
    margin: 12px 0 0;
    text-align: left;
    line-height: 1.7;
}

/* ============================================================
   LOCATION CARDS
   ============================================================ */
.location-card {
    max-width: 960px;
    margin: 28px auto;
    padding: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.15);
}

.location-card .card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 24px 18px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid #151520;
    gap: 12px;
}

.location-card .card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #14b8a6;
    margin: 0;
    width: 100%;
    text-align: center;
}

.location-card .card-header .card-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.location-card .card-header .card-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #f59e0b;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 5px;
    transition: all 0.25s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.location-card .card-header .card-links a:hover {
    background: #f59e0b;
    color: #0a0a0f;
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.location-card .card-description {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.7;
    margin: 0 0 20px;
    padding: 16px 24px 0;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================================
   PROOF PAIRS
   ============================================================ */
.proof-pair {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 24px 16px;
}

.proof-pair figure {
    flex: 1;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.proof-labels {
    display: flex;
    gap: 12px;
    margin: 0 24px 8px;
}

.proof-labels span {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 4px;
}

.proof-labels span.label-video {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.proof-labels span.label-streetview {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
}

/* Wikipedia-style figure + caption */
figure.captioned {
    margin: 0;
    padding: 0;
    background: #0a0a12;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

figure.captioned:hover {
    border-color: #2a2a3e;
}

figure.captioned img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

figure.captioned figcaption {
    padding: 10px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #777;
    line-height: 1.4;
    border-top: 1px solid #151520;
    background: #08080e;
}

figcaption .caption-source {
    color: #444;
    font-style: italic;
}

/* ============================================================
   COORDINATES
   ============================================================ */
.coordinates-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #e0e0e0 !important;
    background: #0d0d18 !important;
    padding: 8px 14px;
    border-radius: 5px;
    margin: 12px auto 24px;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.location-card .coordinates-display {
    margin: 12px auto 24px;
    display: flex;
    width: fit-content;
}

.coordinates-display .coord-icon {
    color: #0d9488;
}

/* ============================================================
   YOUTUBE EMBED
   ============================================================ */
.video-embed-container {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 20px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   MINI MAP
   ============================================================ */
.mini-map-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
}

.mini-map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    border: 1px solid #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   RELATED, BACK LINK, FOOTER
   ============================================================ */
.back-link {
    max-width: 960px;
    margin: 32px auto 0;
    padding: 0 20px;
    text-align: center;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: #f59e0b;
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    transition: all 0.25s;
}

.back-link a:hover {
    background: #f59e0b;
    color: #0a0a0f;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.related-section {
    max-width: 960px;
    margin: 44px auto;
    padding: 0 20px;
}

.related-section h2 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.3rem;
    color: #e0e0e0;
    margin: 0 0 4px;
    border-bottom: 2px solid #1a1a2e;
    padding-bottom: 10px;
    position: relative;
}

.related-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d9488, transparent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.related-grid a {
    display: block;
    padding: 16px 18px;
    background: #0d0d18;
    border: 1px solid #151520;
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s;
}

.related-grid a:hover {
    border-color: #0d9488;
    background: #0e0e1a;
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.15);
}

.related-grid a .related-location {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #555;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.page-footer {
    max-width: 960px;
    margin: 44px auto 60px;
    padding: 24px 20px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #444;
    border-top: 1px solid #151520;
}

.page-footer a {
    color: #f59e0b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    /* Override global p a styles */
    display: inline;
    padding: 0;
    font-size: inherit;
    background: none;
    border-radius: 0;
    margin: 0;
}

.page-footer a:hover {
    border-bottom-color: #f59e0b;
    background: none;
    color: #f59e0b;
    transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .nav-container {
        padding: 10px 15px;
    }

    .location-hero {
        padding: 36px 16px 20px;
    }

    .location-hero h1 {
        font-size: 2rem;
    }

    .quick-stats {
        max-width: 100%;
        margin: 20px 16px 28px;
    }

    .quick-stats .stat-value {
        font-size: 1.6rem;
    }

    .proof-pair {
        flex-direction: column;
        gap: 10px;
        margin: 0 16px 16px;
    }

    .proof-labels {
        flex-direction: column;
        gap: 4px;
        margin: 0 16px 8px;
    }

    .location-card {
        margin: 20px 12px;
        border-radius: 8px;
    }

    .location-card .card-header {
        padding: 16px;
    }

    .location-card .card-description {
        padding: 0 16px;
    }

    .coordinates-display {
        margin: 12px 16px 20px;
    }

    .annotation-legend {
        margin: 12px 16px 0;
    }

    .section-heading {
        padding: 0 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .mini-map {
        height: 300px;
    }

    .video-embed-container,
    .mini-map-container,
    .back-link,
    .related-section,
    .page-footer,
    .key-info-box {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .location-hero h1 {
        font-size: 1.6rem;
    }

    .location-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .annotation-legend {
        flex-direction: column;
        gap: 8px;
    }

    .quick-stats .stat {
        padding: 16px 10px;
    }

    .quick-stats .stat-value {
        font-size: 1.3rem;
    }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    max-width: 960px;
    margin: 0 auto 28px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #0d0d18;
    border: 1px solid #1a1a2e;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    border-color: #2a2a3e;
    border-left-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-item h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 10px;
    width: 100%;
    text-align: left;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.faq-item p {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.75;
    margin: 0;
    text-align: left;
    width: 100% !important;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 0 16px;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-item h3 {
        font-size: 0.82rem;
}
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    max-width: 960px;
    margin: 0 auto 28px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #14b8a6;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15);
    transform: translateX(4px);
}

.faq-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #14b8a6;
    margin: 0 0 10px;
    width: 100%;
    text-align: left;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.faq-item p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.75;
    margin: 0;
    text-align: left;
    width: 100% !important;
}

@media (max-width: 768px) {
    .faq-section { padding: 0 16px; }
    .faq-item { padding: 16px; }
    .faq-item h3 { font-size: 1rem; }
}