/* Cross-device baseline for every B2C, B2B and admin screen. */
:root { --app-tap-target: 44px; }
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
/* A fixed 320px minimum creates horizontal scrolling when a vertical scrollbar
   reduces the usable viewport. Layouts must also work below that width. */
body { min-width: 0; overflow-wrap: break-word; }
main, section, article, aside, header, footer, .container, [class*="grid"] > *, [class*="flex"] > * { min-width: 0; }
/* Items of a horizontal scroller (tab bars, chip rows) and no-wrap labels keep their
   width: squeezed below their text they overlap their neighbours. */
.overflow-x-auto[class*="flex"] > *, .overflow-x-scroll[class*="flex"] > *, [role="tablist"] > *, [class*="flex"] > .whitespace-nowrap:not(.truncate):not(.overflow-hidden):not(.text-ellipsis) { min-width: auto; }
.overflow-x-auto[class*="flex"] > *, .overflow-x-scroll[class*="flex"] > *, [role="tablist"] > * { flex-shrink: 0; }
/* Wide tables scroll in their own box (assets/js/responsive-tables.js). */
.table-scroll { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
img, video, canvas, svg, iframe, embed, object { max-inline-size: 100%; }
input, select, textarea, button { max-inline-size: 100%; }
textarea { min-height: 5rem; resize: vertical; }
pre, code, .break-all, .break-words { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (pointer: coarse) { button, .btn, [role="button"], input[type="checkbox"], input[type="radio"], select, input[type="date"], input[type="time"] { min-height: var(--app-tap-target); } input[type="checkbox"], input[type="radio"] { min-width: 1.1rem; min-height: 1.1rem; } }
@media (max-width: 1023px) { .admin-screen .container { width: 100%; padding-inline: max(1rem, env(safe-area-inset-left, 0px)); } .admin-screen main, .admin-screen .card { min-width: 0; } .admin-screen header { padding-inline: max(.75rem, env(safe-area-inset-left, 0px)); } }
@media (max-width: 767px) { body { line-height: 1.5; } .container { padding-inline: 1rem; } input, select, textarea { font-size: 16px !important; } .card { border-radius: .75rem; } .admin-screen .btn, .admin-screen button { width: auto; min-height: var(--app-tap-target); } .admin-screen .overflow-auto, .admin-screen .overflow-x-auto { max-width: 100%; -webkit-overflow-scrolling: touch; } .admin-screen table { max-width: 100%; } th { overflow-wrap: normal; } .admin-screen th { white-space: nowrap; } .admin-screen td { vertical-align: top; } .admin-footer { padding-bottom: env(safe-area-inset-bottom, 0px); } }
@media (max-width: 420px) { .container { padding-inline: .75rem; } .admin-screen .card { padding: 1rem; } .admin-screen h1, .admin-screen .text-3xl { font-size: 1.5rem; line-height: 1.25; } }
@media (prefers-contrast: more) { .card, input, select, textarea, button { border-color: currentColor; } }
@media print { .page-loader, nav, .admin-footer, [data-print-hidden] { display: none !important; } body { background: #fff !important; color: #000 !important; } a[href]::after { content: " (" attr(href) ")"; font-size: .75em; } }

/* App-like mobile navigation. Rendered only on B2C screens by the shared header. */
.app-mobile-nav { display: none; }
@media (max-width: 767px) {
  .public-screen { padding-bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px)); }
  .app-mobile-nav {
    position: fixed;
    z-index: 90;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    padding: .35rem max(.5rem, env(safe-area-inset-right, 0px)) calc(.35rem + env(safe-area-inset-bottom, 0px)) max(.5rem, env(safe-area-inset-left, 0px));
    background: #fff;
    background: color-mix(in srgb, #fff 94%, transparent);
    border-top: 1px solid rgba(148, 163, 184, .3);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .app-mobile-nav__item {
    display: flex;
    min-width: 0;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    flex-direction: column;
    padding: .25rem;
    border-radius: .75rem;
    color: #64748b;
    font-size: .69rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .app-mobile-nav__item .material-symbols-outlined { font-size: 1.35rem; }
  .app-mobile-nav__item.is-active { color: #1d4ed8; background: #eff6ff; }
  .app-mobile-nav__item:active { transform: scale(.96); background: #e2e8f0; }
  .admin-screen .admin-mobile-menu-trigger {
    bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
    left: calc(.85rem + env(safe-area-inset-left, 0px));
    box-shadow: 0 10px 26px rgba(15, 23, 42, .28);
  }
}

/* Footer layout must not depend solely on Tailwind CDN responsive variants.
   These rules are the stable fallback at the product's desktop breakpoint. */
[x-cloak] { display: none !important; }
.travel-footer { overflow: clip; }
.travel-footer .container { width: min(100%, 72rem); margin-inline: auto; }
.footer-main-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-menu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-service-row, .footer-bottom-content { display: flex; }
.footer-main-grid > *, .footer-menu-grid > * { min-width: 0; }
.footer-back-to-top { -webkit-tap-highlight-color: transparent; }
@media (min-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: minmax(15.625rem, 1fr) minmax(0, 1.7fr) minmax(15.625rem, 1fr);
    gap: 3rem;
  }
  .footer-menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-service-row { flex-direction: row; align-items: center; gap: 2rem; }
  .footer-bottom-content { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: start; }
  .footer-back-to-top { left: auto; right: 1.5rem; bottom: 1.5rem; width: 2.75rem; height: 2.75rem; }
}
@media (min-width: 1280px) { .footer-main-grid { gap: 3.5rem; } }
@media (max-width: 1023px) {
  .footer-back-to-top { left: max(1.5rem, env(safe-area-inset-left, 0px)); right: auto; bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
}

/* Dedicated public contact page. These selectors are deliberately semantic so
   the page remains complete while the Tailwind CDN is still compiling. */
.contact-hero { background: linear-gradient(135deg, #1d4ed8, #2563eb 48%, #4338ca); color: #fff; }
.contact-primary-action, .contact-secondary-action { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .65rem 1rem; border-radius: .65rem; font-weight: 700; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.contact-primary-action { background: #fff; color: #1d4ed8; }
.contact-secondary-action { border: 1px solid rgba(255,255,255,.65); color: #fff; }
.contact-primary-action:hover, .contact-secondary-action:hover { transform: translateY(-1px); }
.contact-secondary-action:hover { background: rgba(255,255,255,.12); color: #fff; }
.contact-map { display: block; width: 100%; height: 23rem; border: 0; background: #e2e8f0; }
.contact-map-placeholder { display: grid; place-items: center; align-content: center; gap: .75rem; padding: 2rem; color: #475569; text-align: center; }
.contact-map-placeholder .material-symbols-outlined { font-size: 2.25rem; color: #2563eb; }
.contact-detail-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.contact-detail-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; border-radius: .75rem; color: #1d4ed8; background: #dbeafe; }
.contact-detail-label { margin: 0 0 .2rem; color: #64748b; font-size: .8125rem; font-weight: 600; }
.contact-detail-value { color: #0f172a; font-weight: 700; text-decoration: none; }
a.contact-detail-value:hover { color: #1d4ed8; text-decoration: underline; }
@media (max-width: 639px) { .contact-map { height: 17rem; } }

/* Hero search modules ----------------------------------------------------
   Cars, ferries, transfers and buses have richer criteria than stays and
   flights. These explicit grids keep them equally compact even when a CDN
   responsive utility is delayed or a viewport sits between breakpoints. */
.hero-search-form.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.hero-search-form .hero-search-grid { gap: .75rem; }
.hero-search-form .form-control { gap: .25rem; }
.hero-search-form .form-control > label {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .2rem;
  font-size: .875rem;
  line-height: 1.25;
}
.hero-search-form .form-control > label i { font-size: 1rem; }
.hero-search-form :is(.input, .input-with-icon, select) { min-height: 2.75rem; }
.hero-search-form fieldset { min-width: 0; padding: .65rem .75rem; }
.hero-search-form fieldset legend { line-height: 1; }
.hero-search-form fieldset label { line-height: 1.2; }
.hero-search-form fieldset .input { min-height: 2.5rem; }
.hero-search-trip-type > label { min-height: 2.5rem; padding: .5rem .75rem; }
.hero-search-secondary {
  gap: .75rem;
  padding-top: .75rem;
}
.hero-search-form > .flex.justify-end { margin-top: 0; }
.hero-search-form > .flex.justify-end .btn { min-height: 2.75rem; }
.hero-search-form { container-type: inline-size; }
/* Native time pickers need the same compact, predictable footprint as the
   date controls; this prevents their icon/padding area from wasting a column. */
.hero-search-form--shuttle :is(input[type="time"], .input) { min-width: 0; }
/* Icon inputs keep their 2.5rem start padding; the old padding-inline shorthand
   removed it and the clock icon covered the time. */
.hero-search-form--shuttle input[type="time"] { padding-inline-end: .6rem; font-variant-numeric: tabular-nums; }
.hero-search-form--shuttle input[type="time"]:not(.input-with-icon) { padding-inline-start: .7rem; }

/* The available hero width can shrink well below the browser width when the
   administration sidebar or an embedded preview is open. Container queries
   react to that real space and override viewport-only Tailwind variants. */
@container (max-width: 58rem) {
  body .hero-search-grid--standard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .hero-search-grid--standard > * { grid-column: span 1; }
}

@container (max-width: 34rem) {
  body .hero-search-grid--standard { grid-template-columns: minmax(0, 1fr); }
  body .hero-search-grid--standard > * { grid-column: span 1; }
  body .hero-search-form fieldset .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .hero-search-form .hero-search-grid { gap: .875rem; }
  .hero-search-secondary { align-items: end; }
}


@media (max-width: 767px) {
  .hero-search-form .hero-search-grid { gap: .7rem; }
  .hero-search-trip-type { gap: .5rem; }
  .hero-search-trip-type > label { flex: 1 1 auto; justify-content: center; }
  .hero-search-form fieldset { padding: .65rem; }
  .hero-search-form fieldset .grid { gap: .5rem; }
  .hero-search-form > .flex.justify-end .btn { width: 100%; }
}

/* Compact hero forms: cars, eSIM, transfers and buses ----------------------
   One control height (2.5rem) and three layouts picked by the width the form
   actually gets (container queries on .hero-search-form): narrow below 34rem,
   medium up to 52rem, wide above. Every row is filled edge to edge or ends with
   the search button on the right, so no field is left hanging on its own. */
.hero-search-form--compact { --hs-control: 2.5rem; --hs-border: #d1d5db; }
.hero-search-form--compact .hs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: .75rem;
  align-items: end;
  margin: 0;
  padding: 0;
  border: 0;
}
.hero-search-form--compact .hs-grid > * { min-width: 0; grid-column: span 1; }
.hero-search-form--compact .form-control { min-width: 0; gap: .2rem; }
.hero-search-form--compact .form-control > label {
  display: flex;
  align-items: center;
  gap: .3rem;
  min-width: 0;
  margin-bottom: .1rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-search-form--compact .form-control > label i { flex: 0 0 auto; font-size: .95rem; }
.hero-search-form--compact .form-control > label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero-search-form--compact :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, .input-dropdown > button) {
  height: var(--hs-control);
  min-height: var(--hs-control);
  padding-top: 0;
  padding-bottom: 0;
  font-size: .875rem;
}
.hero-search-form--compact .input-group .input-icon-left { z-index: 1; left: .7rem; font-size: 1.125rem; pointer-events: none; }
.hero-search-form--compact .input-group .input-with-icon { padding-left: 2.25rem; }
.hero-search-form--compact .hs-submit .btn {
  width: 100%;
  min-width: 0;
  height: var(--hs-control);
  min-height: var(--hs-control);
  padding: 0 1rem;
  font-size: .875rem;
  white-space: nowrap;
}
.hero-search-form--compact .form-control > label.hs-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--hs-control);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25;
  color: #374151;
  white-space: normal;
  cursor: pointer;
}
.hero-search-form--compact .form-control > label.hs-check > span { overflow: visible; white-space: normal; text-overflow: clip; }
.hero-search-form--compact .hs-check input { flex: 0 0 auto; width: 1rem; height: 1rem; }

/* Mode switches (transfer / hourly, one way / round trip): on phones each pair
   is a row of two equal buttons; from 34rem both pairs share one row. */
.hero-search-form--compact .hs-modes { display: grid; gap: .5rem; }
.hero-search-form--compact .hs-modes .hero-search-trip-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.hero-search-form--compact .hs-modes-divider { display: none; width: 1px; height: 1.5rem; background: #e5e7eb; }
.hero-search-form--compact .hero-search-trip-type > label { justify-content: center; min-height: 2.25rem; padding: .35rem .75rem; font-size: .8125rem; white-space: nowrap; }
@container (min-width: 34rem) {
  .hero-search-form--compact .hs-modes { display: flex; flex-wrap: wrap; align-items: center; }
  .hero-search-form--compact .hs-modes .hero-search-trip-type { display: flex; flex-wrap: wrap; }
  .hero-search-form--compact .hs-modes-divider { display: block; }
}

/* Traveller counts: three numbers inside one box of the standard height. */
.hero-search-form--compact .hs-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: var(--hs-control);
  overflow: hidden;
  border: 1px solid var(--hs-border);
  border-radius: .5rem;
  background: #fff;
}
.hero-search-form--compact .hs-counts:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
/* The browser's own clock button takes room the time needs; it now covers the
   whole box invisibly, so a click anywhere still opens the picker. */
.hero-search-form--compact input[type="time"] { position: relative; }
.hero-search-form--compact input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.hero-search-form--compact .hs-counts > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: .05rem;
  min-width: 0;
  padding: 0 .6rem;
  border-left: 1px solid #e5e7eb;
  cursor: text;
}
.hero-search-form--compact .hs-counts > label:first-child { border-left: 0; }
.hero-search-form--compact .hs-counts > label > span {
  overflow: hidden;
  font-size: .6875rem;
  line-height: 1.1;
  color: #6b7280;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* !important: the shared control-height rule above is more specific and would
   stretch these inner numbers to a full control height. */
.hero-search-form--compact .hs-counts input[type="number"] {
  width: 100%;
  height: 1.3em !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3em !important;
}
.hero-search-form--compact .hs-counts input[type="number"]:focus { outline: none; box-shadow: none; }

/* Narrow (phones, below 34rem): two columns. */
.hero-search-form--compact :is(.hs-loc, .hs-different, .hs-dropoff, .hs-pickup, .hs-place, .hs-pax, .hs-return-toggle, .hs-return-place, .hs-from, .hs-to, .hs-destination) { grid-column: 1 / -1; }
.hero-search-form--cars .hero-search-cars-extras .hs-age { grid-column: 1; }
.hero-search-form--cars .hero-search-cars-extras .hs-submit { grid-column: 2; }
.hero-search-form--shuttle .hs-submit,
.hero-search-form--bus .hs-submit { grid-column: 1 / -1; }
.hero-search-form--bus .hs-pax { grid-column: span 1; }
.hero-search-form--esim .hs-data { grid-column: 1; }
.hero-search-form--esim .hs-submit { grid-column: 2; }

/* Medium: four columns. */
@container (min-width: 34rem) {
  .hero-search-form--compact .hs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-search-form--cars .hs-loc { grid-column: 1 / -1; }
  .hero-search-form--cars .hero-search-cars-extras .hs-different,
  .hero-search-form--cars .hero-search-cars-extras .hs-dropoff { grid-column: 1 / span 2; }
  .hero-search-form--cars .hero-search-cars-extras .hs-age { grid-column: 3 / span 1; }
  .hero-search-form--cars .hero-search-cars-extras .hs-submit { grid-column: 4 / span 1; }

  .hero-search-form--esim .hs-destination { grid-column: 1 / span 2; }
  .hero-search-form--esim .hs-data { grid-column: 3 / span 1; }
  .hero-search-form--esim .hs-submit { grid-column: 4 / span 1; }

  .hero-search-form--shuttle .hs-pickup { grid-column: 1 / span 2; }
  .hero-search-form--shuttle .hs-place { grid-column: 3 / span 2; }
  .hero-search-form--shuttle .hs-date,
  .hero-search-form--shuttle .hs-return-date { grid-column: 1 / span 1; }
  .hero-search-form--shuttle .hs-time,
  .hero-search-form--shuttle .hs-return-time { grid-column: 2 / span 1; }
  .hero-search-form--shuttle .hs-pax { grid-column: 3 / span 2; }
  .hero-search-form--shuttle .hs-return-toggle { grid-column: 1 / span 2; }
  .hero-search-form--shuttle .hs-return-place { grid-column: span 2; }
  .hero-search-form--shuttle .hs-submit { grid-column: 3 / span 2; }

  .hero-search-form--bus .hs-from { grid-column: 1 / span 2; }
  .hero-search-form--bus .hs-to { grid-column: 3 / span 2; }
  .hero-search-form--bus .hs-date { grid-column: 1 / span 1; }
  .hero-search-form--bus .hs-pax { grid-column: 2 / span 1; }
  .hero-search-form--bus .hs-submit { grid-column: 3 / span 2; }
}

/* Up to 60rem the inputs already show the same icon; the label keeps its words. */
@container (max-width: 60rem) {
  .hero-search-form--compact .form-control > label > i { display: none; }
}

/* Wide (52rem and up): twelve columns, everything on as few rows as possible. */
@container (min-width: 52rem) {
  .hero-search-form--compact .hs-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .hero-search-form--cars .hs-loc { grid-column: 1 / span 4; }
  .hero-search-form--cars .hs-pickup-date { grid-column: 5 / span 2; }
  .hero-search-form--cars .hs-pickup-time { grid-column: 7 / span 2; }
  .hero-search-form--cars .hs-return-date { grid-column: 9 / span 2; }
  .hero-search-form--cars .hs-return-time { grid-column: 11 / span 2; }
  .hero-search-form--cars .hero-search-cars-extras .hs-different { grid-column: 1 / span 4; }
  .hero-search-form--cars .hero-search-cars-extras .hs-dropoff { grid-column: 5 / span 4; }
  .hero-search-form--cars .hero-search-cars-extras .hs-age { grid-column: 9 / span 2; }
  .hero-search-form--cars .hero-search-cars-extras .hs-submit { grid-column: 11 / span 2; }

  .hero-search-form--esim .hs-destination { grid-column: 1 / span 6; }
  .hero-search-form--esim .hs-data { grid-column: 7 / span 3; }
  .hero-search-form--esim .hs-submit { grid-column: 10 / span 3; }

  .hero-search-form--shuttle .hs-pickup { grid-column: 1 / span 4; }
  .hero-search-form--shuttle .hs-place { grid-column: 5 / span 4; }
  .hero-search-form--shuttle .hs-date { grid-column: 9 / span 2; }
  .hero-search-form--shuttle .hs-time { grid-column: 11 / span 2; }
  .hero-search-form--shuttle .hs-pax { grid-column: 1 / span 4; }
  .hero-search-form--shuttle .hs-return-date { grid-column: 5 / span 2; }
  .hero-search-form--shuttle .hs-return-time { grid-column: 7 / span 2; }
  .hero-search-form--shuttle .hs-submit { grid-column: 9 / span 4; }
  .hero-search-form--shuttle .hs-return-toggle { grid-column: 1 / span 4; }
  .hero-search-form--shuttle .hs-return-place { grid-column: span 4; }

  .hero-search-form--bus .hs-from { grid-column: 1 / span 3; }
  .hero-search-form--bus .hs-to { grid-column: 4 / span 3; }
  .hero-search-form--bus .hs-date { grid-column: 7 / span 2; }
  .hero-search-form--bus .hs-pax { grid-column: 9 / span 2; }
  .hero-search-form--bus .hs-submit { grid-column: 11 / span 2; }
}

/* Ferries: same compact system. The swap button sits on the gap between the
   departure and arrival fields (vertical on phones, horizontal from 34rem). */
.hero-search-form--ferries .hs-date--single,
.hero-search-form--ferries :is(.hs-vehicle, .hs-vehicle-type, .hs-submit) { grid-column: 1 / -1; }
.hero-search-form--ferries .hs-swap {
  position: absolute;
  z-index: 5;
  right: .75rem;
  bottom: calc(-1.125rem - .375rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 6px rgb(15 23 42 / .2);
  cursor: pointer;
}
.hero-search-form--ferries .hs-swap:hover { background: #1d4ed8; }
.hero-search-form--ferries .hs-swap:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.hero-search-form--ferries .hs-swap .material-symbols-outlined { font-size: 1.125rem; }
.hero-search-form--ferries .hs-swap-horiz { display: none; }
.hero-search-form--compact .hs-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  height: var(--hs-control);
  padding: .1875rem;
  border: 1px solid var(--hs-border);
  border-radius: .5rem;
  background: #fff;
}
.hero-search-form--compact .hs-segment > label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 0;
  border-radius: .375rem;
  color: #4b5563;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.hero-search-form--compact .hs-segment > label > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.hero-search-form--compact .hs-segment > label .material-symbols-outlined { flex: 0 0 auto; font-size: 1.05rem; }
.hero-search-form--compact .hs-segment > label:hover { background: #f3f4f6; }
.hero-search-form--compact .hs-segment > label.is-active { background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #2563eb; }
.hero-search-form--compact .hs-segment > label:focus-within { outline: 2px solid #93c5fd; outline-offset: 1px; }

@container (min-width: 34rem) {
  .hero-search-form--ferries .hs-from { grid-column: 1 / span 2; }
  .hero-search-form--ferries .hs-to { grid-column: 3 / span 2; }
  .hero-search-form--ferries .hs-date { grid-column: 1 / span 1; }
  .hero-search-form--ferries .hs-date--single { grid-column: 1 / span 2; }
  .hero-search-form--ferries .hs-return-date { grid-column: 2 / span 1; }
  .hero-search-form--ferries .hs-pax { grid-column: 3 / span 2; }
  .hero-search-form--ferries .hs-vehicle { grid-column: 1 / span 2; }
  .hero-search-form--ferries .hs-submit { grid-column: 3 / span 2; }
  .hero-search-form--ferries.has-vehicle .hs-vehicle-type { grid-column: 3 / span 1; }
  .hero-search-form--ferries.has-vehicle .hs-submit { grid-column: 4 / span 1; }
  /* Swap button centred on the gap; the arrival icon moves clear of it. */
  .hero-search-form--ferries .hs-swap { right: calc(-1.125rem - .375rem); bottom: .125rem; }
  .hero-search-form--ferries .hs-swap-vert { display: none; }
  .hero-search-form--ferries .hs-swap-horiz { display: inline; }
  .hero-search-form--ferries .hs-from .input-with-icon { padding-right: 1.5rem; }
  .hero-search-form--ferries .hs-to .input-group .input-icon-left { left: 1.6rem; }
  .hero-search-form--ferries .hs-to .input-group .input-with-icon { padding-left: 3.1rem; }
}
@container (min-width: 52rem) {
  .hero-search-form--ferries .hs-from { grid-column: 1 / span 4; }
  .hero-search-form--ferries .hs-to { grid-column: 5 / span 4; }
  .hero-search-form--ferries .hs-date { grid-column: 9 / span 2; }
  .hero-search-form--ferries .hs-date--single { grid-column: 9 / span 4; }
  .hero-search-form--ferries .hs-return-date { grid-column: 11 / span 2; }
  .hero-search-form--ferries .hs-pax { grid-column: 1 / span 4; }
  .hero-search-form--ferries .hs-vehicle { grid-column: 5 / span 4; }
  .hero-search-form--ferries .hs-submit { grid-column: 9 / span 4; }
  .hero-search-form--ferries.has-vehicle .hs-vehicle-type { grid-column: 9 / span 2; }
  .hero-search-form--ferries.has-vehicle .hs-submit { grid-column: 11 / span 2; }
}
/* Header adapts to the width it actually receives. This prevents labels such
   as Hizmetler, Şirket, Bloglar, Turkish and TRY from breaking into letters
   when an admin sidebar, split view or browser panel reduces the content area. */
.site-header__content { container-type: inline-size; }
.site-header__inner,
.site-header__primary,
.site-header__actions { min-width: 0; }
.site-header__brand { flex: 0 0 auto; }
.site-header__brand img { max-width: min(8.75rem, 18cqw); }
.site-header__nav,
.site-header__actions { white-space: nowrap; }
.site-header__nav > *,
.site-header__actions > * { flex: 0 0 auto; }
.site-header__nav :is(a, button),
.site-header__actions :is(a, button) { white-space: nowrap; }

@container (max-width: 68rem) {
  .site-header__inner { gap: .5rem; }
  .site-header__primary { gap: .4rem; }
  .site-header__nav { gap: 0; }
  .site-header__nav :is(a, button) { padding-inline: .45rem; font-size: clamp(.72rem, 1.4cqw, .875rem) !important; }
  .site-header__actions { gap: .35rem; }
  .site-header__actions .btn,
  .site-header__locale > button { padding-inline: .6rem; font-size: clamp(.72rem, 1.4cqw, .875rem) !important; }
}

@container (max-width: 58rem) {
  .site-header__nav { display: none !important; }
  .site-header__mobile-toggle { display: inline-flex !important; }
}

@container (max-width: 46rem) {
  .site-header__brand img { max-width: 7.1rem; }
  .site-header__locale > button > span:nth-child(2) { display: none; }
  .site-header__actions .btn > span:not(.material-symbols-outlined) { display: none; }
  .site-header__actions .btn { min-width: 2.7rem; justify-content: center; padding-inline: .55rem; }
}

/* Shared B2C module hero: same visual shell as flight search, with each
   module retaining only its own search criteria. */
/* Airport exchange uses a fixed touch target, independent of icon fonts and
   generated utility CSS. Reserve its own space between stacked fields. */
.flight-airport-field--from { padding-bottom: 2rem; }
.flight-airport-swap {
  position: absolute; z-index: 20; inset-inline-end: 1rem; bottom: -.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; border: 3px solid #fff; border-radius: 50%;
  background: #0759df; color: #fff; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgb(15 23 42 / .18);
  transition: background-color .15s, box-shadow .15s, scale .15s;
  touch-action: manipulation;
}
.flight-airport-swap svg { display: block; flex: none; }
.flight-airport-swap:hover:not(:disabled) { background: #0644ad; box-shadow: 0 3px 12px rgb(15 23 42 / .25); }
.flight-airport-swap:active:not(:disabled) { scale: .94; }
.flight-airport-swap:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.flight-airport-swap:disabled { background: #e2e8f0; color: #64748b; cursor: default; box-shadow: none; }
body .flight-search-grid { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 34.001rem) {
  body .flight-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-airport-field--from { padding-bottom: 0; padding-inline-end: .75rem; }
  .flight-airport-field--to { padding-inline-start: .75rem; }
  .flight-airport-swap { inset-inline-end: -1.75rem; bottom: 0; }
  .flight-airport-swap svg { transform: rotate(90deg); }
  .flight-airport-field--from .input-with-icon { padding-inline-end: 2rem; }
}
@container (min-width: 58.001rem) {
  body .flight-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.public-screen :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
@container (max-width: 34rem) {
  .flight-airport-field--from { padding-bottom: 2rem; padding-inline-end: 0; }
  .flight-airport-field--to { padding-inline-start: 0; }
  .flight-airport-swap { inset-inline-end: 1rem; bottom: -.5rem; }
  .flight-airport-swap svg { transform: none; }
}
.public-screen :where(h1,h2,h3) { overflow-wrap: break-word; }
/* Mobile searches use the two fields directly; no exchange control or spacer. */
@media (max-width: 767px) {
  .flight-airport-swap { display: none; }
  .flight-airport-field--from { padding-bottom: 0; padding-inline-end: 0; }
  .flight-airport-field--to { padding-inline-start: 0; }
}
.skip-to-content { position: fixed; inset-inline-start: 1rem; top: -8rem; z-index: 9999; padding: .8rem 1.2rem; border-radius: .5rem; background: #fff; color: #163b80; box-shadow: 0 2px 12px #0003; }
.skip-to-content:focus { top: 1rem; }
#main-content { scroll-margin-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  .public-screen *, .public-screen *::before, .public-screen *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.module-page-intro { width: min(100%, 76rem); margin-inline: auto; padding: 1.5rem 1rem; }
.module-page-intro nav { color: #64748b; font-size: .875rem; margin-bottom: .5rem; }
.module-page-intro nav a { color: #1d4ed8; text-underline-offset: .2em; }
.module-page-intro nav a:hover { text-decoration: underline; }
.module-page-intro h1 { margin: 0; color: #0f172a; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
.module-search-hero {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 25rem;
  /* Hero içindeki seçim listeleri, sonraki içerik katmanının üzerinde
     açılabilmelidir. Arka plan kırpımı yerine görünür taşma kullanılır. */
  overflow: visible;
  background: #182b75 center / cover no-repeat;
  isolation: isolate;
}
.module-search-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 23 42 / .34), rgb(30 64 175 / .20)); }
.module-search-hero__inner { width: min(100%, 76rem); margin-inline: auto; padding: 2rem 1rem; }
.module-search-hero__card { border-radius: 1rem; background: #fff; padding: clamp(1rem, 2.2vw, 1.5rem); box-shadow: 0 16px 40px rgb(15 23 42 / .22); }
@media (max-width: 767px) {
  .module-search-hero { min-height: auto; }
  .module-search-hero__inner { padding: 1.25rem .75rem; }
  .module-search-hero__card { border-radius: .875rem; }
}

/* Homepage campaigns (app/views/modules/homepage-campaigns.php). Plain CSS so the
   precompiled homepage stylesheet needs no rebuild. Phones: one swipeable row;
   tablets: 2 columns; desktops: 4 columns. */
.campaign-rail { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@media (min-width: 1024px) { .campaign-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .campaign-rail { display: flex; gap: .75rem; margin-inline: -1rem; padding: 0 1rem .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .campaign-rail::-webkit-scrollbar { display: none; }
  .campaign-rail > .campaign-rail__card { flex: 0 0 min(80%, 20rem); scroll-snap-align: start; }
}
/* Matches the narrower .container gutter below 420px (top of this file). */
@media (max-width: 420px) { .campaign-rail { margin-inline: -.75rem; padding-inline: .75rem; scroll-padding-inline: .75rem; } }

/* Tours hero form ------------------------------------------------------------
   One grid for all nine controls, laid out by the width the form actually gets
   (container queries on .hero-search-form): two columns on phones, four on
   tablets, twelve on wide screens, where everything fits on two rows and the
   search button closes the second row. */
.hero-search-form--tours .ts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  align-items: end;
}
.hero-search-form--tours .ts-grid > * { min-width: 0; }
.hero-search-form--tours :is(.ts-dest, .ts-pax, .ts-submit) { grid-column: 1 / -1; }
.hero-search-form--tours .ts-submit .btn { width: 100%; }
@container (min-width: 34rem) {
  .hero-search-form--tours .ts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-search-form--tours .ts-dest { grid-column: 1 / -1; }
  .hero-search-form--tours :is(.ts-start, .ts-end, .ts-period, .ts-duration) { grid-column: span 1; }
  .hero-search-form--tours :is(.ts-type, .ts-features, .ts-pax, .ts-submit) { grid-column: span 2; }
}
@container (min-width: 52rem) {
  .hero-search-form--tours .ts-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-search-form--tours .ts-dest { grid-column: 1 / span 4; }
  .hero-search-form--tours :is(.ts-start, .ts-end, .ts-period, .ts-duration) { grid-column: span 2; }
  .hero-search-form--tours :is(.ts-type, .ts-features, .ts-pax, .ts-submit) { grid-column: span 3; }
}
.hero-search-form--tours .form-control > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 60rem) {
  .hero-search-form--tours .form-control > label > i { display: none; }
}

/* One control height for every hero form ------------------------------------
   44px fields and buttons (a comfortable touch target) in all services, so
   switching tabs never changes the size of a box or of the search button. */
.hero-search-form--compact { --hs-control: 2.75rem; }
.hero-panel .hero-search-form :is(.input, .input-with-icon, select, .input-dropdown > button, .input-dropdown > .input) { min-height: 2.75rem; }
.hero-panel .hero-search-form :is(button[type="submit"], .btn[type="submit"]) {
  min-height: 2.75rem;
  border-radius: .65rem;
  font-weight: 600;
}

/* Visa hero form on tablets: the three main fields side by side, the second row in two
   columns. Above 58rem the form's own 3- and 12-column desktop grid applies. */
@container (min-width: 34rem) and (max-width: 58rem) {
  .hero-search-form--visa .vs-row1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-search-form--visa .vs-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-search-form--visa .vs-row2 > * { grid-column: span 1; }
}
