/* ==========================================================
   World Heritage Tours — "Heritage Green" colour theme
   Loads after wht.css when SITE_THEME is 'green' (includes/config.php).
   A white page with soft shadow cards; heritage green (#2E6B3F) is used
   only here and there: buttons, links, the chosen site, a few bands.
   The layout itself is unchanged. Delete or switch off this file to
   return to the Atlas look.
   ========================================================== */

:root {
  --wht-paper: #FFFFFF;        /* page ground: white */
  --wht-white: #FFFFFF;
  --wht-sea: #EEF5F0;          /* map sea and tinted sections: a very pale green */
  --wht-sea-deep: #DCEBE0;
  --wht-land: #FFFFFF;
  --wht-ink: #1C2A22;          /* text: very dark green-grey */
  --wht-ink-2: #2A3B31;
  --wht-muted: #44544A;
  --wht-label: #56665C;
  --wht-rule: #C9DACD;
  --wht-line: #E2EAE4;
  --wht-red: #2E6B3F;          /* heritage green takes the place of map red */
  --wht-red-deep: #22512F;
  --wht-red-wash: #E7F1EA;
  /* The former dark bands are light in this theme, so their text colours become dark */
  --wht-on-ink: #44544A;
  --wht-on-ink-soft: #56665C;
  --wht-on-ink-link: #2E6B3F;
  --wht-frame: 1px;
  --g-border: #E2EAE4;         /* soft card edge */
  --g-shadow: 0 1px 2px rgba(28, 52, 36, .05), 0 6px 20px rgba(28, 52, 36, .07);
  --g-shadow-lift: 0 2px 4px rgba(28, 52, 36, .06), 0 14px 32px rgba(28, 52, 36, .12);
  --g-radius: 10px;
  --bs-link-color-rgb: 46, 107, 63;
  --bs-link-hover-color-rgb: 34, 81, 47;
}

/* ---------- Soft edges instead of ink frames ---------- */
.site-header, .page-head, .plate-bar, .plate-map-wrap, .plate-detail, .pd-photo, .trust-strip,
.link-list, .ledger, .journey-photo, .criteria-group, .section-sources, .locator figcaption,
.faq, .route-days, .site-steps, .locator-zoom, .map-zoom, .atlas-title { border-color: var(--g-border) !important; }
.route-days li.route-part { border-bottom-color: var(--wht-red); color: var(--wht-red); }

/* Cards and panels: white, rounded, soft shadow */
.journey-card, .panel, .contact-form, .removed-card, .c-group, .c-other, .key-facts, .plate,
.type-grid, .testimonial, .pull-quote, .locator, .site-photo, .photo-tall,
.map-pop, .locator-card, .collect-status {
  border: 1px solid var(--g-border); border-radius: var(--g-radius); box-shadow: var(--g-shadow);
}
/* Stand-alone journey links (not the ruled rows inside panels) get soft edges */
.gap-link { border-color: var(--g-border); border-radius: 8px; }
.pd-journeys .gap-link, #gaps .gap-link { border-radius: 0; }
.journey-card, .plate, .locator, .key-facts, .type-grid { overflow: hidden; }
.journey-card { transition: box-shadow .2s ease; }
.journey-card:hover { box-shadow: var(--g-shadow-lift); } /* no lift: the card stays in place */
.journey-photo { border-bottom: 0 !important; }
.site-photo { box-shadow: var(--g-shadow); }
.head-split .site-photo { border-radius: var(--g-radius); }
.key-facts .fact-wide { background: var(--wht-sea); }

/* Buttons, chips, inputs: gently rounded */
.btn, .zoom-btn, .pd-more-btn, .ke-btn, .chip, .form-control, .form-select, .navbar-toggler, .header-call, .on-page { border-radius: 6px; }
.btn-outline-ink, .btn-outline-accent { --bs-btn-border-color: #B9CBBE; --bs-btn-hover-bg: var(--wht-red); --bs-btn-hover-border-color: var(--wht-red); }
.form-control, .form-select, .form-check .form-check-input { border-color: #B9CBBE; }
.chip, .on-page, .navbar-toggler, .header-call { border-color: #C9D8CD; }
.on-page { overflow: hidden; box-shadow: var(--g-shadow); }
.on-page a:hover { background: var(--wht-red); }
.mk { border-color: var(--wht-red); color: var(--wht-red); }

/* Site page "label" layout, homepage banner, Site Collector strip, About page photos */
.site-hero-photo { border-block: 0; background: #DCE7DF; }
.home-hero-photo, .mosaic-tile { background: #DCE7DF; }
.site-fig img { border: 0; border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.type-card .type-fig img { border-radius: 0; box-shadow: none; }
.mosaic { background: #fff; }
.home-label, .site-label, .site-map-card, .crit-tile, .plan-tile { border: 1px solid var(--g-border); border-radius: var(--g-radius); box-shadow: var(--g-shadow-lift); }
/* Map sea a little stronger than the page tint, so land and sea stand apart on a white page */
.plate-map .pm-sea { fill: #D9E9DF; }
.crit-tile, .plan-tile { box-shadow: var(--g-shadow); }
.sj-list { border-top-color: var(--g-border); }

/* ---------- Header ---------- */
.header-top { background: var(--wht-red); }
.header-top p { color: #E6F0E9; }
.header-top a { color: #fff; }
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(28, 52, 36, .06); }
.site-header.is-stuck { box-shadow: 0 2px 16px rgba(28, 52, 36, .14); }

/* ---------- Tinted bands become light; one green band stays ---------- */
.page-head { background: #F3F8F4; }
.jump-bar { background: #F3F8F4; border-bottom-color: var(--g-border); }
.jump-bar.is-stuck { background: #fff; }
.section-tint { background: #F5F9F6; }
.section-dark { background: #F3F8F4; color: var(--wht-ink); }
.section-dark p, .section-dark .section-intro { color: var(--wht-muted); }
.section-dark a { color: var(--wht-red); }
.section-dark h2, .section-dark h3 { color: var(--wht-ink); }
.testimonial, .pull-quote { background: #fff; color: var(--wht-ink); }
.testimonial *, .pull-quote * { color: inherit; }
/* The "See it for yourself" band on journey pages stays green: the one strong colour on the page */
.journey-cta { background: var(--wht-red); color: #fff; }
.journey-cta p { color: #E6F0E9; }
.journey-cta h2 { color: #fff; }
.journey-cta .btn-accent { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--wht-red); --bs-btn-hover-bg: #E7F1EA; --bs-btn-hover-border-color: #E7F1EA; --bs-btn-hover-color: var(--wht-red-deep); color: var(--wht-red); }

/* Booking and journey panels: white card with a green top edge */
.panel-dark, .tally { background: #fff; color: var(--wht-ink); border: 1px solid var(--g-border); border-top: 4px solid var(--wht-red); border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.panel-dark p, .tally p { color: var(--wht-muted); }
.panel-dark .panel-title, .tally h2, .tally h3 { color: var(--wht-ink); }
.panel-dark .panel-foot { border-color: var(--g-border); color: var(--wht-label); }
.panel-dark .journey-mini, .panel-dark .journey-mini:hover { color: var(--wht-ink); }
.journey-mini { color: var(--wht-ink); border-color: var(--g-border) !important; }
.journey-mini-count { color: var(--wht-red); }
.bar { background: #E2EAE4; border-radius: 4px; }
.bar-fill { background: var(--wht-red); }
.tally-num, .tally-num * { color: var(--wht-ink); }
.tally-num small { color: var(--wht-label); }
.tally-compact { background: var(--wht-red); }

/* ---------- Map ---------- */
.plate-map .pm-land { stroke: #9DB8A6; }
.plate-map .pm-grat line { stroke: #D3E2D7; }
.pm-mark.is-dim.is-dot .pm-dot { fill: #8FA796; }
.region-tab:hover { background: var(--wht-sea); }
.region-tab[aria-pressed="true"] { background: var(--wht-red); color: #fff; }
.key-region-h { background: var(--wht-sea); color: var(--wht-red-deep); }

/* ---------- Photo placeholders: pale instead of sand ---------- */
.photo-placeholder, .pd-photo, .tone-1, .tone-2, .tone-3, .tone-4, .tone-5, .tone-6 { background: #DCE7DF; }

/* ---------- Footer: light, with a green top line ---------- */
.site-footer { background: #F3F8F4; color: var(--wht-muted); border-top: 4px solid var(--wht-red); }
.site-footer a { color: var(--wht-red); }
.footer-brand, .footer-heading { color: var(--wht-ink); }
.footer-mark, .footer-lockup .footer-brand { color: var(--wht-red-deep); } /* footer logo in the same dark green as the header */
.logo-box { border-color: #B9CBBE; }
.footer-legal { border-top-color: var(--g-border); color: var(--wht-label); }
.header-top p { color: #E6F0E9 !important; }

@media (prefers-reduced-motion: reduce) {
  .journey-card, .journey-card:hover { transition: none; transform: none; }
}

/* Site Collector: Clear my list */
.tally-clear { color: var(--wht-red); }
.tally-clear:hover { color: var(--wht-red-deep); }
.c-confirm { border: 1px solid var(--g-border); border-radius: var(--g-radius); background: #EEF5F0; }
.c-confirm .btn { border-radius: 6px; }

/* Site photos: the same rounded corners everywhere (full-width banners stay square at the screen edges) */
.step-thumb, .step-photo, .locator-card img { border-radius: 6px; }
.mosaic-tile { border-radius: 8px; }
.pd-photo { margin: 14px; border-radius: var(--g-radius); overflow: hidden; border: 0 !important; }
@media (min-width: 1560px) { .site-hero-photo { border-radius: var(--g-radius); } }

/* Homepage map: search, trip ideas, "I've been here" */
.map-search-clear, .pi-show, .pd-seen-btn, .pd-back { border-color: #B9CBBE; border-radius: 6px; }
.pd-seen-box { border-radius: 4px; border-color: #7C9585; }
.pi-card { border-color: var(--g-border); border-radius: 8px; background: #F7FAF8; }
.plate-ideas { border-top-color: var(--g-border) !important; }

/* Homepage white sections */
.section-white .testimonial { border: 1px solid var(--g-border); border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.section-white + .section-white, .section-rule { border-top-color: var(--g-border); }

/* Key to the map */
.key-more { border-color: #B9CBBE; }
.key-region-btn { border-bottom-color: var(--g-border); }
.key-all { border-color: #B9CBBE; border-radius: 6px; }

/* World Heritage Sites page */
.site-card-link { border-color: var(--g-border); border-radius: var(--g-radius); box-shadow: var(--g-shadow); }
.site-card-link:hover, .site-card-link:focus-visible { border-color: var(--g-border); box-shadow: var(--g-shadow-lift); }
.sc-photo { border-radius: 6px; }
.sites-chip, .sites-type { border-color: #C9D8CD; border-radius: 6px; }
.sites-chip[aria-pressed="true"], .sites-type[aria-pressed="true"] { background: var(--wht-red); border-color: var(--wht-red); }
.sites-region + .sites-region { border-top-color: var(--g-border); }
/* Footer logos sit straight on the pale footer, without white tiles */
.member-logo { padding: 0; background: none; }
