/* Sanchar Yatra: app pages (search, trip details, auth, checkout, account).
   Builds on the tokens and components in app.css. */

:root {
    --ok: #1c8a4c;
    --ok-bg: #e6f5ec;
    --warn: #a15c00;
    --warn-bg: #fff2df;
    --danger: #c0283b;
    --danger-bg: #fdebed;
    --info: #9a3f06;
    --info-bg: var(--brand-soft);
    --card: #ffffff;
    --field-border: #c9ced1;
}

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.upper { text-transform: uppercase; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.stretched-link { text-decoration: none; color: inherit; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.link-sm { font-size: 0.9rem; font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.link-sm:hover { text-decoration: underline; }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand-strong); font-weight: 600; font-size: 0.9rem; }
.link-btn:hover:not(:disabled) { text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.link-arrow:hover { gap: 12px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: var(--radius-pill);
    background: var(--info-bg); color: var(--info); font-size: 0.8rem; font-weight: 600;
}
.chip--sm { padding: 1px 8px; font-size: 0.75rem; }

/* ---------- Buttons (extends app.css) ---------- */
.btn-lg { min-height: 48px; padding: 10px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #a11f30; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: var(--white);
    animation: spin .7s linear infinite;
}
.btn-outline.is-loading::after { border-color: rgba(0, 0, 0, 0.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header additions ---------- */
.nav-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; font-size: 0.9rem; line-height: 1.2; }
.nav-link i { font-size: 1.05rem; }
.nav-trips {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-trips:hover, .nav-trips.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.account-menu { position: relative; }
.account-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px; border: 1.5px solid #e2e2e2; border-radius: var(--radius-pill);
    background: var(--white); color: var(--ink); font-weight: 600;
}
.account-toggle:hover { border-color: var(--brand); }
.account-toggle .fa-chevron-down { font-size: 0.7rem; }
.avatar {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--orange); color: var(--white); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.avatar--lg { width: 52px; height: 52px; font-size: 1.1rem; }
.account-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 250px;
    padding: 8px; border-radius: var(--radius); background: var(--card);
    box-shadow: 0 16px 40px rgba(38, 43, 43, 0.18); border: 1px solid #e8e8e8;
}
.dropdown-head { display: grid; padding: 8px 12px 12px; border-bottom: 1px solid #eee; margin-bottom: 6px; }
.dropdown-head span { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dropdown a, .dropdown button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border: 0; border-radius: var(--radius-sm);
    background: none; color: var(--ink); text-decoration: none; font-size: 0.95rem; text-align: left;
}
.dropdown a:hover, .dropdown button:hover { background: var(--surface); }
.dropdown i { width: 18px; color: var(--muted); }
.dropdown-meta { margin-left: auto; font-weight: 700; color: var(--ok); }

/* ---------- Alerts / notices ---------- */
.flash-stack { display: grid; gap: 10px; margin-top: 16px; }
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
    transition: opacity .25s, transform .25s;
}
.alert p { flex: 1; }
.alert > i { margin-top: 4px; }
.alert-success { background: var(--ok-bg); color: #145c34; border-color: #bfe3cc; }
.alert-error { background: var(--danger-bg); color: #8f1d2c; border-color: #f3c3ca; }
.alert-info { background: var(--info-bg); color: #7a3304; border-color: #ffd3b3; margin-bottom: 16px; }
.alert.is-leaving { opacity: 0; transform: translateY(-6px); }
.alert-close { border: 0; background: none; color: inherit; opacity: 0.7; padding: 2px 6px; }
.alert-close:hover { opacity: 1; }
.notice {
    display: flex; align-items: flex-start; gap: 12px; margin-block: 20px;
    padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); color: #6d4000;
}
.notice > i { margin-top: 4px; }

/* ---------- Forms ---------- */
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--grow { flex: 1; }
.field label, .field legend, .mini-field label { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.field legend { margin-bottom: 8px; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea,
.mini-field input, .mini-field select,
.price-range input, .coupon-row input {
    width: 100%; min-height: 46px; padding: 10px 14px;
    border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
    background: var(--card); color: var(--ink); font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.mini-field input:focus, .mini-field select:focus, .price-range input:focus, .coupon-row input:focus {
    outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px rgba(255, 116, 17, 0.22);
}
.field input::placeholder, .field textarea::placeholder, .mini-field input::placeholder { color: #8a9296; }
.is-invalid, .field input.is-invalid { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 0.85rem; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 0.85rem; }
.field-msg { min-height: 1.3em; font-size: 0.875rem; font-weight: 600; }
.field-msg.is-error { color: var(--danger); }
.field-msg.is-ok { color: var(--ok); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.925rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.input-prefix, .input-affix { position: relative; display: flex; }
.input-prefix span {
    display: grid; place-items: center; padding-inline: 12px;
    border: 1.5px solid var(--field-border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--surface); color: var(--ink-soft); font-weight: 600;
}
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.input-affix input { padding-right: 48px; }
.affix-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 38px; border: 0; border-radius: 8px; background: none; color: var(--muted);
}
.affix-btn:hover { color: var(--ink); background: var(--surface); }

/* ---------- Page band + compact search ---------- */
.page-band { background: linear-gradient(135deg, #2f3033 0%, var(--brand-ink) 60%, #4a3a30 100%); padding-block: 20px 24px; }
.mini-search {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
    padding: 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.mini-field { display: grid; gap: 4px; min-width: 150px; }
.mini-field--grow { flex: 1 1 220px; }
.mini-field--sm { min-width: 90px; width: 100px; }
.swap-btn--inline { position: static; margin: 0 0 4px; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); }

/* ---------- Listing ---------- */
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-block: 32px 64px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.filters-head h2 { font-size: 1.15rem; }
.filter-group { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; display: grid; gap: 12px; }
.filter-group h3 { font-size: 0.95rem; font-weight: 700; }
.facet-list { display: grid; gap: 2px; }
.facet-list a {
    display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px;
    color: var(--ink-soft); text-decoration: none; font-size: 0.925rem;
}
.facet-list a i { width: 18px; color: var(--muted); }
.facet-list a:hover { background: var(--surface); }
.facet-list a.is-active { background: var(--info-bg); color: var(--info); font-weight: 700; }
.facet-list .count, .pill-tabs .count { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; }
.price-range input { min-height: 40px; padding: 8px 10px; }

.results { display: grid; gap: 16px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.results-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.25; }
.results-title i { font-size: 0.8em; color: var(--muted); margin-inline: 6px; }
.results-count { color: var(--muted); margin-top: 2px; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: 0.9rem; color: var(--muted); }
.sort-form select { min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); background: var(--card); font: inherit; }

.result-row {
    position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px;
    border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; overflow: hidden;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.result-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.result-media img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.result-body { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.result-name { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.result-desc { color: var(--ink-soft); font-size: 0.925rem; }
.perks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--ok); font-weight: 600; }
.perks i { margin-right: 4px; }
.result-price {
    display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px;
    padding: 18px 20px; border-left: 1px dashed #dcdcdc; text-align: right;
}
.price-now { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.price-unit { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.price-unit.is-low { color: var(--danger); font-weight: 600; }

.svc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9rem; color: var(--ink-soft); }
.svc-meta i { color: var(--muted); margin-right: 4px; }
.svc-meta--lg { font-size: 1rem; }

.empty-block {
    display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center;
    border-radius: var(--radius); background: var(--card); border: 1px dashed #d6d6d6;
}
.empty-block > i { font-size: 2.5rem; color: var(--brand-strong); opacity: 0.8; }
.empty-block h2 { font-size: 1.3rem; }
.empty-block p { color: var(--muted); max-width: 46ch; }
.empty-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.pager-btn { padding: 8px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager-btn:hover:not(.is-disabled) { background: var(--ink); color: var(--white); }
.pager-btn.is-disabled { opacity: 0.35; }
.pager-info { color: var(--muted); font-size: 0.9rem; }

/* ---------- Service cards (home, related) ---------- */
.card-grid { display: grid; gap: 24px; margin-top: 24px; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-card {
    position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
    background: var(--card); border: 1px solid #e6e6e6; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-media { position: relative; }
.svc-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-type {
    position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: var(--radius-pill);
    background: rgba(20, 20, 20, 0.65); color: var(--white); font-size: 0.78rem; font-weight: 600;
}
.svc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.svc-name { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.svc-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.svc-price strong { display: block; font-size: 1.2rem; }
.svc-price span { font-size: 0.8rem; color: var(--muted); }
.svc-cta { font-weight: 600; font-size: 0.9rem; color: var(--orange); }

/* ---------- Bus / flight ---------- */
.transport { padding-block: 8px 64px; }
.trip-list { display: grid; gap: 14px; margin-top: 16px; }
.trip-row {
    display: grid; grid-template-columns: 1.3fr 1.5fr 180px; gap: 20px; align-items: center;
    padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6;
}
.trip-op { display: flex; gap: 14px; align-items: flex-start; }
.trip-op h2 { font-size: 1.1rem; }
.trip-op p { color: var(--muted); font-size: 0.875rem; }
.trip-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--info-bg); color: var(--info); flex-shrink: 0; }
.rating-pill { display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--ok); color: var(--white); font-size: 0.8rem; font-weight: 700; }
.trip-times { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.trip-times strong { display: block; font-size: 1.35rem; }
.trip-times span { font-size: 0.85rem; color: var(--muted); }
.trip-duration { display: grid; justify-items: center; gap: 4px; text-align: center; }
.trip-duration i { display: block; width: 100%; height: 2px; background: linear-gradient(90deg, var(--line), var(--brand), var(--line)); }
.trip-fare { text-align: right; }

/* ---------- Trip details ---------- */
.detail { padding-block: 20px 64px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--brand-strong); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-size: 0.6rem; }
.detail-head { display: grid; gap: 8px; margin-block: 16px 20px; justify-items: start; }
.detail-title { font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; padding-bottom: 2px; }
.gallery { display: grid; gap: 10px; }
.gallery-main { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); background: #ddd; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; flex-shrink: 0; }
.gallery-thumbs button.is-active { border-color: var(--orange); }
.gallery-thumbs img { width: 120px; height: 76px; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 28px; align-items: start; }
.detail-main { display: grid; gap: 20px; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; display: grid; gap: 14px; align-content: start; }
.panel-title { font-size: 1.2rem; font-weight: 700; }
.prose { color: var(--ink-soft); line-height: 1.75; }
.feature-list { display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--warn-bg); color: var(--orange); flex-shrink: 0; }
.feature-list strong { display: block; }
.feature-list span { color: var(--muted); font-size: 0.925rem; }

.book-card {
    position: sticky; top: calc(var(--header-h) + 16px);
    padding: 24px; border-radius: var(--radius); background: var(--card);
    border: 1px solid #e6e6e6; box-shadow: var(--shadow); display: grid; gap: 8px;
}
.book-from { font-size: 0.85rem; color: var(--muted); }
.book-price { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.book-price span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.book-form { display: grid; gap: 18px; margin-top: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { position: relative; display: grid; justify-items: center; gap: 0; padding: 8px 4px; border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); cursor: pointer; text-align: center; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot:has(input:checked) { border-color: var(--orange); background: #fff4ec; }
.slot:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.slot-day { font-size: 0.75rem; color: var(--muted); }
.slot-date { font-weight: 700; }
.slot-left { font-size: 0.72rem; color: var(--ok); }
.slot--low .slot-left { color: var(--danger); }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; }
.stepper button { border: 1.5px solid var(--field-border); background: var(--surface); color: var(--ink); }
.stepper button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.stepper button:disabled { color: #bbb; cursor: default; }
.stepper input { border-radius: 0 !important; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.book-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px dashed #ddd; }
.book-total strong { font-size: 1.3rem; }
.related { padding-bottom: 0; }

/* ---------- Auth ---------- */
.auth-main { background: linear-gradient(180deg, var(--brand-ink) 0 220px, var(--surface) 220px); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; padding-block: 40px 72px; }
.auth-aside { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg) 0 0 var(--radius-lg); color: var(--white); display: flex; align-items: flex-end; padding: 36px; min-height: 560px; }
.auth-aside-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-aside::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 40, 0.1), rgba(10, 30, 40, 0.8)); }
.auth-aside-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 2.2rem; line-height: 1.15; margin-bottom: 16px; }
.auth-aside ul { display: grid; gap: 10px; }
.auth-aside i { width: 22px; color: var(--orange-bright); }
.auth-card { padding: clamp(24px, 4vw, 44px); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--card); box-shadow: var(--shadow); display: grid; gap: 18px; align-content: start; }
.auth-title { font-size: 1.75rem; font-weight: 700; }
.auth-sub { color: var(--muted); margin-top: -10px; }
.auth-switch { text-align: center; color: var(--muted); }
.auth-switch a { color: var(--brand-strong); font-weight: 700; text-decoration: none; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid #e3e3e3; }
.seg-tabs button { min-height: 40px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-soft); font-weight: 600; }
.seg-tabs button.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.otp-to { color: var(--ink-soft); }
.otp-input { font-size: 1.6rem !important; letter-spacing: 0.5em; text-align: center; font-weight: 700; }
.otp-actions { display: flex; justify-content: space-between; margin-top: 12px; }

/* ---------- Checkout ---------- */
.checkout { padding-block: 24px 64px; }
.steps ol { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 20px; counter-reset: none; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 0.925rem; }
.steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.8rem; }
.steps li.is-done { color: var(--ok); }
.steps li.is-done span { background: var(--ok); border-color: var(--ok); color: var(--white); }
.steps li.is-current { color: var(--ink); }
.steps li.is-current span { background: var(--orange); border-color: var(--orange); color: var(--white); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.checkout-main { display: grid; gap: 20px; }
.trip-summary { grid-template-columns: 160px 1fr; align-items: center; gap: 20px; }
.trip-summary img { width: 160px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.trip-summary > div { display: grid; gap: 6px; justify-items: start; }
.trip-summary-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.coupon-row { display: flex; gap: 10px; align-items: stretch; }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer {
    display: grid; gap: 2px; width: 100%; padding: 12px 14px; text-align: left;
    border: 1.5px dashed #f0b58d; border-radius: var(--radius-sm); background: #fff8f2; color: var(--ink);
}
.offer:hover { border-color: var(--orange); }
.offer-code { font-weight: 700; color: var(--orange); letter-spacing: 0.04em; }
.offer-desc { font-size: 0.9rem; }
.offer-min { font-size: 0.8rem; color: var(--muted); }
.pay-options { display: grid; gap: 10px; }
.pay-option {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); cursor: pointer; background: var(--card);
    transition: border-color .2s, background-color .2s;
}
.pay-option input { width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.pay-option:has(input:checked) { border-color: var(--orange); background: #fff8f2; }
.pay-option.is-disabled { opacity: 0.6; cursor: not-allowed; }
.pay-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--ink-soft); font-size: 1.1rem; flex-shrink: 0; }
.pay-text { display: grid; flex: 1; min-width: 0; }
.pay-text span { font-size: 0.85rem; color: var(--muted); }
.pay-link { position: relative; z-index: 1; }
.pay-options--compact .pay-option { padding: 10px 14px; }
.fare-card { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; box-shadow: var(--shadow); display: grid; gap: 16px; }
.fare-lines { display: grid; gap: 10px; margin: 0; }
.fare-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.fare-lines dt { color: var(--ink-soft); }
.fare-lines dd { margin: 0; font-weight: 600; white-space: nowrap; }
.fare-discount dd, .fare-discount dt { color: var(--ok); }
.fare-total { padding-top: 12px; border-top: 1px dashed #ddd; }
.fare-total dt { font-weight: 700; color: var(--ink); }
.fare-total dd { font-size: 1.4rem; font-weight: 700; }
.secure-note { text-align: center; font-size: 0.825rem; color: var(--muted); }

.pay-wait { display: grid; place-items: center; padding-block: 72px; }
.pay-wait-card { max-width: 480px; justify-items: center; text-align: center; }
.pay-wait-actions { display: flex; gap: 12px; margin-top: 8px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #eee; border-top-color: var(--orange); animation: spin .8s linear infinite; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-block: 32px 72px; align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.account-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; }
.account-card > div { min-width: 0; }
.account-card-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card-sub { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-chip {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px;
    border-radius: var(--radius); background: linear-gradient(120deg, #1d2a30, #33434a); color: var(--white); text-decoration: none;
}
.wallet-chip span { font-size: 0.9rem; opacity: 0.85; }
.wallet-chip strong { font-size: 1.15rem; }
.account-nav { display: grid; gap: 4px; padding: 8px; border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; }
.account-nav a, .account-nav button {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--radius-sm);
    background: none; color: var(--ink-soft); text-decoration: none; font-weight: 600; text-align: left;
}
.account-nav i { width: 18px; color: var(--muted); }
.account-nav a:hover, .account-nav button:hover { background: var(--surface); color: var(--ink); }
.account-nav a.is-active { background: #fff4ec; color: var(--orange); }
.account-nav a.is-active i { color: var(--orange); }
.account-main { display: grid; gap: 20px; min-width: 0; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-title { font-size: 1.7rem; font-weight: 700; }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--radius-pill); border: 1.5px solid #dcdcdc; background: var(--card); color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.pill-tabs a.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pill-tabs a.is-active .count { color: rgba(255, 255, 255, 0.75); }
.booking-row {
    position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: center;
    padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6;
    transition: box-shadow .25s var(--ease);
}
.booking-row:hover { box-shadow: var(--shadow); }
.booking-row img { width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); }
.booking-row-body { display: grid; gap: 6px; min-width: 0; }
.booking-row-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.booking-row-title { font-size: 1.1rem; font-weight: 700; }
.booking-row-price { display: grid; justify-items: end; gap: 4px; padding-right: 8px; text-align: right; }
.booking-row-price strong { font-size: 1.2rem; }
.status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; }
.status--ok { background: var(--ok-bg); color: var(--ok); }
.status--warn { background: var(--warn-bg); color: var(--warn); }
.status--info { background: var(--info-bg); color: var(--info); }
.status--muted { background: #eceeef; color: #5d6468; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--ink); }
.ticket { border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; overflow: hidden; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px; border-bottom: 1px dashed #d9d9d9; }
.ticket-head--ok { background: linear-gradient(180deg, var(--ok-bg), var(--card)); }
.ticket-head--warn { background: linear-gradient(180deg, var(--warn-bg), var(--card)); }
.ticket-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-top: 8px; }
.ticket-id { color: var(--muted); margin-top: 4px; }
.ticket-id strong { color: var(--ink); }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.kv { display: grid; gap: 12px; margin: 0; }
.kv > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ticket-fare { padding: 24px; border-top: 1px solid #eee; display: grid; gap: 14px; }
.ticket-fare .fare-lines { max-width: 420px; }
.pay-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.refund-list { display: grid; gap: 8px; }
.refund-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cancel-box summary { cursor: pointer; font-weight: 700; color: var(--danger); }
.cancel-box[open] summary { margin-bottom: 8px; }
.wallet-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.wallet-balance {
    padding: 28px; border-radius: var(--radius); color: var(--white);
    background: radial-gradient(circle at 85% 0%, rgba(255, 122, 26, 0.55), transparent 55%), linear-gradient(135deg, #1d2a30, #2f3f46);
    display: grid; gap: 8px; min-height: 200px; align-content: center;
}
.wallet-label { opacity: 0.85; }
.wallet-amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; }
.wallet-note { font-size: 0.9rem; opacity: 0.8; max-width: 36ch; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 6px 14px; border: 1.5px solid var(--field-border); border-radius: var(--radius-pill); background: var(--card); color: var(--ink-soft); font-weight: 600; font-size: 0.875rem; }
.chip-btn:hover { border-color: var(--orange); color: var(--orange); }
.txn-list { display: grid; }
.txn { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 14px; }
.txn + .txn { border-top: 1px solid #f0f0f0; }
.txn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.txn-icon--credit { background: var(--ok-bg); color: var(--ok); }
.txn-icon--debit { background: var(--danger-bg); color: var(--danger); }
.txn-title { font-weight: 600; }
.txn-amount { display: grid; justify-items: end; font-weight: 700; }
.txn-amount--credit { color: var(--ok); }
.txn-amount--debit { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav-link { padding: 6px 8px; font-size: 0.85rem; }
    .account-name { display: none; }
    .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .listing { grid-template-columns: 1fr; }
    .filters { position: static; grid-template-columns: 1fr 1fr; }
    .filters-head { grid-column: 1 / -1; }
    .detail-grid, .checkout-grid { grid-template-columns: 1fr; }
    .book-card, .fare-card { position: static; }
    .account { grid-template-columns: 1fr; }
    .account-side { position: static; grid-template-columns: 1fr 1fr; }
    .account-nav { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); justify-content: start; overflow-x: auto; }
    .account-nav a, .account-nav button { white-space: nowrap; }
    .wallet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-link { flex-direction: row; gap: 12px; padding: 12px 14px; font-size: 1rem; }
    .nav-link i { width: 20px; }
    .nav-actions { flex-wrap: wrap; }
    .nav-trips { flex: 1; }
    .account-menu { flex: 1; }
    .account-toggle { width: 100%; justify-content: flex-start; }
    .account-name { display: inline; max-width: none; }
    .account-toggle .fa-chevron-down { margin-left: auto; }
    .dropdown { position: static; margin-top: 8px; box-shadow: none; }
    .auth-wrap { grid-template-columns: 1fr; max-width: 560px; }
    .auth-aside { display: none; }
    .auth-card { border-radius: var(--radius-lg); }
    .result-row { grid-template-columns: 200px minmax(0, 1fr); }
    .result-price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-left: 0; border-top: 1px dashed #dcdcdc; text-align: left; }
    .price-unit { margin: 0 auto 0 8px; }
    .trip-row { grid-template-columns: 1fr; }
    .trip-fare { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
    .trip-fare .price-unit { margin: 0 auto 0 0; }
    .gallery-main { aspect-ratio: 16 / 10; }
    .ticket-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .mini-search { padding: 12px; }
    .mini-field, .mini-field--grow, .mini-field--sm { flex: 1 1 100%; width: auto; min-width: 0; }
    .mini-search .btn { width: 100%; }
    .swap-btn--inline { display: none; }
    .filters { grid-template-columns: 1fr; }
    .result-row { grid-template-columns: 1fr; }
    .result-media img { min-height: 0; aspect-ratio: 16 / 9; }
    .card-grid--4 { grid-template-columns: 1fr; }
    .field-grid, .field-grid--3 { grid-template-columns: 1fr; }
    .offer-list { grid-template-columns: 1fr; }
    .trip-summary { grid-template-columns: 1fr; }
    .trip-summary img { width: 100%; height: 160px; }
    .coupon-row { flex-direction: column; }
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
    .booking-row { grid-template-columns: 96px minmax(0, 1fr); }
    .booking-row img { width: 96px; height: 80px; }
    .booking-row-price { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; padding: 0; }
    .account-side { grid-template-columns: 1fr; }
    .kv > div { grid-template-columns: 110px 1fr; }
    .ticket-head { flex-direction: column; }
    .txn { grid-template-columns: 36px minmax(0, 1fr); }
    .txn-amount { grid-column: 2; justify-items: start; }
    .trip-times strong { font-size: 1.1rem; }
    .pay-wait-actions { flex-direction: column; width: 100%; }
}

/* ---------- Print (booking voucher) ---------- */
@media print {
    .site-header, .site-footer, .seo-links, .account-side, .flash-stack, .no-print, .skip-link { display: none !important; }
    body { background: #fff; }
    .account { display: block; padding: 0; }
    .ticket { border: 1px solid #999; }
}

/* Home hotel cards are fully clickable */
.hotel-card { position: relative; }
.hotel-name a { color: inherit; text-decoration: none; }
.result-body > .chip, .detail-head .chip { justify-self: start; }
[hidden] { display: none !important; }
/* Keep account/listing grids from growing wider than the viewport on small screens */
@media (max-width: 1024px) {
    .account, .listing, .detail-grid, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .account-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .account-side { grid-template-columns: minmax(0, 1fr); }
}

/* Footer: tablet */
@media (min-width: 641px) and (max-width: 1080px) {
    .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-brand-col { grid-column: 1 / -1; }
}

/* ---------- Information & legal pages ---------- */
.info-hero {
    padding-block: 32px 40px; color: var(--white);
    background: radial-gradient(circle at 90% -20%, rgba(255, 116, 17, 0.35), transparent 55%),
                linear-gradient(135deg, #2f3033 0%, var(--brand-ink) 70%);
}
.crumbs--light, .crumbs--light a { color: #d6d6d6; }
.crumbs--light a:hover { color: var(--white); }
.info-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin-top: 12px; padding-bottom: 4px; }
.info-lead { margin-top: 10px; max-width: 60ch; color: #e4e4e4; font-size: 1.05rem; }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-block: 36px 72px; align-items: start; }
.info-body { padding: clamp(20px, 4vw, 40px); border-radius: var(--radius); background: var(--card); border: 1px solid #e6e6e6; min-width: 0; }
.prose-doc { color: var(--ink-soft); line-height: 1.75; max-width: 75ch; }
.prose-doc > * + * { margin-top: 14px; }
.prose-doc h2 { margin-top: 32px; font-size: 1.3rem; color: var(--ink); line-height: 1.3; }
.prose-doc h2:first-child { margin-top: 0; }
.prose-doc h3 { margin-top: 20px; font-size: 1.05rem; color: var(--ink); }
.prose-doc ul, .prose-doc ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose-doc ul { list-style: disc; }
.prose-doc ol { list-style: decimal; }
.prose-doc li::marker { color: var(--brand); }
.prose-doc a { color: var(--brand-strong); font-weight: 600; }
.prose-doc strong { color: var(--ink); }
.info-updated { margin-top: 32px !important; padding-top: 16px; border-top: 1px solid #eee; font-size: 0.875rem; color: var(--muted); }
.info-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.info-nav-title { font-size: 1rem; font-weight: 700; }
.info-nav ul { display: grid; gap: 2px; }
.info-nav a {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px;
    color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.925rem;
}
.info-nav a i { font-size: 0.7rem; color: #b5b5b5; transition: transform .2s var(--ease); }
.info-nav a:hover { background: var(--surface); color: var(--ink); }
.info-nav a:hover i { transform: translateX(3px); }
.info-nav a.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.info-contact { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.info-contact i { color: var(--brand); width: 18px; }
.info-contact:hover { color: var(--brand-strong); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card {
    display: grid; gap: 4px; align-content: start; padding: 20px; border-radius: var(--radius);
    border: 1px solid #e6e6e6; background: var(--surface); color: var(--ink); text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.contact-card > i { font-size: 1.4rem; color: var(--brand); margin-bottom: 6px; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ffd3b3; }
.contact-card strong { overflow-wrap: anywhere; }
.contact-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
@media (max-width: 1024px) {
    .info-grid { grid-template-columns: minmax(0, 1fr); }
    .info-side { position: static; }
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Search: results come first in the HTML (for headings/SEO) but filters stay on the left. */
.listing { grid-template-areas: "filters results"; }
.listing > .filters { grid-area: filters; }
.listing > .results { grid-area: results; }
@media (max-width: 1024px) {
    .listing { grid-template-areas: "filters" "results"; }
}

/* ==========================================================================
   Motion: every animation has a job: hierarchy on
   entry, feedback on hover/press, continuity between pages. Transform and
   opacity only; all of it is switched off for prefers-reduced-motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    /* Page transitions: supporting browsers cross-fade between pages; others navigate normally. */
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
    ::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
    .site-header { view-transition-name: site-header; }
    ::view-transition-group(site-header) { animation: none; }
    @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
    @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

    /* Hero: staggered entrance (title, subtitle, search). */
    .hero-title { animation: rise .8s var(--ease) both; }
    .hero-sub { animation: rise .8s .12s var(--ease) both; }
    .search { animation-delay: .24s; }
    .detail-head, .info-title, .results-head, .account-head { animation: rise .6s var(--ease) both; }

    /* Cards: photo eases in closer on hover. */
    .svc-media, .result-media, .hotel-media { overflow: hidden; }
    .hotel-media { border-radius: var(--radius-sm); }
    .svc-media img, .result-media img, .hotel-media img { transition: transform .6s var(--ease); }
    .svc-card:hover .svc-media img, .result-row:hover .result-media img, .hotel-card:hover .hotel-media img { transform: scale(1.05); }
    .svc-cta i, .link-arrow i, .link-sm i { transition: transform .25s var(--ease); }
    .svc-card:hover .svc-cta i, .link-arrow:hover i, .link-sm:hover i { transform: translateX(4px); }

    /* CTA feedback: lift on hover, press on click. */
    .btn-accent, .btn-book, .btn-search { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
    .btn-accent:hover:not(:disabled), .btn-book:hover, .btn-search:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194, 78, 8, 0.28); }
    .btn:active:not(:disabled) { transform: translateY(0) scale(0.97); box-shadow: none; }
    .nav-link i { transition: transform .25s var(--ease); }
    .nav-link:hover i { transform: translateY(-2px); }
    .offer, .pay-option, .slot, .chip-btn { transition: transform .2s var(--ease), border-color .2s, background-color .2s; }
    .offer:hover, .chip-btn:hover { transform: translateY(-2px); }
    .slot:active, .pay-option:active { transform: scale(0.98); }
    .dropdown:not([hidden]) { animation: pop .18s var(--ease) both; transform-origin: top right; }
    .alert { animation: rise .4s var(--ease) both; }
    @keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

    /* Scroll reveal: staggered by position among siblings (delay set in app.js). */
}
@media (prefers-reduced-motion: no-preference) {
    /* Once revealed, keep hover shadows/lifts snappy. */
    .js .reveal.is-visible { transition: opacity .65s var(--ease), translate .65s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
}

/* ==========================================================================
   Hover & press feedback (all users). Small, user-triggered movement only;
   scroll reveals and page transitions above stay reduced-motion aware.
   ========================================================================== */
.svc-card, .hotel-card, .result-row, .dest-card, .booking-row, .trip-row, .contact-card, .package-card {
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s, filter .35s var(--ease);
    will-change: transform;
}
.svc-media, .result-media, .hotel-media, .package-media { overflow: hidden; }
.hotel-media, .package-media { border-radius: var(--radius-sm); }
.package-media { border-radius: var(--radius); }
.svc-media img, .result-media img, .hotel-media img, .package-media img, .dest-card img, .booking-row img {
    transition: transform .6s var(--ease), filter .4s var(--ease);
}

@media (hover: hover) {
    .svc-card:hover, .hotel-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(60, 60, 60, 0.16); border-color: #ffd3b3; }
    .result-row:hover, .booking-row:hover, .trip-row:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60, 60, 60, 0.14); border-color: #ffd3b3; }
    .dest-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22); }
    .package-card:hover { transform: translateY(-5px); filter: drop-shadow(0 14px 22px rgba(60, 60, 60, 0.16)); }

    .svc-card:hover .svc-media img, .result-row:hover .result-media img, .hotel-card:hover .hotel-media img,
    .package-card:hover .package-media img, .dest-card:hover img { transform: scale(1.08); }
    .booking-row:hover img { transform: scale(1.05); }

    .svc-cta i, .link-arrow i, .link-sm i, .result-price .btn, .booking-row-price span i { transition: transform .25s var(--ease), background-color .2s, box-shadow .2s; }
    .svc-card:hover .svc-cta i, .booking-row:hover .booking-row-price span i, .link-arrow:hover i, .link-sm:hover i { transform: translateX(5px); }
    .result-row:hover .result-price .btn { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194, 78, 8, 0.28); }
    .dest-card:hover .dest-name { color: var(--brand); }
    .dest-name { transition: color .25s; }

    .btn-accent:hover:not(:disabled), .btn-book:hover, .btn-search:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194, 78, 8, 0.3); }
    .btn-outline:hover:not(:disabled), .btn-ghost:hover { transform: translateY(-2px); }
    .round-btn:hover:not(:disabled) { transform: scale(1.08); }
    .footer-col a { display: inline-block; transition: color .2s, transform .2s var(--ease); }
    .footer-col a:hover { transform: translateX(4px); }
}
.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:active:not(:disabled), .round-btn:active:not(:disabled) { transform: translateY(0) scale(0.96); box-shadow: none; }
.svc-card:active, .result-row:active, .dest-card:active, .booking-row:active { transform: translateY(-2px) scale(0.99); }

/* ==========================================================================
   Header v2 (MakeMyTrip-style): utility shortcuts + one login button,
   category icon bar (strip on inner pages, search tabs on home).
   ========================================================================== */
.header-inner { gap: 20px; min-height: 76px; }
.site-nav { gap: 8px; }
.util-links { display: flex; align-items: center; gap: 4px; }
.util-links li + li { border-left: 1px solid #ececec; padding-left: 4px; }
.util-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--brand-ink); text-decoration: none; transition: background-color .2s;
}
.util-item:hover, .util-item.is-active { background: var(--brand-soft); }
.util-icon {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-strong); font-size: 0.95rem; flex-shrink: 0;
    transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.util-item:hover .util-icon { background: var(--brand); color: var(--white); transform: rotate(-8deg) scale(1.06); }
.util-text { display: grid; line-height: 1.25; }
.util-text strong { font-size: 0.9rem; }
.util-text span { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.nav-actions { margin-left: 8px; }
.login-cta {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #d9580a, var(--brand-strong)); color: var(--white);
    font-weight: 700; font-size: 0.9rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(194, 78, 8, 0.25); transition: transform .2s var(--ease), box-shadow .2s;
}
.login-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194, 78, 8, 0.32); }
.login-cta:active { transform: scale(0.97); }
.login-cta-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); }
.cat-links-mobile { display: none; }

/* Category bar: shared by the inner-page strip and the home search tabs */
.cat-strip { border-top: 1px solid #f0f0f0; background: var(--white); }
.cat-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cat-item, .search-tabs.cat-bar .search-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 6px 14px; border: 0; background: none; color: var(--ink-soft); text-decoration: none;
    font-size: 0.85rem; font-weight: 600; font-style: normal; line-height: 1.2; text-align: center;
}
.cat-item i, .search-tabs.cat-bar .search-tab i { font-size: 1.5rem; color: var(--brand-ink); transition: transform .3s var(--ease), color .2s; }
.cat-item::after, .search-tabs.cat-bar .search-tab::after {
    content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--brand); transform: scaleX(0); transition: transform .3s var(--ease);
}
.cat-item:hover i, .search-tabs.cat-bar .search-tab:hover i { transform: translateY(-3px); color: var(--brand); }
.cat-item:hover, .search-tabs.cat-bar .search-tab:hover { color: var(--ink); background: none; }
.cat-item.is-active, .search-tabs.cat-bar .search-tab.is-active { color: var(--brand-strong); background: none; }
.cat-item.is-active i, .search-tabs.cat-bar .search-tab.is-active i { color: var(--brand); }
.cat-item.is-active::after, .search-tabs.cat-bar .search-tab.is-active::after,
.cat-item:hover::after, .search-tabs.cat-bar .search-tab:hover::after { transform: scaleX(1); }
.cat-item:hover::after:not(.is-active), .search-tabs.cat-bar .search-tab:not(.is-active):hover::after { opacity: 0.4; }
.cat-badge {
    position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
    padding: 1px 7px; border-radius: var(--radius-pill); background: #8e44ad; color: var(--white);
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: lowercase; font-style: normal; line-height: 1.4;
}
.cat-bar--compact .cat-item { flex-direction: row; gap: 8px; padding: 12px 6px; font-size: 0.85rem; }
.cat-bar--compact .cat-item i { font-size: 1.05rem; }
.cat-bar--compact .cat-badge { position: static; transform: none; order: 3; }
.cat-bar--compact .cat-item:hover i { transform: translateY(-2px); }

/* Home: the tab row becomes a white icon card on top of the dark search panel */
.search-tabs.cat-bar { background: var(--white); border-radius: var(--radius) var(--radius) 0 0; overflow: visible; padding-top: 8px; }
.search-tabs.cat-bar .search-tab { min-height: 92px; border-right: 0; padding-top: 18px; }
.search-tabs.cat-bar .cat-badge { top: 4px; }
.search { max-width: 1120px; }

/* Sticky offset for pages that also show the category strip */
@media (min-width: 901px) {
    body.has-cat-strip { --header-h: 124px; }
}
@media (max-width: 1180px) {
    .util-text span { display: none; }
    .util-item { padding: 8px; }
    .login-cta > span:last-child { max-width: 120px; white-space: normal; line-height: 1.2; }
    .cat-bar--compact .cat-item { font-size: 0.78rem; flex-direction: column; gap: 4px; }
    .cat-bar--compact .cat-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
    .cat-bar--compact .cat-item { padding-top: 14px; }
}
@media (max-width: 900px) {
    .header-inner { min-height: 64px; }
    .cat-strip { display: none; }
    .util-links { flex-direction: column; align-items: stretch; gap: 2px; }
    .util-links li + li { border-left: 0; padding-left: 0; }
    .util-text span { display: block; }
    .util-item { padding: 10px 12px; }
    .cat-links-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-top: 12px; border-top: 1px solid #eee; }
    .cat-links-mobile a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
    .cat-links-mobile a i { width: 18px; color: var(--brand); }
    .cat-links-mobile a.is-active, .cat-links-mobile a:hover { background: var(--brand-soft); color: var(--brand-strong); }
    .cat-links-mobile .cat-badge { position: static; transform: none; margin-left: auto; }
    .nav-actions { margin-left: 0; }
    .login-cta { width: 100%; justify-content: center; }
    .login-cta > span:last-child { max-width: none; }
    .search-tabs.cat-bar { grid-template-columns: repeat(7, minmax(86px, 1fr)); overflow-x: auto; scrollbar-width: none; }
    .search-tabs.cat-bar::-webkit-scrollbar { display: none; }
    .search-tabs.cat-bar .search-tab { min-height: 78px; font-size: 0.75rem; }
    .search-tabs.cat-bar .search-tab i { font-size: 1.25rem; }
}

/* Long names/emails must not push the account sidebar into the main column */
.account-side, .account-card, .account-card > div { min-width: 0; }
.account-card { overflow: hidden; }
