/* Homepage catalog, scoped to the federal home template. */
body[data-page="index.php"] {
  --home-ink: #183338;
  --home-muted: #48615c;
  --home-green: #286e4a;
  --home-green-soft: #edf5ef;
  --home-orange: #e98a2c;
  --home-line: #dce9df;
  --home-display: Rubik, "Segoe UI", Arial, sans-serif;
  --home-ui: "Segoe UI", Arial, sans-serif;
}
.federal-home-header.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--home-line);
  backdrop-filter: none;
  box-shadow: none;
}
.federal-home-header.site-header::before { display: none; }
.federal-header-shell.container,
.home-catalog-container.container {
  width: min(1180px, calc(100% - 48px));
}
.federal-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 10px;
  font-family: var(--home-ui);
}
.federal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--home-ink);
  text-decoration: none;
  font: 700 1.05rem/1.05 var(--home-display);
  letter-spacing: -.026em;
}
.federal-brand img { display: block; flex: 0 0 46px; width: 46px; height: 46px; }
.federal-header-navigation,
.federal-header-contact { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 24px); }
.federal-header-navigation a,
.federal-header-help,
.federal-header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: .93rem;
  font-weight: 600;
}
.federal-header-navigation a:hover,
.federal-header-help:hover { color: var(--home-green); text-decoration: underline; text-underline-offset: 5px; }
.federal-header-phone {
  gap: 7px;
  padding: 0 12px;
  background: var(--home-green-soft);
  color: var(--home-green);
  border-radius: 8px;
  font-weight: 700;
}
.federal-header-phone:hover { background: #e1efe5; }
.federal-header-phone svg { width: 16px; height: 16px; }
.federal-phone-short,
.federal-menu-toggle { display: none; }
.federal-menu-toggle {
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--home-ink);
  cursor: pointer;
}
.home-catalog {
  padding: 20px 0 30px;
  background: #fff;
  color: var(--home-ink);
  font-family: var(--home-ui);
}
.home-catalog-routes {
  margin-bottom: 20px;
  border-radius: 25px;
  background: var(--home-green);
}
.home-catalog-routes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 3px 8px;
  list-style: none;
}
.home-catalog-routes li:last-child { margin-left: auto; }
.home-catalog-routes a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 clamp(8px, 1.1vw, 15px);
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 600;
  white-space: nowrap;
}
.home-catalog-routes a:hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.home-catalog-routes svg { width: 16px; height: 16px; }
.home-catalog-stage {
  display: grid;
  grid-template-areas: "surface";
  grid-template-columns: minmax(0,1fr);
  isolation: isolate;
  border-radius: 20px;
  background: #226348;
}
.home-catalog-search {
  grid-area: surface;
  align-self: start;
  position: relative;
  z-index: 1;
  margin: 18px 18px clamp(215px, 27vw, 325px);
  padding: 11px 13px 10px;
  border: 1px solid rgba(237,247,234,.64);
  border-radius: 12px;
  background: rgba(238,248,238,.87);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 7px 20px rgba(22,52,36,.13);
}
.home-catalog-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: baseline;
  min-height: 34px;
  padding: 5px 140px 0 1px;
  margin: 0 0 6px;
}
.home-catalog-heading h1 {
  margin: 0;
  color: var(--home-ink);
  font: 700 1.18rem/1.2 var(--home-display);
  letter-spacing: -.025em;
}
.home-catalog-heading p { margin: 0; color: var(--home-muted); font-size: .83rem; font-weight: 500; }
.home-search-disclosure { scroll-margin-top: 96px; }
.home-search-toggle {
  position: absolute;
  top: 7px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  list-style: none;
  border: 1px solid #bfdbca;
  border-radius: 8px;
  background: #f8fcf8;
  color: var(--home-green);
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
}
.home-search-toggle::-webkit-details-marker { display: none; }
.home-search-toggle:hover { background: #fff; }
.home-search-toggle-open,
.home-search-disclosure[open] .home-search-toggle-closed { display: none; }
.home-search-disclosure[open] .home-search-toggle-open { display: inline; }
.home-search-disclosure[open] .home-search-toggle svg { transform: rotate(180deg); }
.home-tourvisor-panel { min-width: 0; }
.home-tourvisor-panel .tourvisor-shell {
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-tourvisor-panel .tourvisor-compact-title { display: none; }
.home-tourvisor-panel .tourvisor-bridge-card {
  min-width: 0;
  min-height: 0;
  height: auto;
  border-color: #d7e7db;
  border-radius: 11px;
  overflow: hidden;
}
.home-tourvisor-panel .tourvisor-shell:not(.tv-loaded) .tourvisor-bridge-card { min-height: 100px; }
.home-tourvisor-panel .tourvisor-bridge-frame {
  display: block;
  margin: 0;
  width: 100%;
  height: 114px;
  min-height: 0;
  max-height: none;
  border-radius: 10px;
}
.home-tourvisor-panel[data-picker-open] .tourvisor-bridge-frame { height: 640px !important; }
.home-tourvisor-panel .tourvisor-shell.tv-fallback .tourvisor-fallback-actions:not([hidden]) {
  gap: 10px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.home-tourvisor-panel .tourvisor-fallback-choices .btn {
  width: auto;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--home-ui);
  font-size: .82rem;
  letter-spacing: 0;
  box-shadow: none;
}
.home-tourvisor-panel .tourvisor-fallback-choices .btn-primary { background: var(--home-orange); color: var(--home-ink); }
.home-catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 3px; }
.home-catalog-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--home-green);
  font-size: .91rem;
  font-weight: 650;
  text-underline-offset: 4px;
}
.home-catalog-actions a svg { width: 16px; height: 16px; }
.home-destination-showcase {
  grid-area: surface;
  position: relative;
  align-self: end;
  min-width: 0;
}
.home-showcase-card[hidden],
.home-showcase-controls[hidden] { display: none !important; }
.home-showcase-art-link {
  display: block;
  position: relative;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
}
.home-showcase-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
  background: #226348;
}
.home-showcase-card:not([hidden]) img { animation: home-campaign-enter .32s ease-out both; }
@keyframes home-campaign-enter { from { opacity: .64; } to { opacity: 1; } }
.home-showcase-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.home-showcase-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  position: absolute;
  bottom: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.46);
  background: rgba(250,255,247,.87);
  backdrop-filter: blur(10px);
}
.home-showcase-control {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--home-green);
  font: 650 .89rem/1.2 var(--home-ui);
  cursor: pointer;
}
.home-showcase-control[aria-pressed="true"] { background: var(--home-green); color: #fff; }
.home-showcase-control:hover:not([aria-pressed="true"]) { background: #e4f0e7; }
body[data-page="index.php"] #popular-destinations { scroll-margin-top: 90px; }
.home-catalog :focus-visible,
.federal-home-header :focus-visible { outline: 3px solid #bb6010; outline-offset: 3px; }

@media (max-width: 960px) {
  .federal-header-shell { min-height: 68px; }
  .federal-header-navigation,
  .federal-header-help { display: none; }
  .federal-menu-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .federal-header-shell.container,
  .home-catalog-container.container { width: calc(100% - 24px); }
  .federal-header-shell { gap: 8px; min-height: 64px; padding-block: 7px; }
  .federal-brand { gap: 6px; font-size: clamp(.86rem, 3.5vw, 1.01rem); }
  .federal-brand img { flex-basis: 36px; width: 36px; height: 36px; }
  .federal-header-contact { gap: 6px; }
  .federal-header-phone { padding-inline: 9px; font-size: .81rem; }
  .federal-header-phone svg,
  .federal-phone-wide { display: none; }
  .federal-phone-short { display: inline; }
  .home-catalog { padding: 12px 0 22px; }
  .home-catalog-routes { margin-bottom: 10px; border-radius: 19px; }
  .home-catalog-routes ul { flex-wrap: nowrap; overflow-x: auto; padding-block: 0; }
  .home-catalog-routes a { padding-inline: 9px; font-size: .85rem; }
  .home-catalog-stage { display: block; padding: 8px; border-radius: 15px; }
  .home-catalog-search { margin: 0 0 8px; padding: 10px 10px 7px; border-radius: 9px; }
  .home-catalog-heading { display: block; padding: 0; margin: 0 0 1px; }
  .home-catalog-heading p { font-size: .83rem; }
  .home-search-toggle {
    position: static;
    width: fit-content;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    min-height: 44px;
  }
  .home-search-toggle:hover { background: transparent; text-decoration: underline; }
  .home-tourvisor-panel .tourvisor-bridge-frame { height: 348px; }
  .home-tourvisor-panel[data-picker-open] .tourvisor-bridge-frame { height: 620px !important; }
  .home-tourvisor-panel .tourvisor-fallback-choices { display: flex; justify-content: start; }
  .home-catalog-actions { gap: 2px 16px; }
  .home-catalog-actions a { font-size: .83rem; }
  .home-showcase-art-link { border-radius: 9px; }
  /* Banner copy is baked into the artwork; retain semantic text without a duplicate caption. */
  .home-showcase-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .home-showcase-controls { position: static; max-width: none; }
  .home-showcase-control { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-showcase-card img { animation: none !important; }
}

/* Status and privacy controls share the quiet first-screen palette. */
.federal-home-header.site-header { background: #fff !important; }
.home-tourvisor-panel .tourvisor-shell.tv-fallback { padding: 0 !important; }
.home-tourvisor-panel .tourvisor-shell.tv-fallback .tourvisor-fallback-actions:not([hidden]) { margin: 0 !important; }
.home-tourvisor-panel .tourvisor-shell.tv-fallback .tourvisor-fallback-copy strong {
  font: 700 1.04rem/1.25 var(--home-display) !important;
}
.home-tourvisor-panel .tourvisor-shell.tv-fallback .tourvisor-fallback-copy span {
  color: var(--home-muted) !important;
  font: 500 .89rem/1.36 var(--home-ui) !important;
}
.home-tourvisor-panel .tourvisor-fallback-choices .btn-secondary {
  border-color: #b9d6c4;
  background: #f4faf5;
  color: var(--home-green);
}
.home-catalog-search:has(.home-search-disclosure[open] .tv-fallback) .home-catalog-actions { display: none; }
.home-catalog-search:has(.home-search-disclosure[open] .tv-fallback) { padding-bottom: 10px; }
body[data-page="index.php"] #cookie-banner {
  width: min(475px, calc(100% - 24px));
  left: max(12px, calc((100vw - 1180px) / 2));
  right: auto;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #fff !important;
  color: var(--home-ink);
  box-shadow: 0 8px 25px rgba(26,55,43,.14);
  font-family: var(--home-ui);
}
body[data-page="index.php"] #cookie-banner p { margin: 3px 0 0; }
body[data-page="index.php"] #cookie-banner .cookie-actions {
  display: grid !important;
  grid-template-columns: .75fr 1fr 1fr !important;
  gap: 5px !important;
}
body[data-page="index.php"] #cookie-banner .cookie-actions > * {
  grid-column: auto !important;
  min-height: 44px !important;
  padding: 5px !important;
  border: 1px solid var(--home-line);
  border-radius: 7px !important;
  background: #fff;
  color: var(--home-ink);
  font: 650 .73rem/1.13 var(--home-ui) !important;
  box-shadow: none;
}
body[data-page="index.php"] #cookie-banner .cookie-actions [data-cookie-necessary] { background: var(--home-green-soft); color: var(--home-green); }
body[data-page="index.php"] #cookie-banner .cookie-actions [data-cookie-analytics] { background: var(--home-orange); color: var(--home-ink); }
@media (max-width: 760px) {
  .home-tourvisor-panel .tourvisor-fallback-choices .btn { flex: 1 1 124px; min-height: 44px; }
  body[data-page="index.php"] #cookie-banner {
    width: auto !important;
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    gap: 6px !important;
    padding: 9px !important;
    border-radius: 10px !important;
  }
}

/* Localhost is outside the registered Tourvisor domains. Size the preview handoff to its content. */
body [data-tourvisor-shell]:has(.tourvisor-preview),
body[data-page="search.php"] .trip-panel .result-widget-shell:has(.tourvisor-preview) {
  min-height: 0 !important; height: auto !important; max-height: none !important; overflow: visible !important;
}
.tourvisor-preview {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; padding: 16px; color: #283422; background: #f5f8ed; border-radius: 12px;
  font: 500 1rem/1.45 "Golos Text", Arial, sans-serif;
}
.tourvisor-preview p { margin: 4px 0 0; }
.tourvisor-preview .trip-retry {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px;
  padding: 8px 16px; border-radius: 9px; background: #ffc16c; color: #262e22; font-weight: 650; text-decoration: none;
}
.tourvisor-preview .trip-retry svg { width: 18px; height: 18px; }

.tourvisor-full-search { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-inline: 8px; color: #355f2f; font-weight: 600; }
.tourvisor-full-search svg { width: 17px; height: 17px; }
.tv-fallback .tourvisor-full-search { display: none; }
