/* ========================================
   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 {
  transform: scale(1);
  transform-origin: center center;
  margin: auto 0;
}

.adverts-rotator {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

.advert-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  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;
  position: relative;
}

/* Social Media Card */
.social-card {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  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: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  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: 3.5rem;
  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.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 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: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0 0 1rem 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.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  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-card {
    aspect-ratio: 4 / 3;
  }

  .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 {
    aspect-ratio: 1;
    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);
}