/* EmeyInCostaRica additions on top of the Where2NextCR kit. Uses kit tokens only. */
.eicr-badge-sm { width: 44px; height: 44px; display: block; }

.eicr-lockup { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 32px; border-radius: var(--radius-lg); background: rgba(243,237,227,.06); border: 1px solid rgba(243,237,227,.15); }
.eicr-lockup img { width: 220px; height: 220px; margin-bottom: 16px; }
.eicr-name { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 350; color: var(--on-deep); }
.eicr-tag { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 26px; color: var(--on-deep-muted); }

.eicr-optin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.eicr-list { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.eicr-list li { position: relative; padding-left: 28px; }
.eicr-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 6px; border-radius: 999px; background: var(--teal); }
.eicr-panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.eicr-panel .subheading { margin-bottom: 24px; }
.eicr-form { display: flex; flex-direction: column; gap: 16px; }
.eicr-form .w2n-field { max-width: none; }
.eicr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.eicr-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }

.eicr-about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }

.eicr-foot-brand { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 350; }

.eicr-thanks { max-width: 680px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eicr-thanks img { margin-bottom: 24px; }
.eicr-thanks .body-l { margin: 24px 0 0; }

@media (max-width: 720px) {
  .eicr-optin, .eicr-about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .eicr-panel { padding: 24px; }
  .eicr-lockup { padding: 32px 16px; }
  .eicr-lockup img { width: 150px; height: 150px; }
  .eicr-name { font-size: 30px; line-height: 36px; }
  .w2n-cta-actions .w2n-btn { width: 100%; justify-content: center; }
}

/* jungle concierge hero */
.hero-jungle { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 78% 8%, #2a5f52 0%, #163f38 38%, #0d2c27 70%, #08201c 100%); min-height: min(88vh, 860px); display: flex; align-items: center; }
.hero-jungle .jungle { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-light { position: absolute; z-index: -2; top: -20%; right: -10%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(234,177,71,.28), rgba(234,177,71,0)); filter: blur(10px); animation: sway 14s ease-in-out infinite alternate; }
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-jungle .wrap { position: relative; width: 100%; }
.hero-jungle .hero-copy { max-width: 600px; }
.hero-jungle .eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold); letter-spacing: .24em; }
.hero-jungle .eyebrow .rule { width: 40px; height: 1px; background: var(--gold); display: inline-block; }
.hero-jungle .display-xl { font-size: 76px; line-height: 80px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-jungle .display-xl em { color: var(--gold); font-style: italic; }
.hero-jungle .body-l { color: #e8e2d6; }
.hero-notes { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted); }
.hero-notes li { display: flex; align-items: center; gap: 10px; }
.hero-notes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero-jungle .eicr-lockup { background: rgba(8,32,28,.45); border-color: rgba(234,177,71,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
@keyframes sway { from { transform: translate(0,0); } to { transform: translate(-4%, 3%); } }
@media (prefers-reduced-motion: reduce) { .hero-light { animation: none; } }
@media (max-width: 900px) {
  .hero-jungle { min-height: 0; }
  .hero-jungle .display-xl { font-size: 46px; line-height: 50px; }
  .hero-jungle .jungle { inset: auto; top: -20px; right: -12%; width: 230%; height: auto; opacity: .9; }
  .hero-jungle .eicr-lockup { max-width: 320px; margin: 0 auto; }
}

/* photo hero: Emey's own Playas del Coco photos, slow crossfade */
.hero-jungle { background: #0d2c27; }
.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hero-slides .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroFade 28s infinite; transform: scale(1.06); }
.hero-slides .s1 { background-image: url("../img/hero/coco-sunset.jpg"); background-position: 50% 60%; animation-delay: 0s; }
.hero-slides .s2 { background-image: url("../img/hero/coco-palms.jpg"); background-position: 50% 40%; animation-delay: 7s; }
.hero-slides .s3 { background-image: url("../img/hero/coco-beach.jpg"); background-position: 50% 50%; animation-delay: 14s; }
.hero-slides .s4 { background-image: url("../img/hero/coco-golden.jpg"); background-position: 60% 50%; animation-delay: 21s; }
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.06); } 5% { opacity: 1; } 25% { opacity: 1; } 32% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8,32,28,.88) 0%, rgba(8,32,28,.62) 45%, rgba(8,32,28,.18) 80%, rgba(8,32,28,.10) 100%), linear-gradient(0deg, rgba(8,32,28,.55) 0%, rgba(8,32,28,0) 35%); }
@media (prefers-reduced-motion: reduce) { .hero-slides .slide { animation: none; } .hero-slides .s1 { opacity: 1; } }
@media (max-width: 900px) {
  .hero-slides .s1 { background-image: url("../img/hero/coco-sunset-m.jpg"); background-position: 50% 35%; }
  .hero-slides .s2 { background-image: url("../img/hero/coco-palms-m.jpg"); }
  .hero-slides .s3 { background-image: url("../img/hero/coco-beach-m.jpg"); background-position: 50% 30%; }
  .hero-slides .s4 { background-image: url("../img/hero/coco-golden-m.jpg"); background-position: 60% 45%; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,32,28,.55) 0%, rgba(8,32,28,.72) 45%, rgba(8,32,28,.9) 100%); }
}
/* let the photos breathe: compact seal instead of big panel */
.hero-jungle .wrap { grid-template-columns: minmax(0, 1fr); }
.hero-jungle .eicr-lockup { position: absolute; right: 32px; bottom: 32px; flex-direction: row; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 999px; background: rgba(8,32,28,.35); border: 1px solid rgba(243,237,227,.22); box-shadow: none; text-align: left; align-items: center; }
.hero-jungle .eicr-lockup img { width: 56px; height: 56px; margin: 0; }
.hero-jungle .eicr-lockup .eicr-name { margin: 0; font-size: 18px; line-height: 22px; }
.hero-jungle .eicr-lockup .eicr-tag { margin: 0; font-size: 13px; line-height: 18px; }
.hero-jungle .eicr-lockup > p { display: block; }
.hero-jungle .eicr-lockup { display: grid; grid-template-columns: 56px auto; column-gap: 14px; }
.hero-jungle .eicr-lockup img { grid-row: span 2; }
.hero-shade { background: linear-gradient(90deg, rgba(8,32,28,.82) 0%, rgba(8,32,28,.5) 42%, rgba(8,32,28,.08) 75%, rgba(8,32,28,0) 100%), linear-gradient(0deg, rgba(8,32,28,.45) 0%, rgba(8,32,28,0) 30%); }
@media (max-width: 900px) {
  .hero-jungle .eicr-lockup { position: static; margin: 40px 0 0; max-width: none; justify-self: start; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,32,28,.45) 0%, rgba(8,32,28,.65) 50%, rgba(8,32,28,.85) 100%); }
}
/* more life: slow push-in and drift on each photo */
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.18) translate(1.5%, 1%); } 6% { opacity: 1; } 26% { opacity: 1; } 33% { opacity: 0; transform: scale(1.02) translate(-1.5%, -1%); } 100% { opacity: 0; transform: scale(1.02); } }
.hero-slides .slide { will-change: transform, opacity; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; } .hero-copy > *:nth-child(3) { animation-delay: .24s; } .hero-copy > *:nth-child(4) { animation-delay: .36s; } .hero-copy > *:nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-copy > * { animation: none; } }

/* audit additions */
.eicr-consent { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.eicr-consent a { color: inherit; text-decoration: underline; }
.w2n-card.is-soon { opacity: .78; cursor: default; }
.foot-bottom a { text-decoration: underline; }
.legal { max-width: 760px; }
.legal h2 { margin: 48px 0 12px; }
.legal h3 { margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.2em; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 20px 0; margin: 32px 0 0; border-top: 1px solid rgba(0,0,0,.1); border-bottom: 1px solid rgba(0,0,0,.1); list-style: none; padding-left: 0; font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,.1); }
@media (max-width: 640px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.1); } }

/* header wordmark */
.eicr-wordmark { font-family: var(--font-display); font-size: 22px; line-height: 1; font-weight: 400; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.eicr-wordmark em { font-style: italic; color: var(--teal); }
@media (max-width: 380px) { .eicr-wordmark { font-size: 19px; } }

/* journal card photos */
.w2n-card-media { overflow: hidden; border-radius: inherit; }
.w2n-card-media img.w2n-media { transition: transform .5s ease; }
.w2n-card.is-link:hover .w2n-card-media img.w2n-media { transform: scale(1.03); }

/* article photos */
.article-hero { margin: 0 0 8px; }
.article-hero img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px; display: block; background: var(--surface-tint); }
.article-fig { margin: 40px 0; }
.article-fig img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-tint); }
.article-hero figcaption, .article-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 720px) { .article-hero img { aspect-ratio: 4 / 3; } }

/* at a glance */
.facts { background: var(--surface-tint); border-radius: 12px; padding: 24px 28px; margin: 0 0 40px; }
.facts ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }

/* checklist + steps */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps-list li { margin-bottom: 12px; }

/* cost table */
.table-wrap { overflow-x: auto; margin: 16px 0; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cost-table th, .cost-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.cost-table th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.cost-table td:first-child { font-weight: 500; width: 40%; }

/* country tip boxes */
.tip { border-radius: 14px; padding: 22px 24px; margin: 28px 0; border: 1px solid; border-left-width: 6px; }
.tip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tip .flag { width: 38px; height: 20px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.tip-title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 500; }
.tip ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.tip li { font-size: 16px; line-height: 1.6; }
.tip-us { background: rgba(60,59,110,.07); border-color: rgba(60,59,110,.28); border-left-color: #3c3b6e; }
.tip-us .tip-title { color: #3c3b6e; }
.tip-ca { background: rgba(213,43,30,.06); border-color: rgba(213,43,30,.25); border-left-color: #d52b1e; }
.tip-ca .tip-title { color: #b3261b; }
@media (prefers-color-scheme: dark) {
  .tip-us { background: rgba(140,150,230,.10); border-left-color: #8c96e6; } .tip-us .tip-title { color: #b9c0f5; }
  .tip-ca { background: rgba(240,110,100,.10); border-left-color: #f06e64; } .tip-ca .tip-title { color: #f6a49d; }
}
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Harmony page */
.hh-hero { position: relative; isolation: isolate; min-height: min(78vh, 720px); display: flex; align-items: flex-end; background-size: cover; background-position: center; color: var(--on-deep, #f3ede3); padding: 120px 0 72px; }
.hh-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,32,28,.15) 0%, rgba(8,32,28,.55) 50%, rgba(8,32,28,.9) 100%); }
.hh-hero-copy { max-width: 760px; }
.hh-hero .eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold); letter-spacing: .24em; }
.hh-hero .eyebrow .rule { width: 40px; height: 1px; background: var(--gold); display: inline-block; }
.hh-hero h1 { color: #fff; margin: 12px 0 0; }
.hh-hero .body-l { color: #e8e2d6; margin: 20px 0 0; }
.hh-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.hh-facts .num { font-family: var(--font-display); font-size: 40px; line-height: 1.1; color: var(--teal); display: block; }
.hh-facts p { margin: 6px 0 0; color: var(--ink-muted); }
.hh-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.model { margin: 0; }
.model img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-tint); }
.model figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 16px; }
.model figcaption span { color: var(--ink-muted); font-size: 14px; }
.hh-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.hh-map { margin: 0; }
.hh-map img { width: 100%; height: auto; border-radius: 12px; display: block; }
.hh-map figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.hh-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hh-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-tint); }
@media (max-width: 720px) { .hh-gallery { grid-template-columns: repeat(2, 1fr); } .hh-hero { padding-top: 96px; } }
.hh-tv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 24px 28px; border-radius: 14px; background: var(--surface-deep, #0d2c27); color: var(--on-deep, #f3ede3); text-decoration: none; }
.hh-tv .eyebrow { color: var(--gold); }
.hh-tv-title { font-family: var(--font-display); font-size: 24px; flex: 1 1 auto; }

/* floating WhatsApp button */
.wa-fab { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; background: var(--teal); color: #fff; font: 600 15px/1 var(--font-sans); text-decoration: none; box-shadow: 0 10px 28px rgba(8,32,28,.28), 0 0 0 3px rgba(234,177,71,.85); transition: transform .2s ease, box-shadow .2s ease; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(8,32,28,.34), 0 0 0 3px var(--gold); }
.wa-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 720px) { .wa-fab { padding: 14px; } .wa-fab span { display: none; } }
@media print { .wa-fab { display: none; } }
