/* ==========================================================================
   All destinations (destinations.php) — builds on pages.css
   ========================================================================== */

/* ---------- Hero ---------- */
.dest-hero .pg-hero-bg { object-position: center 40%; }
.dest-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; margin-top: 30px; padding: 7px; background: #fff; border-radius: 60px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35); }
.dest-search > i { position: absolute; left: 24px; color: var(--muted); }
.dest-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 10px 12px 46px; font-family: var(--font-body); font-size: 1rem; color: var(--ink); }
.dest-search .btn { border-radius: 50px; flex-shrink: 0; }
.dest-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.86rem; color: #94a3b8; }
.dest-try span { margin-right: 2px; }
.dest-try button { padding: 6px 13px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #e2e8f0; font: inherit; cursor: pointer; transition: all 0.2s; }
.dest-try button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.dest-hero .pg-stat strong small { font-size: 1rem; color: #94a3b8; margin-left: 2px; }

/* ---------- Section heads ---------- */
.dest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.dest-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.5px; margin: 6px 0 8px; }
.dest-head p { color: var(--muted); }
.pg-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.5px; margin: 6px 0 10px; }

/* ---------- Popular routes (bento) ---------- */
.pop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 18px; }
.pop-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; border-radius: var(--radius-lg); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.pop-card.big { grid-column: span 2; grid-row: span 2; }
.pop-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.pop-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 32, 0) 35%, rgba(11, 18, 32, 0.88) 100%); }
.pop-card:hover img { transform: scale(1.07); }
.pop-body { display: block; padding: 20px 22px; }
.pop-body strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.25; }
.pop-card.big .pop-body { padding: 28px 30px; }
.pop-card.big .pop-body strong { font-size: 1.7rem; }
.pop-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 0.85rem; color: #e2e8f0; }
.pop-meta i { color: #fdba74; margin-right: 6px; }
.pop-price { position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 50px; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 700; box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4); }

/* ---------- Explore by state ---------- */
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.state-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 250px; border-radius: var(--radius-lg); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.state-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.state-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 32, 0.1) 0%, rgba(11, 18, 32, 0.9) 100%); transition: background 0.3s; }
.state-card:hover img { transform: scale(1.07); }
.state-card:hover::before { background: linear-gradient(180deg, rgba(194, 65, 12, 0.25) 0%, rgba(11, 18, 32, 0.92) 100%); }
.state-body { display: flex; flex-direction: column; gap: 4px; padding: 22px; }
.state-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fdba74; margin-bottom: 8px; }
.state-body strong { font-family: var(--font-head); font-size: 1.25rem; }
.state-body small { color: #cbd5e1; font-size: 0.85rem; line-height: 1.45; }
.state-body em { margin-top: 10px; font-style: normal; font-size: 0.85rem; font-weight: 600; color: #fdba74; }
.state-body em i { margin-left: 4px; transition: transform 0.2s; }
.state-card:hover .state-body em i { transform: translateX(4px); }

/* ---------- Sticky filter bar ---------- */
.dest-all { padding-top: 0; }
.dest-bar { position: sticky; top: 76px; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05); margin-bottom: 30px; }
.dest-bar-inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.dest-bar-search { position: relative; flex: 0 0 260px; }
.dest-bar-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; }
.dest-bar-search input { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--line); border-radius: 50px; background: var(--bg-soft); font-family: var(--font-body); font-size: 0.93rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.dest-bar-search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); background: #fff; }
.dest-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.dest-tabs::-webkit-scrollbar { display: none; }
.dest-tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 50px; border: 1px solid var(--line); background: #fff; color: var(--text); font-family: var(--font-body); font-size: 0.86rem; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.dest-tabs button span { padding: 1px 7px; border-radius: 50px; background: var(--line-soft); color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.dest-tabs button:hover { border-color: var(--brand); color: var(--brand-700); }
.dest-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dest-tabs button.active span { background: var(--brand); color: #fff; }
.dest-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; min-height: 1em; }

/* ---------- Destination groups & cards ---------- */
.dest-group { margin-bottom: 48px; scroll-margin-top: 170px; }
.dest-group[hidden], .dest-card[hidden] { display: none; }
.dest-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dest-group-head h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.3px; }
.dest-group-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.1rem; }
.dest-group-count { margin-left: auto; padding: 4px 12px; border-radius: 50px; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 600; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dest-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; overflow: hidden; }
.dest-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); transform: scaleY(0); transition: transform 0.25s; }
.dest-card:hover { transform: translateY(-3px); border-color: var(--brand-100); box-shadow: var(--shadow); }
.dest-card:hover::before { transform: scaleY(1); }
.dest-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dest-card-top strong { color: var(--ink); font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; line-height: 1.35; }
.dest-card:hover .dest-card-top strong { color: var(--brand-700); }
.dest-tag { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; }
.dest-tag.hill { background: #ecfdf5; color: #047857; }
.dest-tag.plain { background: #eff6ff; color: #1d4ed8; }
.dest-sub { color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.82rem; color: var(--text); }
.dest-meta i { color: var(--brand); margin-right: 5px; }
.dest-meta .dest-go { margin: 0 0 0 auto; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.dest-card:hover .dest-go { color: var(--brand); transform: translateX(3px); }

.dest-empty { display: flex; align-items: center; gap: 18px; padding: 24px 26px; margin-bottom: 30px; border-radius: var(--radius-lg); background: var(--brand-50); border: 1px solid var(--brand-100); }
.dest-empty[hidden] { display: none; }
.dest-empty > i { font-size: 2rem; color: var(--brand); }
.dest-empty strong { color: var(--ink); font-family: var(--font-head); }
.dest-empty p { color: var(--muted); font-size: 0.92rem; }
.dest-empty .btn { margin-left: auto; flex-shrink: 0; }

/* ---------- CTA ---------- */
.dest-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 340px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.dest-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dest-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.8) 55%, rgba(11, 18, 32, 0.3) 100%); }
.dest-cta-copy { max-width: 640px; padding: 48px; color: #cbd5e1; }
.dest-cta-copy h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.5px; margin: 16px 0 12px; }
.dest-cta-copy p { line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .pop-grid, .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pop-card.big { grid-row: span 1; }
    .dest-bar { top: 68px; }
}
@media (max-width: 768px) {
    .dest-head { flex-direction: column; align-items: flex-start; }
    .dest-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .dest-bar-search { flex: none; }
    .pop-grid { grid-auto-rows: 180px; }
    .pop-card.big .pop-body strong { font-size: 1.3rem; }
    .dest-empty { flex-direction: column; align-items: flex-start; }
    .dest-empty .btn { margin-left: 0; }
    .dest-cta-copy { padding: 32px 24px; }
}
@media (max-width: 560px) {
    .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
    .pop-card.big { grid-column: span 2; }
    .pop-body { padding: 12px 14px; }
    .pop-body strong { font-size: 0.95rem; }
    .pop-card:not(.big) .pop-meta span + span { display: none; }
    .pop-price { top: 10px; right: 10px; padding: 3px 9px; font-size: 0.7rem; }
    .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .state-card { min-height: 170px; }
    .state-body { padding: 14px; }
    .state-body strong { font-size: 1rem; }
    .state-body small { display: none; }
    .state-ico { width: 34px; height: 34px; margin-bottom: 4px; }
    .dest-search { padding: 5px; }
    .dest-search .btn { display: none; }
    .dest-grid { grid-template-columns: minmax(0, 1fr); }
}
