/* ==========================================================================
   DREAM TOURS & TRAVELS - LIGHT THEME DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Official Brand Colors (Derived from Dream Tours Logo) */
  --accent-palm: #76a035;         /* Vibrant Palm Leaf Green from Logo */
  --accent-palm-hover: #5d8225;
  --accent-sun: #f7931e;          /* Golden Sunshine Yellow/Orange from Logo Sun */
  --accent-sun-hover: #dc7a07;
  --accent-coconut: #6e473b;      /* Warm Coconut / Palm Trunk Brown */
  --accent-sand: #f3efe6;         /* Beach Sand Light Tint */
  --accent-sky: #0284c7;

  /* Legacy variable mapping */
  --accent-emerald: var(--accent-palm);
  --accent-emerald-hover: var(--accent-palm-hover);
  --accent-gold: var(--accent-sun);
  --accent-gold-hover: var(--accent-sun-hover);
  --accent-teal: #5a8a29;

  /* Light Theme Background Palette */
  --bg-dark: #f8faf4;             /* Soft tropical ivory light background */
  --bg-card: #ffffff;             /* Crisp white card background */
  --bg-glass: rgba(255, 255, 255, 0.94); /* Glassmorphism light navbar */

  /* Light Theme Text Colors */
  --text-main: #1e291e;           /* Dark Charcoal readable text */
  --text-muted: #526352;          /* Muted tropical slate text */
  --text-dark: #0f160e;
  --border-glass: rgba(118, 160, 53, 0.2);
  --border-card: #e2e8f0;

  /* Soft Light Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(118, 160, 53, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --glow-emerald: 0 0 25px rgba(118, 160, 53, 0.3);
  --glow-gold: 0 0 25px rgba(247, 147, 30, 0.3);

  /* Font Families & Radii */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 90px 0;
}

.section-title-wrapper {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(118, 160, 53, 0.12);
  border: 1px solid rgba(118, 160, 53, 0.3);
  color: var(--accent-palm);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.badge-gold {
  background: rgba(247, 147, 30, 0.12);
  border-color: rgba(247, 147, 30, 0.35);
  color: var(--accent-sun);
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #111827;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-palm) 0%, #547b22 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(118, 160, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(118, 160, 53, 0.45);
  background: linear-gradient(135deg, var(--accent-palm-hover) 0%, #46671c 100%);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-sun) 0%, #e07f07 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(247, 147, 30, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 147, 30, 0.45);
}

.btn-glass {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  background: #f1f5f9;
  border-color: var(--accent-palm);
  transform: translateY(-2px);
  color: var(--accent-palm);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* Light Theme Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(118, 160, 53, 0.15);
  padding: 6px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Prominent, crisp, large logo display */
.logo-brand img {
  height: 78px;
  max-height: 85px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.logo-brand:hover img {
  transform: scale(1.04);
}

/* Hide redundant text span since logo image already has "DREAM TOURS" text */
.logo-brand span {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-palm);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-palm);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  color: #1e291e;
  cursor: pointer;
}

/* Light Theme Hero Section */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 250, 244, 0.4) 0%, rgba(248, 250, 244, 0.95) 100%),
              url('https://images.unsplash.com/photo-1546708973-b339540b5162?auto=format&fit=crop&w=2000&q=90') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: #111827;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--accent-sun);
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-description {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 36px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 25px;
  border-top: 1px solid #cbd5e1;
}

.stat-item h3 {
  font-size: 2.1rem;
  color: var(--accent-palm);
}

.stat-item p {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

/* Quick Search Finder - Light Card */
.search-finder {
  margin-top: -45px;
  position: relative;
  z-index: 30;
}

.search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #1e293b;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-palm);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(118, 160, 53, 0.2);
}

/* Package Cards - Crisp Light Theme */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.package-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-palm);
}

.package-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.package-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.package-card:hover .package-image-wrap img {
  transform: scale(1.08);
}

.package-category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-sun);
  text-transform: uppercase;
  border: 1px solid rgba(247, 147, 30, 0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.package-rating {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-sun);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.package-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.package-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #111827;
}

.package-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 600;
}

.package-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-description {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.package-highlights {
  font-size: 0.825rem;
  color: #334155;
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}

.package-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.package-price {
  display: flex;
  flex-direction: column;
}

.package-price span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.package-price strong {
  font-size: 1.5rem;
  color: var(--accent-palm);
}

/* Category Filter Tabs - Light Theme */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-palm);
  color: #ffffff;
  border-color: var(--accent-palm);
  box-shadow: 0 4px 14px rgba(118, 160, 53, 0.35);
}

/* TripAdvisor Widget Section - Light Theme */
.tripadvisor-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  align-items: center;
}

.ta-badge {
  text-align: center;
  padding: 24px;
  background: #f8fafc;
  border: 1px dashed #00af87;
  border-radius: var(--radius-md);
}

.ta-logo-img {
  max-width: 180px;
  margin: 0 auto 16px auto;
}

.ta-rating-stars {
  color: #00af87;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.ta-reviews-content iframe {
  width: 100%;
  height: 320px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #ffffff;
}

/* Map Section (Leaflet) */
#srilanka-map {
  height: 550px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

/* Gallery Masonry & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 22, 14, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  color: #ffffff;
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: var(--accent-sun);
}

/* Light Theme Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 22, 14, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

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

.modal-dialog {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 36px;
  color: #1e293b;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.6rem;
  color: #64748b;
  cursor: pointer;
}

.modal-close:hover {
  color: #0f172a;
}

/* Floating WhatsApp Quick Chat Button & Drawer */
.whatsapp-float-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-sun);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-drawer {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  animation: slideUp 0.3s ease forwards;
}

.whatsapp-drawer.active {
  display: block;
}

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

.wa-header {
  background: #075E54;
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
}

.wa-body {
  padding: 20px;
  background: #efeae2;
}

.wa-bubble {
  background: #ffffff;
  color: #111827;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--accent-palm);
  color: #0f172a;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInRight 0.3s ease;
  font-weight: 600;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Footer - Dark Elegant Contrast */
footer {
  background: #0f180f;
  border-top: 1px solid #1e2e1e;
  padding: 70px 0 30px 0;
  color: #94a3b8;
}

footer h1, footer h2, footer h3, footer h4, footer a {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--accent-palm);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-palm);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .search-card { grid-template-columns: repeat(2, 1fr); }
  .tripadvisor-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: #ffffff;
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  .nav-menu.active { left: 0; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.25rem; }
  .search-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
