/* Travie | Layout Fixes */

/* ── Destination Grid — 5 cols desktop, responsive ── */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* Card — ensure image and body don't overlap */
.dest-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.dest-card-img {
  height: 150px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.dest-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dest-card-body {
  padding: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  position: relative;
  z-index: 1;
}
.dest-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dest-card-meta {
  margin-bottom: 0.5rem;
  gap: 0.4rem;
}
.dest-meta-item {
  font-size: 0.72rem;
}
.dest-card-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dest-card-footer {
  padding-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.dest-card-price { flex-shrink: 0; }
.dest-price-label { font-size: 0.65rem; }
.dest-price-val { font-size: 0.95rem; }
.dest-card-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.dest-card-actions .btn {
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

/* 4 cols ≤ 1200px */
@media (max-width: 1200px) {
  .dest-grid { grid-template-columns: repeat(4, 1fr); }
  .dest-card-img { height: 160px; }
  .dest-card-name { font-size: 0.95rem; white-space: normal; }
  .dest-card-actions .btn { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
}

/* 3 cols ≤ 900px */
@media (max-width: 900px) {
  .dest-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .dest-card-img { height: 170px; }
  .dest-card-body { padding: 1rem; }
  .dest-card-name { font-size: 1rem; }
  .dest-card-actions .btn { font-size: 0.82rem; padding: 0.45rem 0.8rem; }
}

/* 2 cols ≤ 600px */
@media (max-width: 600px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .dest-card-img { height: 140px; }
  .dest-card-desc { display: none; }
  .dest-card-actions { flex-direction: column; width: 100%; }
  .dest-card-actions .btn { width: 100%; justify-content: center; font-size: 0.8rem; }
}

/* 1 col ≤ 380px */
@media (max-width: 380px) {
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card-img { height: 180px; }
  .dest-card-desc { display: block; }
}

/* ── Package Cards ─────────────────────────────────────────── */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1024px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pkg-grid { grid-template-columns: 1fr; } }

.pkg-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: all 0.25s ease; }
.pkg-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.12); transform: translateY(-4px); }
.pkg-card-img-wrap { position: relative; height: 220px; overflow: hidden; display: block; }
.pkg-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.pkg-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#0f766e,#2dd4bf); display: flex; align-items: center; justify-content: center; }
.pkg-card:hover .pkg-card-img { transform: scale(1.05); }
.pkg-badge-featured { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--accent); color: var(--dark); padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.pkg-badge-visa { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--success); color: #fff; padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.pkg-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.pkg-card-dest { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.pkg-card-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.6rem; line-height: 1.3; }
.pkg-card-title a { color: inherit; text-decoration: none; }
.pkg-card-title a:hover { color: var(--primary); }
.pkg-card-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.pkg-meta-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--gray); }
.pkg-card-desc { font-size: 0.85rem; color: var(--gray); line-height: 1.6; margin-bottom: 0.85rem; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.pkg-highlights { list-style: none; margin-bottom: 1rem; }
.pkg-highlights li { font-size: 0.8rem; color: var(--dark-3); padding: 0.2rem 0; display: flex; align-items: flex-start; gap: 0.4rem; }
.pkg-highlights li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pkg-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border-light); gap: 0.75rem; flex-wrap: wrap; margin-top: auto; }
.pkg-price { display: flex; flex-direction: column; }
.pkg-price-label { font-size: 0.68rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; }
.pkg-price-val { font-size: 1.25rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.pkg-price-per { font-size: 0.72rem; color: var(--gray); }
.pkg-card-actions { display: flex; gap: 0.4rem; }

/* ── Flight Cards ──────────────────────────────────────────── */
.flight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .flight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .flight-grid { grid-template-columns: 1fr; } }

.flight-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.25s ease; }
.flight-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-3px); }
.flight-card-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%); padding: 1.25rem 1.5rem; }
.flight-route { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.flight-city { text-align: center; }
.flight-city-code { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.flight-city-name { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
.flight-arrow { display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,0.5); flex: 1; }
.flight-return { font-size: 0.65rem; color: rgba(255,255,255,0.4); margin-top: 0.2rem; }
.flight-airline { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.flight-card-body { padding: 1.25rem; }
.flight-card-title { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.flight-card-title a { color: inherit; text-decoration: none; }
.flight-card-title a:hover { color: var(--primary); }
.flight-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; border-top: 1px solid var(--border-light); gap: 0.5rem; flex-wrap: wrap; }

/* ── Package Detail ────────────────────────────────────────── */
.pkg-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
@media (max-width: 1024px) { .pkg-detail-grid { grid-template-columns: 1fr; } }
.pkg-sidebar { position: sticky; top: 90px; }
.pkg-section { margin-bottom: 2.5rem; }
.pkg-section-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--primary-light); }
.pkg-content { color: var(--gray); line-height: 1.8; font-size: 0.95rem; }
.pkg-list { list-style: none; }
.pkg-list li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--dark-3); display: flex; align-items: flex-start; gap: 0.6rem; border-bottom: 1px solid var(--border-light); }
.pkg-list li:last-child { border-bottom: none; }
.pkg-list-check li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pkg-list-cross li::before { content: '✗'; color: var(--danger); font-weight: 700; flex-shrink: 0; }
.pkg-inc-exc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .pkg-inc-exc-grid { grid-template-columns: 1fr; } }
.flight-detail-box, .visa-info-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.flight-detail-row, .visa-info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.flight-detail-row:last-child, .visa-info-row:last-child { border-bottom: none; }
.flight-detail-row span, .visa-info-row span { color: var(--gray); }
.pkg-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pkg-related-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); text-decoration: none; display: block; transition: all 0.2s; }
.pkg-related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pkg-related-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.pkg-related-info { padding: 0.6rem; }
.pkg-related-title { font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; }
.pkg-related-price { font-size: 0.78rem; color: var(--primary); font-weight: 700; }
.pkg-price-box { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%); border-radius: var(--radius); overflow: hidden; }
.pkg-price-box-header { padding: 1.5rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.pkg-price-box-from { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.pkg-price-box-amount { font-size: 2.25rem; font-weight: 800; color: #fff; line-height: 1.1; }
.pkg-price-box-per { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.pkg-enquiry-form { padding: 1.5rem; }
.pkg-enquiry-form .form-label { color: rgba(255,255,255,0.8); }
.pkg-enquiry-form .form-control { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.pkg-enquiry-form .form-control::placeholder { color: rgba(255,255,255,0.35); }
.pkg-enquiry-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.info-list-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.info-list-item:last-child { border-bottom: none; }
.info-list-item span { color: var(--gray); }

/* ── Home Package Grid ─────────────────────────────────────── */
.home-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1024px) { .home-pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .home-pkg-grid { grid-template-columns: 1fr; } }

.home-pkg-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}
.home-pkg-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
}

/* Image wrapper */
.home-pkg-img-wrap {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.home-pkg-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.home-pkg-card:hover .home-pkg-img-wrap img { transform: scale(1.06); }
.home-pkg-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.home-pkg-badge {
  position: absolute;
  top: 0.75rem;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}
.home-pkg-badge-visa     { right: 0.75rem; background: var(--success); color: #fff; }
.home-pkg-badge-featured { left: 0.75rem;  background: var(--accent);  color: var(--dark); }
.home-pkg-dest {
  position: absolute;
  bottom: 0.75rem;
  left: 0.85rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Card body */
.home-pkg-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.home-pkg-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.home-pkg-title a { color: inherit; text-decoration: none; }
.home-pkg-title a:hover { color: var(--primary); }
.home-pkg-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.home-pkg-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.77rem;
  color: var(--gray);
}
.home-pkg-desc {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.home-pkg-highlights {
  list-style: none;
  margin-bottom: 0.85rem;
}
.home-pkg-highlights li {
  font-size: 0.78rem;
  color: var(--dark-3);
  padding: 0.18rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.home-pkg-highlights li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.home-pkg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-light);
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.home-pkg-price { display: flex; flex-direction: column; }
.home-pkg-price-from { font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; }
.home-pkg-price-val  { font-size: 1.2rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.home-pkg-price-per  { font-size: 0.68rem; color: var(--gray); }
.home-pkg-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }

/* ── Package Page Hero (with video) ───────────────────────── */
.pkg-page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding: 4rem 0 3rem;
}
.pkg-page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.pkg-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,30,0.88) 0%, rgba(26,86,219,0.35) 100%);
}

@media (max-width: 768px) {
  .home-pkg-img-wrap { height: 190px; }
  .pkg-page-hero { min-height: 280px; padding: 3rem 0 2rem; }
}
@media (max-width: 480px) {
  .home-pkg-grid { gap: 1.25rem; }
  .home-pkg-img-wrap { height: 175px; }
}

/* ───────────────────────────────────────────────────────────────
   Header nav alignment fix (v3.2)
   "Destinations" and "Packages" are dropdown triggers wrapped in
   .nav-dropdown-wrap, which had an asymmetric `padding-bottom:10px`
   (to widen the hover area). Because .nav uses align-items:center,
   that extra bottom padding pushed those two items visually UP
   relative to the plain <a> links (Home/About/Contact/Track).
   Fix: remove the asymmetric padding and create the hover bridge
   with a transparent ::after that doesn't affect layout height, so
   the triggers line up perfectly with the other links.
   ─────────────────────────────────────────────────────────────── */
.nav-dropdown-wrap {
  padding-bottom: 0;            /* was 10px → caused vertical misalignment */
  align-self: stretch;         /* match link height for clean centering   */
}
.nav-dropdown-wrap .nav-dropdown-trigger {
  height: 100%;
  line-height: 1;
}
/* Invisible bridge so the dropdown stays open while the cursor travels
   from the trigger down into the menu — replaces the old padding hack. */
.nav-dropdown-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;                /* gap between trigger and dropdown panel */
  background: transparent;
}
/* Keep the dropdown panel just below the bridge. */
.nav-dropdown { top: calc(100% + 10px); }
.nav-dropdown::before { top: -5px; }
