/* Do Lanka Holidays — styles.css */
:root {
  --bg: #0b1220;
  --card: #0f1a2b;
  --muted: #97a3b6;
  --text: #e8eefc;
  --brand: #25d366;     /* WhatsApp green */
  --accent: #ffd166;    /* warm accent */
  --accent-2: #3ec5ff;  /* ocean */
  --ring: rgba(37, 211, 102, .3);
}

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

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;

  /* BACKGROUND */
  background: 
    linear-gradient(to bottom, rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0.98)),
    url('assets/images/bg.jpg'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Layout */
.container { width: min(1100px, 92vw); margin: 0 auto; }
.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 820px) { .cols-2 { grid-template-columns: 1.1fr .9fr; }}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto; /* Mobile Default */
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 700;
}
.brand img { width: 34px; height: 34px; }
.brand.small img { width: 26px; height: 26px; }
.brand.small span { font-weight: 600; font-size: .95rem; }

.menu { display: none; gap: 18px; justify-content: center; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--text); }
.desktop-only { display: none !important; }
.hamburger { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; margin-left: auto; }
.hamburger span { width: 22px; height: 2px; background: var(--text); display: block; }

@media (min-width: 940px) { 
  .nav { grid-template-columns: auto 1fr auto; }
  .menu { display: inline-flex; }
  .desktop-only { display: inline-flex !important; }
  .hamburger { display: none !important; }
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white; text-decoration: none; padding: 10px 20px;
  font-weight: 700; border-radius: 99px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
}
.cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }
.cta::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: 0.5s;
}
.cta:hover::after { left: 150%; transition: 0.7s ease-in-out; }

/* Mobile Menu */
.mobile-menu {
  display: none; grid-template-columns: 1fr; gap: 12px; padding: 20px;
  background: rgba(11, 18, 32, 0.95); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.mobile-menu:not([hidden]) { display: grid; animation: slideDown 0.3s ease forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 940px) { .mobile-menu { display: none !important; } }
.mobile-menu a { color: var(--text); text-decoration: none; padding: 5px 0; }
.mobile-menu .mobile-btn { justify-content: center; margin-top: 10px; width: 100%; }

/* --- Mobile WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2000;
  display: grid; place-items: center;
  transition: transform 0.3s ease;

  /* Added White Border/Stroke */
  border: 2px solid #ffffff; 
}
.whatsapp-float img { width: 35px; height: 35px; display: block; }
.whatsapp-float:active { transform: scale(0.95); }
@media (min-width: 940px) { .whatsapp-float { display: none; } }

/* Hero */
.hero { position: relative; display: grid; place-items: center; min-height: 70vh; overflow: clip; }
.hero-media {
  position: absolute; inset: 0;
  background-image: url('assets/images/bg.jpg'); 
  background-size: cover; background-position: center;
  animation: heroZoom 20s infinite alternate linear;
  filter: brightness(0.6);
}
@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
.hero-inner { position: relative; text-align: center; padding: 80px 0; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; }
.hero p { color: var(--muted); margin: 0 0 18px; }
.accent { color: var(--accent); }
.actions { display: inline-flex; gap: 12px; }

.btn {
  display: inline-block; text-decoration: none; padding: 12px 24px; border-radius: 12px;
  font-weight: 700; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02); cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease;
}
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--accent-2)); color: #072312; border: 0; }
.btn.ghost { color: var(--text); }

/* Intro */
.intro-card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.intro-card h2 { margin: 0 0 8px; }
.intro-card p { color: var(--muted); margin: 0; }

/* Cards & Media */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,.4); }

.card .media {
  height: 200px; width: 100%;
  background-color: #0f1a2b; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; overflow: hidden;
}
.card .media::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11, 18, 32, 0.8), rgba(11, 18, 32, 0.3));
    z-index: 1; transition: background 0.3s ease;
}
.card:hover .media::before { background: linear-gradient(to top, rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0.5)); }

.tour-overlay-title {
    position: relative; z-index: 2; color: #ffffff;
    font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); display: inline-block; padding-bottom: 10px;
}
.tour-overlay-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: var(--accent); margin: 12px auto 0; border-radius: 2px;
}

.card .body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.card p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.card .meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .9rem; margin-top: auto; }
.card .meta .pill { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 0.85rem; }
.card .actions { display: flex; justify-content: space-between; padding: 12px 16px 20px; margin-top: auto; }
.card .actions .btn { padding: 10px 14px; border-radius: 10px; font-size: 0.95rem;}


/* --- ATTRACTIONS GRID --- */
.attractions-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px; 
}
@media (min-width: 700px) { .attractions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .attractions-grid { grid-template-columns: repeat(4, 1fr); } }

.attraction-card {
  position: relative; overflow: hidden; border-radius: 16px; 
  height: 250px; 
  border: 1px solid rgba(255,255,255,.08); 
  cursor: pointer;
  background-color: #000;
  transition: transform 0.2s;
}
.attraction-card:active { transform: scale(0.98); }

.attraction-img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.attraction-card:hover .attraction-img { transform: scale(1.1); }

/* Title at bottom */
.attraction-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 30px 10px 10px;
  color: #fff; font-weight: 700; text-align: center;
  z-index: 1; pointer-events: none;
}

/* --- DESKTOP HOVER OVERLAY (> 900px) --- */
/* On desktop, we show the description on Hover. On mobile, we use the Modal. */
.attraction-overlay {
  display: none; /* Hidden by default (Mobile) */
}

@media (min-width: 901px) {
  .attraction-overlay {
    display: flex; /* Active for desktop */
    position: absolute; inset: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 20px;
    flex-direction: column; 
    justify-content: flex-start;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2; overflow-y: auto; text-align: center;
  }
  
  .attraction-overlay h4 { margin: 0 0 12px; color: #000; font-size: 1.1rem; flex-shrink: 0; }
  .attraction-overlay p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #333; }

  .attraction-card:hover .attraction-overlay,
  .attraction-card:focus .attraction-overlay {
    opacity: 1; transform: translateY(0);
  }
}

/* --- ACTIVITIES --- */
.activities-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 14px; }
@media (min-width: 700px) { .activities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .activities-grid { grid-template-columns: repeat(4, 1fr); } }

.activity-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform 0.3s ease;
}
.activity-card:hover { transform: translateY(-5px); }
.activity-card .icon { font-size: 32px; display: inline-block; margin-bottom: 12px; }
.activity-card h3 { margin: 0 0 8px; font-size: 1.2rem; }

/* Team Section */
.team-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 24px; text-align: center; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 24px; transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); }
.team-img {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background-color: #0f1a2b; background-size: cover; background-position: center;
  border: 3px solid var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.team-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--text); }
.team-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Contact Form */
.contact-wrap { align-items: start; }
.contact-card, .contact-form {
  background: rgba(11, 18, 32, 0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.contact-list { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.contact-list li { margin: 12px 0; font-size: 1.05rem; }
.contact-list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }

.contact-form label { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 14px; color: var(--text); width: 100%;
  font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); border-color: var(--brand); }

/* Footer */
.site-footer { padding: 28px 0 50px; }
.footer-grid { display: grid; gap: 12px; align-items: center; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: auto 1fr auto; text-align: left; }
  .menu.small { justify-content: center; display: flex; gap: 16px; }
}
.copy { color: var(--muted); margin: 0; font-size: .95rem; }
.inline { display: inline-block; }


/* --- LAYOUT: Stacked Tour Sections --- */

/* Hide old filters */
#tourFilters { display: none !important; }

/* New Category Headers */
.tour-category-title {
  text-align: left;
  margin: 40px 0 20px;
  font-size: 1.4rem;
  color: var(--accent);
  padding-left: 10px;
  border-left: 4px solid var(--brand);
}

.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Horizontal Scroll for Mobile Tours --- */
@media (max-width: 700px) {
  .tour-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; 
    gap: 16px; padding-bottom: 20px; padding-right: 20px; 
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .tour-grid::-webkit-scrollbar { display: none; }
  .tour-grid .card { min-width: 85vw; scroll-snap-align: center; }
}

/* --- MODAL (Common) --- */
dialog {
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  background: var(--card); color: var(--text);
  max-width: 600px; width: 90%; padding: 0;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}
dialog::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }

/* Itinerary Modal */
.itinerary-modal .itinerary-card { padding: 24px; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; }
.itinerary-card h3 { font-size: 1.5rem; color: var(--accent); }
.it-body ul { list-style: none; padding: 0; margin: 24px 0; border-left: 2px solid rgba(255, 255, 255, 0.1); }
.it-body li { margin-bottom: 24px; padding-left: 24px; position: relative; }
.it-body li strong { display: block; color: var(--brand); margin-bottom: 6px; font-size: 1.1rem; }
.it-body li::before {
  content: ''; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--card);
}

/* --- ATTRACTION POPUP MODAL STYLES --- */
.attraction-modal {
  overflow: hidden; max-width: 400px;
}
.attraction-modal-card {
  display: flex; flex-direction: column;
}
.btn-close {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  background: rgba(0,0,0,0.5); border: 0; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.attr-modal-img {
  width: 100%; height: 250px;
  background-size: cover; background-position: center;
}
.attr-modal-body {
  padding: 24px;
}
.attr-modal-body h3 {
  margin: 0 0 10px; color: var(--accent); font-size: 1.5rem;
}
.attr-modal-body p {
  color: var(--muted); margin: 0; line-height: 1.6;
}