/* ========================================
   MAHARAJAH TOURS - COMPONENT STYLES
   Buttons, Cards, Modals, Hero, Gallery
   ======================================== */

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(78, 14, 16, 0.5) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-section p.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========== BUTTONS ========== */
.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #c09b2d 100%);
  color: #fff;
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  color: #fff;
}

.btn-gold:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline-brand {
  border: 2px solid var(--brand-burgundy);
  color: var(--brand-burgundy);
  background: transparent;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-outline-brand:hover {
  background: var(--brand-burgundy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 14, 16, 0.3);
}

.btn-outline-light {
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--brand-gold);
  color: var(--brand-burgundy);
  border-color: var(--brand-gold);
}

/* ========== ENQUIRY BUTTONS ========== */
.btn-enquire,
.btn-whatsapp {
  display: block;
  width: 100%;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 50px;
  text-decoration: none !important;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 1rem;
}

.btn-enquire {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #c09b2d 100%);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-enquire::before,
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  transition: left 0.6s ease;
  z-index: 0;
}

.btn-enquire:hover::before,
.btn-whatsapp:hover::before {
  left: 100%;
}

.btn-enquire::after,
.btn-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-enquire::after {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
  filter: blur(15px);
}

.btn-whatsapp::after {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.4) 0%, transparent 70%);
  filter: blur(15px);
}

.btn-enquire:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(212, 175, 55, 0.5),
    0 0 40px rgba(212, 175, 55, 0.3);
  filter: brightness(1.1);
  color: #fff;
}

.btn-enquire:hover::after {
  opacity: 1;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(37, 211, 102, 0.5),
    0 0 40px rgba(37, 211, 102, 0.3);
  filter: brightness(1.1);
  color: #fff;
}

.btn-whatsapp:hover::after {
  opacity: 1;
}

.btn-enquire:active,
.btn-whatsapp:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-enquire>*,
.btn-whatsapp>* {
  position: relative;
  z-index: 2;
}

/* ========== ENQUIRY MODAL ========== */
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header.bg-brand-burgundy {
  background: linear-gradient(135deg, var(--brand-burgundy) 0%, var(--brand-dark) 100%);
  border-bottom: 3px solid var(--brand-gold);
  padding: 1.5rem 2rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.modal-body .form-label {
  font-weight: 600;
  color: var(--brand-burgundy);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.modal-body .form-control,
.modal-body .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.modal-body textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.modal-footer {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 2rem;
}

.btn-brand-gold {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #c09b2d 100%);
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-brand-gold::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-brand-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  color: #fff;
}

.btn-brand-gold:hover::before {
  width: 300px;
  height: 300px;
}

.btn-brand-gold i {
  font-size: 1.15rem;
}

.modal-body .alert {
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
}

.modal-body .alert-danger {
  background: linear-gradient(135deg, #fee 0%, #fdd 100%);
  color: #c62828;
  border-left: 4px solid #c62828;
}

.modal-body .alert-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.btn-close-white:hover {
  opacity: 1;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: scale(0.9);
}

.modal.show .modal-dialog {
  transform: scale(1);
}

/* ========== REUSABLE CARDS ========== */
.welcome-section {
  background: #fff;
  padding: 4rem 0;
}

.welcome-section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand-burgundy);
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}

.welcome-section p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  border-radius: 2px;
  opacity: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease;
}

.section-heading.in-view::after {
  width: 120px;
  opacity: 1;
}

.content-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(78, 14, 16, 0.08);
  transition: all 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 8px 30px rgba(78, 14, 16, 0.12);
  transform: translateY(-2px);
}

.cta-card {
  background: linear-gradient(135deg, var(--brand-burgundy) 0%, var(--brand-dark) 100%);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(78, 14, 16, 0.3);
  border: 2px solid var(--brand-gold);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.cta-card>* {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  color: var(--brand-gold);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ========== GALLERY ========== */
.gallery-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(78, 14, 16, 0.08);
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--brand-burgundy);
  font-weight: 700;
  display: flex;
  align-items: center;
}

.gallery-title i {
  color: var(--brand-gold);
}

.tour-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(78, 14, 16, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* ← ADD THIS LINE */
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2.5rem;
  color: var(--brand-gold);
}

/* ================================
   LIGHTBOX — RESPONSIVE FIX
   Full image visible even if tall
================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  /* ✅ allow scroll for very tall images */
  z-index: 9999;
  padding: 2rem;
  /* avoid edges touching viewport */
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: none;
  /* ✅ remove forced crop */
  flex-direction: column;
}

.lightbox-image {
  max-width: 100%;
  max-height: 95vh;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  margin: auto;
  display: block;
}

/* Navigation + close buttons */
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: fixed;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  padding: 12px 16px;
  border-radius: 50%;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 2rem;
  background: transparent;
}



/* ========================================
   MODERN SOCIAL MEDIA ADVERTS
   Instagram & Facebook CTA Cards
   ======================================== */

.advert-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.adverts-rotator {
  width: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.advert-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  text-decoration: none;
  color: inherit;
  display: block;
}

.advert-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Social Media Card */
.social-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.social-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.social-card:hover::before {
  opacity: 1;
}

/* Instagram Gradient */
.social-card.instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-card.instagram::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
}

/* Facebook Gradient */
.social-card.facebook {
  background: linear-gradient(135deg, #0866FF 0%, #004FC5 100%);
}

.social-card.facebook::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 60%);
}

/* Social Icon Container */
.social-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.social-card:hover .social-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.social-icon i {
  font-size: 2.4rem;
  color: #fff;
  animation: iconPulse 2s ease-in-out infinite;
}

.social-card:hover .social-icon i {
  animation: none;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Social Text */
.social-text {
  position: relative;
  z-index: 2;
}

.social-text h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.social-text .social-handle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0 0 0.65rem 0;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.social-text .social-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.social-card:hover .social-cta {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-cta i {
  font-size: 1.1rem;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

/* Decorative Elements */
.social-card::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  bottom: -75px;
  right: -75px;
  z-index: 0;
  transition: all 0.4s ease;
}

.social-card:hover::after {
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
}

/* Advert Indicators (Dots) */
.advert-indicators {
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.advert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(78, 14, 16, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0 4px;
}

.advert-dot:hover {
  background: rgba(78, 14, 16, 0.4);
  transform: scale(1.3);
}

.advert-dot.active {
  background: var(--brand-burgundy);
  width: 26px;
  border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .social-icon {
    width: 80px;
    height: 80px;
  }

  .social-icon i {
    font-size: 2.8rem;
  }

  .social-text h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .social-card {
    padding: 2rem 1rem;
  }

  .social-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }

  .social-icon i {
    font-size: 2.5rem;
  }

  .social-text h4 {
    font-size: 1.2rem;
  }

  .social-text .social-handle {
    font-size: 0.9rem;
  }

  .social-cta {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ========== HOME PAGE TOURS SECTION BACKGROUND ========== */
#tours.bg-light {
  background: linear-gradient(135deg, #fef9f3 0%, #f5f0e8 100%) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
/* ========== PAYMENT PAGES ========== */
.payment-success-section,
.payment-failed-section {
  background: linear-gradient(135deg, #faf8f5 0%, #ffffff 100%);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.success-card,
.failed-card {
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(78, 14, 16, 0.08);
  padding: 3rem 2rem;
  text-align: center;
}
.success-card  { max-width: 600px; }
.failed-card   { max-width: 650px; }

.success-icon-wrapper,
.failed-icon-wrapper { margin-bottom: 2rem; }

.success-icon-circle,
.failed-icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.success-icon-circle {
  background: linear-gradient(135deg, #198754 0%, #28a745 100%);
  box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.failed-icon-circle {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
  animation: failedShake 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.success-icon-circle i,
.failed-icon-circle i { font-size: 3rem; color: white; }

.success-content,
.failed-content { animation: fadeInUp 0.8s ease 0.2s both; }

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #198754;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.failed-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.success-message,
.failed-message {
  font-size: 1.125rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.success-message { max-width: 450px; margin-left: auto; margin-right: auto; }

.success-info-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid #198754;
}
.failed-info-box {
  background: #fff5f5;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #dc3545;
  text-align: left;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #495057;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
}
.info-item i { font-size: 1.25rem; color: #198754; }
.info-item:first-child { border-bottom: 1px solid #dee2e6; }

.info-box-title {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.info-box-title i { color: #dc3545; font-size: 1.25rem; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: #6c757d;
  font-size: 0.95rem;
  position: relative;
}
.info-list li::before { content: "•"; color: #dc3545; font-weight: bold; position: absolute; left: 0; }

.help-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  border: 2px dashed #dee2e6;
}
.help-box i { font-size: 1.75rem; color: #4e0e10; flex-shrink: 0; margin-top: 0.25rem; }
.help-box strong { display: block; color: #495057; margin-bottom: 0.25rem; font-size: 0.95rem; }
.help-box p { font-size: 0.9rem; color: #6c757d; }
.help-box a { color: #4e0e10; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.help-box a:hover { color: #721318; text-decoration: underline; }

.success-actions,
.failed-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-brand {
  background: #4e0e10;
  border: 2px solid #4e0e10;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}
.btn-brand:hover {
  background: #721318;
  border-color: #721318;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 14, 16, 0.3);
}

.btn-outline-brand {
  border: 2px solid #4e0e10;
  color: #4e0e10;
  background: transparent;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
}
.btn-outline-brand:hover {
  background: #4e0e10;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 14, 16, 0.3);
}

@media (max-width: 576px) {
  .success-card,
  .failed-card { padding: 2rem 1.5rem; }
  .success-title,
  .failed-title { font-size: 1.75rem; }
  .success-icon-circle,
  .failed-icon-circle { width: 80px; height: 80px; }
  .success-icon-circle i,
  .failed-icon-circle i { font-size: 2.5rem; }
  .success-actions,
  .failed-actions { flex-direction: column; }
  .btn-brand,
  .btn-outline-brand { width: 100%; justify-content: center; }
  .help-box { flex-direction: column; text-align: center; }
  .help-box i { margin: 0; }
}

/* ========== BOOKING FORM PAGE ========== */
.booking-hero {
  background: linear-gradient(135deg, #4e0e10 0%, #6b1214 100%);
  padding: 32px 0 28px;
  color: #fff;
}

.booking-hero-breadcrumb {
  font-size: 0.85rem;
  color: #c9a84c;
  margin-bottom: 10px;
}

.booking-hero-breadcrumb a {
  color: #c9a84c;
  text-decoration: none;
}

.booking-hero-breadcrumb a:hover {
  text-decoration: underline;
}

.booking-tour-title {
  font-size: 2.1rem;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}

.booking-tour-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.booking-tour-meta-divider {
  color: rgba(255, 255, 255, 0.3);
}

/* Image strip */
.booking-img-strip {
  display: flex;
  height: 260px;
  gap: 3px;
  background: #1a0405;
  overflow: hidden;
}

.booking-img-item {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.booking-img-item.is-featured {
  flex: 2;
}

.booking-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.booking-img-item img:hover {
  transform: scale(1.04);
}

/* Tour summary band (sticky reference above the form) */
.booking-summary-band {
  background: #fff;
  border-left: 4px solid #c9a84c;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.booking-summary-band h2 {
  font-size: 1.35rem;
  color: #4e0e10;
  margin: 0 0 6px;
  line-height: 1.2;
}

.booking-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.88rem;
  color: #555;
}

/* Step cards */
.booking-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: #4e0e10;
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.booking-step-number {
  width: 32px;
  height: 32px;
  background: #c9a84c;
  color: #4e0e10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.booking-step-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Pricing option cards */
.pricing-option {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 12px;
}

.pricing-option:hover {
  border-color: #c9a84c;
  background: #fffdf5;
}

.pricing-option.selected {
  border-color: #c9a84c;
  background: #fffdf5;
}

.pricing-option input[type="radio"] {
  display: none;
}

/* Submit area */
.booking-submit-area {
  text-align: center;
  padding: 8px 0 16px;
}

.booking-submit-btn {
  background: #4e0e10;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 48px;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  max-width: 420px;
}

.booking-submit-btn:hover {
  background: #3a0a0c;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .booking-tour-title { font-size: 1.5rem; }
  /* Strip: shorter, horizontal scroll, no featured-wide distinction */
  .booking-img-strip { height: 150px; overflow-x: auto; flex-wrap: nowrap; }
  .booking-img-item,
  .booking-img-item.is-featured { min-width: 130px; flex: none; }
  .booking-step-header { padding: 14px 16px; }
  .booking-submit-btn { padding: 14px 24px; font-size: 1rem; }
}

@media (max-width: 575px) {
  /* Strip: even more compact on iPhone */
  .booking-img-strip { height: 120px; }
  .booking-img-item,
  .booking-img-item.is-featured { min-width: 110px; }
}

/* ========== TOUR PICKER ========== */
.tour-picker-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-picker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Wrapper stretches to card height via align-items:stretch on parent */
.tour-picker-thumb-wrap {
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0ece8; /* neutral fallback while image loads */
}

/* Image always fills its wrapper regardless of natural size */
.tour-picker-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-picker-meta {
  min-width: 0; /* allows word-wrap inside flex */
}

.tour-picker-cta {
  min-width: 130px; /* price + button never wrap */
}

@media (max-width: 575px) {
  /* Flip to stacked layout — image full-width on top, content below */
  .tour-picker-inner {
    flex-direction: column;
  }

  /* Thumb becomes a full-width banner, not a narrow side sliver */
  .tour-picker-thumb-wrap {
    width: 100% !important;
    min-width: 0 !important;
    height: 150px;
  }

  .tour-picker-cta {
    min-width: 110px;
  }
}
