/* Mobile tab dropdown styling (accent pill, chevron) */
.tab-select{
  font-size:.875rem;
  border-radius:9999px;
  border:1px solid var(--accent);
  color:#fff;
  background-color:var(--accent);
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:.5rem 2.25rem .5rem .9rem; /* room for chevron */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .75rem center; background-size:12px 12px;
}
.tab-select:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(111,156,118,0.30); }
.tab-select option{ color:#0f172a; background:#fff; }
/* ===================== THEME TOKENS & GLOBAL STYLES ===================== */
:root {
  --accent: #6f9c76;
  /* Header/footer glass (bars) */
  --glass: 0.80;        /* opacity (0..1) */
  --glass-blur: 10px;   /* blur radius */
  /* Cards (content) glass — adjust these to change the transparency of the cards/site blocks */
  --card-glass: 0.80;   /* opacity (0..1) */
  --card-blur: 10px;    /* blur radius */
  /* Hero background darkness (site-wide) */
  --hero-scrim: 0.5;   /* 0..1, higher = darker hero */
  /* Color used to fill edges when an image uses `contain` (no blur) */
  --letterbox: #0b0b0b; /* tweak to #000, #111, etc. */
  --bottom-safe: env(safe-area-inset-bottom, 0px);
}

body { padding-bottom: var(--bottom-safe); }
.accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.ring-accent { --tw-ring-color: var(--accent); }
.heading-md {
  font-size: 1.5rem; /* text-2xl */
  line-height: 2rem;
  font-weight: 600;
}
.hero-subtitle {
  margin-top: .75rem;
  color: rgba(255,255,255,0.9);
}
.hero-text {
  margin-top: .5rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}
.copy-sm {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.6;
  color: #334155;
}
.faq-summary {
  cursor: pointer;
  font-weight: 500;
  color: #0f172a;
}
.bullet-list {
  margin-top: .5rem;
  list-style: disc inside;
  padding-left: 0;
}
.bullet-list > li + li { margin-top: .5rem; }
.bullet-list-tight > li + li { margin-top: .25rem; }
.text-soft-white { color: rgba(255,255,255,0.9); }
.section { padding-block: 3rem; }
.section-lg { padding-block: 5rem; }
.card {
  border-radius: 1rem;
  background: rgba(255,255,255,var(--card-glass, var(--glass)));
  -webkit-backdrop-filter: blur(var(--card-blur, var(--glass-blur)));
  backdrop-filter: blur(var(--card-blur, var(--glass-blur)));
  box-shadow: 0 20px 45px rgba(15,23,42,.08);
  padding: 1.5rem;
}
.card-tight { padding: 1rem; }
.card-lg { padding: 2.5rem; }
.card-inline {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border: 1px solid rgba(148,163,184,.3);
  box-shadow: none;
  padding: .75rem 1rem;
}
fieldset.card {
  border: 1px solid rgba(148,163,184,.3);
}
fieldset.card legend { padding: 0 .25rem; }
.meta-label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}
.meta-value { font-size: .9rem; color: #1f2937; }

.form-label { display:block; font-size:.875rem; color:#334155; }
.form-control {
  width: 100%;
  border-radius: .75rem;
  border: 1px solid rgba(148,163,184,.6);
  padding: .55rem .75rem;
  background: rgba(255,255,255,0.9);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111,156,118,0.25);
}
.form-control[disabled] { opacity: .5; cursor: not-allowed; }

.btn { border-radius: .75rem; padding: .5rem 1.25rem; font-weight: 500; transition: opacity .15s ease, transform .15s ease; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid rgba(148,163,184,.6); }

.shell {
  width: 100%;
  max-width: 64rem; /* matches Tailwind max-w-5xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
/* Design helpers */
.debug * { outline: 1px dashed rgba(100,100,200,.25); }
/* Tabs */
.tab-active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.tab-btn { padding: .5rem .25rem; border-bottom: 2px solid transparent; }
.lang-select{
  margin-left:.75rem;
  font-size:.875rem;
  border-radius:9999px;
  border:1px solid var(--accent);
  color:#fff;
  background-color:var(--accent);
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:.5rem 2.25rem .5rem .9rem; /* room for chevron */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .75rem center; background-size:12px 12px;
}
.lang-select:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(111,156,118,0.30); }
.lang-select option{ color:#0f172a; background:#fff; }
.alert {
  border-radius: .75rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: .75rem 1rem;
  color: #1f2937;
}
/* Photo grid helper */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.photo-grid img {
  width: 100%;
  height: 16rem; /* ~h-64 */
  object-fit: cover;
  border-radius: 1rem; /* ~rounded-2xl */
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
@media (min-width: 768px){
  .photo-grid img { height: 20rem; } /* ~h-80 for larger screens */
}
/* Parallax backgrounds */
.parallax {
  background-size: cover;
  background-position: var(--focus-x,50%) calc(var(--focus-y,50%) + var(--header-safe, 0px));
  background-repeat: no-repeat;
}
@media (min-width: 768px){
  .parallax { background-attachment: fixed; }
}
.overlay {
  /* The site-wide scrim comes from .tab-bg::after, so keep hero overlays transparent */
  background: transparent;
}
/* Uniform hero sizing & centering across tabs */
.tab-hero { 
  position: relative; 
  min-height: 100dvh;
  height: 100dvh; /* ensure full visible height */
  padding-bottom: calc(4rem + var(--bottom-safe)); 
}

/* Make overlay fill the hero so .shell can space-between top/bottom */
.tab-hero > .overlay{
  min-height: inherit; /* inherit 90vh from .tab-hero */
  width: 100%;
  display: flex; /* allow .shell to stretch */
}
.tab-hero > .overlay > .shell{
  position: relative; /* anchor absolute children like .scroll-cue */
  flex: 1; /* fill the available height */
}
.tab-hero .overlay > .shell {
  min-height: inherit;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; /* top + bottom groups */
  padding-top: 2rem; padding-bottom: 2.5rem; /* breathing room around edges */
}

.hero-top { display:flex; flex-direction:column; align-items:center; gap:.5rem; }
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: auto; /* push content to bottom */
  margin-bottom: 7rem; /* keep clear of the 54px arrow circle */
}
@media (min-width: 640px){
  .hero-bottom{ gap: .65rem; margin-bottom: 8rem; }
}
/* Scroll cue (down arrow) */
/* Floating animation for scroll cue: only vertical movement, pure Y */
@keyframes cueFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -12px); } /* pure vertical lift */
}
/* Apply both fading and floating together */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(80px, 10vh, 140px));
  transform: translate(-50%, 0); /* center horizontally, baseline Y */
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  cursor: pointer;
  user-select: none;
  animation:
    cueFade 2.4s ease-in-out infinite,
    cueFloat 2.4s ease-in-out infinite;
  z-index: 5; /* ensure above hero content */
}
.scroll-cue:hover { background: rgba(255,255,255,0.24); }
.scroll-cue .chev {
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  margin: 0;
}
@keyframes cueFade { 0%, 100% { opacity: .7 } 50% { opacity: 1 } }
/* Pill tabs */
.pill-tabs { background: rgba(15,23,42,.04); padding: .25rem; border-radius: 9999px; }
.pill-tabs .tab-btn { padding: .5rem .9rem; border-radius: 9999px; border: 1px solid transparent; transition: transform .15s ease; }
.pill-tabs .tab-btn:hover { transform: translateY(-1px); }
.pill-tabs .tab-active { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Map logo treatment */
.logo-map { width: 3.5rem; height: 3.5rem; display: inline-block; border-radius: 9999px; background: #fff; padding: .5rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.logo-row { display:flex; justify-content:center; gap:1rem; align-items:center; }
.logo-caption { font-weight: 600; font-size: .9rem; color: #fff; opacity: .95; }
/* World map panel with highlight pins */
.map-panel { position: relative; height: 60vh; min-height: 420px; border-radius: 1rem; overflow: hidden; }
.map-panel .bg { position: absolute; inset: 0; background: center / cover no-repeat; filter: saturate(0.9) contrast(1.05); }
.map-panel .bg.bg-contain {
  /* Fit to the panel height by default; code can override via --map-zoom */
  background-size: var(--map-zoom, auto 100%);
  background-position: var(--map-pos-x, 50%) var(--map-pos-y, 50%);
  background-repeat: no-repeat;
}
.map-panel .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.2)); }
.map-panel .pins { position: relative; z-index: 1; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); --pin-size: 14px; --label-offset-x: 0px; --label-offset-y: calc(var(--pin-size) + 8px); }
.pin .dot { width: var(--pin-size); height: var(--pin-size); border-radius: 9999px; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 8px 18px rgba(0,0,0,.25); }
.pin .pulse { position:absolute; inset: calc(var(--pin-size) * -0.7); border-radius:9999px; border:2px solid var(--accent); opacity:.6; animation: pulse 2s infinite; }
@keyframes pulse { 0%{ transform: scale(0.5); opacity:.7 } 70%{ transform: scale(1.4); opacity:0 } 100%{ opacity:0 } }
.pin .label {
  position: absolute;
  left: calc(50% + var(--label-offset-x));
  top: calc(50% + var(--label-offset-y));
  transform: translate(-50%, -50%);
  font-size: .8rem;
  white-space: nowrap;
  padding: .25rem .5rem;
  border-radius: .5rem;
  background: #ffffff; /* solid white background */
  color: #334155; /* same as before */
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.pin:hover { cursor: pointer; }
/* Fixed tab backgrounds (hero-like for each tab) */
.tab-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image: var(--bg-url);
  background-repeat: no-repeat;
  /* Use var(--bg-size) to allow percentage control; defaults to cover */
  background-size: var(--bg-size, cover);
  /* Use per-layer focus vars to prevent visible layer from jumping during fade */
  background-position: var(--bg-x, 50%) calc(var(--bg-y, 50%) + var(--header-safe, 0px));
  background-color: var(--letterbox); /* seen at the edges when zooming out */
  display: none;
  opacity: 0;
  transition: opacity .8s ease;
}
/* Blurred underlay to fill edges when using contain */
.tab-bg::before { content: ""; position: absolute; inset: -2%; background-image: var(--bg-url); background-repeat: no-repeat; background-size: cover; background-position: inherit; filter: blur(14px) saturate(1.05); transform: scale(1.04); opacity: var(--bg-letterbox, 0); }
.tab-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,var(--hero-scrim)), rgba(0,0,0,var(--hero-scrim))); }
/* Reusable glass surface for content blocks */
.glass {
  background: rgba(255,255,255,var(--glass));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
/* Unified top/bottom bars (exact same look) */
.bar {
  background-color: rgba(255,255,255,var(--glass));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
a.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
a[data-tab-target] {
  cursor: pointer;
}
a.link:hover {
  text-decoration: none;
  opacity: 0.85;
}
/* Ensure form selects and inputs render above backgrounds */
select, input, textarea { position: relative; z-index: 1; }
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce){
  .pill-tabs .tab-btn:hover { transform:none }
  .scroll-cue { animation: none; }
  .scroll-cue .chev { animation: none; }
}
.grid-layout {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 1024px){
  .grid-layout {
    grid-template-columns: 2fr 4fr 2fr;
  }
}
.card-hero { padding: 1rem 1.5rem; }
.form-control-short { width: 11rem; }
.form-control-mini { width: 6.25rem; }
.form-grid { display: grid; gap: 1.5rem; }
.footer {
  padding: 2rem 0;
  font-size: .875rem;
  color: #64748b;
  text-align: center;
  padding-bottom: calc(2rem + var(--bottom-safe));
}
.grid-duo { display: grid; gap: 1rem; }
@media (min-width: 640px){
  .grid-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid-duo-lg { display: grid; gap: 1.5rem; }
@media (min-width: 768px){
  .grid-duo-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Make logo maps feel clickable (subtle pulse like map pins) */
.logo-click{ position: relative; cursor: pointer; }
.logo-click::before{
  content:""; position:absolute; inset:-2px; border-radius:9999px; pointer-events:none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 0 6px rgba(111,156,118,.22);
}
.logo-click::after{
  content:""; position:absolute; inset:-6px; border-radius:9999px; pointer-events:none;
  border:2px solid var(--accent); opacity:.45; animation: pulse 2s infinite;
}
@media (prefers-reduced-motion: reduce){ .logo-click::after{ animation:none; opacity:.3; } }