/* ===========================================================
   Triparture - Custom CSS (brand-blue theme #0091FF / #00C7FC)
   =========================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* ---------- Navbar ---------- */
#main-navbar {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
}
#main-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 4px 30px rgba(0, 145, 255, 0.10);
}
.nav-link {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.95rem; font-weight: 500;
  color: #0091FF;
  transition: all 0.2s ease;
}
.nav-link:hover { background: rgba(0, 145, 255, 0.08); color: #005FB8; }

/* When transparent over hero, white text */
#main-navbar:not(.scrolled) .nav-link,
#main-navbar:not(.scrolled) .nav-text { color: #fff; }
#main-navbar:not(.scrolled) .nav-link:hover { background: rgba(255,255,255,0.15); }

/* Logo swap: light logo over hero, blue logo on solid bg */
#main-navbar:not(.scrolled) .logo-blue { display: none; }
#main-navbar:not(.scrolled) .logo-white { display: block; }
#main-navbar.scrolled .logo-blue { display: block; }
#main-navbar.scrolled .logo-white { display: none; }

.dropdown-item {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem; color: #334155;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}
.dropdown-item:hover { background: #E0F4FF; color: #005FB8; transform: translateX(3px); }

.mobile-link {
  display: block; padding: 0.75rem 0.75rem;
  font-size: 0.95rem; color: #334155;
  border-radius: 0.5rem; font-weight: 500;
}
.mobile-link:hover { background: #E0F4FF; color: #0091FF; }
.mobile-section {
  padding: 0.75rem 0.75rem 0.25rem;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #94a3b8;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0091FF 0%, #00C7FC 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 20px -6px rgba(0, 145, 255, 0.5);
  transition: all 0.25s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0, 145, 255, 0.6); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #005FB8; color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 20px -6px rgba(0, 95, 184, 0.45);
  transition: all 0.25s ease; border: none; cursor: pointer;
}
.btn-secondary:hover { background: #004A91; transform: translateY(-2px); }

.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #25D366; color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.45);
  transition: all 0.25s ease;
}
.btn-whatsapp:hover { background: #20bf5b; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; color: #0091FF;
  padding: 0.7rem 1.45rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid #0091FF;
  transition: all 0.25s ease; cursor: pointer;
}
.btn-outline:hover { background: #0091FF; color: #fff; }

.btn-danger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #dc2626; color: #fff;
  padding: 0.45rem 0.9rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.85rem;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-danger:hover { background: #b91c1c; }

/* ---------- Footer ---------- */
.footer-link { color: #B8E5FF; transition: all 0.2s ease; }
.footer-link:hover { color: #00C7FC; padding-left: 4px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.10);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -18px rgba(0, 145, 255, 0.30);
  border-color: #00C7FC;
}

.service-card-img {
  height: 220px; width: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .service-card-img { transform: scale(1.07); }

.destination-card {
  position: relative;
  border-radius: 1.25rem; overflow: hidden;
  height: 360px; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.25);
}
.destination-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.destination-card:hover img { transform: scale(1.12); }
.destination-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,30,60,0.85) 0%, rgba(0,30,60,0.3) 40%, transparent 70%);
}

/* ---------- Hero ---------- */
.hero-slide {
  position: relative;
  height: 100vh;
  min-height: 600px; max-height: 850px;
  overflow: hidden;
}
.hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,95,184,0.55) 0%, rgba(0,30,60,0.55) 60%, rgba(0,30,60,0.78) 100%);
}

/* ---------- Inputs ---------- */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  background: #fff;
  transition: all 0.2s ease;
  color: #1e293b;
}
.input-field:focus {
  outline: none;
  border-color: #0091FF;
  box-shadow: 0 0 0 4px rgba(0, 145, 255, 0.15);
}
.input-label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: #475569; margin-bottom: 0.4rem;
}
.input-error { font-size: 0.8rem; color: #dc2626; margin-top: 0.25rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 30, 60, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease-out;
}
.modal-backdrop.active { display: flex; }
.modal-panel {
  background: #fff;
  border-radius: 1.5rem;
  width: 100%; max-width: 580px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(0, 30, 60, 0.4);
  animation: slideUp 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp { from {transform:translateY(40px);opacity:0;} to {transform:translateY(0);opacity:1;} }
@keyframes fadeIn  { from {opacity:0;} to {opacity:1;} }

/* ---------- Headings / sections ---------- */
.section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: #0f172a; line-height: 1.15;
}
.section-subtitle { color: #64748b; font-size: 1.05rem; max-width: 640px; margin-top: 0.75rem; }
.section-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(0, 145, 255, 0.12);
  color: #0077DB;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- Pills, gallery ---------- */
.feature-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #E0F4FF; color: #005FB8;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 1rem; aspect-ratio: 4 / 3; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  font-size: 0.85rem; font-weight: 500;
  opacity: 0; transform: translateY(10px);
  transition: all 0.3s ease;
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 100;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 25px -5px rgba(37,211,102,0.55);
  transition: all 0.25s ease;
  animation: pulse 2.2s infinite;
}
.wa-float:hover { transform: scale(1.08); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55), 0 8px 25px -5px rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 8px 25px -5px rgba(37,211,102,0.55); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 8px 25px -5px rgba(37,211,102,0.55); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.no-scroll { overflow: hidden; }

/* Swiper styling tied to brand */
.swiper-button-next, .swiper-button-prev {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  width: 48px !important; height: 48px !important;
  border-radius: 50%;
  transition: all 0.2s;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(0, 145, 255, 0.9); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; font-weight: 700; }
.swiper-pagination-bullet-active { background: #00C7FC !important; }

@media (max-width: 640px) { .hero-title { font-size: 2.25rem !important; } }

/* Admin sidebar */
.admin-side-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.9rem; font-weight: 500;
  color: #475569;
  transition: all 0.18s;
}
.admin-side-link:hover { background: #E0F4FF; color: #0091FF; }
.admin-side-link.active { background: #0091FF; color: #fff; }

/* ---------- Filter chips (used on /destinations/<slug>) ---------- */
.filter-chip {
  display: inline-flex; align-items: center;
  padding: 0.45rem 1rem;
  background: #fff; color: #475569;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: #0091FF; color: #0091FF; }
.filter-chip.active {
  background: linear-gradient(135deg, #0091FF, #00C7FC);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px -2px rgba(0,145,255,0.4);
}
.filter-item.hidden-by-filter { display: none !important; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 15, 30, 0.92);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem 4rem;
}
.lightbox.active { display: flex; }
.lightbox-stage {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  overflow: hidden;
}
.lightbox-stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  user-select: none;
}
.lightbox-stage img.zoomed { cursor: zoom-out; transform: scale(2); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none; cursor: pointer;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  transition: all 0.18s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,145,255,0.85); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox-caption {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-size: 0.85rem; max-width: 80%;
}
.lightbox-counter {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 0.4rem 0.8rem; border-radius: 0.5rem;
  font-size: 0.8rem; font-weight: 600;
}
@media (max-width: 768px) {
  .lightbox { padding: 0.5rem; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 24px; }
}

/* ---------- Zoom-on-hover wrapper ---------- */
.zoom-img {
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.zoom-img:hover img {
  transform: scale(1.4);
  transition: transform 0.4s ease-out;
}

/* ---------- PRICE DROP styling ---------- */
.price-drop-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.price-now {
  color: #0091FF;            /* brand */
  font-weight: 800;
  font-size: 1.05em;
}
.price-was {
  color: #94a3b8;            /* slate-400 */
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-size: 0.9em;
  font-weight: 600;
}
.price-badge-discount {
  display: inline-block;
  background: #DC2626;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* On detail-page sticky panel: bigger / more dramatic */
.price-block-large .price-now { font-size: 1.75rem; }
.price-block-large .price-was { font-size: 1rem; }

/* ---------- Mobile sticky CTA bar pads body so content isn't covered ---------- */
@media (max-width: 1024px) {
  body:has(.mobile-cta-bar) main {
    padding-bottom: 5rem;
  }
}

/* ---------- WCAG tap targets ---------- */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary, .btn-whatsapp, .btn-outline {
    min-height: 44px;
  }
  .feature-pill { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* ---------- Social icons in footer ---------- */
.social-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.2s ease;
}
.social-icon:hover {
  background: #00C7FC;
  transform: translateY(-2px);
}
