/* visitingpompeii.com — editorial guide to Pompeii from Naples & Sorrento
   Theme: Pompeian red (#8c2d18) — the famous deep red of the Vettii frescoes,
   warm cream background, serif headlines + sans body. */

:root {
  --bg:               #fafaf8;
  --bg-alt:           #f4ede4;   /* warm volcanic-ash tone */
  --bg-darker:        #1c1b18;
  --border:           #dedad4;
  --border-strong:    #b8b2a8;
  --text:             #1c1b18;
  --muted:            #5a5751;
  --accent:           #8c2d18;   /* Pompeian red */
  --accent-deep:      #5e1d10;
  --accent-lt:        #fce8e0;
  --warn:             #9a6809;
  --positive:         #2f6d3a;
  --highlight:        #f7d57c;
  --highlight-strong: #f0c14e;
  --serif:            'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:             'Source Sans 3', system-ui, -apple-system, sans-serif;
  --max:              820px;
  --wide:             1120px;
  --shadow-sm:        0 1px 2px rgba(28,27,24,.05);
  --shadow-md:        0 4px 12px rgba(28,27,24,.08);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.5rem, 3.3vw, 2.1rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
h4 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 52px;
}
.header-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .5rem;
}
.brand-mark { width: 22px; height: 22px; }
.brand strong { color: var(--accent); }
.main-nav { display: flex; gap: 1.3rem; }
.main-nav a {
  font-size: .92rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.main-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.4rem; color: var(--text); }

@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 52px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: .5rem 1.5rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 0; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: 3rem 1.5rem 1.5rem; }
.hero-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .8rem;
}
.deck { font-size: 1.18rem; color: var(--muted); line-height: 1.55; margin: 0 0 1rem; max-width: 60ch; }
.byline { font-size: .85rem; color: var(--muted); }
.byline strong { color: var(--text); }

/* ---------- facts bar ---------- */
.facts-bar {
  background: var(--bg-darker); color: #f0ece5;
  padding: 1.5rem 1.5rem;
}
.facts-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem;
}
.fact { min-width: 0; }
.fact-value {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
  color: #fff; line-height: 1.1;
}
.fact-label {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #c9c2b6; margin-top: .3rem; overflow-wrap: anywhere;
}

/* ---------- anchor-nav (numbered TOC) ---------- */
.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: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent; opacity: .55;
  transition: color .15s, border-color .15s, opacity .15s;
}
.anchor-link:hover { color: var(--accent); border-bottom-color: var(--accent); opacity: 1; }

/* ---------- content sections ---------- */
section { padding: 2.5rem 1.5rem; }
section.tight { padding: 1.5rem 1.5rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner-wide { max-width: var(--wide); margin: 0 auto; }
.section-kicker {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .4rem;
}

/* ---------- TL;DR callout ---------- */
.tldr {
  background: var(--bg-alt); border-left: 4px solid var(--accent);
  padding: 1.3rem 1.5rem; border-radius: 0 6px 6px 0; margin: 0 0 1.5rem;
}
.tldr h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.tldr ul { margin: 0; padding-left: 1.2rem; }
.tldr li { margin: .35rem 0; }

/* ---------- u-link with persistent yellow 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%;
  transition: color .15s, background-image .15s;
}
.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);
}

/* ---------- chip / chip-link ---------- */
.chip {
  display: inline-block; padding: .3rem .7rem; margin: .15rem .25rem 0 0;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  background: var(--bg-alt); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.chip.accent:hover { background: var(--accent-deep); color: #fff; }
.chip-row { margin-top: .5rem; }

/* ---------- top 10 / ranked list ---------- */
.top10-list { list-style: none; padding: 0; margin: 0; counter-reset: top10; }
.top10-item {
  counter-increment: top10; position: relative;
  padding: 1.2rem 0 1.3rem 3.2rem;
  border-top: 1px solid var(--border);
}
.top10-item:last-child { border-bottom: 1px solid var(--border); }
.top10-item::before {
  content: counter(top10, decimal-leading-zero);
  position: absolute; left: 0; top: 1.2rem;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 1.4rem; font-weight: 700; color: var(--accent); width: 2.6rem;
}
.top10-item h3 { margin: 0 0 .4rem; }

/* ---------- hidden gems grid ---------- */
.gem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin-top: 1rem;
}
.gem-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.2rem;
}
.gem-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.gem-card p { font-size: .94rem; margin: 0 0 .8rem; }

/* ---------- persona grid ---------- */
.persona-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem;
}
.persona-card {
  background: var(--bg-alt); padding: 1.3rem; border-radius: 6px; border: 1px solid var(--border);
}
.persona-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.persona-card ul { padding-left: 1.1rem; margin: .4rem 0 .8rem; }
.persona-card li { font-size: .94rem; margin: .25rem 0; }

/* ---------- season grid ---------- */
.season-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.season-card {
  background: var(--bg); padding: 1.1rem; border: 1px solid var(--border); border-radius: 6px;
}
.season-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--accent); }
.season-card .season-temp {
  font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted); display: block; margin-bottom: .4rem;
}

/* ---------- data tables (logistics) ---------- */
.data-table {
  width: 100%; border-collapse: collapse; font-size: .93rem;
  background: var(--bg);
}
.data-table th, .data-table td {
  padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  background: var(--bg-alt); font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  cursor: pointer; user-select: none;
}
.data-table th::after { content: ' ⇅'; opacity: .35; font-size: .75rem; }
.data-table tbody tr:hover { background: var(--bg-alt); }
.data-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.testimonial {
  background: var(--bg-alt); padding: 1.2rem; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
}
.testimonial p { font-style: italic; margin: 0 0 .5rem; font-size: .96rem; }
.testimonial cite { font-style: normal; font-size: .82rem; color: var(--muted); }

/* ---------- red flags ---------- */
.flag-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
}
.flag-card {
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--warn);
  padding: 1.1rem; border-radius: 0 6px 6px 0;
}
.flag-card h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--warn); }
.flag-card p { font-size: .92rem; margin: 0 0 .6rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: 0; padding: 1.1rem 1.5rem 1.1rem 0;
  text-align: left; cursor: pointer; font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--text); position: relative; line-height: 1.4;
}
.faq-question::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--accent); font-weight: 300; transition: transform .2s;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 1.5rem 1.2rem 0; color: var(--text); }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin: .5rem 0; }

/* ---------- floating plan pill ---------- */
.plan-pill {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200;
  background: var(--accent); color: #fff;
  padding: .75em 1.4em; border-radius: 40px;
  font-weight: 700; font-size: .92rem; text-decoration: none;
  box-shadow: 0 6px 16px rgba(140,45,24,.35);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .15s;
}
.plan-pill.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.plan-pill:hover { background: var(--accent-deep); color: #fff; }

/* ---------- catalogue page specifics ---------- */
.tours-hero { padding: 2.5rem 1.5rem 1rem; }
.catalogue-intro {
  background: var(--bg-alt); padding: 1.5rem; border-radius: 6px;
  margin-bottom: 1.5rem; border-left: 4px solid var(--accent);
}
.catalogue-intro p:last-child { margin-bottom: 0; }

/* hero picks */
.top-picks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}
.pick-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pick-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pick-img-link { display: block; position: relative; }
.pick-card img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.pick-badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  padding: .25rem .55rem; font-size: .72rem; font-weight: 700;
  background: var(--accent); color: #fff; border-radius: 3px;
  font-family: ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase;
}
.pick-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.pick-title { margin: 0 0 .4rem; font-size: 1.1rem; line-height: 1.3; }
.pick-title a { color: var(--text); text-decoration: none; }
.pick-title a:hover { color: var(--accent); }
.pick-meta { font-size: .85rem; color: var(--muted); margin: .3rem 0 .8rem; }
.pick-meta .star { color: var(--warn); font-weight: 700; }
.pick-cta {
  margin-top: auto;
  display: inline-block; padding: .55rem 1rem;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 4px; font-weight: 700; font-size: .92rem; text-align: center;
}
.pick-cta:hover { background: var(--accent-deep); color: #fff; }
.pick-badges { margin: .35rem 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.pick-badges .signal-badge {
  font-size: .7rem; padding: .15rem .45rem; border-radius: 3px;
  font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  font-family: ui-monospace, monospace;
}
.signal-badge.sellout { background: #fde2dc; color: #a92010; }
.signal-badge.offer { background: #fdf1d3; color: #876200; }
.signal-badge.skip { background: #dfeedb; color: #2f6d3a; }
.signal-badge.private { background: #ece1f1; color: #5b3777; }
.signal-badge.cancellation { background: #e0ecf3; color: #1f4a66; }

/* filter bar */
.filter-bar {
  background: var(--bg-alt); padding: 1rem 1.2rem; border-radius: 6px;
  margin: 1rem 0 1.2rem;
}
.filter-group { margin-bottom: .55rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: inline-block; margin-right: .8rem; min-width: 5rem;
}
.filter-chip {
  display: inline-block; padding: .3rem .75rem; margin: .15rem .25rem 0 0;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.count-bar {
  font-family: ui-monospace, monospace; font-size: .85rem; color: var(--muted);
  margin: .5rem 0 1rem; padding: 0;
}
.count-bar strong { color: var(--text); font-size: .95rem; }

/* sortable tours table */
.tours-table th { white-space: nowrap; }
.tours-table .tc-name { min-width: 320px; }
.tours-table .tc-name a {
  color: var(--text); font-weight: 700; text-decoration: none;
}
.tours-table .tc-name a:hover { color: var(--accent); }
.tour-note {
  display: block; font-size: .82rem; color: var(--muted);
  margin-top: .3rem; line-height: 1.4; font-style: italic;
}
@media (max-width: 600px) { .tour-note { display: none; } }
.tour-row-hidden { display: none; }

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

/* details disclosure */
.disclosure-block {
  border: 1px dashed var(--border-strong); padding: 1rem 1.2rem;
  margin: 1.5rem 0; border-radius: 6px; background: var(--bg);
}
.disclosure-block summary {
  font-weight: 700; cursor: pointer; color: var(--muted); padding: .3rem 0;
}
.disclosure-block[open] summary { color: var(--accent); }

/* methodology box */
.methodology {
  background: var(--bg-alt); padding: 1.3rem 1.5rem; border-radius: 6px;
  font-size: .92rem; margin: 2rem 0;
}
.methodology h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--accent); }
.methodology p { margin: .4rem 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-darker); color: #d8d3ca;
  padding: 2.5rem 1.5rem 1.5rem; margin-top: 3rem;
}
.footer-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem;
}
.footer-col h4 {
  font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #f7d57c;
  margin: 0 0 .8rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .3rem 0; }
.footer-col a { color: #d8d3ca; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--wide); margin: 1.5rem auto 0; padding-top: 1.2rem;
  border-top: 1px solid #3d3a35; font-size: .8rem; color: #8a8579;
}
.footer-bottom p { margin: .3rem 0; }
.footer-bottom strong { color: #d8d3ca; }

/* ---------- responsive nudges ---------- */
@media (max-width: 600px) {
  .hero { padding: 2rem 1.2rem 1rem; }
  section { padding: 2rem 1.2rem; }
  .facts-bar { padding: 1.3rem 1.2rem; }
  .plan-pill { bottom: 1rem; right: 1rem; padding: .65em 1.1em; }
}
