@layer reset, base, layout, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p { margin: 0; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
}

@layer base {
  :root {
    --forest: #123c32;
    --forest-dark: #0a2b24;
    --cream: #f5f0e7;
    --paper: #fffcf7;
    --sun: #f3c46d;
    --terracotta: #b45338;
    --ink: #173b32;
    --muted: #5e6e69;
    --line: rgba(23, 59, 50, 0.14);
    --radius: 28px;
    --shadow: 0 20px 65px rgba(18, 60, 50, 0.10);
  }

  body {
    background: var(--cream);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: var(--sun); color: var(--forest-dark); }
  :focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
}

@layer layout {
  .site-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    left: 50%;
    max-width: 1280px;
    padding: 25px 40px;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
  }

  .section { margin: 0 auto; max-width: 1280px; padding: 120px 40px; }

  .section-heading {
    align-items: end;
    display: flex;
    gap: 48px;
    justify-content: space-between;
    margin-bottom: 48px;
  }

  .section-heading h2,
  .planning h2,
  .final-cta h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.96;
  }

  .guide-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(12, 1fr);
  }

  .guide-card { grid-column: span 4; }
  .guide-card-featured { grid-column: span 8; }
  .guide-card-wide { grid-column: span 8; }
  .guide-card-half { grid-column: span 6; }

  .planning {
    display: grid;
    gap: 0;
    grid-template-columns: 1.08fr 0.92fr;
    padding-top: 20px;
  }

  .site-footer {
    align-items: center;
    background: var(--forest-dark);
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    font-size: 0.78rem;
    justify-content: space-between;
    padding: 38px max(40px, calc((100vw - 1200px) / 2));
  }
}

@layer components {
  .skip-link {
    background: var(--sun);
    color: var(--forest-dark);
    font-weight: 800;
    left: 16px;
    padding: 10px 14px;
    position: fixed;
    top: -60px;
    z-index: 100;
  }
  .skip-link:focus { top: 16px; }

  .brand { align-items: center; color: white; display: flex; font-size: 0.92rem; font-weight: 900; gap: 11px; letter-spacing: -0.025em; }
  .brand-mark { align-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; display: inline-flex; font-family: Georgia, serif; height: 38px; justify-content: center; width: 38px; }
  .nav { align-items: center; color: rgba(255,255,255,.82); display: flex; font-size: 0.82rem; font-weight: 700; gap: 30px; }
  .nav > a:not(.nav-cta) { transition: color .2s ease; }
  .nav > a:not(.nav-cta):hover { color: white; }
  .language-switch { align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; display: inline-flex; font-size: .65rem; gap: 2px; padding: 3px; }
  .language-switch a, .language-switch span { align-items: center; border-radius: 999px; display: inline-flex; height: 27px; justify-content: center; width: 33px; }
  .language-switch a { color: rgba(255,255,255,.64); transition: color .2s ease, background .2s ease; }
  .language-switch a:hover { color: white; }
  .language-switch .active { background: white; color: var(--forest-dark); }
  .nav-cta { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 10px 19px; transition: .2s ease; }
  .nav-cta:hover { background: white; color: var(--forest); }

  .hero {
    background: var(--forest);
    color: white;
    isolation: isolate;
    min-height: 790px;
    overflow: hidden;
    position: relative;
  }
  .hero-image { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; z-index: -3; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,39,32,.96) 0%, rgba(8,39,32,.76) 47%, rgba(8,39,32,.18) 100%); inset: 0; position: absolute; z-index: -2; }
  .hero::after { background: linear-gradient(180deg, transparent 60%, rgba(5,28,23,.36)); content: ""; inset: 0; position: absolute; z-index: -1; }
  .hero-content { margin: 0 auto; max-width: 1280px; padding: 205px 40px 155px; }
  .hero-content > * { max-width: 760px; }
  .eyebrow, .kicker, .step-label { color: var(--sun); font-size: .7rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
  .hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 8vw, 7.8rem); font-weight: 700; letter-spacing: -.065em; line-height: .82; margin-top: 24px; }
  .hero-copy { color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; margin-top: 32px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
  .button { align-items: center; border-radius: 999px; display: inline-flex; font-size: .82rem; font-weight: 900; gap: 11px; justify-content: center; padding: 15px 24px; transition: transform .2s ease, background .2s ease, color .2s ease; }
  .button:hover { transform: translateY(-2px); }
  .button-sun { background: var(--sun); color: var(--forest-dark); }
  .button-sun:hover { background: #ffd98c; }
  .button-ghost { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.4); color: white; backdrop-filter: blur(10px); }
  .button-ghost:hover { background: white; color: var(--forest); }
  .button-dark { background: var(--forest-dark); color: white; }

  .hero-rail { backdrop-filter: blur(12px); background: rgba(3,28,22,.24); border-top: 1px solid rgba(255,255,255,.15); bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); left: 0; padding: 0 max(40px, calc((100vw - 1200px) / 2)); position: absolute; right: 0; }
  .hero-rail div { padding: 20px 28px; text-align: center; }
  .hero-rail div + div { border-left: 1px solid rgba(255,255,255,.14); }
  .hero-rail strong, .hero-rail span { display: block; }
  .hero-rail strong { font-family: Georgia, serif; font-size: 1.18rem; }
  .hero-rail span { color: rgba(255,255,255,.58); font-size: .7rem; margin-top: 2px; }

  .kicker { color: var(--terracotta); margin-bottom: 14px; }
  .section-intro { color: var(--muted); font-size: .92rem; line-height: 1.7; max-width: 390px; }

  .guide-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  .guide-card > a { display: flex; flex-direction: column; height: 100%; }
  .card-image-wrap { aspect-ratio: 4/3; overflow: hidden; }
  .guide-card-featured .card-image-wrap, .guide-card-wide .card-image-wrap { aspect-ratio: 2/1; }
  .card-image-wrap img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); width: 100%; }
  .guide-card:hover .card-image-wrap img { transform: scale(1.045); }
  .card-body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
  .category { color: var(--terracotta); font-size: .65rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
  .card-body h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.035em; line-height: 1.08; margin-top: 13px; }
  .card-body p { color: var(--muted); font-size: .86rem; line-height: 1.65; margin-top: 17px; }
  .text-link { align-items: center; display: inline-flex; font-size: .78rem; font-weight: 900; gap: 9px; margin-top: 25px; }
  .text-link span { transition: transform .2s ease; }
  .guide-card:hover .text-link span { transform: translateX(5px); }

  .about-panel { background: var(--forest); border-radius: var(--radius) 0 0 var(--radius); color: white; padding: clamp(40px, 6vw, 78px); }
  .kicker-light { color: var(--sun); }
  .about-panel h2 { color: white; }
  .about-panel p:not(.kicker) { color: rgba(255,255,255,.7); font-size: .96rem; line-height: 1.75; margin-top: 24px; max-width: 560px; }
  .about-panel p strong { color: white; }
  .about-panel .button { margin-top: 32px; }

  .advice-panel { background: #eadfce; border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(40px, 6vw, 78px); }
  .step-label { color: var(--terracotta); }
  .advice-panel h3 { font-family: Georgia, serif; font-size: clamp(2rem, 3.5vw, 3.6rem); letter-spacing: -.045em; line-height: 1; margin-top: 14px; }
  .advice-list { list-style: none; margin: 34px 0 0; padding: 0; }
  .advice-list li { border-top: 1px solid var(--line); }
  .advice-list li:last-child { border-bottom: 1px solid var(--line); }
  .advice-list a { align-items: center; display: grid; gap: 16px; grid-template-columns: 34px 1fr auto; padding: 20px 0; }
  .advice-list span { color: var(--terracotta); font-size: .68rem; font-weight: 900; }
  .advice-list strong { font-family: Georgia, serif; font-size: 1.03rem; }
  .advice-list i { font-style: normal; transition: transform .2s ease; }
  .advice-list a:hover i { transform: translateX(5px); }

  .final-cta { align-items: center; background: var(--sun); display: flex; gap: 40px; justify-content: space-between; margin-top: 20px; padding: 78px max(40px, calc((100vw - 1200px) / 2)); }
  .final-cta .kicker { color: var(--forest); }
  .final-cta h2 { font-size: clamp(2.4rem, 4.5vw, 4.6rem); }

  .site-footer strong { color: white; }
  .site-footer span { color: rgba(255,255,255,.48); }
  .site-footer nav { display: flex; gap: 28px; }
  .site-footer a:hover { color: white; }
  .mobile-action { display: none; }

  .affiliate-home { padding-top: 12px; }
  .affiliate-home-card {
    align-items: center;
    background: var(--forest);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: white;
    display: grid;
    gap: 46px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    overflow: hidden;
    padding: clamp(34px, 5vw, 58px);
    position: relative;
  }
  .affiliate-home-card::after {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    content: "";
    height: 290px;
    pointer-events: none;
    position: absolute;
    right: -90px;
    top: -120px;
    width: 290px;
  }
  .affiliate-label {
    color: var(--sun);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .affiliate-home-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    letter-spacing: -.05em;
    line-height: .98;
    margin-top: 12px;
  }
  .affiliate-home-card .affiliate-copy {
    color: rgba(255,255,255,.72);
    font-size: .94rem;
    line-height: 1.72;
    margin-top: 18px;
    max-width: 680px;
  }
  .affiliate-home-action { position: relative; z-index: 1; }
  .affiliate-home-action .button { width: 100%; }
  .affiliate-disclosure {
    color: inherit;
    font-size: .68rem !important;
    line-height: 1.55 !important;
    margin-top: 12px !important;
    opacity: .68;
  }
  .affiliate-home-action .affiliate-disclosure { color: rgba(255,255,255,.76); text-align: center; }

  .affiliate-stay-card {
    align-items: center;
    background: linear-gradient(135deg, #123c32, #0a2b24);
    border-radius: 22px;
    color: white;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 38px;
    overflow: hidden;
    padding: 28px 30px;
    position: relative;
  }
  .affiliate-stay-card::after {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    content: "";
    height: 180px;
    pointer-events: none;
    position: absolute;
    right: -75px;
    top: -88px;
    width: 180px;
  }
  .article-main .affiliate-stay-card h3 {
    color: white;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    margin-top: 9px;
  }
  .article-main .affiliate-stay-card .affiliate-copy {
    color: rgba(255,255,255,.72);
    font-size: .87rem;
    line-height: 1.65;
    margin-top: 10px;
    max-width: 620px;
  }
  .affiliate-stay-action { min-width: 205px; position: relative; text-align: center; z-index: 1; }
  .affiliate-stay-action .button { width: 100%; }
  .article-main .affiliate-stay-action .affiliate-disclosure { color: rgba(255,255,255,.72); max-width: 230px; }

  .article-hero {
    align-items: end;
    background: var(--forest-dark);
    color: white;
    display: flex;
    isolation: isolate;
    min-height: 590px;
    overflow: hidden;
    padding: 170px max(40px, calc((100vw - 1120px) / 2)) 76px;
    position: relative;
  }
  .article-hero-image { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; z-index: -3; }
  .article-hero::after { background: linear-gradient(180deg, rgba(8,39,32,.18), rgba(8,39,32,.94)); content: ""; inset: 0; position: absolute; z-index: -2; }
  .article-hero.no-image { background: radial-gradient(circle at 80% 15%, rgba(243,196,109,.24), transparent 32%), linear-gradient(135deg, #194d40, #092820); }
  .article-hero.no-image::before { border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; height: 420px; position: absolute; right: -100px; top: 80px; width: 420px; }
  .article-heading { max-width: 920px; }
  .article-photo-credit { bottom: 22px; color: rgba(255,255,255,.62); font-size: .62rem; position: absolute; right: max(40px, calc((100vw - 1120px) / 2)); z-index: 1; }
  .article-photo-credit:hover { color: white; }
  .article-meta { color: var(--sun); font-size: .68rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
  .article-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.3rem, 7vw, 6.9rem); letter-spacing: -.06em; line-height: .9; margin-top: 18px; }
  .article-main { background: var(--paper); margin: 0 auto; max-width: 1120px; padding: 80px clamp(24px, 8vw, 130px) 96px; }
  .article-main .lead { color: #364f48; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.5; }
  .article-main h2 { color: var(--forest); font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 2.9rem); letter-spacing: -.04em; line-height: 1.05; margin-top: 64px; }
  .article-main h3 { color: var(--forest); font-family: Georgia, serif; font-size: 1.45rem; letter-spacing: -.025em; margin-top: 34px; }
  .article-main p, .article-main li { color: var(--muted); font-size: .98rem; line-height: 1.8; }
  .article-main p { margin-top: 20px; }
  .article-main ul { display: grid; gap: 14px; margin: 24px 0 0; padding-left: 22px; }
  .article-main li::marker { color: var(--terracotta); }
  .article-main strong { color: var(--ink); }
  .article-callout { background: #efe6d8; border-left: 4px solid var(--terracotta); border-radius: 0 16px 16px 0; margin-top: 46px; padding: 24px 28px; }
  .article-callout p { margin: 0; }
  .itinerary { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
  .itinerary.two { grid-template-columns: repeat(2, 1fr); }
  .day-card { background: var(--cream); border-radius: 18px; padding: 22px; }
  .day-card span { color: var(--terracotta); display: block; font-size: .66rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
  .day-card p { font-size: .88rem; line-height: 1.65; margin-top: 9px; }
  .article-end { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; margin-top: 72px; padding-top: 32px; }
  .back-link { font-size: .82rem; font-weight: 900; }
  .contact-grid { display: grid; gap: 42px; grid-template-columns: .75fr 1.25fr; margin-top: 44px; }
  .contact-note { background: var(--cream); border-radius: 20px; padding: 28px; }
  .contact-note p { font-size: .88rem; margin-top: 12px; }
  .contact-form { display: grid; gap: 20px; }
  .contact-form label { color: var(--ink); display: grid; font-size: .76rem; font-weight: 900; gap: 8px; }
  .contact-form input, .contact-form textarea { background: white; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font: inherit; padding: 15px 16px; width: 100%; }
  .contact-form textarea { min-height: 160px; resize: vertical; }
  .contact-form .button { border: 0; cursor: pointer; justify-self: start; }
  .policy-list { display: grid; gap: 16px; margin-top: 24px; }
  .policy-list li { padding-left: 4px; }
  .credits-list { display: grid; gap: 18px; margin-top: 30px; }
  .credit-row { align-items: center; background: var(--cream); border-radius: 18px; display: grid; gap: 18px; grid-template-columns: 120px 1fr; padding: 14px; }
  .credit-row img { aspect-ratio: 4/3; border-radius: 12px; height: 100%; object-fit: cover; width: 100%; }
  .credit-row p { font-size: .85rem; margin: 0; }
}

@layer responsive {
  @media (max-width: 900px) {
    .guide-card, .guide-card-featured, .guide-card-wide, .guide-card-half { grid-column: span 6; }
    .guide-card-featured .card-image-wrap, .guide-card-wide .card-image-wrap { aspect-ratio: 4/3; }
    .planning { grid-template-columns: 1fr; }
    .about-panel { border-radius: var(--radius) var(--radius) 0 0; }
    .advice-panel { border-radius: 0 0 var(--radius) var(--radius); }
    .section-heading { align-items: start; flex-direction: column; }
  }

  @media (max-width: 640px) {
    .site-header { padding: 20px; }
    .brand-mark { height: 34px; width: 34px; }
    .brand { font-size: .78rem; }
    .nav > a:not(.nav-cta) { display: none; }
    .nav { gap: 8px; }
    .language-switch { display: inline-flex; }
    .nav-cta { padding: 9px 15px; }
    .hero { min-height: 720px; }
    .hero-shade { background: linear-gradient(90deg, rgba(8,39,32,.93), rgba(8,39,32,.58)); }
    .hero-content { padding: 165px 20px 150px; }
    .hero h1 { font-size: clamp(3.6rem, 17vw, 5rem); line-height: .88; }
    .hero-copy { font-size: .96rem; margin-top: 25px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-rail { padding: 0; }
    .hero-rail div { padding: 16px 6px; }
    .hero-rail strong { font-size: .92rem; }
    .hero-rail span { font-size: .57rem; }

    .section { padding: 82px 20px; }
    .section-heading { gap: 20px; margin-bottom: 34px; }
    .section-heading h2 { font-size: 2.85rem; }
    .guide-card, .guide-card-featured, .guide-card-wide, .guide-card-half { grid-column: 1 / -1; }
    .card-body { padding: 25px; }
    .planning { padding-top: 0; }
    .affiliate-home { padding-top: 0; }
    .affiliate-home-card { gap: 28px; grid-template-columns: 1fr; padding: 34px 26px; }
    .affiliate-home-action .button { width: 100%; }
    .affiliate-stay-card { align-items: stretch; gap: 22px; grid-template-columns: 1fr; padding: 25px 22px; }
    .affiliate-stay-action { min-width: 0; text-align: left; }
    .article-main .affiliate-stay-action .affiliate-disclosure { max-width: none; }
    .about-panel, .advice-panel { padding: 40px 28px; }
    .final-cta { align-items: stretch; flex-direction: column; padding: 62px 20px; }
    .final-cta .button { width: 100%; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 24px; padding: 38px 20px 94px; }
    .site-footer nav { flex-wrap: wrap; }
    .mobile-action { background: var(--sun); border: 1px solid rgba(10,43,36,.12); border-radius: 999px; bottom: 14px; box-shadow: 0 10px 30px rgba(10,43,36,.22); color: var(--forest-dark); display: block; font-size: .8rem; font-weight: 900; left: 16px; padding: 14px 20px; position: fixed; right: 16px; text-align: center; z-index: 30; }
    .article-hero { min-height: 560px; padding: 150px 20px 58px; }
    .article-heading h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
    .article-main { padding: 60px 20px 92px; }
    .article-main h2 { margin-top: 52px; }
    .itinerary, .itinerary.two { grid-template-columns: 1fr; }
    .article-end { align-items: stretch; flex-direction: column; }
    .article-end .button { width: 100%; }
    .article-photo-credit { bottom: 12px; left: 20px; right: auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .credit-row { grid-template-columns: 88px 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
}
