/* Global styles */
body {
  font-family: "Poppins", sans-serif;
  padding-top: 70px; /* keep space so non-hero sections aren't hidden under fixed navbar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero overrides (kept here so index.html inline styles can be removed later if desired) */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/hero1.jpg") center/cover no-repeat;
  /* compensate for the body's top padding so the hero starts at the very top
     while keeping its visual height equal to the viewport */
  margin-top: -70px;
  padding-top: 70px;
  height: calc(100vh + 70px);
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .hero { height: calc(70vh + 70px); }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* Card animation: start invisible and slightly shifted, then animate into place */
.card.animate-card {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity 600ms cubic-bezier(.2,.9,.3,1), transform 600ms cubic-bezier(.2,.9,.3,1);
  will-change: opacity, transform;
}

.card.animate-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger helper for rows: apply different delays to immediate children */
.row.g-4 > .col-md-4 .card.animate-card,
.row > .col-md-4 .card.animate-card {
  transition-delay: 0ms;
}
.row.g-4 > .col-md-4:nth-child(1) .card.animate-card { transition-delay: 40ms; }
.row.g-4 > .col-md-4:nth-child(2) .card.animate-card { transition-delay: 80ms; }
.row.g-4 > .col-md-4:nth-child(3) .card.animate-card { transition-delay: 120ms; }

/* Slight hover lift for cards */
.card.h-100:hover {
  transform: translateY(-6px);
  transition: transform 250ms ease;
}

/* Blog card image fixes */
.blog-card img, .card-img-top { height: 200px; object-fit: cover; }

/* Small utilities */
.text-dark { color: #111 !important; }

/* Accessibility: reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .card.animate-card,
  .card.h-100:hover { transition: none !important; transform: none !important; }
}

/* Locations page: page header, sidebar filter and location card styles */
.page-header {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url("../images/hero1.jpg") center/cover no-repeat;
  color: #fff;
  padding: 120px 0;
  /* pull up under fixed navbar (body has 70px padding to prevent overlap) */
  margin-top: -70px;
}

.filter-sidebar {
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}

/* Hidden by default on small screens, slide-in overlay when opened */
.filter-panel {
  transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 200ms;
  /* keep panel out of layout and show only when opened */
  position: fixed;
  left: 12px;
  top: 80px;
  width: calc(100% - 24px);
  max-width: 360px;
  z-index: 1050;
}
.filter-panel.closed {
  transform: translateX(-18px) translateY(0);
  opacity: 0;
  pointer-events: none;
}
.filter-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1040;
}
.filter-overlay.show { display: block; }

.filter-toggle-btn {
  /* inline button used above cards on small screens */
  display: inline-flex;
  align-items: center;
}

.filter-sidebar h5 { margin-bottom: 12px; }
.filter-input { width: 100%; }

.location-card .card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14,20,30,0.06);
}

.location-card .card-img-top { height: 220px; object-fit: cover; }
.location-card .card-body { padding: 1rem; }
.location-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.location-card .card:hover .card-hover-overlay { opacity: 1; }

@media (max-width: 768px) {
  .page-header { padding: 80px 0; margin-top: -70px; }
  .filter-sidebar { position: relative; top: auto; margin-bottom: 16px; }
  /* On small screens the sidebar becomes a hidden panel until opened */
  .filter-toggle-btn { display: inline-flex; }
}

@media (min-width: 992px) {
  /* show toggle on desktop too so user clicks to open filter panel */
  .filter-toggle-btn { display: inline-flex; }
  .filter-overlay { display: none !important; }
}

/* When the panel is closed, collapse the aside column so cards use full width */
body:not(.filter-open) .col-lg-3 { display: none; }
body:not(.filter-open) .col-lg-9 { flex: 0 0 100%; max-width: 100%; }

/* Close button inside filter panel */
.close-filter-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1060;
  border: none;
  background: rgb(68, 66, 66);
}
.filter-panel .filter-sidebar { padding-top: 28px; }

/* Luxury accents and itinerary/hotel detail styles */
.luxury-accent {
  color: #b58b4a; /* warm gold */
}
.luxury-bg {
  background: linear-gradient(180deg, rgba(11,12,13,0.65), rgba(11,12,13,0.85));
}
.hotel-badge {
  display: inline-block;
  background: rgba(181,139,74,0.12);
  color: #b58b4a;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.hotel-detail {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(12,12,12,0.25);
  background: #fff;
}
.hotel-gallery img { width: 100%; height: auto; display:block; }
.itinerary-builder {
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(12,12,12,0.08);
  background: #fff;
}
.itinerary-day {
  border-left: 4px solid #f1f1f1;
  padding: 12px;
  margin-bottom: 10px;
}
.itinerary-item { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.itinerary-item .meta { font-size:0.9rem; color:#444; }
.btn-gold {
  background: linear-gradient(90deg,#b58b4a,#d6b86a);
  color:#fff;
  border: none;
}
.small-muted { font-size:0.85rem; color:#6b6b6b; }

/* Itinerary Card Hover Effect */
.itinerary-card {
  border: none;
  overflow: hidden;
  transition: all 0.35s ease;
  border-radius: 16px;
}

.itinerary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #6b6f78;
}

.itinerary-points {
  margin: 0 0 0.75rem 1rem;
  padding: 0;
  color: #4b4f58;
  font-size: 0.93rem;
}

.itinerary-points li {
  margin-bottom: 0.2rem;
}

.itinerary-card img {
  transition: transform 0.6s ease;
}

.itinerary-card:hover img {
  transform: scale(1.08);
}

.itinerary-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.itinerary-card .btn {
  transition: all 0.3s ease;
}

.itinerary-card:hover .btn {
  background-color: #000;
  color: #fff;
}

/* Blog Card Animation */
.blog-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.blog-card img {
  transition: transform 0.6s ease;
}

.blog-card:hover img {
  transform: scale(1.07);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.blog-card .btn {
  transition: all 0.3s ease;
}

.blog-card:hover .btn {
  background-color: #000;
  color: #fff;
}

.blog-detail {
  background: linear-gradient(120deg, #f9f9ff 0%, #ffffff 100%);
  border: 1px solid #eef0fa;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.blog-thumb {
  width: 92px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}
/* Destination Card Animation */
.destination-card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.destination-card img {
  transition: transform 0.6s ease;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
}

/* Scroll animation reuse */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.itinerary-modal-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.tag-pill-luxe {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f4f5fb;
  color: #1f2a44;
  font-size: 0.78rem;
  font-weight: 600;
}

.stat-slab {
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.stat-slab .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8090;
}

.stat-slab .value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2230;
}

.modal-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #dfe3ef;
  color: #1f2230;
  font-size: 0.85rem;
  text-decoration: none;
  background: #fff;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.modal-link-pill:hover {
  background: #f5f6fc;
  box-shadow: inset 0 0 0 1px #cfd5ea;
}
