/* One quiet interaction system: stable surfaces, consistent timing, clear states. */
:root {
  --ui-ease: cubic-bezier(.22, .61, .36, 1);
  --ui-duration: 180ms;
  --ui-focus: #c59b12;
}

.footer-links > a{display:block;width:fit-content;margin:0 auto;color:#e3eaf3;font-size:11px;min-height:22px;line-height:1.5;padding:2px 4px}
.footer-links > a:focus-visible{outline:2px solid #ffdf36;outline-offset:3px}
@media(hover:hover){.footer-links > a:hover{text-decoration:underline;text-underline-offset:3px}}
@media(max-width:800px){.footer-links > a{font-size:13px;line-height:1.9}}

/* Filtered SVG images still have their original hit area in Chromium.
   Artwork and decoration must never intercept a control's pointer events. */
.carnival-year,
.carnival-year *,
svg.icon,
svg.icon *,
.travel-photo,
.photo-crop,
.hero::before,
.search-field::after,
.services > button::before,
.destinations h2::after,
.destination-card::after,
.steps article::after,
.value-items > div::before,
.partner::after,
.footer-links::after {
  pointer-events: none;
}

/* The complete date/passenger field is its button, including the padding. */
.date-field,
.travelers-field {
  padding: 0;
}

.field-button {
  align-self: stretch;
  padding: 0 13px;
}

.destination-field {
  cursor: pointer;
}

/* Keep footer text and hit areas within each separate link row. */
.footer-links button {
  min-height: 22px;
  line-height: 1.5;
  padding: 2px 4px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .field-button { padding: 8px; }
}

@media (max-width: 480px) {
  .field-button { padding-inline: 9px; }
}

/* Animate opaque colors directly. Never replace a gradient on pointer entry. */
.yellow-button,
.green-button {
  background-image: none;
  transform: none;
  transition: background-color var(--ui-duration) var(--ui-ease),
              box-shadow var(--ui-duration) var(--ui-ease);
}

.yellow-button {
  background-color: #ffdf36;
  box-shadow: inset 0 1px 0 #ffffff40, 0 2px 4px #362a0014;
}

.green-button {
  background-color: #0b4637;
  box-shadow: inset 0 1px 0 #ffffff14, 0 1px 2px #03261c14;
}

/* Text, icons, and hit targets do not translate or scale. */
.nav-link,
.travel-styles button,
.services > button,
.dropdown-menu button,
.favorite-button,
.offer-badge,
.counter button,
.header-actions > .icon-button,
.menu-toggle,
.dialog-close,
.text-button,
.footer-links button,
.social-links button,
.section-link {
  transition: background-color var(--ui-duration) var(--ui-ease),
              color var(--ui-duration) var(--ui-ease),
              border-color var(--ui-duration) var(--ui-ease),
              box-shadow var(--ui-duration) var(--ui-ease),
              text-decoration-color var(--ui-duration) var(--ui-ease);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: #ffdf36;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ui-duration) var(--ui-ease);
}

.nav-link[aria-expanded="true"]::after,
.nav-link:focus-visible::after {
  opacity: 1;
}

.services > button {
  height: auto;
  padding: 10px 8px;
  border-radius: 10px;
}

.search-field {
  transition: background-color var(--ui-duration) var(--ui-ease);
}

.search-field:focus-within,
.search-bar .search-field:first-child:focus-within {
  background-color: #f1f6f3;
}

.field-button:focus-visible {
  border-radius: 5px;
}

.destination-card {
  transform: none;
  transition: box-shadow 220ms var(--ui-ease);
}

.destination-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff70;
  background: #ffffff08;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ui-ease);
}

.destination-arrow {
  color: #fff;
  transition: color 200ms var(--ui-ease), transform 240ms var(--ui-ease);
}

.destination-arrow,
.destination-arrow * {
  pointer-events: none;
}

.destination-card:focus-visible::before {
  opacity: 1;
}

.destination-card:focus-visible .destination-arrow,
.mega-card:focus-visible .destination-arrow {
  color: var(--yellow, #ffdf38);
  transform: translateX(-3px);
}

.header-actions > .icon-button,
.menu-toggle {
  border-radius: 50%;
}

.text-button {
  border-radius: 6px;
}

.section-link,
.footer-links button,
.text-button {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.partner {
  opacity: 1;
  border-radius: 4px;
  transition: none;
}

/* Pointer-only states never stick on touchscreens. Yellow filters mean selected. */
@media (hover: hover) and (pointer: fine) {
  .yellow-button:not(:disabled):hover {
    background-color: #f5cb20;
    box-shadow: inset 0 1px 0 #ffffff45, 0 3px 8px #41310024;
  }

  .green-button:not(:disabled):hover {
    background-color: #12634c;
    box-shadow: inset 0 1px 0 #ffffff22, 0 3px 8px #073c2926;
  }

  .nav-link:hover::after {
    opacity: .85;
  }

  .travel-styles button:not(.active):hover {
    background-color: #24483fef;
    border-color: #fff;
    color: #fff;
  }

  .travel-styles button.active:hover {
    background-color: #f5cb20;
    border-color: #f5cb20;
  }

  .services > button:hover {
    background-color: #f3f6f4;
    color: #0b5a43;
  }

  .search-field:hover {
    background-color: #f5f8f6;
  }

  .dropdown-menu button:hover,
  .counter button:not(:disabled):hover,
  .dialog-close:hover {
    background-color: #eaf1ed;
    color: #0b4f3d;
  }

  .destination-card:hover {
    box-shadow: 0 3px 9px #0b292924;
  }

  .destination-card:hover::before {
    opacity: 1;
  }

  .destination-card:hover .destination-arrow,
  .mega-card:hover .destination-arrow {
    color: var(--yellow, #ffdf38);
    transform: translateX(-3px);
  }

  .favorite-button:hover {
    background-color: #0b302b80;
    box-shadow: 0 0 0 1px #ffffff40;
  }

  .offer-badge:hover {
    background-color: #f5cb20;
  }

  .header-actions > .icon-button:hover,
  .menu-toggle:hover {
    background-color: #ffffff18;
  }

  .text-button:hover,
  .section-link:hover {
    color: #0b624b;
    text-decoration-color: currentColor;
  }

  .footer-links button:hover {
    color: #fff;
    text-decoration-color: #ffdf36;
  }

  .social-links button:hover {
    color: #ffdf36;
  }
}

/* A press deepens the same surface; no bounce, scaling, or transparent frame. */
.yellow-button:not(:disabled):active {
  background-color: #e9bd18;
  box-shadow: inset 0 2px 3px #72580026;
  transition-duration: 70ms;
}

.green-button:not(:disabled):active {
  background-color: #073d2e;
  box-shadow: inset 0 2px 3px #001c2440;
  transition-duration: 70ms;
}

.travel-styles button:active,
.counter button:not(:disabled):active,
.offer-badge:active,
.dialog-close:active {
  box-shadow: inset 0 1px 3px #001b2b24;
  transition-duration: 70ms;
}

.services > button:active,
.dropdown-menu button:active {
  background-color: #e7eee9;
  transition-duration: 70ms;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 4px;
}

button:disabled {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
