/* ─────────────────────────────────────────────────────────────────────────
   Tourist theme — guidetoiceland.is-inspired travel/destination layout.
   Pairs with optional templates/themes/tourist/home.html override.
   Mobile-first. Desktop styles in @media (min-width: 760px) blocks.
   ────────────────────────────────────────────────────────────────────────*/

/* Typography baseline */
[data-theme="tourist"] {
  --t-accent: var(--park-accent, #0a4f78);
  --t-accent-light: #5ea8c8;
  --t-text: #1f2937;
  --t-muted: #6b7280;
  --t-bg: #ffffff;
  --t-card-bg: #ffffff;
  --t-border: #e5e7eb;
  --t-shadow: none;
  --t-shadow-lg: none;
}
[data-theme="tourist"] body,
body[data-theme="tourist"] {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
               'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--t-text);
  line-height: 1.55;
  background: var(--t-bg);
}
body[data-theme="tourist"] h1,
body[data-theme="tourist"] h2,
body[data-theme="tourist"] h3,
body[data-theme="tourist"] h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ─── Sticky nav: transparent over hero, solid on scroll ───────────────── */
body[data-theme="tourist"] .site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
body[data-theme="tourist"] .nav-container { height: 72px; }
body[data-theme="tourist"] .nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--t-text);
}
body[data-theme="tourist"] .nav-links a {
  color: var(--t-text);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 14px;
}
body[data-theme="tourist"] .nav-links a:hover {
  color: var(--t-accent);
  background: transparent;
}

/* ─── Hero — full-bleed image w/ overlay + headline + search ───────────── */
body[data-theme="tourist"] .t-hero {
  position: relative;
  min-height: 68vh;
  background: #0a2238 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
body[data-theme="tourist"] .t-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
              rgba(10,30,50,0.10) 0%,
              rgba(10,30,50,0.35) 60%,
              rgba(10,30,50,0.78) 100%);
}
body[data-theme="tourist"] .t-hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 64px 24px 56px;
  width: 100%;
}
body[data-theme="tourist"] .t-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
body[data-theme="tourist"] .t-hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  color: #fff;
}
body[data-theme="tourist"] .t-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  max-width: 640px;
  opacity: 0.94;
  margin-bottom: 28px;
}
body[data-theme="tourist"] .t-hero-search {
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  display: flex; gap: 6px;
  max-width: 580px;
}
body[data-theme="tourist"] .t-hero-search input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--t-text);
}
body[data-theme="tourist"] .t-hero-search button {
  background: var(--t-accent);
  color: #fff;
  border: 0;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
body[data-theme="tourist"] .t-hero-search button:hover {
  background: #082f4d;
}

/* ─── Category strip — icons + labels just below hero ──────────────────── */
body[data-theme="tourist"] .t-category-strip {
  background: #fff;
  border-bottom: 1px solid var(--t-border);
  padding: 14px 0;
  position: relative; z-index: 3;
}
body[data-theme="tourist"] .t-category-strip-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
body[data-theme="tourist"] .t-category-strip-inner::-webkit-scrollbar { display:none; }
body[data-theme="tourist"] .t-cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #f6f8fa;
  border-radius: 999px;
  color: var(--t-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
body[data-theme="tourist"] .t-cat-pill:hover {
  background: var(--t-accent); color: #fff;
}
body[data-theme="tourist"] .t-cat-pill .icon { font-size: 1.05rem; }

/* ─── Section wrappers ─────────────────────────────────────────────────── */
body[data-theme="tourist"] .t-section {
  max-width: 1180px; margin: 0 auto;
  padding: 56px 24px;
}
body[data-theme="tourist"] .t-section-narrow {
  max-width: 760px; margin: 0 auto;
  padding: 56px 24px;
}
body[data-theme="tourist"] .t-section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 28px;
  gap: 16px; flex-wrap: wrap;
}
body[data-theme="tourist"] .t-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
}
body[data-theme="tourist"] .t-section-head p {
  margin: 6px 0 0;
  color: var(--t-muted);
  font-size: 1.02rem;
}
body[data-theme="tourist"] .t-link-more {
  color: var(--t-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
body[data-theme="tourist"] .t-link-more:hover { text-decoration: underline; }

/* ─── Card grid — large landscape image, minimal text below ───────────── */
body[data-theme="tourist"] .t-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
body[data-theme="tourist"] .t-card {
  background: var(--t-card-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--t-border);
  transition: none;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
body[data-theme="tourist"] .t-card:hover {
  border-color: var(--t-accent);
}
body[data-theme="tourist"] .t-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #d8e3eb center/cover no-repeat;
  position: relative;
}
body[data-theme="tourist"] .t-card-img .t-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--t-accent);
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
body[data-theme="tourist"] .t-card-body {
  padding: 18px 20px 22px;
}
body[data-theme="tourist"] .t-card-title {
  font-size: 1.18rem;
  margin: 4px 0 8px;
  line-height: 1.3;
}
body[data-theme="tourist"] .t-card-excerpt {
  color: var(--t-muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
}
body[data-theme="tourist"] .t-card-meta {
  font-size: 0.78rem;
  color: var(--t-muted);
  display: flex; gap: 10px; align-items: center;
}

/* ─── Featured (large) card variant ──────────────────────────────────── */
body[data-theme="tourist"] .t-card-featured .t-card-img { aspect-ratio: 16/8; }
body[data-theme="tourist"] .t-card-featured .t-card-title {
  font-size: 1.6rem;
}

/* ─── Editorial body (article) ────────────────────────────────────────── */
body[data-theme="tourist"] .article-body {
  font-size: 1.08rem;
  line-height: 1.78;
  color: #1f2937;
}
body[data-theme="tourist"] .article-body h2 {
  font-size: 1.85rem; margin-top: 2.4em; margin-bottom: 0.6em;
}
body[data-theme="tourist"] .article-body h3 {
  font-size: 1.35rem; margin-top: 1.8em; margin-bottom: 0.5em;
}
body[data-theme="tourist"] .article-body p { margin: 0 0 1.1em; }
body[data-theme="tourist"] .article-body a {
  color: var(--t-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body[data-theme="tourist"] .article-body blockquote {
  border-left: 4px solid var(--t-accent);
  padding-left: 22px; margin: 1.6em 0;
  font-style: italic;
  color: #334155;
}
body[data-theme="tourist"] .article-body img {
  max-width: 100%; height: auto; border-radius: 12px;
  margin: 1.8em 0;
}

/* ─── Destination strip (split footer-style row) ──────────────────────── */
body[data-theme="tourist"] .t-destination-strip {
  background: #f4f6f9;
  padding: 56px 0;
  border-top: 1px solid var(--t-border);
}
body[data-theme="tourist"] .t-destination-strip-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
body[data-theme="tourist"] .t-destination-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #cbd5e1 center/cover no-repeat;
  display: flex; align-items: end;
  text-decoration: none;
  color: #fff;
}
body[data-theme="tourist"] .t-destination-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,20,40,0.78) 100%);
}
body[data-theme="tourist"] .t-destination-card .t-dest-text {
  position: relative; z-index: 2;
  padding: 20px;
}
body[data-theme="tourist"] .t-destination-card .t-dest-text strong {
  display: block;
  font-size: 1.15rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin-bottom: 4px;
}
body[data-theme="tourist"] .t-destination-card .t-dest-text span {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
body[data-theme="tourist"] .site-footer {
  background: #0e1c2c;
  color: #cbd5e1;
  padding: 56px 0 24px;
}
body[data-theme="tourist"] .site-footer h3 {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  margin: 0 0 14px;
}
body[data-theme="tourist"] .site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
body[data-theme="tourist"] .site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ─── Desktop (≥ 760px) ──────────────────────────────────────────────── */
@media (min-width: 760px) {
  body[data-theme="tourist"] .t-hero { min-height: 78vh; }
  body[data-theme="tourist"] .t-hero-inner { padding: 96px 24px 72px; }
  body[data-theme="tourist"] .t-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  body[data-theme="tourist"] .t-card-grid.t-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  body[data-theme="tourist"] .t-destination-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  body[data-theme="tourist"] .t-hero-inner { padding: 120px 24px 88px; }
}

/* ─── Mobile sticky bottom CTA ───────────────────────────────────────── */
body[data-theme="tourist"] .t-mobile-cta {
  display: none;
}
@media (max-width: 759px) {
  body[data-theme="tourist"] .t-mobile-cta {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--t-border);
    gap: 10px;
  }
  body[data-theme="tourist"] .t-mobile-cta a {
    flex: 1; text-align: center;
    background: var(--t-accent); color: #fff;
    padding: 12px 14px; border-radius: 10px;
    font-weight: 600; text-decoration: none;
    font-size: 0.92rem;
  }
  body[data-theme="tourist"] main { padding-bottom: 80px; }
}
