/* calanquesnationalpark.org — "Limestone & Azure" design system
   Editorial/data-journalism aesthetic per _AFFILIATE-GUIDE-SITE-BLUEPRINT.md section B */

:root {
  --bg:        #fafaf8;
  --bg-alt:    #f2f0eb;
  --border:    #dedad4;
  --text:      #1c1b18;
  --muted:     #5a5751;
  --accent:    #0e5a7a;   /* deep Mediterranean azure */
  --accent-lt: #e4eef4;
  --sea:       #1687a7;   /* lighter cove turquoise, charts + chips */
  --garrigue:  #4a6b3a;   /* pine green, used sparingly */
  --warn:      #9a6809;
  --danger:    #8c2f22;   /* red-day closures */
  --highlight: #fde68a;
  --highlight-strong: #fbd35a;
  --serif:     'Lora', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --mono:      ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  --max:       820px;
  --wide:      1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.02rem;
}

h1, h2, h3, blockquote { font-family: var(--serif); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.12rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; display: block; }

.container      { max-width: var(--max);  margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  min-height: 52px;
}
.header-inner {
  max-width: var(--wide); margin: 0 auto; padding: .6rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap;
  list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .88rem; font-weight: 600;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.nav-cta {
  color: #fff; background: var(--accent);
  padding: .35em .9em; border-radius: 3px;
}
.nav-links a.nav-cta:hover { background: #0a4560; }
.hamburger {
  display: none; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--text); line-height: 1;
  padding: .3rem .5rem;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: .7rem 1.5rem;
  color: var(--text); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.hero .deck {
  font-size: 1.18rem; color: var(--muted);
  margin-top: 1rem; max-width: 42em;
}
.byline {
  font-size: .85rem; color: var(--muted); margin-top: 1rem;
}
.byline a { color: var(--muted); }

/* ---------- facts bar ---------- */
.facts-bar { background: var(--text); color: #fff; padding: 1.4rem 0; }
.facts-grid {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
}
.fact { min-width: 0; }
.fact-num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--highlight);
}
.fact-label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: #cfcbc4;
  overflow-wrap: anywhere;
}

/* ---------- anchor nav ---------- */
.anchor-nav {
  position: sticky; top: 52px; z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav-list {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem;
  display: inline-flex; gap: .15rem;
  list-style: none; min-width: 100%;
}
.anchor-nav-list li { flex-shrink: 0; padding: 0; margin: 0; }
.anchor-nav-list li::before { content: none; }
.anchor-link {
  display: inline-block; padding: .55rem .8rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, opacity .15s;
  opacity: .55; white-space: nowrap;
}
.anchor-link:hover { color: var(--accent); border-bottom-color: var(--accent); opacity: 1; }

/* ---------- u-link highlighter ---------- */
.u-link {
  position: relative; font-weight: 700; text-decoration: none;
  color: var(--text); padding: 0 .12em;
  background-image: linear-gradient(to top,
    transparent .15em, var(--highlight) .15em,
    var(--highlight) 1.05em, transparent 1.05em);
  background-repeat: no-repeat; background-size: 100% 100%;
}
.u-link:hover {
  color: var(--accent);
  background-image: linear-gradient(to top,
    transparent .15em, var(--highlight-strong) .15em,
    var(--highlight-strong) 1.05em, transparent 1.05em);
}

/* plain links in prose */
.prose a:not(.u-link):not(.chip):not(.book-cta) { color: var(--accent); }

/* ---------- callouts ---------- */
.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.callout.warn   { border-left-color: var(--warn); }
.callout.danger { border-left-color: var(--danger); }
.callout.green  { border-left-color: var(--garrigue); }
.callout h3 { margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 0 0 0 1.2rem; }
.callout li { margin-bottom: .45rem; }

.tldr-list { list-style: none; }
.tldr-list li {
  padding-left: 1.6rem; position: relative; margin-bottom: .8rem;
}
.tldr-list li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- chips ---------- */
.chip {
  display: inline-block; font-size: .78rem; font-weight: 600;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 20px; padding: .18em .8em;
  color: var(--muted); text-decoration: none;
  margin: .15rem .25rem .15rem 0; white-space: nowrap;
}
.chip.accent {
  background: var(--accent-lt); border-color: var(--accent);
  color: var(--accent);
}
.chip.accent:hover { background: var(--accent); color: #fff; }

/* ---------- ranked top list ---------- */
.top10-list { list-style: none; counter-reset: top10; }
.top10-item {
  counter-increment: top10;
  padding: 1.4rem 0 1.4rem 3.4rem; position: relative;
  border-bottom: 1px solid var(--border);
}
.top10-item::before {
  content: counter(top10, decimal-leading-zero);
  position: absolute; left: 0; top: 1.45rem;
  font-family: var(--mono); font-size: 1.3rem; font-weight: 700;
  color: var(--accent); opacity: .5;
}
.top10-item h3 { margin-bottom: .35rem; }
.top10-item p { margin-bottom: .5rem; }

/* ---------- card grids ---------- */
.gem-grid, .persona-grid, .season-grid, .flag-list, .activity-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 1.5rem;
}
.gem-card, .persona-card, .season-card, .flag-item, .activity-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
}
.gem-card h3, .persona-card h3, .season-card h3, .activity-card h3 {
  margin-bottom: .5rem;
}
.persona-card ul { list-style: none; margin: .5rem 0; }
.persona-card li { margin-bottom: .4rem; padding-left: 1.1rem; position: relative; font-size: .93rem; }
.persona-card li::before { content: "·"; position: absolute; left: .2rem; color: var(--accent); font-weight: 700; }
.flag-item { border-left: 4px solid var(--danger); }
.flag-item h3 { font-size: 1rem; margin-bottom: .4rem; }
.flag-item p { font-size: .92rem; margin-bottom: 0; }
.card-cta { margin-top: .6rem; }

/* ---------- data tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  min-width: 640px;
}
.data-table th {
  text-align: left; padding: .6rem .8rem;
  background: var(--accent); color: #fff;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.data-table th.no-sort { cursor: default; }
.data-table td {
  padding: .65rem .8rem; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.data-table tbody tr:hover { background: var(--accent-lt); }
.tour-row-hidden { display: none; }

.tc-name a:not(.u-link) { color: var(--text); font-weight: 600; text-decoration: none; }
.tc-name a:not(.u-link):hover { color: var(--accent); text-decoration: underline; }
.tour-note {
  display: block; font-size: .82rem; color: var(--muted);
  margin-top: .25rem; line-height: 1.4; font-weight: 400;
}
@media (max-width: 600px) { .tour-note { display: none; } }

.type-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .15em .6em; border-radius: 3px;
  background: var(--accent-lt); color: var(--accent); white-space: nowrap;
}
.type-badge.sailing     { background: #e8f2ee; color: #1b5e46; }
.type-badge.kayak-sup   { background: #e6f2f6; color: #0f6a86; }
.type-badge.hike        { background: #edf1e6; color: #4a6b3a; }
.type-badge.e-bike      { background: #f4ede1; color: #8a5f14; }
.type-badge.dive-snorkel{ background: #e9e9f4; color: #3b3b8c; }
.type-badge.day-trip    { background: #f3e9e5; color: #8c4a2f; }

.book-cta {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: .85rem; text-decoration: none;
  padding: .4em 1em; border-radius: 3px; white-space: nowrap;
}
.book-cta:hover { background: #0a4560; }

/* ---------- filter bar ---------- */
.filter-bar { margin: 1.5rem 0 .5rem; }
.filter-group { margin-bottom: .6rem; }
.filter-label {
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-right: .6rem;
}
.filter-chip {
  display: inline-block; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 20px;
  padding: .3em 1em; margin: .2rem .3rem .2rem 0;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.count-bar {
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  margin: .8rem 0; scroll-margin-top: 64px;
}
.topic-banner {
  display: none;
  background: var(--accent-lt); border: 1px solid var(--accent);
  padding: 1rem 1.2rem; margin: 1rem 0; font-size: .95rem;
}
.topic-banner.visible { display: block; }

/* ---------- disclosure block ---------- */
.disclosure-block {
  border: 1px dashed var(--border); padding: 1rem; margin-top: 1.5rem;
}
.disclosure-block summary {
  font-weight: 700; cursor: pointer; color: var(--muted);
}

/* ---------- pick cards / tour cards ---------- */
.picks-grid, .tour-card-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1.5rem;
}
.pick-card, .tour-card {
  background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.pick-card:hover, .tour-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(14, 90, 122, .08);
}
.pick-img-link, .tour-img {
  display: block; position: relative; line-height: 0;
}
.pick-img-link img, .tour-img img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.tour-badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1.4;
  background: var(--text); color: #fff;
  padding: .2em .7em; border-radius: 3px;
}
.pick-body, .tour-body {
  padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1;
}
.pick-body h3, .tour-body h3 { margin-bottom: .45rem; font-size: 1.02rem; }
.pick-body h3 a, .tour-body h3 a {
  color: var(--text); text-decoration: none;
}
.pick-body h3 a:hover, .tour-body h3 a:hover { color: var(--accent); }
.tour-card .tour-note {
  display: block; font-size: .87rem; margin: 0 0 .6rem; line-height: 1.5;
}
.tour-meta {
  font-size: .82rem; color: var(--muted); margin-bottom: .8rem;
}
.tour-meta .star { color: var(--warn); font-weight: 700; }
.tour-body .book-cta, .pick-body .book-cta { margin-top: auto; align-self: flex-start; }

/* ---------- itinerary / logistics grids ---------- */
.itin-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 1.5rem;
}
.itin-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
}
.itin-card h3 { margin-bottom: .6rem; }
.itin-card ol { margin-left: 1.2rem; font-size: .93rem; }
.itin-card li { margin-bottom: .4rem; }

/* ---------- quotes ---------- */
.pull-quote {
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.5;
  border-left: 4px solid var(--highlight-strong);
  padding: .5rem 0 .5rem 1.5rem; margin: 2rem 0;
  color: var(--text);
}
.testimonial {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 1rem 1.2rem; margin-bottom: 1rem; font-size: .93rem;
}
.testimonial cite {
  display: block; font-style: normal; font-family: var(--mono);
  font-size: .72rem; color: var(--muted); margin-top: .5rem;
}

/* ---------- status board (closures) ---------- */
.status-board {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 1.5rem 0;
}
.status-card {
  border: 1px solid var(--border); padding: 1.2rem 1.3rem;
  background: #fff;
}
.status-card h3 { margin-bottom: .5rem; }
.status-card .status-tag {
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  display: inline-block; margin-bottom: .6rem;
  padding: .2em .7em; border-radius: 3px;
}
.status-tag.open   { background: #e4efe2; color: var(--garrigue); }
.status-tag.closed { background: #f5e4e1; color: var(--danger); }
.status-tag.mixed  { background: #f6eed9; color: var(--warn); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  padding: 1.1rem .2rem; position: relative; padding-right: 2.2rem;
}
.faq-question::after {
  content: "+"; position: absolute; right: .4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent); transition: transform .2s;
}
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer { display: none; padding: 0 .2rem 1.2rem; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: .96rem; }

/* ---------- methodology ---------- */
.methodology {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 1.4rem 1.6rem; margin: 2rem 0; font-size: .92rem;
}
.methodology h3 { margin-bottom: .6rem; }

/* ---------- plan pill ---------- */
.plan-pill {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  padding: .7em 1.3em; border-radius: 40px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.plan-pill.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.plan-pill:hover { background: #0a4560; }

/* ---------- freshness stamp ---------- */
.checked-stamp {
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--text); color: #cfcbc4;
  padding: 3rem 0 2rem; margin-top: 3rem; font-size: .88rem;
}
.footer-grid {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-grid h4 {
  color: #fff; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .8rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid a { color: #cfcbc4; text-decoration: none; }
.footer-grid a:hover { color: var(--highlight); }
.footer-bottom {
  max-width: var(--wide); margin: 2rem auto 0; padding: 1.2rem 1.5rem 0;
  border-top: 1px solid #3a3833; font-size: .8rem;
}

/* ---------- misc responsive ---------- */
@media (max-width: 600px) {
  section { padding: 2.2rem 0; }
  .hero { padding: 2.4rem 0 1.8rem; }
}
