/* =============================================
   TRAVELTERN — Main Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:        #fafaf8;
  --clr-surface:   #ffffff;
  --clr-text:      #1a1a1a;
  --clr-text-muted:#6b7280;
  --clr-border:    #e5e7eb;
  --clr-accent:    #c8883a;
  --clr-accent-dk: #a06828;
  --clr-dark:      #111827;
  --clr-overlay:   rgba(15, 15, 15, 0.48);

  --font-sans: 'Georgia', 'Times New Roman', serif;
  --font-ui:   system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);

  --transition: 0.22s ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  width: min(var(--max-w), 100% - 2rem);
  margin-inline: auto;
}

.section { padding: 80px 0; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-sans); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clr-accent);
  margin-bottom: 8px;
}
.section-title { margin-bottom: 12px; }
.section-subtitle { color: var(--clr-text-muted); max-width: 520px; margin-inline: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--clr-accent-dk); box-shadow: 0 4px 14px rgba(200,136,58,.35); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
}
.btn-outline:hover { background: var(--clr-accent); color: #fff; }

.btn-affiliate {
  background: var(--clr-dark);
  color: #fff;
  font-size: 0.82rem;
  padding: 9px 18px;
}
.btn-affiliate:hover { background: var(--clr-accent); }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--clr-border), var(--shadow-sm);
}
.site-header.scrolled .nav-logo,
.site-header.scrolled .nav-links a { color: var(--clr-text); }
.site-header.scrolled .nav-logo span { color: var(--clr-accent); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.nav-logo span { color: var(--clr-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.9);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 40px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.nav-cta {
  background: var(--clr-accent);
  color: #fff;
  padding: 7px 18px;
}
.nav-links a.nav-cta:hover { background: var(--clr-accent-dk); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.site-header.scrolled .nav-toggle span { background: var(--clr-text); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.3) 50%, rgba(10,10,10,.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 68px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--clr-accent);
  margin-bottom: 16px;
}
.hero-title {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
  color: rgba(255,255,255,.82);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 0.72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.4);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* =============================================
   AD BANNERS
   ============================================= */
.ad-banner { padding: 16px 0; }
.ad-placeholder {
  background: #f3f4f6;
  border: 1.5px dashed #d1d5db;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--clr-dark);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat strong {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  color: var(--clr-accent);
  line-height: 1;
}
.stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* =============================================
   DESTINATION CARDS
   ============================================= */
.destinations { background: var(--clr-bg); }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 40px;
  border: 1.5px solid var(--clr-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  transition: all var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.dest-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dest-card.hidden { display: none; }

.dest-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.dest-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dest-card:hover .dest-card-img img { transform: scale(1.06); }

.dest-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
}

.dest-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dest-card-body h3 { font-size: 1.1rem; }
.dest-card-body p { font-size: 0.875rem; color: var(--clr-text-muted); flex: 1; }

.dest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.78rem;
}
.dest-season { color: var(--clr-text-muted); }
.dest-read { color: var(--clr-accent); font-weight: 600; }

.load-more-wrap { text-align: center; margin-top: 44px; }

/* =============================================
   FEATURED ARTICLES
   ============================================= */
.featured { background: #f5f4f0; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.featured-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--clr-surface); box-shadow: var(--shadow-md); }
.featured-main .featured-img { aspect-ratio: 16/9; overflow: hidden; }
.featured-main .featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.featured-main:hover .featured-img img { transform: scale(1.04); }
.featured-main .featured-body { padding: 28px 32px 32px; }
.featured-main h3 { font-size: 1.5rem; margin: 10px 0 12px; line-height: 1.3; }
.featured-main p { color: var(--clr-text-muted); font-size: 0.925rem; }

.featured-side { display: flex; flex-direction: column; gap: 18px; }
.featured-small {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0;
  flex-direction: row;
  transition: box-shadow var(--transition);
}
.featured-small:hover { box-shadow: var(--shadow-md); }
.featured-small a { display: flex; width: 100%; }
.featured-small-img { width: 120px; min-width: 120px; overflow: hidden; }
.featured-small-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.featured-small:hover .featured-small-img img { transform: scale(1.07); }
.featured-small .featured-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.featured-small h3 { font-size: 0.92rem; line-height: 1.35; }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-accent);
  background: rgba(200,136,58,.1);
  padding: 3px 8px;
  border-radius: 40px;
}
.read-time { font-size: 0.75rem; color: var(--clr-text-muted); margin-top: 4px; }

/* =============================================
   GEAR / AFFILIATE
   ============================================= */
.gear { background: var(--clr-bg); }
.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gear-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gear-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gear-img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.gear-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gear-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.gear-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-text-muted);
}
.gear-body h4 { font-size: 1rem; font-family: var(--font-sans); }
.gear-body p { font-size: 0.85rem; color: var(--clr-text-muted); }
.gear-body .btn { margin-top: 4px; align-self: flex-start; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter {
  background: var(--clr-dark);
  padding: 72px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-text { flex: 1; min-width: 260px; }
.newsletter-text h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.newsletter-text p { color: rgba(255,255,255,.65); font-size: 0.95rem; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--clr-accent); }
.newsletter-note { color: rgba(255,255,255,.5); font-size: 0.8rem; margin-top: 6px; width: 100%; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0c0c0c;
  color: rgba(255,255,255,.65);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { color: #fff; font-size: 1.4rem; margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--clr-accent); }
.social-links a { display: flex; align-items: center; gap: 8px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}
.affiliate-notice { color: rgba(255,255,255,.4); }
.affiliate-notice a { color: rgba(255,255,255,.55); text-decoration: underline; }

/* =============================================
   DESTINATION PAGE
   ============================================= */
.dest-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.dest-hero-bg { position: absolute; inset: 0; }
.dest-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.dest-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%);
}
.dest-hero-content {
  position: relative; z-index: 2;
  padding: 0 0 48px;
}
.dest-hero-content .breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,.65);
  margin-bottom: 12px;
}
.dest-hero-content .breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.dest-hero-content .breadcrumb a:hover { color: var(--clr-accent); }
.dest-hero-content h1 { color: #fff; margin-bottom: 10px; }
.dest-hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(255,255,255,.75);
}
.dest-hero-meta span { display: flex; align-items: center; gap: 5px; }

.dest-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}

.dest-content h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.dest-content h2:first-child { margin-top: 0; }
.dest-content p { color: #374151; line-height: 1.8; margin-bottom: 16px; font-size: 0.975rem; }
.dest-content ul { padding-left: 20px; margin-bottom: 16px; }
.dest-content ul li { color: #374151; line-height: 1.8; font-size: 0.975rem; list-style: disc; }

.dest-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.dest-photo-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.dest-photo-grid .photo-wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

/* Sidebar */
.dest-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--clr-border);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--clr-text-muted); min-width: 90px; }
.info-value { font-weight: 500; text-align: right; }

.sidebar-ad .ad-placeholder { min-height: 250px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { flex-direction: row; flex-wrap: wrap; }
  .featured-small { flex: 1; min-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dest-layout { grid-template-columns: 1fr; }
  .dest-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(17,24,39,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px 32px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: rgba(255,255,255,.85); padding: 10px 14px; width: 100%; border-radius: var(--radius-sm); }
  .nav-links a.nav-cta { background: var(--clr-accent); text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .site-header.scrolled .nav-links a { color: rgba(255,255,255,.85); }

  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .gear-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { flex-direction: column; }
}

@media (max-width: 540px) {
  .destinations-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dest-photo-grid { grid-template-columns: 1fr; }
  .dest-photo-grid .photo-wide { grid-column: span 1; aspect-ratio: 4/3; }
  .dest-sidebar { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
