/* ==========================================================================
   Components
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem; line-height: 1.1;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap; text-decoration: none; position: relative;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); background: var(--primary-600); }
.btn:active { transform: translateY(0); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: #1b1203; } .btn-accent:hover { background: var(--accent-600); color: #1b1203; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--primary); --btn-bd: var(--primary); } .btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border-strong); } .btn-ghost:hover { background: var(--surface-2); color: var(--text); box-shadow: none; }
.btn-light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); backdrop-filter: blur(6px); } .btn-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { --btn-bg: #1faa59; --btn-fg: #fff; } .btn-whatsapp:hover { background: #178f49; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; } .btn-lg { padding: 1rem 2rem; font-size: 1.02rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: all var(--t-fast); box-shadow: var(--shadow-xs); }
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.icon-btn.sm { width: 34px; height: 34px; font-size: .9rem; }

/* ---------- Chips, badges, rating ---------- */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--border); font-size: .88rem; font-weight: 500; color: var(--text); transition: all var(--t-fast); cursor: pointer; user-select: none; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active, .chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary-700); }
:root[data-theme="dark"] .badge { color: var(--primary); }
.badge-accent { background: var(--accent-soft); color: var(--accent-600); }
.badge-dark { background: rgba(10, 35, 40, .72); color: #fff; backdrop-filter: blur(6px); }
.badge-tn { background: #fde4d3; color: #a8420c; } .badge-kl { background: #d4f1ec; color: #0b6558; }
:root[data-theme="dark"] .badge-tn { background: rgba(232,110,50,.18); color: #ffa06d; }
:root[data-theme="dark"] .badge-kl { background: rgba(44,199,176,.16); color: #5fe0cc; }
.rating { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: .95rem; }
.stars .off { color: var(--border-strong); }

/* ---------- Art (generated SVG scenes) ---------- */
.art { position: relative; overflow: hidden; background: var(--surface-3); isolation: isolate; }
.art > svg, .art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art > img { z-index: 1; }
.art-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,20,25,0) 40%, rgba(5,20,25,.78) 100%); z-index: 2; pointer-events: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 4 / 3; }
.card-media .art-inner { transition: transform .9s var(--ease); }
.card:hover .art svg, .card:hover .art > img { transform: scale(1.06); }
.art svg, .art > img { transition: transform 1s var(--ease); }
.card-body { padding: 1.15rem 1.25rem 1.35rem; }
.card-title { font-size: 1.2rem; margin: 0 0 .3rem; }
.card-title a { color: inherit; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; color: var(--muted); font-size: .85rem; }
.card-text { color: var(--muted); font-size: .93rem; margin: .55rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--border); }
.card .media-top { position: absolute; top: .8rem; left: .8rem; right: .8rem; display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; pointer-events: none; }
.card .media-top > * { pointer-events: auto; }
.card .media-bottom { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 3; color: #fff; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--text); } .price small { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.fav-btn { position: relative; z-index: 4; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #444; box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease), color var(--t-fast); font-size: 1.05rem; }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.on { color: var(--rose); }
.fav-btn.on svg path { fill: currentColor; }
.cmp-btn { position: relative; z-index: 4; }

/* Card list layout (destinations list view) */
.cards-list { grid-template-columns: 1fr !important; }
.cards-list .card { display: grid; grid-template-columns: 280px 1fr; }
.cards-list .card-media { aspect-ratio: auto; min-height: 190px; }

/* ---------- Header / navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: var(--z-header); display: flex; align-items: center; transition: background var(--t), box-shadow var(--t), height var(--t), transform var(--t); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.site-header.is-top { background: linear-gradient(180deg, rgba(5,20,25,.55), rgba(5,20,25,0)); color: #fff; }
.site-header.is-solid { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--border), var(--shadow-sm); color: var(--text); }
.site-header.is-top .nav a, .site-header.is-top .brand, .site-header.is-top .icon-btn { color: #fff; }
.site-header.is-top .icon-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.site-header.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { color: inherit; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient-brand); font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: -3px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { position: relative; padding: .55rem .9rem; color: var(--text); font-weight: 500; font-size: .94rem; border-radius: var(--radius-pill); transition: all var(--t-fast); }
.nav a:hover { background: rgba(14,124,107,.1); color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); transform: translateX(-50%); }
.site-header.is-top .nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.site-header.is-top .nav a.active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.burger { display: none; }
.drawer { position: fixed; inset: 0; z-index: calc(var(--z-header) + 5); visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(5, 20, 25, .6); opacity: 0; transition: opacity var(--t); backdrop-filter: blur(3px); }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--surface); padding: 1.25rem; transform: translateX(100%); transition: transform var(--t) var(--ease); overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; }
.drawer.open .panel { transform: none; }
.drawer .panel a.link { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.drawer .panel a.link:hover, .drawer .panel a.link.active { background: var(--primary-soft); color: var(--primary); }
.drawer .panel .btn { margin-top: 1rem; }

@media (max-width: 1080px) {
  .nav { display: none; } .burger { display: inline-grid; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,234,.8); padding: 4.5rem 0 1.5rem; position: relative; overflow: hidden; }
.site-footer a { color: rgba(246,242,234,.8); } .site-footer a:hover { color: var(--accent); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer-grid ul { list-style: none; display: grid; gap: .55rem; font-size: .93rem; }
.footer-brand .brand { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: rgba(246,242,234,.6); }
.social { display: flex; gap: .55rem; margin-top: 1.2rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: .8rem; font-weight: 700; }
.social a:hover { background: var(--accent); color: #1b1203; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label, .label { font-size: .84rem; font-weight: 600; color: var(--text); }
.input, .select, .textarea { width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.textarea { min-height: 120px; resize: vertical; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; min-height: 0; display: none; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
input[type="range"] { accent-color: var(--primary); width: 100%; }
.stepper-input { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); overflow: hidden; background: var(--surface); }
.stepper-input button { width: 38px; height: 38px; font-size: 1.15rem; color: var(--primary); } .stepper-input button:hover { background: var(--primary-soft); }
.stepper-input output { min-width: 34px; text-align: center; font-weight: 700; }

/* ---------- Tabs / accordion ---------- */
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: .8rem 1.2rem; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--primary); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.tab-panel[hidden] { display: none; }
.tabs-pill { border: 0; gap: .5rem; }
.tabs-pill .tab { border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--surface); padding: .55rem 1.2rem; }
.tabs-pill .tab[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs-pill .tab[aria-selected="true"]::after { display: none; }
.accordion { display: grid; gap: .75rem; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t); }
.acc-item.open { box-shadow: var(--shadow); border-color: var(--primary); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; text-align: left; font-weight: 600; font-size: 1.02rem; }
.acc-head .chev { transition: transform var(--t) var(--ease); color: var(--primary); flex: none; }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; } .acc-body .inner { padding: 0 1.35rem 1.3rem; color: var(--muted); }

/* ---------- Modal / toast / lightbox ---------- */
.modal-root { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-root.open { display: flex; }
.modal-root .scrim { position: absolute; inset: 0; background: rgba(5,20,25,.65); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.modal { position: relative; width: min(100%, 560px); max-height: calc(100dvh - 2rem); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
.modal.wide { width: min(100%, 960px); } .modal.xl { width: min(100%, 1100px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem .4rem; }
.modal-head h3 { margin: 0; font-size: 1.45rem; }
.modal-body { padding: .6rem 1.5rem 1.6rem; }
.modal-close { position: absolute; top: .9rem; right: .9rem; z-index: 3; }
.modal-split { display: grid; grid-template-columns: 1fr 1.15fr; }
.modal-split .side { position: relative; min-height: 100%; color: #fff; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 760px) { .modal-split { grid-template-columns: 1fr; } .modal-split .side { display: none; } }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.toast-root { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: .6rem; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease); font-size: .92rem; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast .ico { font-size: 1.2rem; } .toast.success { border-left: 4px solid #22c55e; } .toast.error { border-left: 4px solid #ef4444; } .toast.info { border-left: 4px solid var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } } @keyframes toastOut { to { opacity: 0; transform: translateY(14px); } }
.lightbox { position: fixed; inset: 0; z-index: calc(var(--z-modal) + 5); background: rgba(3, 12, 15, .94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.lightbox.open { display: flex; animation: fade .25s; }
.lightbox .stage { width: min(94vw, 1100px); aspect-ratio: 16 / 10; max-height: 74vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox .cap { color: #fff; text-align: center; margin-top: 1rem; max-width: 760px; } .lightbox .cap small { color: rgba(255,255,255,.65); display: block; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; display: grid; place-items: center; transition: background var(--t-fast); }
.lightbox .nav-btn:hover { background: rgba(255,255,255,.3); } .lightbox .prev { left: 1rem; } .lightbox .next { right: 1rem; }
.lightbox .x { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; }

/* ---------- Command palette (global search) ---------- */
.cmdk { position: fixed; inset: 0; z-index: calc(var(--z-modal) + 10); display: none; align-items: flex-start; justify-content: center; padding: 10vh 1rem 1rem; }
.cmdk.open { display: flex; }
.cmdk .scrim { position: absolute; inset: 0; background: rgba(5,20,25,.6); backdrop-filter: blur(5px); }
.cmdk .box { position: relative; width: min(100%, 640px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .3s var(--ease); }
.cmdk .search { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.cmdk .search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1.1rem; }
.cmdk kbd { font-family: inherit; font-size: .7rem; border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 6px; color: var(--muted); }
.cmdk .results { max-height: 52vh; overflow: auto; padding: .5rem; }
.cmdk .group { padding: .6rem .8rem .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmdk .res { display: flex; align-items: center; gap: .9rem; padding: .65rem .8rem; border-radius: var(--radius-sm); color: var(--text); }
.cmdk .res.sel, .cmdk .res:hover { background: var(--primary-soft); color: var(--text); }
.cmdk .res .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.cmdk .res small { display: block; color: var(--muted); } .cmdk .empty { padding: 2rem; text-align: center; color: var(--muted); }

/* ---------- Floating UI ---------- */
.float-stack { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: var(--z-float); display: grid; gap: .7rem; justify-items: end; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff; font-size: 1.5rem; transition: transform var(--t-fast) var(--ease); }
.fab:hover { transform: scale(1.1); color: #fff; }
.fab.wa { background: #1faa59; } .fab.top { background: var(--surface); color: var(--text); border: 1px solid var(--border); width: 46px; height: 46px; font-size: 1.1rem; opacity: 0; transform: translateY(10px); pointer-events: none; }
.fab.top.show { opacity: 1; transform: none; pointer-events: auto; }
.fab.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; animation: ping 2.4s infinite; }
.fab.wa { position: relative; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gradient-warm); z-index: calc(var(--z-header) + 10); }

/* ---------- Breadcrumb, page hero ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.8); list-style: none; margin-bottom: 1rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; } .breadcrumb a { color: rgba(255,255,255,.9); } .breadcrumb a:hover { color: var(--accent); }
.page-hero { position: relative; color: #fff; padding: calc(var(--header-h) + 4rem) 0 4rem; overflow: hidden; background: var(--ink); isolation: isolate; }
.page-hero .art { position: absolute; inset: 0; z-index: -1; } .page-hero .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,20,25,.55), rgba(5,20,25,.55) 60%, rgba(5,20,25,.8)); z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .6rem; } .page-hero p { max-width: 640px; font-size: 1.12rem; color: rgba(255,255,255,.86); margin-bottom: 0; }

/* ---------- Misc UI ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); border: 2px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state .big { font-size: 3rem; margin-bottom: .5rem; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface-2); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .92rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: .92rem; }
.list-check { list-style: none; display: grid; gap: .6rem; } .list-check li { display: flex; gap: .7rem; align-items: flex-start; } .list-check li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: .78rem; font-weight: 800; margin-top: 2px; }
.list-check.x li::before { content: "✕"; background: #fee2e2; color: var(--danger); }
.divider-wave { height: 70px; background: var(--bg); mask: radial-gradient(60px at 50% 100%, #0000 98%, #000) 50% / 120px 100%; -webkit-mask: radial-gradient(60px at 50% 100%, #0000 98%, #000) 50% / 120px 100%; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 330px); gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: none; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; } .carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: .6rem; }

/* ---------- Compare tray ---------- */
.compare-tray { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 140%); z-index: var(--z-float); background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: .8rem 1rem .8rem 1.3rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-lg); transition: transform var(--t) var(--ease); width: max-content; max-width: 94vw; }
.compare-tray { visibility: hidden; } .compare-tray.show { transform: translate(-50%, 0); visibility: visible; }
.compare-tray .slot { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.1); padding: .3rem .4rem .3rem .8rem; border-radius: var(--radius-pill); font-size: .82rem; }
.compare-tray .slot button { color: #fff; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); }

/* ---------- Map ---------- */
.tg-map-wrap { position: relative; --map-sea-a: #cfe9ee; --map-sea-b: #a9d4de; --map-dot: #ffffff; }
:root[data-theme="dark"] .tg-map-wrap { --map-sea-a: #12303a; --map-sea-b: #0c222b; --map-dot: #1d4552; }
.tg-map { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: var(--shadow); }
.tg-map .land { stroke-width: 1.6; stroke-linejoin: round; transition: fill var(--t); }
.tg-map .land-tn { fill: #f4dcb8; stroke: #c68a4a; } .tg-map .land-kl { fill: #bfe3cf; stroke: #3f9674; }
:root[data-theme="dark"] .tg-map .land-tn { fill: #4a3a26; stroke: #a8743a; } :root[data-theme="dark"] .tg-map .land-kl { fill: #1f4a3d; stroke: #2fa586; }
.tg-map .ghats { fill: none; stroke: rgba(40, 90, 60, .55); stroke-width: 3; stroke-dasharray: 1 7; stroke-linecap: round; }
.tg-map .sea-label { font: italic 600 11px var(--font-body); fill: #5a8793; opacity: .8; letter-spacing: .1em; }
.tg-map .state-label { font: 700 12px var(--font-body); letter-spacing: .3em; opacity: .38; } .tg-map .state-label.kl { fill: #0b6558; } .tg-map .state-label.tn { fill: #a8420c; }
:root[data-theme="dark"] .tg-map .state-label.kl { fill: #5fe0cc; } :root[data-theme="dark"] .tg-map .state-label.tn { fill: #ffa06d; }
.tg-map .route { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 7 7; stroke-linecap: round; stroke-linejoin: round; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.tg-map .marker { cursor: pointer; outline: none; transition: opacity var(--t); }
.tg-map .marker .dot { stroke: #fff; stroke-width: 2; transition: r var(--t-fast); } .tg-map .marker.kl .dot { fill: #0e7c6b; } .tg-map .marker.tn .dot { fill: #d9541e; }
.tg-map .marker .pulse { fill: currentColor; opacity: 0; } .tg-map .marker.kl .pulse { fill: #0e7c6b; } .tg-map .marker.tn .pulse { fill: #d9541e; }
.tg-map .marker:hover .dot, .tg-map .marker:focus .dot, .tg-map .marker.sel .dot { r: 8; }
.tg-map .marker.sel .pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { r: 7; opacity: .55; } 100% { r: 22; opacity: 0; } }
.tg-map .marker .lbl { font: 600 9.5px var(--font-body); fill: #24323a; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
:root[data-theme="dark"] .tg-map .marker .lbl { fill: #e9eff1; stroke: rgba(10,25,30,.85); }
.tg-map .marker .num { font: 700 8px var(--font-body); fill: #fff; pointer-events: none; }
.tg-map .marker.dim { opacity: .18; }
.map-tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: #fff; padding: .55rem .8rem; border-radius: 10px; font-size: .8rem; line-height: 1.3; pointer-events: none; z-index: 5; width: max-content; max-width: 190px; box-shadow: var(--shadow-lg); }
.map-tip strong { display: block; font-size: .88rem; } .map-tip span { opacity: .8; }
.map-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); }

/* ---------- Additional components ---------- */
.nav-more { position: relative; } .more-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .9rem; font-weight: 500; font-size: .94rem; color: var(--text); border-radius: var(--radius-pill); } .more-btn:hover, .more-btn.active { color: var(--primary); background: rgba(14,124,107,.1); }
.site-header.is-top .more-btn { color: #fff; } .site-header.is-top .more-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.more-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; display: none; animation: pop .2s var(--ease); }
.nav-more.open .more-menu { display: block; } .more-menu a { display: flex !important; gap: .7rem; align-items: center; padding: .65rem .9rem !important; border-radius: var(--radius-sm); color: var(--text) !important; width: 100%; } .more-menu a:hover { background: var(--primary-soft) !important; color: var(--primary) !important; } .more-menu a.active::after { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.badge-count-inline { background: var(--rose); color: #fff; border-radius: 9px; padding: 0 7px; font-size: .72rem; margin-left: auto; }
.newsletter { display: flex; gap: .5rem; } .newsletter input { flex: 1; min-width: 0; padding: .7rem 1rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; } .newsletter input::placeholder { color: rgba(255,255,255,.55); } .newsletter input:focus { outline: 2px solid var(--accent); }
.months-bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; } .months-bar span { text-align: center; font-size: .68rem; font-weight: 600; padding: .35rem 0; border-radius: 6px; background: var(--surface-3); color: var(--muted); } .months-bar span.on { background: var(--primary); color: #fff; } .months-bar.compact span { font-size: .6rem; padding: .2rem 0; }
.testi { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; gap: 1rem; } .testi blockquote { margin: 0; font-size: 1.08rem; line-height: 1.7; font-family: var(--font-display); flex: 1; } .testi figcaption { display: flex; align-items: center; gap: .9rem; } .testi small { display: block; color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.stars-lg .stars { font-size: 1.15rem; }
.pill-nav { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; } .pill-nav::-webkit-scrollbar { display: none; }
.meter { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; } .meter > i { display: block; height: 100%; background: var(--gradient-brand); border-radius: 8px; }
@media print { .site-header, .site-footer, .float-stack, .compare-tray, .no-print, .drawer, .toast-root { display: none !important; } body { background: #fff; } .reveal { opacity: 1 !important; transform: none !important; } .card { box-shadow: none; break-inside: avoid; } }

/* inline icons sit on the text baseline */
svg[width="1em"] { display: inline-block; vertical-align: -.15em; flex: none; }

/* keep media controls (save heart) above the stretched card link */
.card .card-media { position: relative; z-index: 2; }
.side-art svg { width: 100%; height: 100%; display: block; }

/* compact header on small phones */
.brand { white-space: nowrap; }
@media (max-width: 560px) {
  .brand small { display: none; }
  .brand { font-size: 1.12rem; gap: .5rem; }
  .brand .logo { width: 34px; height: 34px; }
  .site-header .header-actions { gap: .3rem; }
  .site-header .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 380px) { .site-header .header-actions > [data-open-search] { display: none; } }
