/* Three views of Tropic, with a separate focal point for each screen shape. */
.hero-visual { display: contents; }
.hero-view-image[data-hero-scene="beach-opening"] img { object-position: 50% 25%; }
.hero-view-image[data-hero-scene="pool-courtyard"] img { object-position: 50% 35%; }
.hero-view-image[data-hero-scene="restaurant-panorama"] img { object-position: 50% 50%; }

.hero-shade {
  background:
    linear-gradient(90deg, #051a2494 0%, #051a247d 38%, #051a2429 70%, #051a241a 100%),
    linear-gradient(180deg, #051a244d 0%, transparent 32%, transparent 60%, #051a2466 100%);
}
.hero h1 { text-shadow: 0 2px 26px #031e2945; }
.hero-view-controls { width: clamp(205px, 19vw, 260px); gap: 12px; }
.hero-view-controls button { width: 100%; min-width: 0; }
.hero-view-controls button:hover { background: #10241e80; border-color: #ffffffa3; }
.hero-view-controls button[aria-pressed="true"] { background: #10241eb3; border-color: #ffffffe0; }
.hero-view-controls button > img { flex-shrink: 0; }
.hero-view-controls button > span { max-width: none; font-size: .875rem; line-height: 1.4; padding-right: 6px; }
.hero-view-controls .hero-view-label,
.hero-view-controls .hero-view-short { max-width: none; padding: 0; font-size: inherit; line-height: inherit; }
.hero-view-controls .hero-view-label { display: block; }
.hero-view-controls .hero-view-short { display: none; }

/* Reserve space for the booking panel when the viewport is wide and short. */
@media (min-width: 701px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: max(790px, min(100svh, 1250px));
    max-height: none;
  }
  .hero-booking {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 44px;
    padding-bottom: 34px;
  }
}

/* A permanent two-tone reservation panel, prominent even after motion ends. */
.hero-booking .booking-dock {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 2.8fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid #e6f6af;
  border-radius: 20px;
  background: #dff091;
  color: var(--ink);
  box-shadow: 0 20px 60px #031d2459, 0 0 0 5px #e7f3b21c;
}
.hero-booking .booking-dock > * { position: relative; z-index: 1; }
.hero-booking .dock-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 27px 30px;
  border-radius: 19px 0 0 19px;
  background: #112e26;
  color: #fff;
}
.hero-booking .dock-label .eyebrow {
  margin: 0;
  color: #dff091;
  font-size: .875rem;
  letter-spacing: .12em;
  line-height: 1.5;
}
.hero-booking .dock-label > span:last-child {
  max-width: 16ch;
  font-size: clamp(1.7rem, 1.95vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.hero-booking .mini-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(185px, .95fr);
  align-items: end;
  gap: 20px;
  margin: 0;
  padding: 27px 28px;
}
.hero-booking .mini-form label {
  padding: 0;
  border: 0;
  color: #1a382a;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}
.hero-booking .mini-form input {
  min-width: 0;
  min-height: 56px;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid #213c2826;
  border-radius: 10px;
  background: #faffef;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #142b23;
  outline-offset: 3px;
}
.hero-booking .mini-form .button {
  max-width: none;
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid #112e26;
  border-radius: 10px;
  background: #112e26;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}
.hero-booking .mini-form .button:hover { background: #23563f; border-color: #23563f; }
@media (min-width: 701px) and (max-width: 1000px) {
  .hero { min-height: max(820px, min(100svh, 1250px)); }
  .hero-booking { padding-bottom: 30px; }
  .hero-booking .booking-dock { grid-template-columns: 1fr; }
  .hero-booking .dock-label {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 20px 25px;
    border-radius: 19px 19px 0 0;
  }
  .hero-booking .dock-label > span:last-child { max-width: none; font-size: 1.6rem; }
  .hero-booking .mini-form { padding: 22px 25px; gap: 17px; }
}

/* A brief arrival cue; the form stays still once the guest engages with it. */
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .hero-booking .booking-dock {
    position: relative;
    isolation: isolate;
    animation: booking-dock-enter 760ms cubic-bezier(.16, 1, .3, 1) 1 both;
  }
  .hero-booking .booking-dock > * { position: relative; z-index: 1; }
  .hero-booking .booking-dock::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(110deg, transparent 42%, #dfef9659 48%, #ffffffd9 51%, transparent 58%) 150% 0 / 260% 100% no-repeat;
    animation: booking-dock-sweep 950ms ease-in-out 1050ms 1 both;
  }
  .hero-booking .mini-form .button {
    animation: booking-button-glow 1200ms ease-in-out 1100ms 1 both;
  }
  .hero-booking .booking-dock.is-engaged,
  .hero-booking .booking-dock.is-engaged::before,
  .hero-booking .booking-dock.is-engaged .mini-form .button { animation: none; }
}
@keyframes booking-dock-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes booking-dock-sweep {
  0% { background-position: 150% 0; opacity: 0; }
  20%, 75% { opacity: .6; }
  100% { background-position: -50% 0; opacity: 0; }
}
@keyframes booking-button-glow {
  0%, 100% { box-shadow: 0 0 0 0 #dfef9600, 0 0 0 #dfef9600; }
  45% { box-shadow: 0 0 0 7px #dfef9666, 0 0 24px #dfef9640; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-booking .booking-dock,
  .hero-booking .booking-dock::before,
  .hero-booking .mini-form .button { animation: none !important; }
}

@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    background: var(--paper);
  }
  .hero-visual {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 100svh;
    min-height: 700px;
    max-height: 1040px;
    background: #153e4d;
    color: #fff;
  }
  .hero-booking {
    display: block;
    position: relative;
    inset: auto;
    margin-block: 0;
    padding: 22px 0 0;
  }
  .hero-booking .booking-dock {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
    box-shadow: 0 12px 28px #142b2317;
  }
  .hero-booking .dock-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    border-radius: 15px 15px 0 0;
  }
  .hero-booking .dock-label .eyebrow { display: block; }
  .hero-booking .dock-label > span:last-child {
    max-width: none;
    font-size: 1.55rem;
    line-height: 1.2;
  }
  .hero-booking .mini-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 18px;
  }
  .hero-booking .mini-form input {
    min-width: 0;
    max-width: 100%;
    min-height: 54px;
    padding: 12px 8px;
    font-size: 1rem;
  }
  .hero-booking .mini-form .button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
  }
  .hero-view-image[data-hero-scene="beach-opening"] img { object-position: 35% 50%; }
  .hero-view-image[data-hero-scene="pool-courtyard"] img { object-position: 50% 50%; }
  .hero-view-image[data-hero-scene="restaurant-panorama"] img { object-position: 30% 50%; }
  .hero-shade {
    background:
      linear-gradient(90deg, #051a2466 0%, #051a2440 70%, #051a2426 100%),
      linear-gradient(180deg, #051a244d 0%, #051a2440 38%, #051a241a 62%, #051a245c 100%);
  }
  .hero-view-controls {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }
  .hero-view-controls button {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 5px;
    background: #102a328c;
  }
  .hero-view-controls button > img {
    width: 100%;
    height: clamp(50px, 14vw, 84px);
  }
  .hero-view-controls button > span { padding: 0 3px 4px; text-align: center; }
  .hero-view-controls .hero-view-label { display: none; }
  .hero-view-controls .hero-view-short { display: block; }
}

@media (max-width: 360px) {
  .hero-booking .mini-form { grid-template-columns: minmax(0, 1fr); }
}
