/* RioDiscover helicopter calculator */

.heli-page {
  background: var(--paper);
}

.heli-hero {
  padding: 2.5rem 0 clamp(4.5rem, 7vw, 6rem);
}

.heli-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.heli-hero__copy h1 {
  max-width: 10ch;
  margin-top: 0.35rem;
  margin-bottom: 0.3em;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
}

.heli-hero__copy > p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.heli-hero__facts {
  margin: 1.6rem 0 1.9rem;
  padding: 0;
  list-style: none;
}

.heli-hero__facts li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.heli-hero__facts li::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0.1rem;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.heli-hero__media {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  background: var(--sand);
  border-radius: 8px;
}

.heli-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.heli-calculator-section {
  padding: clamp(4.8rem, 7vw, 6.5rem) 0;
  background: var(--sand);
}

.heli-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.heli-section-head h2 {
  max-width: 16ch;
  margin-bottom: 0.3rem;
}

.heli-section-head p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.heli-price-date {
  flex: 0 0 auto;
  padding: 0.4rem 0.6rem;
  color: var(--green-950) !important;
  background: #efffa4;
  border: 1px solid #d5ea77;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.heli-calculator {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.heli-passenger-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 1.8rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.heli-label {
  margin: 0 0 0.35rem;
  color: var(--green-800);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heli-passenger-panel h3,
.heli-step-heading h3,
.payment-panel h3,
.selection-summary h3 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.heli-help,
.payment-panel > p,
.selection-summary > p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.passenger-picker {
  display: grid;
  grid-template-columns: repeat(5, 52px);
  gap: 0.55rem;
}

.passenger-button,
.flight-select-button,
.duration-choice,
.payment-button {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--body);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.passenger-button {
  min-height: 50px;
  font-size: 1rem;
  font-weight: 800;
}

.passenger-button:hover,
.flight-select-button:hover,
.duration-choice:hover:not(:disabled),
.payment-button:hover {
  border-color: var(--green-800);
  transform: translateY(-1px);
}

.passenger-button.selected,
.duration-choice.selected,
.payment-button.selected {
  color: var(--green-950);
  background: var(--sun);
  border-color: var(--sun);
}

.large-group-field {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.large-group-field.visible {
  display: flex;
}

.large-group-field input {
  width: 190px;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
}

.calculator-hint {
  margin: 1.3rem 1.8rem 0;
  padding: 0.9rem 1rem;
  color: #344429;
  background: #f1f4e8;
  border-left: 4px solid var(--coral);
  font-size: 0.9rem;
  line-height: 1.6;
}

.heli-flight-step {
  padding: 1.8rem;
}

.heli-step-heading {
  margin-bottom: 1.2rem;
}

.flight-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.flight-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flight-card.selected {
  border-color: var(--green-800);
  box-shadow: inset 0 0 0 1px var(--green-800);
}

.flight-card--doors-off.selected {
  border-color: #9b7049;
  box-shadow: inset 0 0 0 1px #9b7049;
}

.flight-media {
  height: 220px;
  overflow: hidden;
  background: #e9e7de;
}

.flight-media--double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flight-body {
  padding: 1.35rem;
}

.flight-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--green-800);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flight-card--doors-off .flight-eyebrow {
  color: #7f5a38;
}

.flight-body h3 {
  margin-bottom: 0.45rem;
  font-size: 1.55rem;
}

.flight-copy {
  min-height: 3.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.flight-select-button {
  width: 100%;
  min-height: 46px;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  font-weight: 800;
}

.flight-card.selected .flight-select-button {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.flight-card--doors-off.selected .flight-select-button {
  background: #7f5a38;
  border-color: #7f5a38;
}

.flight-note {
  display: none;
  margin: 0.9rem 0 0;
  padding: 0.8rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
}

.flight-card.selected .flight-note {
  display: block;
}

.flight-close-button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 4;
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.flight-card.selected .flight-close-button {
  display: block;
}

.flight-close-button::before,
.flight-close-button::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 9px;
  width: 14px;
  height: 1px;
  background: var(--ink);
}

.flight-close-button::before {
  transform: rotate(45deg);
}

.flight-close-button::after {
  transform: rotate(-45deg);
}

.duration-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.flight-card.selected .duration-grid {
  display: grid;
}

.duration-choice {
  min-height: 108px;
  padding: 0.85rem;
  text-align: left;
}

.duration-choice:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.duration-time,
.duration-price,
.duration-meta {
  display: block;
}

.duration-time {
  font-size: 0.85rem;
  font-weight: 800;
}

.duration-price {
  margin-top: 0.35rem;
  color: var(--green-800);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

.flight-card--doors-off .duration-price {
  color: #7f5a38;
}

.duration-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.route-preview {
  display: none;
  margin-top: 1rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.route-preview.is-visible {
  display: block;
}

.route-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.route-preview-head span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-preview-head strong {
  font-size: 0.82rem;
}

.embedded-helicopter-map {
  width: 100%;
  height: 330px;
  min-height: 330px;
  background: #dfe3dc;
}

.embedded-helicopter-map:not(.labels-visible) .route-label {
  display: none;
}

.route-label {
  display: inline-flex;
  padding: 0.2rem 0.35rem;
  color: var(--white);
  background: rgba(33, 91, 113, 0.82);
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.helicopter-start-marker {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-950);
}

.helicopter-start-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--green-950);
  background: var(--sun);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.heli-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 1rem;
  padding: 0 1.8rem 1.8rem;
}

.payment-panel,
.selection-summary {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-perks {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.payment-perks li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.payment-perks li::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.1rem;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.payment-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.payment-button {
  min-height: 44px;
  padding: 0.65rem;
  font-weight: 800;
}

.summary-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.summary-prices div {
  min-width: 0;
  padding: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.summary-prices span,
.summary-prices strong {
  display: block;
}

.summary-prices span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-prices strong {
  margin-top: 0.25rem;
  color: var(--green-800);
  font-size: 1.45rem;
  line-height: 1.2;
}

.technical-note {
  display: none;
  margin-top: 0.9rem !important;
  padding: 0.8rem;
  color: #694717 !important;
  background: #fff2d8;
  border-left: 3px solid #a56e20;
}

.technical-note.visible {
  display: block;
}

.heli-booking-actions {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.heli-booking-actions.is-visible {
  display: grid;
}

.heli-booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1rem;
  color: var(--white);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.heli-booking-link:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.heli-booking-link--whatsapp {
  background: #1b8f4d;
}

.heli-booking-link--email {
  background: var(--green-950);
}

.heli-info {
  position: relative;
  display: inline-flex;
  margin-left: 0.2rem;
  vertical-align: middle;
}

.heli-info__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--green-800);
  background: var(--paper);
  border: 1px solid var(--green-800);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.heli-info__bubble {
  position: absolute;
  z-index: 1200;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  width: min(310px, 78vw);
  padding: 0.8rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(31, 31, 27, 0.16);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

.heli-info:hover .heli-info__bubble,
.heli-info:focus .heli-info__bubble,
.heli-info:focus-within .heli-info__bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.heli-practical {
  padding: clamp(4.8rem, 7vw, 6.5rem) 0;
}

.heli-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.heli-steps li,
.heli-rules article {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.heli-steps span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green-950);
  background: var(--sun);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.heli-steps h3,
.heli-rules h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.16rem;
}

.heli-steps p,
.heli-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.heli-section-head--rules {
  margin-top: 4rem;
}

.heli-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.heli-rules h3 {
  margin-top: 0;
}

.heli-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  font-size: 0.82rem;
  line-height: 1.6;
}

.mobile-offer-bar {
  display: none;
}

.leaflet-control-attribution {
  font-size: 9px;
}

@media (max-width: 980px) {
  .heli-hero__grid,
  .heli-checkout {
    grid-template-columns: 1fr;
  }

  .heli-hero__media {
    min-height: 380px;
  }

  .heli-hero__media img {
    min-height: 380px;
  }

  .flight-comparison {
    grid-template-columns: 1fr;
  }

  .heli-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .heli-hero {
    padding-top: 1.5rem;
  }

  .heli-hero__grid {
    gap: 2rem;
  }

  .heli-hero__copy h1 {
    font-size: 3.25rem;
  }

  .heli-hero__media,
  .heli-hero__media img {
    min-height: 290px;
  }

  .heli-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .heli-passenger-panel {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .passenger-picker {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .large-group-field {
    align-items: stretch;
    flex-direction: column;
  }

  .large-group-field input {
    width: 100%;
  }

  .calculator-hint {
    margin: 1rem 1.2rem 0;
  }

  .heli-flight-step {
    padding: 1.2rem;
  }

  .flight-media {
    height: 180px;
  }

  .heli-checkout {
    padding: 0 1.2rem 1.2rem;
  }

  .heli-booking-actions {
    grid-template-columns: 1fr;
  }

  .heli-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body:has(.mobile-offer-bar.is-visible) {
    padding-bottom: 92px;
  }

  .heli-hero__copy h1 {
    font-size: 2.8rem;
  }

  .heli-hero__media,
  .heli-hero__media img {
    min-height: 240px;
  }

  .passenger-picker {
    gap: 0.35rem;
  }

  .passenger-button {
    min-height: 44px;
    font-size: 0.84rem;
  }

  .flight-media {
    height: 155px;
  }

  .flight-body {
    padding: 1rem;
  }

  .duration-choice {
    min-height: 98px;
    padding: 0.7rem;
  }

  .duration-price {
    font-size: 1.25rem;
  }

  .embedded-helicopter-map {
    height: 240px;
    min-height: 240px;
  }

  .route-preview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .summary-prices {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-offer-bar.is-visible {
    position: fixed;
    z-index: 1500;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem;
    background: rgba(255, 254, 250, 0.97);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 31, 27, 0.18);
  }

  .mobile-offer-bar__meta {
    min-width: 0;
  }

  .mobile-offer-bar__meta span {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-offer-bar__meta strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 1.3rem;
    line-height: 1.1;
  }

  .mobile-offer-bar__cta {
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    color: var(--green-950);
    background: var(--sun);
    border: 0;
    border-radius: 4px;
    font-weight: 800;
  }

  .mobile-offer-actions {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.65rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(31, 31, 27, 0.16);
  }

  .mobile-offer-actions[hidden] {
    display: none;
  }

  .mobile-offer-action {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 0.45rem;
    color: var(--white);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-offer-action--whatsapp {
    background: #1b8f4d;
  }

  .mobile-offer-action--email {
    background: var(--green-950);
  }
}
