/* ==========================================================================
   Tours Page Premium CSS Stylesheet
   ========================================================================== */

/* Variables matching the Next.js globals */
:root {
  --tp-navy: #0c2340;
  --tp-ocean: #0a6e75;
  --tp-turquoise: #0d9488;
  --tp-yellow: #facc15;
  --tp-orange: #f97316;
  --tp-bg: #fbfbf9;
  --tp-card-bg: #ffffff;
  --tp-slate: #f1ede2;
  --tp-premium-dark: #f8f7f2;
}

/* Hide default page headers and titles */
.tours-page-body .page-header,
.tours-page-body .entry-title,
.tours-page-body .post-title,
.tours-page-body .elementor-page-title,
.tours-page-body header.entry-header,
.tours-page-body .elementor-header {
  display: none !important;
}

/* Animations */
@keyframes tpFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes tpFloatAlt {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes tpPlaneFly {
  0% { transform: translate(-50px, 20px) rotate(15deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(120vw, -100px) rotate(5deg); opacity: 0; }
}
@keyframes tpCloudDrift {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(110%); }
}
@keyframes tpConfettiFall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
@keyframes tpFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tours Page Wrapper */
.tours-page-body {
  position: relative;
  background-color: #ffffff;
  color: var(--tp-navy);
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Canvas overlay for interactive water ripples */
#ra-water-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Sits behind text content but allows mouse interaction */
  pointer-events: none; /* Let clicks pass through to tour cards */
  opacity: 0.8;
}

/* Ensure standard sections sit above canvas container to remain readable */
.tp-hero-section,
.tp-filter-container,
.tp-tours-grid-section,
.tp-footer-banner {
  position: relative;
  z-index: 5;
}



/* Typography Overrides */
.tours-page-body h1,
.tours-page-body h2,
.tours-page-body h3,
.tours-page-body h4,
.tours-page-body h5,
.tours-page-body h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tp-navy);
}

.tours-page-body p,
.tours-page-body span,
.tours-page-body button,
.tours-page-body input,
.tours-page-body select,
.tours-page-body textarea {
  font-family: 'Roboto', sans-serif;
}

.tp-script-accent {
  font-family: 'Caveat', cursive !important;
  font-size: 2.2rem;
  color: var(--tp-orange);
  text-transform: none !important;
}

/* Hero Banner */
.tp-hero-section {
  position: relative;
  /* Background set dynamically in page-tours.php */
  background-size: cover;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px 140px 20px;
  color: #fff;
  overflow: hidden;
}

/* Andaman-style Hero Badges and Typography */
.tp-hero-badge-pill {
  display: inline-flex;
  border-radius: 30px;
  overflow: hidden;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin-bottom: 15px;
  animation: tpFadeIn 0.8s ease-out;
}

.tp-badge-green {
  background-color: #22c55e; /* Vibrant green */
  color: #fff;
  padding: 6px 16px;
}

.tp-badge-gray {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-left: none;
}

.tp-hero-destinations {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2.5px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
  animation: tpFadeIn 1s ease-out;
}

.tp-hero-main-title {
  font-family: 'Oswald', sans-serif;
  font-size: 7.5rem; /* Massive size like ANDAMAN */
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 0, 0, 0.1);
  margin: 5px 0;
  line-height: 0.85;
  text-transform: uppercase;
  animation: tpFadeIn 1.2s ease-out;
}

.tp-hero-tagline {
  background-color: #f97316; /* Orange tag matching theme */
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-top: 15px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  animation: tpFadeIn 1.4s ease-out;
}

@media (max-width: 767px) {
  .tp-hero-main-title {
    font-size: 4.5rem;
  }
  .tp-hero-destinations {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0 10px;
  }
}

/* Wave/Torn Paper Edge Divider */
.tp-wave-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 10;
}

.tp-wave-divider svg {
  width: 100%;
  height: 100%;
  fill: var(--tp-bg);
}

/* Animations in Hero */
.tp-hero-plane {
  position: absolute;
  top: 25%;
  left: 0;
  width: 45px;
  height: 35px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: tpPlaneFly 16s linear infinite;
}

.tp-hero-clouds {
  position: absolute;
  bottom: 10%;
  left: -20%;
  width: 150%;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: tpCloudDrift 45s linear infinite;
}

/* Search and Filters Section */
.tp-filter-container {
  max-w: 1100px;
  margin: -50px auto 40px auto;
  position: relative;
  z-index: 20;
  padding: 0 20px;
}

.tp-search-filter-card {
  background: #fff;
  border-radius: 30px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(12, 35, 64, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

@media (min-width: 768px) {
  .tp-search-filter-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
  }
}

.tp-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tp-filter-btn {
  background-color: var(--tp-premium-dark);
  border: 1px solid rgba(12, 35, 64, 0.1);
  color: var(--tp-navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-filter-btn:hover {
  border-color: var(--tp-orange);
  color: var(--tp-orange);
  background-color: #fff;
}

.tp-filter-btn.active {
  background: linear-gradient(135deg, var(--tp-orange), var(--tp-yellow));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.25);
}

.tp-search-box {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.tp-search-box input {
  width: 100%;
  padding: 12px 20px 12px 45px !important;
  border-radius: 30px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  font-size: 0.85rem;
  outline: none;
  background-color: var(--tp-premium-dark);
  color: var(--tp-navy);
  transition: all 0.3s ease;
}

.tp-search-box input:focus {
  border-color: var(--tp-ocean);
  background-color: #fff;
  box-shadow: 0 0 10px rgba(10, 110, 117, 0.1);
}

.tp-search-box svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--tp-navy);
  opacity: 0.6;
}

/* Tours Grid Layout */
.tp-tours-list {
  max-width: 1100px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Tour Card */
.tp-tour-card {
  background-color: var(--tp-card-bg);
  border-radius: 40px;
  border: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 20px 50px rgba(12, 35, 64, 0.04);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  overflow: hidden; /* Changed to hidden to clip spotlight border radius correctly */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Spotlight Glow Overlay */
.tp-tour-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(13, 148, 136, 0.08),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tp-tour-card:hover::before {
  opacity: 1;
}

.tp-tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(12, 35, 64, 0.08);
  border-color: rgba(249, 115, 22, 0.15);
}

/* Ensure content sits above spotlight background */
.tp-tour-content {
  position: relative;
  z-index: 2;
}

.tp-tour-visuals {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .tp-tour-card {
    flex-direction: row;
    padding: 40px;
  }
}

/* Left Column: Content */
.tp-tour-content {
  flex: 1.3;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .tp-tour-content {
    padding-right: 20px;
  }
}

.tp-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.tp-category-badge {
  background: var(--tp-navy);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-category-badge svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.tp-tour-title {
  font-size: 2.2rem;
  margin: 10px 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.tp-tour-desc {
  color: #55606e;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 10px 0 25px 0;
}

/* Highlights Grid */
.tp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

@media (min-width: 576px) {
  .tp-highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tp-highlight-box {
  background-color: var(--tp-premium-dark);
  border: 1px solid rgba(12, 35, 64, 0.05);
  border-radius: 20px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.tp-highlight-box:hover {
  background-color: #fff;
  border-color: var(--tp-turquoise);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13, 148, 136, 0.05);
}

.tp-highlight-icon {
  width: 32px;
  height: 32px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(12, 35, 64, 0.05);
}

.tp-highlight-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--tp-ocean);
}

.tp-highlight-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tp-navy);
  letter-spacing: 0.5px;
}

/* Price & CTA bar */
.tp-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px dashed rgba(12, 35, 64, 0.1);
  padding-top: 25px;
  margin-top: auto;
}

.tp-price-container {
  display: flex;
  flex-direction: column;
}

.tp-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #718096;
  font-weight: bold;
}

.tp-price-val {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--tp-navy);
  line-height: 1;
}

.tp-price-val span {
  font-size: 1rem;
  font-weight: 500;
  color: #718096;
}

.tp-cta-group {
  display: flex;
  gap: 12px;
}

.tp-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.tp-btn-secondary {
  background-color: var(--tp-premium-dark);
  border: 1px solid rgba(12, 35, 64, 0.12);
  color: var(--tp-navy);
}

.tp-btn-secondary:hover {
  border-color: var(--tp-navy);
  background-color: #fff;
}

.tp-btn-primary {
  background: linear-gradient(135deg, var(--tp-navy), var(--tp-ocean));
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 35, 64, 0.15);
}

.tp-btn-primary:hover {
  background: linear-gradient(135deg, var(--tp-orange), var(--tp-yellow));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
  transform: translateY(-2px);
}

/* Right Column: Visual Polaroids */
.tp-tour-visuals {
  flex: 0.85;
  position: relative;
  min-height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 991px) {
  .tp-tour-visuals {
    min-height: 320px;
    margin-top: 20px;
    width: 100%;
  }
}

.tp-polaroid-stack {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 260px;
}

.tp-polaroid-photo {
  position: absolute;
  background-color: #fff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  padding: 10px 10px 32px 10px;
  box-shadow: 0 10px 30px rgba(12, 35, 64, 0.1);
  border-radius: 4px;
  width: 200px;
  height: 220px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.tp-polaroid-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
}

.tp-polaroid-photo::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #4a5568;
}

/* Specific polaroid placement */
.tp-polaroid-1 {
  left: 5px;
  top: 10px;
  transform: rotate(-8deg);
  z-index: 5;
  animation: tpFloat 8s ease-in-out infinite;
}

.tp-polaroid-2 {
  right: 5px;
  top: 20px;
  transform: rotate(6deg);
  z-index: 4;
  animation: tpFloatAlt 9s ease-in-out infinite;
}

.tp-polaroid-3 {
  left: 20px;
  top: 30px;
  transform: rotate(-3deg);
  z-index: 3;
}

.tp-polaroid-4 {
  right: 25px;
  top: 15px;
  transform: rotate(4deg);
  z-index: 2;
}

/* Polaroid interactive effects */
.tp-polaroid-stack:hover .tp-polaroid-1,
.tp-tour-card:hover .tp-polaroid-1 {
  transform: translate(-55px, -25px) rotate(-14deg);
  z-index: 8;
  box-shadow: 0 25px 45px rgba(12, 35, 64, 0.22);
}

.tp-polaroid-stack:hover .tp-polaroid-2,
.tp-tour-card:hover .tp-polaroid-2 {
  transform: translate(55px, 15px) rotate(12deg);
  z-index: 7;
  box-shadow: 0 25px 45px rgba(12, 35, 64, 0.18);
}

.tp-polaroid-stack:hover .tp-polaroid-3,
.tp-tour-card:hover .tp-polaroid-3 {
  transform: translate(-20px, 45px) rotate(-8deg);
  z-index: 6;
  box-shadow: 0 25px 45px rgba(12, 35, 64, 0.18);
}

.tp-polaroid-stack:hover .tp-polaroid-4,
.tp-tour-card:hover .tp-polaroid-4 {
  transform: translate(25px, -45px) rotate(8deg);
  z-index: 5;
  box-shadow: 0 25px 45px rgba(12, 35, 64, 0.18);
}

/* Plumeria/Frangipani Tropical Flower overlay */
.tp-plumeria-overlay {
  position: absolute;
  bottom: -10px;
  right: 10px;
  width: 70px;
  height: 70px;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(12, 35, 64, 0.15));
  pointer-events: none;
  transform: rotate(-10deg);
  transition: all 0.4s ease;
}

.tp-polaroid-stack:hover + .tp-plumeria-overlay {
  transform: scale(1.1) rotate(15deg);
}

/* Dynamic Booking Drawer & Slide-in overlay */
.tp-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 35, 64, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.tp-booking-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  max-width: 950px;
  background-color: var(--tp-bg);
  box-shadow: -15px 0 40px rgba(12, 35, 64, 0.15);
  z-index: 9995;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.tp-booking-drawer.active {
  right: 0;
}

/* Drawer Header */
.tp-drawer-header {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

.tp-drawer-title {
  font-size: 1.5rem;
  margin: 0;
}

.tp-drawer-close {
  background: var(--tp-premium-dark);
  border: 1px solid rgba(12, 35, 64, 0.1);
  color: var(--tp-navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tp-drawer-close:hover {
  background-color: var(--tp-orange);
  color: #fff;
  border-color: transparent;
  transform: rotate(90deg);
}

/* Drawer Scrollable Body */
.tp-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .tp-drawer-body {
    flex-direction: row;
  }
}

/* Left side of drawer: Form */
.tp-booking-form-side {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(12, 35, 64, 0.08);
}

#tp-booking-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tp-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tp-navy);
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.tp-form-input {
  width: 100%;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(12, 35, 64, 0.1) !important;
  font-size: 0.95rem;
  outline: none !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  color: var(--tp-navy) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tp-form-input:focus {
  border-color: var(--tp-turquoise) !important;
  background-color: #fff !important;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12), 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
  transform: translateY(-2px);
}

/* Custom Dropdown Styling */
select.tp-form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230c2340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 16px !important;
  padding-right: 45px;
}

.tp-pax-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.tp-pax-counter {
  display: flex;
  align-items: center;
  border: 1px solid rgba(12, 35, 64, 0.14) !important;
  border-radius: 12px;
  background-color: #fcfbf7;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(12, 35, 64, 0.03);
  transition: all 0.25s ease;
}

.tp-pax-counter:focus-within {
  border-color: var(--tp-turquoise) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16) !important;
}

.tp-pax-btn {
  width: 42px;
  height: 42px;
  background-color: rgba(12, 35, 64, 0.03) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--tp-navy) !important;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.tp-pax-btn:hover,
.tp-pax-btn:focus,
.tp-pax-btn:active {
  background-color: rgba(12, 35, 64, 0.08) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.tp-pax-btn:active {
  transform: scale(0.92) !important;
}

.tp-pax-val {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tp-navy);
}

/* Right side of drawer: Ticket Preview */
.tp-booking-ticket-side {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Ticket Design */
.tp-boarding-pass {
  background-color: #fff;
  border: 2px solid var(--tp-navy);
  border-radius: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 15px 35px rgba(12, 35, 64, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fold ticket cuts */
.tp-boarding-pass::before,
.tp-boarding-pass::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--tp-bg);
  border: 2px solid var(--tp-navy);
  z-index: 10;
  top: 72%;
}

.tp-boarding-pass::before {
  left: -14px;
}

.tp-boarding-pass::after {
  right: -14px;
}

.tp-ticket-header {
  background-color: var(--tp-navy);
  color: #fff;
  padding: 18px 25px;
  text-align: center;
}

.tp-ticket-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
  font-size: 1.2rem;
  color: var(--tp-yellow);
}

.tp-ticket-logo-sub {
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin: 2px 0 0 0;
}

.tp-ticket-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.tp-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tp-ticket-col {
  display: flex;
  flex-direction: column;
}

.tp-ticket-lbl {
  font-size: 0.65rem;
  color: #a0aec0;
  text-transform: uppercase;
  font-weight: bold;
}

.tp-ticket-val {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tp-navy);
  text-transform: uppercase;
}

.tp-ticket-val.tp-highlight {
  color: var(--tp-orange);
}

.tp-ticket-tour-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  color: var(--tp-navy);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
  padding-bottom: 8px;
  margin-bottom: 5px;
}

/* Tear off line */
.tp-ticket-divider {
  border-top: 2px dashed var(--tp-navy);
  margin: 15px 0 0 0;
  position: relative;
}

.tp-ticket-footer {
  padding: 25px;
  text-align: center;
  background-color: var(--tp-premium-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tp-barcode {
  width: 100%;
  height: 45px;
  background: repeating-linear-gradient(
    90deg,
    #333,
    #333 2px,
    #fff 2px,
    #fff 6px,
    #333 6px,
    #333 8px,
    #fff 8px,
    #fff 10px
  );
  opacity: 0.8;
}

.tp-ticket-ref {
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: bold;
}

/* Submit Section */
.tp-drawer-footer {
  padding: 20px 30px;
  background-color: #fff;
  border-top: 1px solid rgba(12, 35, 64, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

/* Success screen state */
.tp-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: tpFadeIn 0.5s ease-out;
}

.tp-success-state.active {
  display: flex;
}

.tp-success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(34, 197, 94, 0.1);
  border: 2px solid rgb(34, 197, 94);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.tp-success-icon svg {
  width: 40px;
  height: 40px;
  fill: rgb(34, 197, 94);
}

.tp-success-title {
  font-size: 2rem;
  color: var(--tp-navy);
  margin-bottom: 10px;
}

.tp-success-desc {
  color: #4a5568;
  font-size: 0.95rem;
  max-width: 450px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Itinerary Modal */
.tp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 35, 64, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9980;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.tp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tp-modal-card {
  background-color: #fff;
  border-radius: 36px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 60px rgba(12, 35, 64, 0.15);
  border: 1px solid rgba(12, 35, 64, 0.08);
  padding: 30px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-modal-overlay.active .tp-modal-card {
  transform: translateY(0);
}

.tp-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--tp-premium-dark);
  border: 1px solid rgba(12, 35, 64, 0.1);
  color: var(--tp-navy);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tp-modal-close:hover {
  background-color: #e2e8f0;
}

.tp-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.tp-modal-title {
  font-size: 1.6rem;
  margin: 5px 0;
}

.tp-modal-subtitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tp-orange);
  font-weight: 700;
}

.tp-itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tp-itinerary-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background-color: var(--tp-premium-dark);
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(12, 35, 64, 0.04);
}

.tp-step-number {
  background-color: var(--tp-navy);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.tp-step-text {
  font-size: 0.85rem;
  color: #2d3748;
  line-height: 1.5;
  font-weight: 500;
}

/* Trust Badges Banner */
.tp-trust-banner {
  background-color: var(--tp-navy);
  color: #fff;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.tp-trust-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 576px) {
  .tp-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .tp-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tp-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  animation: tpFadeIn 0.8s ease-out;
}

.tp-trust-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tp-trust-item:hover .tp-trust-icon {
  background-color: var(--tp-yellow);
  transform: rotateY(180deg);
}

.tp-trust-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.tp-trust-item:hover .tp-trust-icon svg {
  fill: var(--tp-navy);
}

.tp-trust-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.tp-trust-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 220px;
  line-height: 1.4;
}

/* Loading spinner */
.tp-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s ease-in-out infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tp-btn.loading .tp-spinner {
  display: inline-block;
}
.tp-btn.loading .tp-btn-text {
  display: none;
}

/* Boarding Pass Stamp Styles */
.tp-confirmed-stamp {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) scale(3) rotate(-15deg);
  color: #dc2626; /* Vibrant stamp red */
  border: 4px double #dc2626;
  border-radius: 12px;
  padding: 8px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.1);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

/* Stamp slam down animation */
.tp-boarding-pass.stamped .tp-confirmed-stamp {
  animation: stampSlam 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3) rotate(-35deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.95) rotate(-12deg);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1) rotate(-15deg);
  }
}

/* Scroll Reveal Styles */
.tp-reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-reveal-element.tp-active {
  opacity: 1;
  transform: translateY(0);
}

/* Button hover feedback scale bounce */
.tp-pax-btn:active {
  transform: scale(0.9);
}

.tp-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Polaroid-style Lightbox Modal Styles
   ========================================================================== */
.tp-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 35, 64, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tp-lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3.5rem;
  cursor: pointer;
  z-index: 100000;
  transition: all 0.3s ease;
  line-height: 1;
}

.tp-lightbox-close:hover {
  color: var(--tp-yellow);
  transform: rotate(90deg) scale(1.1);
}

.tp-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9) rotate(-2deg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-lightbox-overlay.active .tp-lightbox-content {
  transform: scale(1) rotate(0deg);
}

.tp-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background-color: #fff;
  padding: 15px 15px 65px 15px; /* bottom padding is large to fit the caption */
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tp-lightbox-caption {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-family: 'Caveat', cursive !important;
  font-size: 2.2rem;
  color: var(--tp-navy);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: none;
  pointer-events: none;
}

/* ==========================================================================
   Double Rotating Logo Badge Style
   ========================================================================== */
.ra-rotating-logo-badge {
  position: absolute;
  top: 100px;
  right: 40px;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.ra-logo-inner {
  width: 70px;
  height: 70px;
  position: absolute;
  z-index: 17;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.ra-logo-outer {
  width: 130px;
  height: 130px;
  position: absolute;
  z-index: 16;
  object-fit: contain;
  animation: raLogoSpin 20s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes raLogoSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991px) {
  .ra-rotating-logo-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 25px;
    margin-bottom: -15px;
  }
}

/* ==========================================================================
   Predictive Autocomplete Search Suggestions Styling
   ========================================================================== */
.tp-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.15);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(12, 35, 64, 0.15);
  z-index: 1000;
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-search-suggestions.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tp-suggestion-item {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
  font-family: 'Roboto', sans-serif;
  text-align: left;
}

.tp-suggestion-item:last-child {
  border-bottom: none;
}

.tp-suggestion-item:hover {
  background-color: #f8fafc;
  padding-left: 22px;
}

.tp-suggestion-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-suggestion-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tp-navy);
}

.tp-suggestion-category {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--tp-turquoise);
  background: rgba(13, 148, 136, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
}

.tp-no-suggestions {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  font-family: 'Roboto', sans-serif;
}


