/* Shared by the public pages and the administration. */
:root {
  --action-ink: #123e32;
  --action-line: #64796d;
  --action-wash: #e2eee3;
  --action-dark: #0d4437;
  --action-light: #fff1d4;
  --focus-ring: #155c7c;
  --focus-gap: #fffdf7;
  --muted: #40564a;
}

body :is(a[href], button, summary, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-gap);
}
:is(.header, .site-footer, .res-hero, .budget-copy, .compare-dock, .rail, .overview-head, .cover) {
  --focus-ring: #ffdda0;
  --focus-gap: #143c32;
}
body .destination-link:focus-visible,
body .air-row:focus-visible { outline-offset: -4px; }
body .currency-search:has(input:focus-visible),
body :is(.afbud-select, .afbud-sort):has(select:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-gap);
}

:where(.form-field, .form-pair, .family-form, .af-form-fields, .input-wrap, .dialog-body, .place-input, .sr-sort, .ops-body) :is(input:not([type=checkbox],[type=radio],[type=range]), select, textarea),
body :is(.outline, .quiet, .res-options, .afbud-more, .afbud-select, .afbud-sort),
.res-toolbar .sr-sort select { border-color: var(--action-line); }
.currency-dialog :is(.currency-chip:not([aria-pressed=true]), .currency-search) { border-color: var(--action-line); }
:where(input, textarea)::placeholder { color: #536358; opacity: 1; }
.header .currency-trigger, .site-footer :is(.back-to-top, .footer-routes button) { border-color: #94ad9f; }

body :is(.fav-button, .af-heart, .detail-fav)[aria-pressed=true] .icon { fill: currentColor; }
body .season-options button[aria-pressed=true],
body .airport-switch button[aria-pressed=true] {
  background: #204c3e;
  color: #fffdf5;
  box-shadow: inset 0 -3px #92b69d;
}
:is(.season-options, .airport-switch, .filter-group, .sr-themes) button[aria-pressed=true],
.res-tabs a[aria-current], .account-tabs a[aria-current] { font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .header .desktop-nav :is(a, .nav-current):hover,
  .header :is(.saved-link, .mobile-menu-btn, .account-link, .currency-trigger):hover,
  .header #mobile-nav a:hover {
    background: var(--action-light);
    color: var(--action-ink);
    border-color: #e4c78b;
  }
  .header .currency-trigger:hover .currency-globe { color: inherit; }
  .header .desktop-nav .nav-current:hover::after { background: var(--action-ink); }
  #soeg .mode:not(.active):hover { background: #355f50; border-color: #e8dcb1; color: #fffdf3; }
  #soeg .field:hover {
    background: var(--action-wash);
    box-shadow: inset 0 0 0 2px #71917f;
  }
  #soeg .search-button:hover, .res-edit:hover, .overview-head .primary:not(:disabled):hover,
  .compare-dock-actions .primary:not(:disabled):hover {
    color: #25392b;
    background: #ffda9e;
    box-shadow: inset 0 -2px #946238;
  }
  :is(.form-field, .form-pair, .family-form, .af-form-fields, .input-wrap, .place-input, .dialog-body, .sr-sort, .ops-body) :is(input, select, textarea):not(:disabled):hover {
    border-color: var(--action-dark);
  }
  :is(.primary, .af-view):not(:disabled):hover {
    color: white;
    background: var(--action-dark);
    box-shadow: inset 0 -2px #082f25;
  }
  :is(.outline, .afbud-more, .res-options, .quiet, .close, .reveal, .edit-results, .close-dialog):not(:disabled):hover,
  .stepper-controls button:not(:disabled):hover, .gallery-pager button:not(:disabled):hover,
  .family-air label:has(input:not(:disabled)):hover, .check-row:has(input:not(:disabled)):hover,
  .afbud-select:hover, .afbud-sort:hover {
    background: var(--action-wash);
    color: var(--action-ink);
    border-color: #50735e;
    box-shadow: inset 0 0 0 1px #718d77;
  }
  :is(.filter-group, .season-options, .airport-switch, .res-toolbar .sr-themes) button:not([aria-pressed=true]):hover,
  :is(.account-tabs, .mini-tabs, .res-tabs) a:not([aria-current]):hover {
    color: var(--action-ink);
    background: var(--action-wash);
    box-shadow: inset 0 -2px #527561;
  }
  :is(.budget-row, .result-row, .air-row, .place-option, .option):not(:disabled):hover {
    background: var(--action-wash);
    color: var(--action-ink);
    box-shadow: inset 3px 0 #2e6b53;
  }
  :is(.destination-link:hover h3, .journal-card:hover h2, .sr-place a:hover, .itinerary-row h2 a:hover, .watch-body h2 a:hover),
  :is(.page-back, .page-edit, .text-button, .text-btn, .back, .link-btn, .family-deal-link, .resource):hover,
  :is(.faq-list, #help-list, .family-presets, .family-comparison, .stat-connect, .stat-days) :is(summary, button):hover,
  :is(.res-footer nav, .foot-group li, .footer-routes) :is(a, button):hover {
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: 2px;
  }
  .destination-tile:has(.destination-link:hover), .res-board .sr-card:has(a:hover),
  .af-card:has(.af-view:hover), .family-card:has(.primary:hover), a.metric:hover {
    border-color: #718c78;
    box-shadow: 0 4px 14px #163f331a;
  }
  .site-footer :is(.back-to-top, .footer-routes button):hover,
  .rail :is(#nav a:not([aria-current]), .site-link):hover {
    color: #fffdf4;
    background: #345b4b;
    border-color: #c0d2bc;
  }
  .destination-tile .fav-button:hover, body .af-heart:hover {
    color: #fff;
    background: #195641;
    border-color: #195641;
  }
}
:where(.search-button, .res-edit, .primary, .af-view, .outline, .quiet):not(:disabled):active {
  box-shadow: inset 0 2px 4px #102e3844;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :where(.field, .primary, .outline, .res-options, .quiet, .account-link, .saved-link, .currency-trigger, .af-heart, .fav-button, .destination-tile) {
    transition: border-color 140ms ease, box-shadow 140ms ease;
  }
}

/* Switch both ink and surface together when a light control becomes dark, or vice versa. */
.header .desktop-nav a, .header :is(.saved-link, .account-link, .currency-trigger),
.destination-tile .fav-button, .af-heart { transition-property: border-color, box-shadow; }
@media (hover: none) {
  :is(.outline, .quiet, .res-edit, .option, .place-option):not(:disabled):active,
  #soeg .field:active { box-shadow: inset 0 0 0 2px #527760; }
}

:host(#tpwl-search) :is(a[href], button, input, select, [role="button"]):focus-visible {
  outline: 3px solid #155c7c;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fffdf7;
}
@media (hover: hover) and (pointer: fine) {
  :host(#tpwl-search) :is([class*="Input-module__root___"], [class*="PassengersCounter-module__counterBtn___"], [class*="CalendarCaption-module__calendarArrowButton___"]):not(:disabled,[aria-disabled=true]):hover {
    box-shadow: inset 0 0 0 2px #567a64;
  }
}

@media screen {
  :root {
    --surface-cream: #fcfaf3;
    --surface-sage: #eff3eb;
    --surface-line: #c5d1c5;
    --forest: #173f36;
    --forest-light: #285447;
    --on-forest: #fff9e9;
    --forest-muted: #deeadc;
    --card-radius: 14px;
  }

  .journal-head, .family-head, .res-hero {
    background: linear-gradient(110deg, var(--forest), var(--forest-light));
    border-bottom: 1px solid #315b49;
    color: var(--on-forest);
    --focus-ring: #ffdda0;
    --focus-gap: var(--forest);
  }
  :is(.journal-head, .family-head) h1 { color: var(--on-forest); }
  .journal-head p:not(.page-kicker), .family-intro div>p:last-child { color: var(--forest-muted); }
  .family-head .page-kicker { color: #ffdfaa; }
  .family-intro img, .journal-head .wrap>div>img, .guide-opening img { border-radius: var(--card-radius); }
  .res-hero .page-back, .journal-head .page-back, .family-head .page-back {
    min-height: 44px; color: var(--forest-muted);
  }
  .page-back .icon { flex: none; }
  .flow-head, .saved-banner { background: linear-gradient(110deg, #f5f0e3, #edf2e9); }
  .flow-head h1 { font: 400 clamp(2.35rem, 4.4vw, 4.45rem)/1.07 var(--display); letter-spacing: -.045em; }
  :is(#page-title, #afbud-title):focus { outline: none; }
  :is(#page-title, #afbud-title):focus-visible { position: relative; }
  :is(#page-title, #afbud-title):focus-visible::before {
    content: ""; position: absolute; inset-block: 10%; inset-inline-start: -8px;
    width: 3px; border-radius: 2px; background: var(--heading-focus, #466e59);
  }
  :is(.journal-head, .family-head, .res-hero, .afbud-hero) { --heading-focus: #ebc583; }

  /* Surfaces and actions are consistent from the destination list to the fare. */
  .destination-tile, .af-card, .res-board .sr-card, .family-card, .trip-receipt,
  .paper-panel, .form-panel, .checkout-ticket, .portal-empty, .watch-card, .family-form {
    border-radius: var(--card-radius);
    border-color: var(--surface-line);
  }
  .destination-tile, .af-card, .sr-card, .watch-card, .family-card {
    box-shadow: 0 2px 6px #193b2e0b;
  }
  .af-card-end, .res-board .sr-price, .family-card .family-price {
    background: var(--surface-sage);
  }
  .destination-rate strong, .af-price strong, .sr-amount strong, .family-price strong {
    color: var(--forest); font-variant-numeric: tabular-nums;
  }
  :is(.destination-tile,.af-card,.sr-card,.family-card):has(:focus-visible), .journal-card:focus-visible {
    border-color: #63836d; box-shadow: 0 3px 12px #193e2c19;
  }
  .journal-grid { gap: clamp(14px, 2vw, 26px); }
  .journal-card {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--surface-cream); border: 1px solid var(--surface-line);
    border-radius: var(--card-radius); padding: 0 0 8px;
  }
  .journal-card>div { overflow: hidden; border-radius: 13px 13px 0 0; }
  .journal-card>:is(small,h2,p,span) { margin-inline: clamp(14px, 1.7vw, 22px); }
  .journal-card>small { margin-top: 16px; }
  .journal-card>span { margin-top: auto; padding-top: 8px; }
  .journal-card:focus-visible, .destination-link:focus-visible { outline-offset: -3px; }

  .res-tabs a, .account-tabs a { text-underline-offset: .22em; }
  .journal-head + .flow-section .account-tabs { gap: 5px; flex-wrap: wrap; border: 0; }
  .journal-head + .flow-section .account-tabs a,
  .res-toolbar .sr-themes button { min-height: 44px; padding-inline: 12px; border-radius: 8px; }
  .journal-head + .flow-section .account-tabs a {
    border: 1px solid #899c8d; color: #284b3d; background: #fffefa;
  }
  .journal-head + .flow-section .account-tabs a[aria-current] {
    background: var(--forest); color: #fffaf0; border-color: var(--forest);
  }
  .family-air label:has(:focus-visible), .compare-choice:has(:focus-visible), .check-row:has(:focus-visible) {
    outline: 2px solid var(--focus-ring); outline-offset: 2px;
  }
  .family-air label:has(:checked), .option.selected,
  .compare-choice:has(:checked), .check-row:has(:checked) {
    border-color: #48745c; background-color: #e6efe1; color: #163e30;
  }
  #sheet .dialog-head { border-bottom: 1px solid var(--surface-line); background: var(--surface-cream); }
  #sheet .place-option:focus-visible { outline-offset: -3px; background: var(--action-wash); }
  .service-notice:not([hidden]) {
    padding: 9px 12px; margin-block: 6px;
    border-inline-start: 3px solid #a47133; background: #faf3df; color: #4f4129;
    font-size: .88rem; line-height: 1.45;
  }
  .res-footer {
    background: var(--forest); color: var(--on-forest); border-color: #325b4b;
    --focus-ring: #ffdda0; --focus-gap: var(--forest);
  }
  .res-footer img { display: block; filter: brightness(0) invert(1); }
  .res-footer nav { gap: 4px clamp(10px, 1.7vw, 22px); }
  .res-footer nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--forest-muted); text-decoration: none;
  }
  .site-footer :is(.back-to-top,.footer-routes button), .res-options, .res-edit { min-height: 44px; }
  .res-footer nav a:focus-visible, .account-tabs a:focus-visible { outline-offset: -2px; }
}
@media (hover: hover) and (pointer: fine) {
  .journal-card:hover, .destination-tile:has(.destination-link:hover),
  .af-card:has(.af-view:hover), .res-board .sr-card:has(a:hover) {
    border-color: #77917a; box-shadow: 0 5px 16px #193e2c19;
  }
  .journal-card:hover>span, .res-footer nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
  .res-footer nav a:hover { color: #ffdfa6; }
  .journal-head + .flow-section .account-tabs a:not([aria-current]):hover {
    color: var(--action-ink); background: var(--action-wash); border-color: #577862;
  }
  .family-head .page-back:hover, .journal-head .page-back:hover, .res-hero .page-back:hover { color: #ffdfa6; }
  .family-presets button:hover, .guide-opening .page-back:hover { color: #173f36; }
}
@media (max-width: 680px) {
  .res-footer .wrap { align-items: start; flex-direction: column; gap: 6px; padding-block: 18px; }
  .res-footer nav { gap: 0 14px; }
  .res-toolbar .sr-sort select, .afbud-sort select { min-height: 44px; }
  #sheet :is(input:not([type=checkbox],[type=radio]),select,textarea), .family-form :is(select,input) { font-size: 16px; }
  .account-sub .account-tabs { gap: 6px; }
  body .header #mobile-nav a { min-height: 44px; }
  .currency-dialog .currency-clear { min-height: 36px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .journal-card { transition: box-shadow .16s, border-color .16s; }
  .journal-card img { transition: transform .25s ease; }
  .journal-card:hover img { transform: scale(1.025); }
}

@media screen {
  #soeg .field:focus-visible { outline-offset: -3px; outline-color: #155c7c; }
  .filter-group button:focus-visible, .sr-themes button:focus-visible,
  .res-tabs a:focus-visible { outline-offset: -3px; }
  .site-footer .foot-group :is(button, a):focus-visible { outline-offset: 0; }
  .section-line .filter-group { flex-wrap: wrap; }
  .af-empty button { margin: 10px auto 0; }
}
@media (max-width: 360px) {
  .res-toolbar .sr-themes { max-width: 100%; }
}
