/* =====================================================
   PACKAGE DETAIL PAGE — Clean, compact, white
   ===================================================== */

/* ── Hero ── */
.detail-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.detail-hero-img {
  position: absolute;
  inset: 0;
}

.detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,14,6,0.82) 0%, rgba(26,14,6,0.3) 60%, transparent 100%);
}

.detail-hero-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding-bottom: 36px;
}

.detail-badge {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.detail-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.detail-meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
}

.detail-meta-row svg { color: var(--saffron-lt); flex-shrink: 0; }

/* ── Layout ── */
.detail-body {
  background: #fff;
  padding: 40px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ── Main Content ── */
.detail-main { display: flex; flex-direction: column; }

.detail-block {
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.detail-block:last-child { border-bottom: none; }

.detail-block p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.85;
  margin: 0;
}

.detail-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-block-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--saffron);
  border-radius: 2px;
  flex-shrink: 0;
}

.detail-block-title.inc::before { background: #2a9d5c; }
.detail-block-title.exc::before { background: #cc4400; }

/* Highlights */
.detail-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.detail-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.87rem;
  color: #444;
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px solid #f0ebe4;
}

.detail-highlights li:nth-last-child(-n+2) { border-bottom: none; }

.detail-highlights li::before {
  content: '✓';
  color: var(--saffron);
  font-weight: 700;
  flex-shrink: 0;
}

/* Itinerary */
.detail-itinerary { display: flex; flex-direction: column; }

.detail-day {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #f0ebe4;
}

.detail-day:last-child { border-bottom: none; }

.detail-day-num {
  flex-shrink: 0;
  width: 68px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--saffron);
  background: #fff4ed;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
  height: fit-content;
  letter-spacing: 0.03em;
  border: 1px solid #ffd4b8;
}

.detail-day-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.detail-day-content p {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Inc / Exc */
.detail-inc-exc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.detail-inc-list li,
.detail-exc-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe4;
  line-height: 1.5;
}

.detail-inc-list li:last-child,
.detail-exc-list li:last-child { border-bottom: none; }

.detail-inc-list li::before {
  content: '✓';
  color: #2a9d5c;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-exc-list li::before {
  content: '✕';
  color: #cc4400;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Sidebar ── */
.detail-sidebar { position: sticky; top: 90px; }

.detail-enquiry-card {
  background: #fff;
  border: none;
  box-shadow: none;
  border-top: 3px solid var(--saffron);
}

.detail-enquiry-header {
  background: var(--charcoal);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-enquiry-header span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.detail-enquiry-header strong {
  font-size: 1.2rem;
  color: var(--saffron-lt);
  font-weight: 700;
}

.detail-form {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.detail-form input,
.detail-form select,
.detail-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  color: var(--charcoal);
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
}

.detail-form input:focus,
.detail-form select:focus,
.detail-form textarea:focus {
  border-color: var(--saffron);
}

.detail-form textarea { resize: vertical; }

.detail-submit {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  margin-top: 4px;
}

.detail-submit:hover {
  background: var(--saffron-lt);
  transform: translateY(-1px);
}

.detail-contact-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-call-btn,
.detail-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.18s;
}

.detail-call-btn {
  background: #f5f0ea;
  color: var(--charcoal);
  border-right: 1px solid var(--border);
}

.detail-call-btn:hover { background: var(--border); }

.detail-wa-btn {
  background: #25D366;
  color: #fff;
}

.detail-wa-btn:hover { background: #1ebe5d; }

/* ── Tabs ── */
.detail-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.detail-tab-btn {
  background: none;
  border: none;
  padding: 13px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.detail-tab-btn.active {
  color: var(--saffron);
  border-bottom-color: var(--saffron);
}

.detail-tab-btn:hover:not(.active) {
  color: var(--charcoal);
}

.detail-tab-panel { display: none; }
.detail-tab-panel.active { display: block; }

/* Hotels tab */
.hotel-tier {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}
.hotel-tier:last-child { border-bottom: none; margin-bottom: 0; }

.hotel-tier-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  background: #fff4ed;
  border-left: 3px solid var(--saffron);
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}

.hotel-location {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid #f5f0ea;
  font-size: 0.84rem;
}
.hotel-location:last-child { border-bottom: none; }

.hotel-loc-name {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--charcoal);
  min-width: 140px;
}

.hotel-loc-names { color: #666; line-height: 1.5; }

/* Night stays table */
.night-stays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}
.night-stay-item {
  background: #fff4ed;
  border: 1px solid #ffd4b8;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}
.night-stay-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.night-stay-item span {
  font-size: 0.72rem;
  color: var(--saffron);
  font-weight: 600;
}

/* Price tab */
.price-contact-card {
  background: #fff4ed;
  border: 1px solid #ffd4b8;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  margin-top: 20px;
}
.price-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.price-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.price-phone {
  background: var(--saffron);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.price-phone:hover { background: var(--saffron-lt); }
.price-note {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.7;
  margin-top: 16px;
}

/* Day detail rich text */
.detail-day-content .day-note {
  font-size: 0.82rem;
  color: #888;
  font-style: italic;
  margin-top: 6px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { display: none; } /* hidden — shown via bottom sheet on mobile */
}

@media (max-width: 640px) {
  .detail-hero { height: 300px; }
  .detail-highlights { grid-template-columns: 1fr; }
  .detail-inc-exc { grid-template-columns: 1fr; gap: 0; }
  .detail-body { padding: 24px 0 80px; } /* extra bottom padding for sticky bar */
}

/* ── Mobile sticky enquiry bar ── */
.detail-mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  .detail-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(26,14,6,0.12);
  }

  .detail-bar-call,
  .detail-bar-wa,
  .detail-bar-enquire {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 14px 0;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.18s;
  }

  .detail-bar-call {
    flex: 1;
    background: #f5f0ea;
    color: var(--charcoal);
    border-right: 1px solid var(--border);
  }

  .detail-bar-wa {
    flex: 1;
    background: #25D366;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.2);
  }

  .detail-bar-enquire {
    flex: 1.4;
    background: var(--saffron);
    color: #fff;
  }

  .detail-bar-call:active { background: #e8ddd0; }
  .detail-bar-wa:active { background: #1ebe5d; }
  .detail-bar-enquire:active { background: var(--saffron-lt); }
}

/* ── Bottom sheet ── */
.detail-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,14,6,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.detail-sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.detail-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.detail-sheet.open {
  transform: translateY(0);
}

.detail-sheet-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 4px;
}

.detail-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.detail-sheet-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}

.detail-sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0ebe4;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1;
}

.detail-sheet-body {
  padding: 0 20px 24px;
}

.detail-sheet-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.detail-sheet-price-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

.detail-sheet-price-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--saffron-lt);
}

.detail-sheet-body .detail-form {
  padding: 0;
  border-bottom: none;
  gap: 10px;
}

.detail-sheet-body .detail-submit {
  width: 100%;
  margin-top: 6px;
}

.detail-sheet-body .detail-contact-btns {
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
