.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-8);
  align-items: start;
}

/* Allow the main column to shrink so wide carousel tracks scroll inside the viewport, not expand the page */
.tour-main {
  min-width: 0;
}

/* The injected "three ways" panel ends the main column. Its own margin above and
   the CTA section's top padding below already separate it, so drop main's bottom
   padding to avoid a double section gap before the CTA. */
main.tour-page-main {
  padding-bottom: 0;
}

/* Desktop two-column layout: let the gallery use the grid gutter to the right (does not overlap the sidebar) */
@media (min-width: 1025px) {
  .tour-layout > .tour-main > section:has(.tour-gallery) .tour-gallery {
    width: calc(100% + var(--sp-8));
    max-width: calc(100% + var(--sp-8));
  }
}

.tour-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.booking-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.booking-card__header {
  background: linear-gradient(160deg, var(--accent-light) 0%, var(--accent) 55%, #e8870d 100%);
  padding: 28px 28px 24px;
  text-align: center;
}

.booking-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-family: var(--font-currency);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #1a1207;
}

.booking-card__amount {
  display: block;
  white-space: nowrap;
}

.booking-card__qualifier {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(40, 24, 0, 0.66);
}

.booking-card__inr {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(40, 24, 0, 0.62);
}

.booking-card__price-note {
  margin-top: 6px;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(40, 24, 0, 0.58);
}

.booking-card__body {
  padding: var(--sp-4);
}

.booking-card__facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.booking-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.booking-fact i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.booking-fact strong {
  color: var(--text);
  margin-left: auto;
}

.booking-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.booking-card__actions .btn {
  width: 100%;
  justify-content: center;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-base);
  color: var(--text-muted);
}

.highlight-item i {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

@media (max-width:1024px) {
  .tour-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-sidebar {
    position: static;
  }
}

/* Route map, embedded tour video, vehicle options (tour pages) */
.tour-route-map {
  margin: 0;
  padding: 0;
}

.tour-route-map__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.tour-route-map__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.tour-route-map__cap {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.tour-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
}

.tour-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Left-aligned, wrapping flex so it stays on the page's editorial axis (matching
   the heading + inclusions) and adapts to any count (1–9): small counts sit
   left, many counts wrap into tidy rows. Fixed-ish card width keeps a lone
   option from blowing up to full width. */
.tour-vehicle-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--sp-3);
}

.tour-vehicle-section__item {
  flex: 0 1 160px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tour-vehicle-section__item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Light panel behind the cutout so dark vehicles read in dark mode too. */
.tour-vehicle-section__item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f4f3f0;
  padding: 14px;
}

.tour-vehicle-section__item-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-2);
  min-height: 64px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.tour-vehicle-section__item-badge span {
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .tour-vehicle-section__item img {
    height: 130px;
  }
}

@media (max-width: 560px) {
  .tour-vehicle-section__list {
    gap: var(--sp-2);
  }

  .tour-vehicle-section__item {
    flex-basis: 140px;
  }

  .tour-vehicle-section__item img {
    height: 120px;
  }
}

/* === INQUIRY MODAL === */
.inquiry-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.inquiry-modal-overlay.open {
  display: flex;
}

.inquiry-modal {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inquiry-modal__header {
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}

.inquiry-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.inquiry-modal__subtitle {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
}

.inquiry-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.inquiry-modal__close:hover {
  color: var(--text);
}

.inquiry-modal__content {
  padding: var(--sp-3) var(--sp-5);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.inquiry-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.inquiry-form-label {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text);
}

.inquiry-form-label .required {
  color: var(--accent);
}

.inquiry-form-input,
.inquiry-form-input-readonly {
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.2s;
}

.inquiry-form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 197, 18, 0.1);
}

.inquiry-form-input-readonly {
  background-color: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.inquiry-form-input.error {
  border-color: #FF5252;
}

.inquiry-form-submit {
  padding: var(--sp-2) var(--sp-4);
  background-color: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: var(--sp-2);
}

.inquiry-form-submit:hover:not(:disabled) {
  opacity: 0.9;
}

.inquiry-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.inquiry-form-message {
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  margin-top: var(--sp-2);
}

.inquiry-form-message.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.inquiry-form-message.error {
  background-color: rgba(255, 82, 82, 0.1);
  color: #FF5252;
  border: 1px solid #FF5252;
}

.tour-vehicle-section__image {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: var(--sp-4) 0;
  border-radius: var(--radius-md);
  object-fit: contain;
}
