/* ==========================================================================
   Homepage v3 — light, editorial variant (builds on home.css tokens/components)
   ========================================================================== */

/* Header sits on a light hero: dark text until it turns solid on scroll */
.page-light .site-header:not(.is-scrolled) { color: var(--ink); }
.page-light .site-header:not(.is-scrolled) .main-nav > ul > li > a:hover,
.page-light .site-header:not(.is-scrolled) .has-children.is-open > a { background: rgba(11, 31, 77, .06); }
.page-light .site-header:not(.is-scrolled) .menu-toggle { background: rgba(11, 31, 77, .06); }

/* ---------- Hero ---------- */
.h3-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: calc(var(--header-h) + 40px) 0 64px;
    background: linear-gradient(180deg, #eef4ff 0%, #f8faff 55%, #fff 100%);
}
.h3-hero::before, .h3-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); }
.h3-hero::before { width: 520px; height: 520px; top: -220px; inset-inline-start: -160px; background: radial-gradient(circle, rgba(47, 107, 255, .16), transparent 70%); }
.h3-hero::after { width: 420px; height: 420px; bottom: -220px; inset-inline-end: 8%; background: radial-gradient(circle, rgba(255, 90, 31, .12), transparent 70%); }
.h3-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.h3-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 800; color: var(--navy-800);
}
.h3-pill i { color: var(--accent); }
.h3-hero h1 { margin-top: 20px; font-size: clamp(34px, 5vw, 60px); font-weight: 900; line-height: 1.25; color: var(--navy-900); letter-spacing: -.5px; }
.h3-hero h1 em {
    font-style: normal; color: var(--blue-600);
    background: linear-gradient(transparent 66%, rgba(255, 176, 32, .38) 66% 90%, transparent 90%) no-repeat;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: 4px;
}
.h3-lead { margin-top: 14px; max-width: 540px; font-size: 17px; color: var(--muted); }

.h3-search {
    margin-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: stretch;
    padding: 6px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 620px;
}
.h3-field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-radius: 14px; transition: background .2s; }
.h3-field + .h3-field::before { content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.h3-field:focus-within { background: var(--bg-soft); }
.h3-field label { font-size: 12px; font-weight: 800; color: var(--muted); }
.h3-field select {
    border: 0; background: transparent; padding: 0 0 0 18px; font-size: 15px; font-weight: 800; cursor: pointer; width: 100%; outline: none;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left center;
}
.h3-field select:disabled { color: var(--muted); font-weight: 600; font-size: 13px; cursor: not-allowed; }
.h3-field.is-updated { animation: field-flash 1s var(--ease); }
.h3-search-btn { min-height: 58px; border-radius: 15px; padding: 0 24px; }
.h3-trust { margin-top: 22px; display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.h3-trust b { display: block; font-size: 24px; font-weight: 900; color: var(--navy-800); }

/* Photo collage */
.h3-collage { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 470px; }
.h3-tile { position: relative; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); background: var(--blue-100); }
.h3-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.h3-tile:hover img { transform: scale(1.06); }
.h3-tile span {
    position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 800; color: var(--navy-800);
}
.h3-tile-1 { grid-row: 1 / span 2; border-radius: 26px 26px 26px 90px; }
.h3-tile-2 { border-radius: 90px 26px 26px 26px; }
.h3-price-tag {
    position: absolute; bottom: -18px; inset-inline-end: 38%; padding: 12px 18px; border-radius: 18px; text-align: center;
    background: var(--accent); color: #fff; box-shadow: 0 18px 34px -14px rgba(255, 90, 31, .85); line-height: 1.4;
    transform: rotate(-4deg);
}
.h3-price-tag b { display: block; font-size: 20px; font-weight: 900; }
.h3-price-tag small { font-size: 11px; opacity: .9; }

/* ---------- Countries pill row ---------- */
.h3-countries { padding: 6px 0 10px; }
.h3-countries .container { display: flex; align-items: center; gap: 14px; }
.h3-countries-label { flex-shrink: 0; font-size: 14px; font-weight: 800; color: var(--muted); }
.h3-countries ul { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px; scrollbar-width: none; }
.h3-countries ul::-webkit-scrollbar { display: none; }
.h3-countries a {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; white-space: nowrap;
    background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 800; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.h3-countries a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.h3-countries img { height: 26px; width: auto; max-width: 36px; object-fit: contain; border-radius: 5px; }
.h3-countries a > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); font-size: 13px; }

/* ---------- Section heads ---------- */
.h3-head { margin-bottom: 30px; }
.h3-kicker { font-size: 13px; font-weight: 800; letter-spacing: .3px; color: var(--accent); }
.h3-head h2 { margin-top: 6px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; color: var(--navy-900); }
.h3-head-light h2 { color: #fff; }
.h3-head-light .h3-kicker { color: var(--gold); }

/* ---------- Destinations: lead card + list ---------- */
.h3-dest-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.h3-dest-grid.is-single { grid-template-columns: 1fr; }
.h3-dest-lead { position: relative; min-height: 400px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.h3-dest-lead img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.h3-dest-lead:hover img { transform: scale(1.05); }
.h3-dest-lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 21, 54, .88), transparent 60%); }
.h3-dest-lead-body { padding: 26px; display: flex; flex-direction: column; gap: 4px; }
.h3-dest-lead-body b { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.h3-dest-lead-body > span:last-child { font-size: 14px; color: rgba(255, 255, 255, .85); }
.h3-badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-size: 12px; font-weight: 900; }
.h3-dest-list { display: flex; flex-direction: column; gap: 12px; }
.h3-dest-list a {
    display: flex; align-items: center; gap: 16px; padding: 10px; padding-inline-end: 18px; border-radius: 20px;
    background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.h3-dest-list a:hover { transform: translateX(-4px); box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.h3-dest-list img { width: 84px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 14px; }
.h3-dest-item { display: flex; flex-direction: column; min-width: 0; }
.h3-dest-item b { font-size: 16px; font-weight: 900; }
.h3-dest-item small { font-size: 12px; color: var(--muted); }
.h3-dest-price { margin-inline-start: auto; font-size: 15px; font-weight: 900; color: var(--navy-800); white-space: nowrap; }
.h3-dest-price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.h3-dest-list a > i { color: var(--blue-600); }
/* Many popular tours: wide banner on top, the rest as a grid (instead of one very tall column). */
.h3-dest-grid.is-many { grid-template-columns: 1fr; }
.h3-dest-grid.is-many .h3-dest-lead { min-height: 0; height: 340px; }
.h3-dest-grid.is-many .h3-dest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h3-dest-grid.is-many .h3-dest-list a { height: 100%; }

/* ---------- Deals board (dark band) ---------- */
.h3-deals { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.h3-deals::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; }
.h3-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: deal; }
.h3-row {
    display: grid; grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) auto 46px; align-items: center; gap: 18px;
    padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    transition: background .25s, border-color .25s;
}
.h3-row:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.h3-row-thumb img { width: 70px; height: 56px; object-fit: cover; border-radius: 12px; }
.h3-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 900; }
.h3-row-title:hover { color: var(--gold); }
.h3-hot { padding: 2px 9px; border-radius: 999px; background: var(--accent); font-size: 11px; font-weight: 800; }
.h3-row-meta { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .65); }
.h3-row-meta i { color: var(--gold); margin-inline-end: 4px; }
.h3-row-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.h3-row-dates a { padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; transition: background .2s, color .2s; }
.h3-row-dates a:hover { background: #fff; color: var(--navy-900); }
.h3-row-price { white-space: nowrap; text-align: left; font-size: 12px; color: rgba(255, 255, 255, .65); }
.h3-row-price b { font-size: 19px; font-weight: 900; color: #fff; }
.h3-row-go { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .25s var(--ease); }
.h3-row-go:hover { transform: translateX(-3px); }

/* ---------- Booking steps ---------- */
.h3-steps-list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.h3-steps-list::before { content: ""; position: absolute; top: 30px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(to left, var(--blue-100) 0 10px, transparent 10px 18px); z-index: -1; }
.h3-steps-list li { text-align: center; padding: 0 8px; }
.h3-steps-list span {
    display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
    background: #fff; border: 2px solid var(--blue-600); color: var(--blue-600); font-size: 24px; font-weight: 900; box-shadow: 0 0 0 8px #fff;
}
.h3-steps-list li:nth-child(3) span { border-color: var(--accent); color: var(--accent); }
.h3-steps-list b { font-size: 17px; font-weight: 900; }
.h3-steps-list p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Installments ---------- */
.h3-install { background: var(--bg-soft); }
.h3-install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; }
.h3-install-copy h2 { margin: 6px 0 12px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; color: var(--navy-900); }
.h3-install-copy p { color: var(--muted); margin-bottom: 22px; max-width: 480px; }
.h3-calc { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.h3-calc-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--muted); }
.h3-calc-label output { font-size: 20px; font-weight: 900; color: var(--navy-800); }
.h3-calc-result { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.h3-calc-result div { padding: 12px 14px; }
.h3-calc-result div + div { border-inline-start: 1px solid var(--line); background: var(--accent-100); }
.h3-calc-result dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.h3-calc-result dd { margin: 2px 0 0; font-size: 18px; font-weight: 900; color: var(--navy-800); }
.h3-calc-result div + div dd { color: var(--accent-600); }
.h3-calc-note { font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .h3-dest-grid.is-many .h3-dest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h3-hero-grid { gap: 32px; }
    .h3-collage { height: 400px; }
    .h3-row { grid-template-columns: 64px minmax(0, 1fr) auto 46px; }
    .h3-row-dates { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
    .h3-hero-grid { grid-template-columns: 1fr; }
    .h3-collage { height: 320px; order: -1; }
    .h3-price-tag { bottom: -14px; }
    .h3-dest-grid { grid-template-columns: 1fr; }
    .h3-dest-lead { min-height: 300px; }
    .h3-dest-grid.is-many .h3-dest-lead { height: 280px; }
    .h3-steps-list { grid-template-columns: 1fr 1fr; row-gap: 30px; }
    .h3-steps-list::before { display: none; }
    .h3-install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .h3-dest-grid.is-many .h3-dest-list { grid-template-columns: 1fr; gap: 10px; }
    .h3-dest-grid.is-many .h3-dest-lead { height: 240px; }
    .h3-hero { padding-bottom: 40px; }
    .h3-collage { height: 240px; gap: 10px; }
    .h3-tile, .h3-tile-1, .h3-tile-2 { border-radius: 18px; }
    .h3-tile span { display: none; }
    .h3-price-tag { inset-inline-end: 50%; transform: translateX(-50%) rotate(-3deg); padding: 8px 14px; }
    .h3-price-tag b { font-size: 16px; }
    .h3-hero h1 { margin-top: 26px; }
    .h3-search { grid-template-columns: 1fr; padding: 6px; }
    .h3-field + .h3-field::before { display: none; }
    .h3-search-btn { min-height: 52px; }
    .h3-trust { gap: 20px; }
    .h3-trust b { font-size: 20px; }
    .h3-countries .container { flex-direction: column; align-items: flex-start; gap: 4px; }
    .h3-countries ul { width: 100%; }
    .h3-dest-list img { width: 66px; height: 58px; }
    .h3-dest-price { font-size: 13px; }
    .h3-row { grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 12px; padding: 10px; }
    .h3-row-thumb img { width: 56px; height: 48px; }
    .h3-row-dates { grid-column: 1 / -1; grid-row: 2; }
    .h3-row-price { grid-column: 1 / -1; grid-row: 3; text-align: right; }
    .h3-row-go { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
    .h3-steps-list { grid-template-columns: 1fr; text-align: right; }
    .h3-steps-list li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; text-align: right; padding: 0; }
    .h3-steps-list span { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 20px; }
    .h3-calc { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .h3-price-tag { transform: none; }
}
