:root {
    --navy:      #1a3356;
    --navy-dark: #0f1f38;
    --gold:      #c9952a;
    --gold-pale: #f5e9c9;
    --cream:     #fdf7ee;
    --stone:     #e8d5b0;
    --terra:     #b5522a;
    --ink:       #1c1510;
    --text:      #2c2416;
    --muted:     #7a6e62;
    --shadow:    rgba(28,21,16,0.09);
    --shadow-md: rgba(28,21,16,0.17);

    /* legacy aliases */
    --primary:   #1a3356;
    --secondary: #c9952a;
    --dark:      #0f1f38;
    --light:     #fdf7ee;
    --accent:    #c9952a;
    --grey1:     #7a6e62;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    max-width: 1200px;
    margin: auto;
    padding-bottom: 4rem;
}

/* ── HEADER ─────────────────────────────────────────── */

.header {
    background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, #1e3f6a 100%);
    color: #fff;
    padding: 4.5rem 2rem 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 15% 40%, rgba(201,149,42,.13) 0%, transparent 60%),
        radial-gradient(ellipse 45% 65% at 85% 60%, rgba(201,149,42,.08) 0%, transparent 60%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 68px;
    background: var(--cream);
    clip-path: ellipse(58% 100% at 50% 100%);
}

.header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .01em;
    margin-bottom: .5rem;
    position: relative;
    animation: fadeInDown .8s ease both;
}

.header h1::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.header .subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-style: italic;
    opacity: .87;
    max-width: 680px;
    margin: 1.2rem auto 0;
    line-height: 1.65;
    position: relative;
    animation: fadeInUp .8s ease .1s both;
}

/* ── BREADCRUMB ──────────────────────────────────────── */

.breadcrumb {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .9rem 1.5rem;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── CITY STATS BAR ──────────────────────────────────── */

.city-stats {
    display: flex;
    background: #fff;
    border-bottom: 3px solid var(--stone);
    margin-bottom: 2rem;
}
.stat {
    flex: 1;
    text-align: center;
    padding: .9rem .5rem;
    border-right: 1px solid var(--stone);
}
.stat:last-child { border-right: none; }
.stat-num {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
}
.stat-label {
    font-size: .67rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── CATEGORY QUICK-NAV ──────────────────────────────── */

.cat-nav {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    padding: .6rem 0 .8rem;
    margin-bottom: 1.8rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid var(--stone);
    box-shadow: 0 2px 8px var(--shadow);
}
.cat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .9rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--navy);
    border: 1.5px solid var(--stone);
    border-radius: 2px;
    text-decoration: none;
    background: #fff;
    transition: all .2s ease;
    white-space: nowrap;
}
.cat-nav-link:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ── CATEGORY GRID ───────────────────────────────────── */

.category-grid { display: grid; gap: 2rem; margin-bottom: 3rem; }

.category-card {
    background: #fff;
    border-radius: 3px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 2px 18px var(--shadow);
    border-top: 4px solid var(--gold);
    transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--stone);
}
.category-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.85rem;
    border-radius: 50%;
    flex-shrink: 0;
    /* background set per-category via inline style in functions.php */
}
.category-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .01em;
    line-height: 1.15;
}
.category-description {
    font-size: .91rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ── ATTRACTION LIST ─────────────────────────────────── */

.attraction-list { display: none; margin-top: 1rem; }
.attraction-list.active { display: block; animation: slideDown .3s ease; }

.attraction-item {
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
    background: var(--cream);
    border-left: 4px solid var(--gold);
    border-radius: 0 3px 3px 0;
    transition: all .22s ease;
}
.attraction-item:hover {
    background: #fff;
    border-left-color: var(--terra);
    box-shadow: 0 3px 14px var(--shadow);
}

.attraction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .6rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.attraction-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--navy);
    flex: 1;
    line-height: 1.2;
}

/* ── PRIORITY BADGES ─────────────────────────────────── */

.priority-badge {
    padding: .2rem .65rem;
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 2px;
    align-self: flex-start;
}
.priority-5 { background: var(--navy);  color: #fff; }
.priority-4 { background: var(--gold);  color: #fff; }
.priority-3 { background: var(--terra); color: #fff; }
.priority-2 { background: var(--stone); color: var(--ink); }
.priority-1 { background: #d9d4cc;      color: var(--muted); }

/* ── ATTRACTION META ─────────────────────────────────── */

.attraction-meta {
    display: flex;
    gap: 1.2rem;
    margin: .6rem 0;
    flex-wrap: wrap;
    font-size: .84rem;
    color: var(--muted);
}
.meta-item { display: flex; align-items: center; gap: .3rem; }
.booking-required { color: var(--terra); font-weight: 600; }

/* ── EXTERNAL LINKS ──────────────────────────────────── */

.extLinks { display: flex; flex-direction: column; gap: .4rem; margin: .9rem 0; }

.extLink {
    color: var(--gold);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(201,149,42,.35);
    padding-bottom: 1px;
    word-break: break-all;
    display: inline;
    background: none;
}
.extLink::before { content: '→ '; }
.extLink:hover { color: var(--terra); border-bottom-color: var(--terra); }

/* ── MAP / IMAGE BUTTONS ─────────────────────────────── */

.map-link {
    display: inline-block;
    margin-top: .6rem;
    margin-right: .5rem;
    padding: .35rem .9rem;
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    text-decoration: none;
    border-radius: 2px;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    transition: all .2s ease;
}
.map-link:hover { background: var(--navy); color: #fff; transform: none; }

/* ── TIPS SECTION ────────────────────────────────────── */

.tips-section {
    background: linear-gradient(135deg, #fdf0d0 0%, var(--cream) 100%);
    border-left: 4px solid var(--gold);
    padding: 1.4rem 1.6rem 1.2rem 2rem;
    margin-top: 1.5rem;
    border-radius: 0 3px 3px 0;
    position: relative;
}
.tips-section::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 5rem;
    color: var(--gold);
    opacity: .2;
    position: absolute;
    top: -.8rem;
    left: .3rem;
    line-height: 1;
    pointer-events: none;
}
.tips-section h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .6rem;
}
.tips-section li { padding: 0; margin-left: 1.2rem; font-size: .91rem; line-height: 1.65; }

/* ── PRACTICAL INFO ──────────────────────────────────── */

.practical-view { padding: 0; }
.practical-view p { margin-top: 1rem; }
.practical-view li { margin-left: 1.8rem; }

.practical-section {
    background: #fff;
    border-radius: 3px;
    padding: 2.2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 18px var(--shadow);
    border-top: 4px solid var(--stone);
}
.practical-section h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--navy);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    letter-spacing: .01em;
    border-bottom: none;
    padding-bottom: 0;
}
.practical-section h3::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    margin-top: .4rem;
    border-radius: 2px;
}
.practical-section h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.6rem;
    margin-bottom: .4rem;
}
.practical-section p { margin-bottom: 1rem; }
.practical-section li { margin: 0 0 0 2rem; }

h3, h4 { margin-top: 1rem; }

/* ── TABLES ──────────────────────────────────────────── */

table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
th, td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--stone); }
th { background: var(--navy); color: #fff; font-weight: 500; letter-spacing: .05em; font-size: .77rem; text-transform: uppercase; }
tr:hover { background: var(--gold-pale); }

/* ── NAVIGATION LINKS ────────────────────────────────── */

.link1 {
    display: inline-block;
    background: transparent;
    color: var(--navy);
    padding: .3rem .75rem;
    border-radius: 2px;
    border: 1.5px solid var(--navy);
    text-decoration: none;
    margin: 3px;
    font-size: .84rem;
    font-weight: 500;
    transition: all .2s ease;
}
.link1:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ── HR ──────────────────────────────────────────────── */

hr { border: 0; height: 1px; background: var(--stone); margin: 1.5rem 0; }

/* ── FOOTER ──────────────────────────────────────────── */

.site-footer { padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.sibling-cities { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .87rem; color: var(--muted); }

/* ── BACK TO TOP ─────────────────────────────────────── */

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px; height: 42px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 3px 14px var(--shadow-md);
    transition: background .2s ease, transform .2s ease;
    z-index: 200;
    opacity: .88;
}
.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-3px);
    opacity: 1;
}

/* ── PASS CARD ───────────────────────────────────────── */

.pass-card {
    background: var(--gold-pale);
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    border-radius: 3px;
    border-left: 4px solid var(--gold);
}
.pass-card strong { color: var(--navy); font-size: 1rem; }

/* ── HOMEPAGE GRID (index.php) ───────────────────────── */

.col { container-type: inline-size; column-width: 18rem; column-gap: 2rem; }
.colDiv { margin: 6px 0; }

/* ── ANIMATIONS ──────────────────────────────────────── */

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 768px) {
    body { padding-bottom: 3rem; }

    .header { padding: 2.5rem 1rem 4rem; }
    .header h1 { font-size: 2rem; }
    .header .subtitle { font-size: 1.05rem; margin-top: .8rem; }

    .city-stats { flex-wrap: wrap; }
    .stat { flex: 1 0 33%; }

    .cat-nav { gap: .3rem; }
    .cat-nav-link { font-size: .7rem; padding: .3rem .6rem; }
    .cat-nav-link .cat-icon { display: none; }

    .category-card { padding: 1.2rem; }
    .category-icon { width: 44px; height: 44px; font-size: 1.5rem; }
    .category-title { font-size: 1.5rem; }
    .attraction-name { font-size: 1.2rem; }

    .practical-section { padding: 1.4rem; }

    .col { column-gap: 0; column-width: 8rem; }
}

@media (max-width: 480px) {
    .stat { flex: 1 0 50%; }
    .cat-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: .5rem;
    }
    .cat-nav::-webkit-scrollbar { display: none; }
    .cat-nav-link {
        flex-shrink: 0;
        font-size: .68rem;
        padding: .3rem .55rem;
    }
    .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }
}
