/* Shell (header/footer/newsletter/fonts) lives in home.css. This file is page content. */
:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --text: #111318;
  --muted: #686d75;
  --line: rgba(23,25,29,.11);
  --accent: #ff7900;
  --accent-2: #ff9f43;
  --dark: #111318;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 22px 60px rgba(27,31,36,.12);
  --container: 1280px;
}

[data-theme="dark"] {
  --bg: #101114;
  --surface: #17191d;
  --surface-2: #22252b;
  --text: #f4f5f6;
  --muted: #a9adb5;
  --line: rgba(255,255,255,.11);
  --dark: #f5f6f7;
  --shadow: 0 22px 60px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background .25s ease, color .25s ease;
}
body.page-inner {
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(255,122,0,.25); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .page-title { margin: 0; letter-spacing: -.045em; line-height: 1.05; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.section-heading p { color: var(--muted); max-width: 620px; margin: 10px 0 0; }
.page-title { font-size: clamp(3.2rem, 8vw, 7.4rem); max-width: 1000px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 700px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .header-inner { height: 82px; display: flex; align-items: center; gap: 28px; }
.site-header .logo, .site-footer .logo { min-width: 172px; display: inline-flex; flex-direction: column; line-height: .82; }
.site-header .logo-main, .site-footer .logo-main { font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; }
.site-header .logo-main .script, .site-footer .logo-main .script { color: var(--accent); font-family: 'Caveat', cursive; font-size: 1.55em; margin-left: 4px; }
.site-header .logo-sub, .site-footer .logo-sub { margin-top: 8px; color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.site-header .nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-header .nav a { padding: 11px 13px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--muted); transition: .2s; }
.site-header .nav a:hover, .site-header .nav a.active { background: var(--surface); color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.site-header .header-actions { display: flex; align-items: center; gap: 8px; }
.site-header .icon-btn { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.primary-btn, .secondary-btn, .ghost-btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font-weight: 800; transition: .22s ease;
}
.primary-btn { color: white; background: var(--accent); box-shadow: 0 12px 30px rgba(255,122,0,.25); }
.primary-btn:hover { transform: translateY(-2px); background: #ed7000; }
.secondary-btn { background: var(--surface); border-color: var(--line); }
.secondary-btn:hover { border-color: var(--accent); color: var(--accent); }
.ghost-btn { background: transparent; border-color: var(--line); }
.site-header .menu-btn { display: none; }

.home-hero { min-height: 650px; position: relative; display: flex; align-items: center; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,246,244,.98) 0%, rgba(245,246,244,.86) 36%, rgba(245,246,244,.08) 70%), url("../img/home-v2/hero-right.987a34e58dde.webp") center/cover; }
[data-theme="dark"] .home-hero::before { background: linear-gradient(90deg, rgba(16,17,20,.98) 0%, rgba(16,17,20,.82) 40%, rgba(16,17,20,.18) 75%), url("../img/home-v2/hero-right.987a34e58dde.webp") center/cover; }
.home-hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 730px; padding: 90px 0 135px; }
.hero-copy h1 { margin: 0; font-size: clamp(3.6rem, 7vw, 6.7rem); line-height: .93; letter-spacing: -.065em; }
.hero-copy h1 .script { color: var(--accent); font-family: 'Caveat'; font-weight: 700; letter-spacing: -.02em; }
.hero-copy p { max-width: 580px; color: #474c52; font-size: 1.1rem; margin: 26px 0; }
[data-theme="dark"] .hero-copy p { color: #d0d3d8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { position: absolute; right: 8%; bottom: 25%; width: 200px; color: white; font-family: 'Caveat'; font-size: 1.55rem; transform: rotate(-5deg); text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero-note::after { content: '↙'; display: block; font-size: 3.5rem; margin-left: 40px; }

.category-strip { position: relative; margin-top: -52px; z-index: 5; }
.category-grid { padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.category-item { display: flex; align-items: center; gap: 13px; padding: 13px; border-radius: 16px; transition: .2s; }
.category-item:hover { background: var(--surface-2); transform: translateY(-2px); }
.category-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 1.5rem; flex: 0 0 auto; }
.category-item strong { display: block; font-size: .9rem; }
.category-item span { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { position: relative; min-height: 390px; border-radius: 22px; overflow: hidden; background: #333; box-shadow: 0 14px 36px rgba(0,0,0,.13); isolation: isolate; }
.article-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03) 18%, rgba(0,0,0,.85) 100%); z-index: -1; }
.article-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.article-card:hover img { transform: scale(1.05); }
.article-card-content { height: 100%; min-height: 390px; padding: 20px; display: flex; flex-direction: column; color: #fff; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag { padding: 6px 10px; border-radius: 999px; font-size: .69rem; font-weight: 700; background: rgba(255,255,255,.2); backdrop-filter: blur(10px); }
.article-card h3 { margin: auto 0 14px; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -.025em; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: rgba(255,255,255,.82); }
.save-btn { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); color: white; background: transparent; border-radius: 50%; }
.save-btn.saved { background: var(--accent); border-color: var(--accent); }

.destination-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.destination-mini { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 18px; background: #333; color: white; }
.destination-mini img { height: 100%; object-fit: cover; transition: transform .45s; }
.destination-mini:hover img { transform: scale(1.06); }
.destination-mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.82)); }
.destination-mini div { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 15px; }
.destination-mini strong { display: block; }
.destination-mini span { font-size: .75rem; color: rgba(255,255,255,.82); }

.story-feature { position: relative; overflow: hidden; border-radius: 26px; background: #17191d; min-height: 480px; color: white; }
.story-feature > img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: .47; }
.story-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,19,.95), rgba(15,17,19,.32)); }
.story-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .95fr 1.2fr; gap: 34px; min-height: 480px; align-items: end; padding: 34px; }
.story-copy { align-self: center; max-width: 470px; }
.story-copy h2 { font-size: clamp(2rem,4vw,3.7rem); line-height: 1.05; margin: 12px 0 18px; }
.story-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story-mini { min-height: 260px; position: relative; overflow: hidden; border-radius: 18px; background: #333; }
.story-mini img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.story-mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.story-mini div { position: absolute; z-index: 2; left: 15px; right: 15px; bottom: 14px; }
.story-mini small { color: #ffb56f; }
.story-mini strong { display: block; margin-top: 5px; font-size: .9rem; line-height: 1.25; }

.newsletter { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 36px; padding: 34px 38px; background: linear-gradient(120deg, #fff8ef, #f3eee5); border: 1px solid rgba(255,122,0,.12); border-radius: 24px; color: #17191d; }
.newsletter-copy { display: flex; align-items: center; gap: 22px; }
.newsletter-icon { font-size: 3.3rem; transform: rotate(-12deg); }
.newsletter h3 { margin: 0 0 7px; font-size: 1.5rem; }
.newsletter p { margin: 0; color: #6d655e; }
.newsletter form { display: flex; }
.newsletter input { flex: 1; min-width: 0; height: 54px; border: 1px solid #ded8cf; border-right: none; border-radius: 14px 0 0 14px; padding: 0 16px; outline: none; }
.newsletter button { border-radius: 0 14px 14px 0; }
.form-note { margin-top: 8px; font-size: .75rem; color: #7c746d; }

.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 34px; }
.footer-column h4 { margin: 0 0 16px; font-size: .85rem; }
.footer-column a { display: block; color: var(--muted); font-size: .85rem; padding: 4px 0; }
.footer-column a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); max-width: 280px; font-size: .86rem; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

.page-hero { padding: 48px 0 68px; }
.page-hero .page-title .script { font-family: 'Caveat'; color: var(--accent); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.page-hero-image { height: 430px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.page-hero-image img { height: 100%; object-fit: cover; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: 10px 15px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted); font-weight: 700; }
.filter-btn.active, .filter-btn:hover { background: var(--text); color: var(--bg); }
.destinations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.destination-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: .25s; }
.destination-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.destination-card .image { height: 255px; overflow: hidden; }
.destination-card img { height: 100%; object-fit: cover; transition: transform .4s; }
.destination-card:hover img { transform: scale(1.05); }
.destination-card .content { padding: 20px; }
.destination-card h3 { margin: 8px 0; font-size: 1.4rem; }
.destination-card p { color: var(--muted); font-size: .9rem; }
.detail-meta { display: flex; gap: 16px; color: var(--muted); font-size: .8rem; }

.editorial-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.editorial-feature { min-height: 560px; }
.editorial-side { display: grid; gap: 20px; }
.editorial-side .article-card { min-height: 270px; }
.editorial-side .article-card-content { min-height: 270px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; }
.info-card .number { color: var(--accent); font-size: 2.5rem; font-weight: 800; letter-spacing: -.06em; }
.info-card h3 { margin: 14px 0 8px; }
.info-card p { color: var(--muted); margin: 0; }

.article-hero { padding: 70px 0 44px; }
.article-heading { max-width: 980px; }
.article-heading h1 { font-size: clamp(3rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.055em; margin: 14px 0 25px; }
.article-cover { height: min(68vh, 700px); border-radius: 30px; overflow: hidden; }
.article-cover img { height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 760px) 230px; gap: 34px; align-items: start; }
.article-toc, .article-aside { position: sticky; top: 110px; }
.article-toc { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.article-toc strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.article-toc a { display: block; color: var(--muted); font-size: .82rem; padding: 7px 0; }
.article-body { font-size: 1.08rem; }
.article-body h2 { font-size: 2.2rem; line-height: 1.1; margin-top: 54px; }
.article-body h3 { margin-top: 36px; font-size: 1.45rem; }
.article-body p { color: color-mix(in srgb, var(--text) 80%, var(--muted)); }
.article-body blockquote { margin: 36px 0; padding: 28px 30px; background: #fff4e7; color: #402b16; border-left: 4px solid var(--accent); border-radius: 0 18px 18px 0; font-size: 1.35rem; font-weight: 700; }
.article-body figure { margin: 38px 0; }
.article-body figure img { border-radius: 20px; }
.article-body figcaption { color: var(--muted); font-size: .78rem; margin-top: 10px; }
.article-aside { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.article-aside h3 { margin-top: 0; }
.article-aside p { color: var(--muted); font-size: .86rem; }

.search-box { display: flex; max-width: 850px; margin-top: 28px; }
.search-box input { flex: 1; height: 62px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 20px; border-radius: 16px 0 0 16px; outline: none; }
.search-box button { border-radius: 0 16px 16px 0; }
.result-count { color: var(--muted); margin-bottom: 20px; }
.empty-state { display: none; padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 24px; color: var(--muted); }

.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; }
.contact-card form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8rem; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 13px 14px; border-radius: 13px; outline: none; }
.field textarea { min-height: 140px; resize: vertical; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; padding: 14px 18px; background: #17191d; color: white; border-radius: 14px; box-shadow: var(--shadow); transform: translateY(120px); opacity: 0; transition: .3s; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1050px) {
  .site-header .nav { position: fixed; inset: 82px 16px auto; display: none; flex-direction: column; align-items: stretch; background: var(--surface); padding: 14px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .site-header .nav.open, .q-nav.open { display: flex; }
  .site-header .nav a { padding: 13px 15px; }
  .menu-btn { display: grid; }
  .site-header .header-actions .primary-btn { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .destination-row { grid-template-columns: repeat(3, 1fr); }
  .story-inner, .page-hero-grid, .newsletter, .contact-card { grid-template-columns: 1fr; }
  .story-copy { max-width: 650px; }
  .article-layout { grid-template-columns: minmax(0, 760px) 230px; }
  .article-toc { display: none; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 64px 0; }
  .site-header .header-inner { height: 70px; }
  .site-header .nav { top: 70px; }
  .site-header .logo { min-width: 140px; }
  .site-header .logo-main { font-size: 1.05rem; }
  .header-actions .icon-btn:nth-child(1) { display: none; }
  .home-hero { min-height: 620px; align-items: end; }
  .home-hero::before { background: linear-gradient(0deg, rgba(246,245,242,.97) 0%, rgba(246,245,242,.65) 55%, rgba(246,245,242,.1) 100%), url("../img/home-v2/hero-right.987a34e58dde.webp") 62% center/cover; }
  [data-theme="dark"] .home-hero::before { background: linear-gradient(0deg, rgba(16,17,20,.98) 0%, rgba(16,17,20,.62) 58%, rgba(16,17,20,.13) 100%), url("../img/home-v2/hero-right.987a34e58dde.webp") 62% center/cover; }
  .hero-copy { padding: 220px 0 100px; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .hero-note { display: none; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-item:last-child { grid-column: 1 / -1; }
  .card-grid, .destinations-grid, .info-grid { grid-template-columns: 1fr; }
  .destination-row { grid-template-columns: 1fr 1fr; }
  .story-mini-grid { grid-template-columns: 1fr; }
  .story-feature, .story-inner { min-height: auto; }
  .story-inner { padding: 24px; }
  .newsletter { padding: 26px 22px; }
  .newsletter form { flex-direction: column; gap: 10px; }
  .newsletter input, .newsletter button { border-radius: 13px; border: 1px solid #ded8cf; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1/-1; }
  .copyright { flex-direction: column; }
  .page-hero { padding: 70px 0 45px; }
  .page-hero-image { height: 300px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-cover { border-radius: 20px; height: 48vh; }
}

@media (max-width: 480px) {
  .category-grid, .destination-row, .footer-grid { grid-template-columns: 1fr; }
  .category-item:last-child { grid-column: auto; }
  .page-title { font-size: 3.2rem; }
  .hero-actions a { width: 100%; }
}

/* Django integration */
.flash-wrap { padding-top: 18px; }
.flash { padding: 13px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(0,0,0,.06); }
.flash-success { border-color: rgba(29, 155, 93, .35); }
.flash-error { border-color: rgba(210, 51, 51, .35); }
.errorlist { margin: 0; padding: 0; list-style: none; color: #b42318; font-size: .78rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.pagination a, .pagination span { padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .82rem; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.empty-state.visible { display: block; grid-column: 1 / -1; }
.search-subheading { margin-top: 64px; }
.article-save { width: auto; height: auto; min-height: 44px; border-radius: 14px; color: var(--text); }
.article-save.saved { color: white; }
.article-body img { max-height: 620px; object-fit: cover; }
button[disabled] { cursor: wait; opacity: .7; }
.error-page { min-height: 64vh; display: flex; align-items: center; }
@media (max-width: 760px) {
  .pagination { flex-wrap: wrap; gap: 9px; }
  .pagination a, .pagination span { font-size: .75rem; }
}

/* Consent, legal pages and subscription management */
.form-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.form-consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--accent); flex: 0 0 auto; }
.form-consent a, .legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content { max-width: 860px; }
.legal-content h2 { margin: 42px 0 12px; font-size: 1.55rem; }
.legal-content p { color: var(--muted); }
.unsubscribe-card { max-width: 900px; }
.unsubscribe-card form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
