/* ==========================================================================
   CONNECTRA MALDIVES - MASTER STYLESHEET
   Maldives Colors: Ocean Blue, Turquoise, White, and Subtle Gold
   ========================================================================== */

:root {
  --color-ocean-dark: #071b2e;
  --color-ocean: #0b2b48;
  --color-ocean-light: #16426d;
  --color-turquoise: #0ea5e9;
  --color-turquoise-deep: #0284c7;
  --color-lagoon: #38bdf8;
  --color-lagoon-light: #e0f2fe;
  --color-gold: #d4af37;
  --color-gold-dark: #b89726;
  --color-gold-light: #fef3c7;
  --color-sand: #fdfcf7;
  --color-surface: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(11, 43, 72, 0.1), 0 4px 6px -2px rgba(11, 43, 72, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(11, 43, 72, 0.15), 0 10px 10px -5px rgba(11, 43, 72, 0.04);
  --shadow-gold: 0 8px 20px -4px rgba(212, 175, 55, 0.3);

  --font-heading: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: #f8fafc;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-ocean);
  line-height: 1.25;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #d4af37 0%, #f59e0b 50%, #b89726 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ocean-gradient-text {
  background: linear-gradient(135deg, #0b2b48 0%, #0284c7 60%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.nav-blur {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  transition: color 0.2s ease;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-turquoise-deep);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-turquoise), var(--color-gold));
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hero Section with Maldives Video/Image Overlay */
.hero-wrapper {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(7, 27, 46, 0.88) 0%, rgba(11, 43, 72, 0.78) 60%, rgba(2, 132, 199, 0.65) 100%),
              url('https://images.unsplash.com/photo-1514282401047-d79a71a590e8?auto=format&fit=crop&w=1920&q=85') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fef3c7;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(14, 165, 233, 0.4);
}

.package-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(11, 43, 72, 0.18);
  border-color: var(--color-turquoise);
}

.package-card .img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0b2b48;
}

.package-card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.package-card:hover .img-container img {
  transform: scale(1.06);
}

.package-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(11, 43, 72, 0.88);
  color: #fef3c7;
  border: 1px solid rgba(212, 175, 55, 0.5);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Custom Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-turquoise-deep) 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #071b2e 0%, #0369a1 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d4af37 0%, #f59e0b 100%);
  color: #0b2b48;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-ocean);
  border: 1.5px solid var(--color-ocean);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-ocean);
  color: #ffffff;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 62px;
  height: 62px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  font-size: 32px;
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: pulse-wave 2s infinite;
  z-index: -1;
}

@keyframes pulse-wave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   TRAVEL JOURNEY TIMELINE / FLOWCHART (SECTION 9)
   ========================================================================== */

.timeline-flowchart {
  position: relative;
  margin: 2rem 0;
}

/* Vertical Timeline for Tracking */
.timeline-vertical {
  position: relative;
  padding-left: 2.75rem;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1.15rem;
  width: 3px;
  background: linear-gradient(180deg, #059669 0%, #0284c7 50%, #cbd5e1 100%);
  border-radius: 2px;
}

.timeline-step-item {
  position: relative;
  margin-bottom: 2rem;
  transition: all 0.25s ease;
}

.timeline-step-item:last-child {
  margin-bottom: 0;
}

.timeline-step-dot {
  position: absolute;
  left: -2.75rem;
  top: 0.15rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.timeline-step-item:hover .timeline-step-dot {
  transform: scale(1.15);
}

.timeline-step-dot.status-completed {
  background: #059669;
  color: #ffffff;
  border: 3px solid #d1fae5;
}

.timeline-step-dot.status-in_progress {
  background: #0284c7;
  color: #ffffff;
  border: 3px solid #bae6fd;
  animation: pulse-ring 1.8s infinite;
}

.timeline-step-dot.status-pending {
  background: #ffffff;
  color: #94a3b8;
  border: 3px solid #e2e8f0;
}

.timeline-step-dot.status-cancelled {
  background: #dc2626;
  color: #ffffff;
  border: 3px solid #fecaca;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.timeline-step-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.timeline-step-item:hover .timeline-step-card {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Horizontal Timeline Ribbon (Desktop Flowchart) */
.timeline-horizontal-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1.5rem 0.5rem 2rem 0.5rem;
  scroll-snap-type: x mandatory;
}

.timeline-horizontal-node {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-confirmed {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-processing {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-completed {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.badge-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Booking Add-on Checkbox Cards */
.addon-selector-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: 0.85rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.addon-selector-card:hover {
  border-color: var(--color-turquoise);
  background: #f8fafc;
}

.addon-selector-card.selected {
  border-color: var(--color-turquoise-deep);
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.addon-selector-card input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-turquoise-deep);
  margin-top: 0.2rem;
  cursor: pointer;
}

/* Admin Dashboard Specific */
.admin-table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Responsive adjust */
@media (max-width: 768px) {
  .hero-wrapper {
    min-height: 80vh;
  }
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }
}
