@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #FAFAF9;
  --text: #1A1A1A;
  --text-dim: #71717A;
  --text-light: #A1A1AA;
  --accent: #B45309;
  --accent-hover: #92400E;
  --accent-light: #FEF3C7;
  --surface: #FFFFFF;
  --border: #E4E4E7;
  --font-display: 'Libre Bodoni', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
  --content-width: 680px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-light); color: var(--accent-hover); }

/* Scroll animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0; background: transparent; transition: background 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(250,250,249,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--max-width); margin: 0 auto; padding: 20px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.site-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.site-title a { color: var(--text); transition: color 0.3s; }
.site-header.hero-page .site-title a { color: white; }
.site-header.hero-page.scrolled .site-title a { color: var(--text); }
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  color: var(--text-dim); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.site-nav a:hover { color: var(--text); }
.site-header.hero-page .site-nav a { color: rgba(255,255,255,0.8); }
.site-header.hero-page .site-nav a:hover { color: white; }
.site-nav a[style*="color: var(--accent)"]::after,
.site-nav a:hover::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: currentColor;
}
.site-header.hero-page.scrolled .site-nav a { color: var(--text-dim); }
.site-header.hero-page.scrolled .site-nav a:hover { color: var(--text); }

/* ─── HERO ─── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); width: 100%; margin: 0 auto;
  padding: 0 32px 80px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; color: white; line-height: 1.05;
  letter-spacing: -0.02em; max-width: 700px;
}
.hero p {
  font-size: 18px; color: rgba(255,255,255,0.75); margin-top: 20px;
  max-width: 480px; font-weight: 300; line-height: 1.7;
}
.hero .scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.5); font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase; font-weight: 500;
  animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ─── CONTENT ─── */
.content { max-width: var(--max-width); margin: 0 auto; padding: 80px 32px; }
.content-narrow { max-width: var(--content-width); margin: 0 auto; padding: 80px 32px; }

/* ─── SECTION HEADINGS ─── */
.section-heading {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 14px; color: var(--text-dim); letter-spacing: 2px;
  text-transform: uppercase; margin: 0 0 48px;
}

/* ─── STATS ─── */
.stats-row { display: flex; gap: 64px; justify-content: flex-start; flex-wrap: wrap; margin: 48px 0 80px; padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: left; }
.stat .number { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--text); line-height: 1; }
.stat .label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-top: 8px; }

/* ─── STORY CARDS ─── */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card {
  background: transparent; border-radius: 0; overflow: hidden;
  transition: opacity 0.3s;
}
.story-card:hover { opacity: 0.85; }
.story-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.story-card .card-body { padding: 16px 0; }
.story-card .card-date { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }
.story-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 6px 0 0; color: var(--text); line-height: 1.3; letter-spacing: -0.01em; }
.story-card .card-excerpt { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-top: 6px; }
.story-card .card-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.story-card .tag { font-size: 10px; padding: 2px 10px; border: 1px solid var(--border); color: var(--text-dim); border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* ─── STORY PAGE ─── */
.story-header { padding: 120px 32px 48px; text-align: left; max-width: var(--content-width); margin: 0 auto; }
.story-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.15; }
.story-header .meta { font-size: 13px; color: var(--text-light); margin-top: 16px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }
.story-content { max-width: var(--content-width); margin: 0 auto; padding: 0 32px 80px; }
.story-content p { margin-bottom: 28px; font-size: 18px; line-height: 1.85; color: #3F3F46; }
.story-content h2, .story-content h3 { font-family: var(--font-display); font-weight: 700; margin: 56px 0 20px; color: var(--text); }
.story-content h2 { font-size: 28px; letter-spacing: -0.02em; }
.story-content h3 { font-size: 22px; }
.story-content blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 28px; margin: 40px 0; font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.6; color: var(--text-dim); }
.story-content ul, .story-content ol { margin: 0 0 28px 24px; }
.story-content figure { margin: 48px -120px; }
.story-content figure img { border-radius: 0; }
.story-content figcaption { font-size: 12px; color: var(--text-light); margin-top: 12px; letter-spacing: 0.5px; }
.story-content .image-block { margin: 40px 0; }
.story-content .image-block img { border-radius: 0; cursor: zoom-in; transition: filter 0.3s; }
.story-content .image-block img:hover { filter: brightness(0.9); }
.story-content .gallery-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 40px 0; }
.story-content .gallery-block img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; width: 100%; cursor: zoom-in; transition: filter 0.3s, transform 0.3s; }
.story-content .gallery-block img:hover { filter: brightness(0.85); transform: scale(1.02); }
@media (max-width: 768px) { .story-content .gallery-block { grid-template-columns: repeat(2, 1fr); } }

/* ─── GALLERY ─── */
.gallery-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-controls input[type="text"] {
  padding: 14px 20px; border: 1px solid var(--border); border-radius: 0;
  font-size: 14px; flex: 1; min-width: 200px; font-family: var(--font-body);
  background: var(--surface); transition: border-color 0.2s;
}
.gallery-controls input[type="text"]:focus { outline: none; border-color: var(--text); }
.gallery-controls select { padding: 14px; border: 1px solid var(--border); border-radius: 0; font-size: 14px; font-family: var(--font-body); background: var(--surface); cursor: pointer; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; }
.gallery-item:hover img { transform: scale(1.04); opacity: 0.9; }
.gallery-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; font-size: 12px; line-height: 1.4; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .overlay { opacity: 1; }

/* ─── TAG CLOUD / CHIPS ─── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tag-cloud a { padding: 6px 14px; border: 1px solid var(--border); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; transition: all 0.2s; }
.tag-cloud a:hover { border-color: var(--text); color: var(--text); }
.chip { padding: 6px 14px; border: 1px solid var(--border); font-size: 11px; cursor: pointer; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; transition: all 0.2s; font-family: var(--font-body); background: transparent; }
.chip:hover { border-color: var(--text); color: var(--text); background: transparent; }

/* ─── DESTINATIONS ─── */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px; }
.dest-card { position: relative; overflow: hidden; height: 280px; cursor: pointer; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.dest-card:hover img { transform: scale(1.04); }
.dest-card .dest-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; }
.dest-card .dest-label h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.dest-card .dest-label span { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }

/* ─── GLOBE ─── */
.globe-container { width: 100%; height: 80vh; min-height: 550px; position: relative; background: #0a0a12; overflow: hidden; }
.globe-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; gap: 16px; }
.globe-loading-spinner { width: 32px; height: 32px; border: 2px solid rgba(255,255,255,0.1); border-top-color: #F59E0B; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.globe-stats { display: flex; gap: 32px; justify-content: center; padding: 20px 32px; font-size: 12px; color: var(--text-light); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--border); }
.globe-stats span { white-space: nowrap; }

/* Destination panel — right sidebar on desktop, bottom sheet on mobile */
.dest-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; background: var(--surface); width: 400px; max-width: 90vw; overflow-y: auto; padding: 32px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); box-shadow: -8px 0 40px rgba(0,0,0,0.15); }
.dest-panel.open { transform: translateX(0); }
.dest-panel h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); }
.dest-panel-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 24px; color: var(--text-dim); cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.dest-panel-close:hover { color: var(--text); }
@media (max-width: 768px) {
  .dest-panel { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 60vh; transform: translateY(100%); }
  .dest-panel.open { transform: translateY(0); }
}

/* MapLibre / popup overrides */
.globe-popup .maplibregl-popup-content { background: rgba(0,0,0,0.85); color: white; border-radius: 4px; padding: 12px 16px; font-family: var(--font-body); font-size: 13px; line-height: 1.5; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.globe-popup .maplibregl-popup-tip { border-top-color: rgba(0,0,0,0.85); }
.maplibregl-ctrl-attrib { font-size: 10px !important; opacity: 0.5; }
.maplibregl-canvas { outline: none; }

/* ─── FOOTER ─── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 32px; font-size: 12px; color: var(--text-light); display: flex; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn { display: inline-block; padding: 16px 36px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.3s var(--ease); text-decoration: none; font-family: var(--font-body); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--text); color: white; border: none; }
.btn-primary:hover { background: var(--accent); color: white; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-outline:hover { background: var(--text); color: white; }

/* ─── LIGHTBOX ─── */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: none; align-items: center; justify-content: center; flex-direction: column; cursor: zoom-out; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; cursor: default; }
.lightbox-caption { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 20px; text-align: center; max-width: 600px; padding: 0 24px; font-family: var(--font-display); font-style: italic; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: rgba(255,255,255,0.5); font-size: 24px; cursor: pointer; background: none; border: none; z-index: 10000; width: 44px; height: 44px; transition: color 0.2s; }
.lightbox-close:hover { color: white; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); font-size: 32px; cursor: pointer; background: none; border: none; padding: 16px; transition: color 0.2s; }
.lightbox-nav:hover { color: white; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.3); font-size: 12px; letter-spacing: 2px; font-weight: 500; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-content { padding: 0 24px 60px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-content figure { margin: 32px 0; }
  .story-header { padding: 100px 24px 32px; }
  .site-header .inner { padding: 16px 24px; }
  .site-nav { gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .stats-row { gap: 32px; }
  .stat .number { font-size: 36px; }
  .site-footer { flex-direction: column; text-align: center; gap: 8px; }
  .content { padding: 48px 24px; }
}
@media (max-width: 480px) {
  .site-nav { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: 9px; letter-spacing: 1.5px; }
  .hero h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none; transition: none; }
  .gallery-item img, .dest-card img { transition: none; }
  @keyframes float { 0%,100% { transform: translateX(-50%); } }
}
