/* ========================================= */
/* Tour Header Shortcode Styling */
/* ========================================= */
.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0 !important;
}

.tour-header__left {
  flex: 1;
  min-width: 0;
}

.tour-header__title {
  font-size: 1.7rem !important;
  font-weight: 500 !important;
  color: #080808;
  margin: 0 0 0.1rem 0 !important;
  line-height: 1.3;
}

.tour-header__subtitle {
  font-size: 0.875rem;
  color: #484848;
  margin: 0;
  font-weight: 500;
}

.tour-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.tour-header__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: transparent;

  border-radius: 20px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tour-header__share-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.tour-header__share-btn i {
  font-size: 1rem;
}

.tour-header__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
}

.tour-header__rating i {
  color: #f59e0b;
  font-size: 1rem;
}

.tour-header__rating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
}

/* Hide mobile-only bottom row on desktop */
.tour-header__mobile-bottom {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .tour-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tour-header__title {
    font-size: 1.375rem !important;
    margin-bottom: 2px;
  }

  /* Hide desktop right section on mobile */
  .tour-header__right {
    display: none;
  }

  /* Show mobile bottom row */
  .tour-header__mobile-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0rem;
    padding-top: 0rem;
  }

  .tour-header__mobile-bottom .tour-header__rating {
    padding: 0;
    background: none;
    border: none;
  }

  .tour-header__mobile-bottom .tour-header__share-btn {
    padding: 0.375rem 0.75rem;
  }
}

/* Base booking form card styles - applies to both private and shared tours */
.booking-form-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.booking-form-card .form-header {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

/* Base form fields grid styles for private tours */
.booking-form-card .form-fields-grid.form-fields-row-1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  margin-bottom: 16px;
}

.booking-form-card .form-fields-row-1 .form-field {
  width: 100%;
  min-width: 0;
  /* Prevent overflow */
}

/* Base form fields row 2 styles for private tours */
.booking-form-card .form-fields-row-2 {
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
}

/* Base slots section container styles for private tours */
.booking-form-card .slots-section-container {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background-color: #ffffff;
  margin-top: 0;
  margin-bottom: 16px;
}

.booking-form-card .slots-section-container label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #334155;
  text-decoration: none;
}

/* Two-column grid for shared tours only */
.shared-tour .slots-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px;
}

.slot-btn--shared {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: #334155;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
}

.slot-button .disabled .past {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.slot-button.disabled.past {
  background: #b0b0b0 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 1 !important;
  border: none !important;
}

.slot-button.disabled.past:hover,
.slot-button.disabled.past:active,
.slot-button.disabled.past:focus {
  background: #b0b0b0 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 1 !important;
  border: none !important;
}


.slot-grid-item {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}

.slot-for-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  /* gray-500 */
  margin-bottom: 6px;
  font-weight: 600;
}

.slot-btn.slot-btn--shared {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  /* gray-200 */
  background: #ffffff;
  color: #111827;
  /* gray-900 */
}

.slot-btn.slot-btn--shared.selected {
  background-color: #0073e6;
  color: #ffffff;
  border-color: #0073e6;
}

/* Ensure highlight icons render at a consistent size */
.highlight-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* Guest categories grid for shared tours */
.guest-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guest-category-field {
  display: flex;
  flex-direction: column;
}

.guest-category-field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #334155;
}

.guest-category-field select {
  padding: 4px 12px !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  color: #111827;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.guest-category-field select:hover:not(:disabled) {
  border-color: #cbd5e1;
}

.guest-category-field select:focus {
  outline: none;
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

.guest-category-field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

/* Ensure guest categories work in review page summary */
#tour-summary-shared .guest-categories-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#tour-summary-shared .guest-category-field {
  display: flex;
  flex-direction: column;
}

#tour-summary-shared .guest-category-field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #334155;
}

#tour-summary-shared .guest-category-field select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  color: #111827;
  font-size: 14px;
  cursor: pointer;
}

#tour-summary-shared .guest-category-field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

/* Layout reorganization for shared tours */
.shared-tour .form-fields-row-1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Equal width for date and duration */
  gap: 16px;
  margin-bottom: 16px;
}

.shared-tour .form-fields-row-1 .form-field {
  width: 100%;
  min-width: 0;
  /* Prevent overflow */
}

.shared-tour .form-fields-row-2 {
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
}

.shared-tour .guests-section {
  display: flex;
  flex-direction: column;
}

.shared-tour .guests-section-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #334155;
  display: block;
}

.shared-tour .guests-section .guest-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Add borders to guest category fields to match date/duration fields */
.shared-tour .guest-category-field select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb !important;
  /* Match date/duration border style */
  border-radius: 8px;
  background-color: #ffffff;
  color: #111827;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.shared-tour .guest-category-field select:hover:not(:disabled) {
  border-color: #cbd5e1 !important;
}

.shared-tour .guest-category-field select:focus {
  outline: none;
  border-color: #0073e6 !important;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

.shared-tour .guest-category-field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

/* Ensure date and duration inputs have consistent styling */
.shared-tour .form-fields-row-1 .form-field input,
.shared-tour .form-fields-row-1 .form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  color: #111827;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.shared-tour .form-fields-row-1 .form-field input:focus,
.shared-tour .form-fields-row-1 .form-field select:focus {
  outline: none;
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

/* Ensure slots section is always visible for shared tours */
.shared-tour #slots-section {
  display: block;
  margin-top: 0;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background-color: #ffffff;
}

.shared-tour #slots-section label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #334155;
}

.shared-tour #slots-buttons-wrapper {
  min-height: 60px;
}

/* Mobile Sticky Booking Banner */
.mobile-sticky-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-sticky-banner.banner-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .mobile-sticky-banner {
    display: block;
  }
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-price-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.banner-from-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
}

.banner-price {
  font-size: 18px;
  font-weight: 700;
  color: #0073e6;
}

.banner-guest-label {
  font-size: 12px;
  color: #64748b;
}

.banner-cta {
  background-color: #0073e6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.banner-cta:hover {
  background-color: #005bb8;
}

/* Adjust page content to prevent being hidden by banner */
@media (max-width: 768px) {
  body.has-mobile-booking-banner {
    padding-bottom: 80px;
  }

  .booking-form-card {
    padding: 12px 8px !important;
  }
}

/* Processing fees note */
.booking-processing-fee-note {
  text-align: center;
  color: #0D4989;
  font-size: 1rem;
  margin: 8px 0 0 0;
  font-weight: 500;
}

/* Don't miss out / Limited slots section */
.booking-urgency-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 16px;
  gap: 12px;
}

.booking-urgency-left {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #E0E0E0;
}

.booking-urgency-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.booking-urgency-icon svg {
  width: 24px;
  height: 24px;
}

.booking-urgency-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-urgency-title {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
}

.booking-urgency-subtitle {
  font-size: 0.8rem;
  color: #000000;
  font-weight: 400;
  line-height: 1.2;
}

.booking-urgency-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #E0E0E0;
}

.booking-slots-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.2;
}

.booking-slots-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066cc;
  line-height: 1.2;
}

/* Responsive - Booking urgency section */
@media (max-width: 480px) {
  .booking-urgency-section {
    flex-direction: column;
    gap: 12px;
  }

  .booking-urgency-right {
    align-items: stretch;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .booking-urgency-left {
    width: 100%;
  }
}

/* ========================================= */
/* Similar Tours Section */
/* ========================================= */
.btc-similar-tours {
  margin: 48px 0;
}

.btc-similar-tours__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.btc-similar-tours__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.btc-similar-tours__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.btc-similar-tours__card:hover {
  transform: translateY(-4px);
}

.btc-similar-tours__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
}

.btc-similar-tours__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.btc-similar-tours__card:hover .btc-similar-tours__image {
  transform: scale(1.05);
}

.btc-similar-tours__name {
  margin: 12px 0 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
}

/* Responsive - Similar Tours */
@media (max-width: 992px) {
  .btc-similar-tours__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .btc-similar-tours {
    margin: 32px 0;
  }

  .btc-similar-tours__title {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .btc-similar-tours__grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .btc-similar-tours__grid::-webkit-scrollbar {
    display: none;
  }

  .btc-similar-tours__card {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }

  .btc-similar-tours__image-wrapper {
    aspect-ratio: 3 / 4;
  }

  .btc-similar-tours__name {
    font-size: 0.85rem;
    margin-top: 8px;
  }
}