/* Base Variables and Design System */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette - Fresh Light Blues & Slates */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --primary: #0ea5e9; /* sky-500 */
  --primary-hover: #0284c7; /* sky-600 */
  --primary-light: #e0f2fe;
  --primary-glow: rgba(14, 165, 233, 0.15);
  --accent: #06b6d4; /* cyan-500 */
  
  --text-main: #0f172a; /* slate-900 */
  --text-muted: #475569; /* slate-600 */
  --text-light: #94a3b8; /* slate-400 */
  
  --border-light: rgba(14, 165, 233, 0.12);
  --border-focus: rgba(14, 165, 233, 0.5);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.08);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Abstract Background Blurs for Premium Feel */
.bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.6;
}

.bg-blur-1 {
  width: 400px;
  height: 400px;
  background-color: #7dd3fc; /* sky-300 */
  top: -10%;
  left: -10%;
}

.bg-blur-2 {
  width: 500px;
  height: 500px;
  background-color: #a5f3fc; /* cyan-200 */
  bottom: -10%;
  right: -10%;
}

/* Phone Bezel Simulator (Desktop only) */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 92vh;
  max-height: 860px;
  background: #0f172a; /* Slate 900 */
  border: 12px solid #0f172a;
  border-radius: 44px;
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 4px 12px rgba(255, 255, 255, 0.15);
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

/* Simulated Speaker / Camera Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 24px;
  background: #0f172a;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 100;
}

/* Phone Inner Canvas */
.phone-content {
  flex: 1;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Clean white background */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 20px 24px 20px; /* Leave space at top for notch */
  display: flex;
  flex-direction: column;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.phone-content::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin-top: -24px;
  margin-bottom: 8px;
  z-index: 20;
  padding-right: 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.lang-btn.active {
  color: var(--primary-hover);
  background-color: var(--primary-glow);
}

.lang-btn:hover:not(.active) {
  color: var(--text-muted);
}

.lang-divider {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.2);
}

/* --- Header Profile Section --- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
  animation: fadeInDown var(--transition-normal);
}

.profile-avatar-container {
  position: relative;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 
    0 10px 15px -3px rgba(14, 165, 233, 0.2), 
    0 4px 6px -4px rgba(14, 165, 233, 0.2);
}

/* Pulsing Active Status Indicator */
.status-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background-color: #22c55e; /* Green 500 */
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.verified-icon {
  color: var(--primary);
  font-size: 1.15rem;
  display: inline-flex;
}

.profile-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -2px rgba(14, 165, 233, 0.3);
}

/* Custom Link Pills styling */
.custom-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
  justify-content: center;
  width: 100%;
}

.custom-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: var(--glass-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--glass-shadow);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.custom-link-pill:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(14, 165, 233, 0.25);
  background-color: #ffffff;
  box-shadow: 
    0 8px 16px -6px rgba(14, 165, 233, 0.12),
    0 4px 6px -2px rgba(14, 165, 233, 0.04);
}

.custom-link-pill:active {
  transform: translateY(0) scale(0.98);
}

.custom-link-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(14, 165, 233, 0.1);
  background-color: #f3f4f6;
}

.custom-link-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

/* --- Tours List Section --- */
.tours-container {
  flex: 1;
}

.section-title-wrapper {
  margin-bottom: 16px;
  animation: fadeIn var(--transition-normal);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

.tours-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Date Group Formatting */
.date-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeInUp var(--transition-normal) both;
}

.date-header {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-hover);
  margin-left: 4px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 100%);
}

/* Bubble Card Container (Interactive tour bubble) */
.tour-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 12px;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tour-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.tour-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 
    0 12px 24px -10px rgba(14, 165, 233, 0.15),
    0 4px 6px -2px rgba(14, 165, 233, 0.05);
}

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

.tour-card:active {
  transform: translateY(-1px) scale(0.99);
}

/* Tour Card Content styling */
.tour-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.tour-info {
  flex: 1;
  min-width: 0; /* Prevents text overflow */
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tour-price-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2px;
}

.tour-price-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background-color: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tour-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loader / Empty state */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-light);
  gap: 12px;
}

.loading-state i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Footer Section */
.app-footer {
  text-align: center;
  padding: 24px 0 10px 0;
  margin-top: auto;
  border-top: 1px dashed rgba(14, 165, 233, 0.1);
}

.app-footer p {
  font-size: 0.72rem;
  color: var(--text-light);
}

.app-footer .powered-by {
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* --- Premium Glassmorphic Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: 
    0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 10px 10px -5px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 24px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Close button style */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 110;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.modal-close-btn:hover {
  background-color: #ffffff;
  color: #ef4444;
  transform: rotate(90deg) scale(1.05);
}

.modal-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* Modal Banner Image Section */
.modal-banner-container {
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
  margin-top: -24px;
  height: 140px;
  overflow: hidden;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
  position: relative;
}

.modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Form View components */
.modal-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: rgba(14, 165, 233, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.modal-datetime {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.modal-availability {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-availability.low-seats {
  color: #ef4444; /* red/rose */
}

.modal-availability.has-seats {
  color: #0284c7; /* sky blue */
}

/* Booking Form Elements */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border-radius: 14px;
  border: 1.5px solid rgba(14, 165, 233, 0.15);
  background-color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-left: 2px;
  display: none;
}

.input-group.invalid .form-input {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.02);
}

.input-group.invalid .form-input:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.input-group.invalid .error-msg {
  display: block;
}

/* Counter Controls Widget */
.packs-section {
  background-color: rgba(14, 165, 233, 0.03);
  border: 1px solid rgba(14, 165, 233, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.packs-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.counter-row:not(:last-child) {
  border-bottom: 1px solid rgba(14, 165, 233, 0.06);
}

.counter-label-group {
  display: flex;
  flex-direction: column;
}

.counter-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.counter-desc {
  font-size: 0.72rem;
  color: var(--text-light);
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: #ffffff;
  color: var(--text-muted);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: var(--transition-fast);
}

.counter-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.counter-btn:active {
  transform: scale(0.95);
}

.counter-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 16px;
  text-align: center;
}

/* Order Summary */
.order-summary {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.summary-line.highlight {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 6px;
  border-top: 1px solid rgba(14, 165, 233, 0.08);
}

.summary-line.highlight span:last-child {
  color: var(--primary-hover);
}

/* Booking CTA Button styling */
.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    0 10px 15px -3px rgba(59, 130, 246, 0.3),
    0 4px 6px -4px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 20px -3px rgba(59, 130, 246, 0.4),
    0 6px 8px -4px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* --- STEP 2: Confirmation Success styles --- */
.modal-step {
  transition: opacity 0.3s ease;
  display: block;
}

.modal-step.hidden,
.hidden {
  display: none !important;
}

/* Dynamic Success Checkmark Animation */
.success-illustration {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.success-checkmark-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark-svg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  stroke-width: 3.5;
  stroke: #22c55e;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #22c55e;
  animation: fillGreen .4s ease-in-out .4s forwards, scaleUp .3s ease-in-out .9s both;
}

.checkmark-circle-path {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: #22c55e;
  fill: none;
  animation: strokeCircle .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check-path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck .3s cubic-bezier(0.65, 0, 0.45, 1) .6s forwards;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 8px;
}

.success-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 20px;
}

.success-message strong {
  color: var(--text-main);
}

.success-details-card {
  background-color: rgba(14, 165, 233, 0.03);
  border: 1px solid rgba(14, 165, 233, 0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

#successDateTimeRow {
  display: flex;
}

.details-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.details-row:not(:last-child) {
  border-bottom: 1px dashed rgba(14, 165, 233, 0.08);
  padding-bottom: 8px;
}

.details-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.details-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.done-btn {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 1.5px solid var(--primary);
  background-color: #ffffff;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.05);
}

.done-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.2);
}

.done-btn:active {
  transform: scale(0.99);
}

/* --- Animation Keyframes --- */
@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Checkmark Animation Keyframes */
@keyframes strokeCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleUp {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fillGreen {
  to {
    box-shadow: inset 0px 0px 0px 36px rgba(34, 197, 94, 0.05);
  }
}

/* Collapsible Tour Details in Modal */
.modal-details-dropdown {
  background-color: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(14, 165, 233, 0.08);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.dropdown-trigger {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-hover);
  cursor: pointer;
  outline: none;
  text-align: left;
}

.dropdown-trigger span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-trigger .arrow-icon {
  font-size: 0.75rem;
  transition: transform var(--transition-normal);
}

.dropdown-trigger[aria-expanded="true"] .arrow-icon {
  transform: rotate(180deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.dropdown-trigger[aria-expanded="true"] + .dropdown-content {
  max-height: 350px; /* Allow enough height for image gallery + text */
  padding: 0 16px 16px 16px;
}

.dropdown-tour-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dropdown-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.dropdown-gallery::-webkit-scrollbar {
  height: 4px;
}

.dropdown-gallery::-webkit-scrollbar-thumb {
  background-color: rgba(14, 165, 233, 0.2);
  border-radius: 10px;
}

.dropdown-gallery-img {
  width: 100px;
  height: 75px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(14, 165, 233, 0.1);
  transition: transform var(--transition-fast);
}

.dropdown-gallery-img:hover {
  transform: scale(1.04);
}


/* --- Responsive / Mobile adaptations --- */
@media (max-width: 480px) {
  body {
    background-color: var(--bg-primary);
    background-image: none;
    align-items: flex-start;
  }

  .bg-blur {
    display: none;
  }

  .phone-frame {
    height: 100vh;
    max-height: none;
    width: 100vw;
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-frame::before {
    display: none; /* Hide top speaker notch on actual mobile screen */
  }

  .phone-content {
    padding: 24px 16px;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end; /* Mobile-style slide-up sheet */
  }

  .modal-card {
    max-width: none;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.15, 0.85, 0.35, 1);
    padding: 24px 20px 32px 20px;
  }

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

  .modal-banner-container {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -24px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    height: 130px;
  }
}

/* Date Separators in Tour List */
.date-separator {
  display: flex;
  align-items: center;
  margin: 24px 0 16px 0;
  text-align: center;
  position: relative;
}
.date-separator::before,
.date-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1.5px solid rgba(14, 165, 233, 0.12);
}
.date-separator:not(:empty)::before {
  margin-right: 12px;
}
.date-separator:not(:empty)::after {
  margin-left: 12px;
}
.date-separator span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-primary);
  padding: 0 6px;
}

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95); /* Slate 900 background with high opacity */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  object-fit: contain;
}
.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.25rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  user-select: none;
}
.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}
.lightbox-nav-btn.prev-btn {
  left: -70px;
}
.lightbox-nav-btn.next-btn {
  right: -70px;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-nav-btn.prev-btn {
    left: -10px;
  }
  .lightbox-nav-btn.next-btn {
    right: -10px;
  }
  .lightbox-close-btn {
    top: 10px;
    right: 10px;
    position: fixed;
  }
  .lightbox-content {
    max-width: 95%;
  }
}

