:root {
    --sea-deep: #0f544d;
    --sea-mid: #2f8d91;
    --sea-light: #8ed9d8;
    --sand: #e5d2b3;
    --sand-light: #f3ece0;
    --pine: #204d33;
    --text-dark: #173036;
    --text-muted: #5f7277;
    --surface: #fbf8f1;
    --surface-strong: rgba(255, 255, 255, 0.82);
    --border-soft: rgba(32, 77, 51, 0.14);
    --shadow-soft: 0 18px 40px rgba(20, 41, 46, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(142, 217, 216, 0.18), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(229, 210, 179, 0.24), transparent 28%),
        linear-gradient(180deg, #f7f4ec 0%, #fbfaf5 45%, #f3f6f0 100%);
    color: var(--text-dark);
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 18%, rgba(142, 217, 216, 0.16), transparent 20%),
        radial-gradient(circle at 78% 28%, rgba(32, 77, 51, 0.08), transparent 18%),
        radial-gradient(circle at 50% 90%, rgba(229, 210, 179, 0.14), transparent 24%);
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.2rem 1.6rem;
    background: rgba(251, 248, 241, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
}

.logo {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
}

.logo span {
    color: var(--sea-mid);
}

.nav-links,
.language-switcher {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a,
.language-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover,
.language-switcher a:hover {
    color: var(--sea-deep);
}

main {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero,
.phase-section,
.cta-section,
.page-shell,
.legs-stack {
    width: 100%;
}

.hero {
    padding: 3rem 0 2rem;
}

.hero-badge,
.section-eyebrow,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    color: var(--sea-deep);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.phase-section h2,
.cta-section h2,
.page-intro h1,
.leg-section h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.04;
    color: var(--text-dark);
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(3.3rem, 8vw, 6rem);
}

.hero-intro,
.phase-section p,
.cta-section p,
.page-intro p,
.leg-section p,
.info-card p,
.legal-section p,
footer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.hero-intro {
    max-width: 62ch;
    margin: 1.2rem 0 0;
}

.map-shell,
.phase-section,
.cta-section,
.page-shell {
    margin-top: 2rem;
    border: 1px solid var(--border-soft);
    background: var(--surface-strong);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.map-shell {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.6rem;
}

.map-copy h2 {
    margin: 0 0 0.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--sea-deep);
}

.map-copy p {
    color: var(--text-muted);
    line-height: 1.7;
}

.leg-grid {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--sea-deep);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(47, 141, 145, 0.18);
    font-size: 0.92rem;
    font-weight: 700;
}

.leg-card {
    display: block;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(47, 141, 145, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.leg-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 141, 145, 0.42);
}

.leg-card strong,
.info-card h2,
.legal-section h2 {
    display: block;
    color: var(--sea-deep);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.leg-card span {
    display: block;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.map-stage {
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 249, 247, 0.92));
    border: 1px solid rgba(47, 141, 145, 0.16);
    padding: 1rem;
}

.map-stage svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-mainland path {
    fill: rgba(226, 212, 185, 0.86);
    stroke: rgba(72, 98, 106, 0.42);
    stroke-width: 2.3;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 18px 22px rgba(18, 43, 51, 0.08));
}

.map-attribution {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: right;
}

.map-attribution a {
    color: inherit;
    text-decoration-color: rgba(23, 48, 54, 0.22);
}

.map-attribution a:hover {
    color: var(--sea-deep);
    text-decoration-color: currentColor;
}

.map-marker-link {
    text-decoration: none;
}

.map-marker-line {
    fill: none;
    stroke: rgba(15, 84, 77, 0.42);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

.map-marker-dot {
    fill: rgba(32, 77, 51, 0.16);
    stroke: rgba(15, 84, 77, 0.56);
    stroke-width: 1.5;
    transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.map-marker-core {
    fill: rgba(15, 84, 77, 0.92);
    transition: fill 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.map-marker-pill {
    fill: rgba(255, 255, 255, 0.94);
    stroke: rgba(15, 84, 77, 0.14);
    stroke-width: 1.2;
    transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
    transform-origin: center;
    filter: drop-shadow(0 10px 18px rgba(16, 42, 49, 0.08));
}

.map-marker-label {
    fill: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.map-marker-link:hover .map-marker-line,
.map-marker-link:focus .map-marker-line {
    stroke: rgba(15, 84, 77, 0.72);
}

.map-marker-link:hover .map-marker-dot,
.map-marker-link:focus .map-marker-dot {
    fill: rgba(32, 77, 51, 0.24);
    stroke: rgba(15, 84, 77, 0.9);
    transform: scale(1.06);
}

.map-marker-link:hover .map-marker-core,
.map-marker-link:focus .map-marker-core {
    fill: rgba(12, 63, 58, 1);
    transform: scale(1.06);
}

.map-marker-link:hover .map-marker-pill,
.map-marker-link:focus .map-marker-pill {
    fill: rgba(246, 251, 249, 0.98);
    stroke: rgba(15, 84, 77, 0.28);
    transform: translateY(-1px);
}

.phase-section,
.cta-section,
.page-shell,
.guide-shell {
    padding: 1.6rem;
}

.phase-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.legs-stack {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.leg-section,
.info-card,
.legal-section {
    padding: 1.35rem 1.45rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.cta-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.button.primary {
    background: var(--sea-deep);
    color: #fff;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.76);
    color: var(--sea-deep);
    border: 1px solid rgba(47, 141, 145, 0.22);
}

.page-shell {
    max-width: 920px;
}

.guide-shell {
    max-width: 980px;
}

.page-intro {
    padding-bottom: 1.3rem;
    margin-bottom: 1.3rem;
    border-bottom: 1px solid var(--border-soft);
}

.page-intro h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.8rem;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.guide-tips {
    margin-top: 1.2rem;
}

.page-footer-note,
footer {
    margin-top: 1.6rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    margin-bottom: 0.95rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--sea-deep);
}

footer {
    padding: 0 0 3rem;
    text-align: center;
}

@media (max-width: 920px) {
    nav {
        flex-wrap: wrap;
    }

    .map-shell {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    main {
        width: min(100% - 1.3rem, 100%);
    }

    nav {
        padding: 1rem;
    }

    .nav-links,
    .language-switcher {
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 10vw, 4.2rem);
    }

    .map-stage {
        padding: 0.75rem;
    }
}
