/* Inquiry dialog opened by the price estimate's Check Availability button on the
   multi-day tour pages (day trips get the same rules from day-trip-detail.css).
   Loaded after style.min.css and site-quality.min.css. */

/* The booking summary keeps only the WhatsApp button; let it fill the row. */
.tour-detail-page .tour-detail-sidebar .cta-actions:has(> .btn:only-child) {
  grid-template-columns: minmax(0, 1fr);
  justify-self: stretch;
  width: 100%;
}

.tour-detail-page .tour-detail-sidebar .cta-actions .btn:only-child {
  width: 100%;
}

/* Inquiry dialog opened by the price estimate's Check Availability button. */
html.inquiry-open {
  overflow: hidden;
}

.inquiry-modal {
  width: min(94vw, 700px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.inquiry-modal::backdrop {
  background: rgba(36, 27, 24, .62);
}

.inquiry-modal__panel {
  position: relative;
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: clamp(1.15rem, 3vw, 1.9rem);
  border: 1px solid rgba(36, 27, 24, .12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff8e8);
  box-shadow: 0 28px 80px rgba(36, 27, 24, .38);
}

.inquiry-modal__close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(36, 27, 24, .16);
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.inquiry-modal__close:hover,
.inquiry-modal__close:focus-visible {
  border-color: var(--forest);
  background: rgba(90, 7, 24, .07);
}

.inquiry-modal h2 {
  margin: .2rem 2.8rem .4rem 0;
  color: var(--forest);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.12;
}

.inquiry-modal h2:focus {
  outline: none;
}

.inquiry-modal__intro {
  margin: 0 0 1rem;
  color: #6f5e54;
  line-height: 1.6;
}

.inquiry-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1.1rem;
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: rgba(255, 235, 190, .55);
}

.inquiry-summary[hidden],
.inquiry-summary [hidden] {
  display: none;
}

.inquiry-summary dt {
  color: #79685e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.inquiry-summary dd {
  margin: .1rem 0 0;
  color: #2f241f;
  font-weight: 800;
}

.inquiry-modal .contact-tour-context {
  margin: 0 0 .9rem;
}

@media (max-width: 560px) {
  .inquiry-modal {
    width: 100vw;
  }

  .inquiry-modal__panel {
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .inquiry-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}
