/* ==========================================================================
   RuggedRides Export — Destinations module (listing + detail)
   Isolated from app.css/calculator.css on purpose — loaded only when
   tpl is 'destinations' or 'destination', per the standing
   CSS-collision-avoidance convention.
   ========================================================================== */

/* hero stat strip (listing page) — same visual language as the calculator hero */
.calc-hero-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.22); }
.chs-item { display: flex; flex-direction: column; }
.chs-num { font-family: var(--font-head); font-size: 26px; color: #fff; line-height: 1.1; }
.chs-label { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--sand); margin-top: 4px; opacity: .9; }

/* shipping & clearance benchmarks (detail page) */
.ship-bench { margin: 20px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ship-bench h4 { margin: 0 0 10px; font-family: var(--font-head); font-size: 15px; color: var(--graphite); }
.ship-bench .data-table { margin: 0; }
.ship-bench-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* document checklist (detail page) */
.doc-checklist { margin: 20px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-checklist h4 { margin: 0 0 10px; font-family: var(--font-head); font-size: 15px; color: var(--graphite); }
.doc-checklist ul { margin: 0; padding-left: 20px; }
.doc-checklist li { margin: 4px 0; font-size: 13.5px; color: var(--graphite); }

/* worked landed-cost example (detail page) */
.landed-example { margin: 20px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.landed-example h4 { margin: 0 0 10px; font-family: var(--font-head); font-size: 15px; color: var(--graphite); }

/* proportion bars behind each cost-table row label (duplicated from calculator.css) */
.cost-table td:first-child { position: relative; z-index: 0; }
.cost-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(193,80,31,0.14), rgba(193,80,31,0.05)); z-index: -1; border-radius: 3px; }
.cost-total { background: linear-gradient(90deg, #fbf3ec, transparent); }
.cost-total td { padding-top: 14px; padding-bottom: 14px; font-size: 19px; }
.cost-unknown { color: var(--ink-soft); font-style: italic; font-size: 13px; text-align: center !important; padding: 12px !important; }
.notice-unverified { border-left-color: var(--olive); background: #eef1f4; color: var(--olive-dark); }

/* unverified-market "what we confirm" block (detail page) */
.unverified-steps ol { margin: 8px 0; padding-left: 20px; }
.unverified-steps li { margin: 4px 0; }

/* related-answers card grid (detail page) */
.dest-faq-links { margin-top: 46px; }
.cfl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.cfl-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.cfl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); text-decoration: none; }
.cfl-card img { width: 100%; height: 110px; object-fit: cover; }
.cfl-card span { padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--graphite); line-height: 1.4; }

/* sibling-destinations strip (detail page) */
.dest-siblings { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.dest-siblings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.dest-sibling-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--graphite); transition: transform .15s ease, box-shadow .15s ease; }
.dest-sibling-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); text-decoration: none; }
.dest-sibling-card img.flag { width: 20px; }

/* comparison table (listing page) */
.dest-compare-wrap { margin-bottom: 44px; }
.section-sub { color: var(--ink-soft); font-size: 14px; margin: 4px 0 0; }
.dest-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 18px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.dest-filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.dest-filter-bar select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; background: #fff; }
.dest-filter-check { flex-direction: row !important; align-items: center; gap: 6px !important; }
.dest-filter-count { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }
.dest-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.dest-compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 780px; }
.dest-compare-table th, .dest-compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.dest-compare-table th { background: var(--sand-light, #f7f3ec); font-family: var(--font-head); font-weight: 700; cursor: pointer; user-select: none; position: sticky; top: 0; }
.dest-compare-table th.num, .dest-compare-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dest-compare-table th.is-active { color: var(--rust, #c1501f); }
.dest-compare-table th.is-active::after { content: attr(data-dir); font-size: 10px; margin-left: 4px; }
.dest-compare-table th[data-dir="asc"]::after { content: "\25B2"; }
.dest-compare-table th[data-dir="desc"]::after { content: "\25BC"; }
.dest-compare-table tbody tr:hover { background: #fbf8f2; }
.dest-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.dest-badge-ok { background: #e5f3e5; color: #2e7d32; }
.dest-badge-pending { background: #f4ecdf; color: #8a6d2f; }
.dest-table-empty { text-align: center; padding: 30px; color: var(--ink-soft); }

@media (max-width: 700px) {
  .calc-hero-stats { gap: 18px 28px; }
  .dest-filter-count { margin-left: 0; width: 100%; }
}
