/* Shared stylesheet — Zakopane/Tatra pilot sample site
   Style reference: visitaritalia.com (light, warm-cream, editorial, green accent) */

:root {
  --bg: #f4efe6;
  --bg-alt: #ffffff;
  --text: #2b2a26;
  --text-dim: #6b6a63;
  --accent: #2f4d3a; /* deep pine green, matches Tatra forest + visitaritalia CTA green */
  --accent-light: #e8f0ea;
  --border: #e3ddd0;
  --link: #2f4d3a;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* height:auto is load-bearing — the width/height attributes on <img> (there to
   reserve space and stop layout shift) otherwise resolve both dimensions, which
   makes the browser ignore any aspect-ratio set in CSS. */
img { max-width: 100%; height: auto; }

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg);
}

.site-header .logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header nav {
  flex: 1;
  text-align: right;
}

.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header nav a:hover { color: var(--text); }

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.hero {
  position: relative;
  padding: 5rem 1.5rem 3rem;
  margin-top: 0.75rem;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: #2b3a30; /* fallback tone when no hero image is set */
}

.hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,25,20,0.15) 0%, rgba(15,18,15,0.75) 100%);
}

.hero:not(.has-image) {
  background-image: linear-gradient(135deg, #2f4d3a 0%, #1c2e22 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.9rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero .tagline {
  font-size: 1.05rem;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.hero .tagline::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 1.75rem;
  height: 2px;
  margin-top: 0.8em; /* aligns the rule with the first line, not the block's centre */
  background: #d7c98a;
}

.byline {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 1rem auto 0;
  max-width: var(--max-width);
  padding: 0 1.5rem;
}

.quickfacts {
  max-width: var(--max-width);
  margin: -2.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quickfacts div {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.quickfacts div strong {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
}

section { margin-top: 2.5rem; }

section h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

th { color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; background: var(--accent-light); }

tr:last-child td { border-bottom: none; }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 0.5rem; }

.mistake-list li::marker { color: var(--accent); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card .card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--accent-light);
}

.card-body { padding: 1rem; }

.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card .meta { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.5rem; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  text-align: center;
}

.cta:hover { opacity: 0.9; }

.booking-widget {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.booking-widget .details strong { display: block; font-size: 1rem; }
.booking-widget .details span { color: var(--text-dim); font-size: 0.85rem; }
.booking-widget .price { color: var(--accent); font-weight: 700; }

.booking-widget.featured {
  border-color: var(--accent);
  background: var(--accent-light);
}

.booking-widget.featured .details strong { font-size: 1.1rem; }

.featured-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.card .cta {
  display: block;
  text-align: center;
  margin: 0 1rem 1rem;
}

.disclosure-inline {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
}

.faq p { margin: 0.6rem 0 0; color: var(--text-dim); }

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-disclosure {
  font-size: 0.75rem;
  color: #8a887f;
  max-width: 680px;
  margin: 1.25rem 0 0;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.82rem;
}

.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.footer-copyright {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: #928f85;
}

.footer-contact {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.footer-contact a { color: var(--accent); }

.confidence-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.confidence-tag.verified { background: #e3f0e6; color: #2f6b40; }
.confidence-tag.check-locally { background: #f5e9d6; color: #8a6a2a; }

/* Publish-gate state: a CTA that still points at a placeholder Viator URL.
   Deliberately looks broken so it can never accidentally ship unnoticed. */
.cta-blocked {
  background: #f0dcdc !important;
  color: #a13d3d !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Placeholder language switcher — inert until a second locale exists. */
.lang-switch { margin-left: 1.25rem; }

.lang-current {
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: default;
  text-transform: uppercase;
}

/* Opening paragraph — slightly larger, sets up the page. */
.lede {
  font-size: 1.08rem;
  color: var(--text);
}

/* Disclosure text that should be present and legible but not compete with
   the content or the CTAs. */
.fineprint {
  font-size: 0.74rem;
  line-height: 1.5;
  color: #8a887f;
}

/* ---- Legal / disclosure pages ----
   Narrower measure than the hub: these are read as prose, not scanned. */
.legal {
  max-width: 680px;
  margin-top: 1rem;
}

.legal h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 0.35rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.legal p { margin: 0 0 1rem; }
.legal ul.plain li { margin-bottom: 0.7rem; }
.legal a { color: var(--accent); }

.legal code {
  background: var(--accent-light);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}

.legal-byline {
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: none;
}

.legal-footnote {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---- Small screens ----
   The header is the main casualty at phone width: activity names are long,
   and inline-wrapping them collides with the logo and pushes the hero off
   screen. Below 768px the nav becomes a single swipeable row instead. */
@media (max-width: 768px) {
  /* Two rows: logo + language on the first, the scrolling nav on the second. */
  header.site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0;
    padding: 0.9rem 1rem;
  }

  .site-header .logo { order: 1; }
  .lang-switch { order: 2; margin-left: auto; }

  .site-header nav {
    order: 3;
    flex: none;
    width: 100%;
    text-align: left;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar { display: none; }

  .site-header nav a {
    margin-left: 0;
    margin-right: 1.1rem;
  }

  .breadcrumb { padding: 0.75rem 1rem 0; }

  .hero { padding: 3rem 1rem 2.25rem; }

  /* Two short facts per row reads better than four tall full-width cards. */
  .quickfacts {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0 1rem;
    margin-top: -1.75rem;
  }

  .quickfacts div { padding: 0.7rem 0.8rem; font-size: 0.82rem; }
  .quickfacts div strong { font-size: 0.65rem; }

  main { padding: 2rem 1rem 2rem; }
  section { margin-top: 2rem; }
  section h2 { font-size: 1.2rem; }

  /* Stack the widget instead of squeezing image + text + button onto a row. */
  .booking-widget {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .booking-widget .cta { width: 100%; }

  .card-grid { grid-template-columns: 1fr; }

  table { font-size: 0.85rem; }
  th, td { padding: 0.5rem 0.55rem; }

  footer.site-footer { padding: 1.75rem 1rem; }
}

@media (max-width: 340px) {
  /* Single column only on the smallest phones — two fact cards get too
     cramped to read below this, but they're fine at 360-375px. */
  .quickfacts { grid-template-columns: 1fr; }
}
