/* ============================================================
   Itinerary Detail Page — Styles
   Extends: style.css + da-nang.css
   Shared across all Da Nang tour itinerary pages
   ============================================================ */

/* ---- Two-Column Layout ---- */
.itinerary-main {
  padding: var(--space-10) 0 var(--space-16);
  background: var(--color-bg-warm);
}

.itinerary-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 960px) {
  .itinerary-layout {
    grid-template-columns: 1fr 380px;
    gap: var(--space-8);
  }
}

/* ---- Tour Overview Grid ---- */
.tour-overview {
  margin-bottom: var(--space-10);
}

.tour-overview h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-6);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.overview-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: white;
  border-radius: 12px;
  border: 1px solid var(--sand-200);
}

.overview-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--amber-500);
  margin-top: 2px;
}

.overview-item strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sand-500);
  margin-bottom: 2px;
}

.overview-item span {
  font-size: 0.85rem;
  color: var(--ink-900);
  font-weight: 500;
}

/* ---- Day-by-Day Itinerary ---- */
.itinerary-days h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-8);
}

.day-card {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.day-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.day-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber-500);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.day-line {
  width: 2px;
  flex: 1;
  background: var(--sand-200);
  margin-top: var(--space-2);
}

.day-body {
  flex: 1;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--sand-200);
  padding: var(--space-6);
}

.day-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-3);
}

.day-meals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.meal-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--jade-50);
  color: var(--jade-700);
  border: 1px solid var(--jade-200);
}

.day-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.time-block {
  padding-left: 0;
}

.time-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-600);
  margin-bottom: var(--space-2);
}

.time-block p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--sand-700);
  margin-bottom: var(--space-3);
}

.time-block p:last-child {
  margin-bottom: 0;
}

.time-block strong {
  color: var(--ink-900);
}

.day-overnight {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--sand-100);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sand-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Optional box */
.optional-box {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 10px;
}

.optional-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: var(--space-2);
}

.optional-box p {
  font-size: 0.85rem;
  color: var(--sand-700);
  margin: 0;
}

/* ---- Sidebar ---- */
.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (max-width: 959px) {
  .sidebar-sticky {
    position: static;
  }
}

.sidebar-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--sand-200);
  padding: var(--space-6);
}

.sidebar-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-4);
}

/* ---- Price Card ---- */
.sidebar-price-card {
  border-color: var(--amber-300);
  background: linear-gradient(135deg, white 0%, var(--amber-50) 100%);
}

.price-card-header {
  text-align: center;
  margin-bottom: var(--space-2);
}

.price-from {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sand-500);
}

.price-big {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--amber-600);
  line-height: 1.1;
}

.price-currency {
  display: block;
  font-size: 0.85rem;
  color: var(--sand-600);
  font-weight: 500;
}

.price-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--sand-500);
  margin-bottom: var(--space-5);
}

/* Sidebar pricing table */
.sidebar-pricing-table {
  margin-bottom: var(--space-5);
  overflow: hidden;
  border: 1px solid var(--sand-200);
}

.sp-row {
  display: grid;
  grid-template-columns: auto repeat(7, 1fr);
  font-size: 0.72rem;
  border-bottom: 1px solid var(--sand-100);
}

.sp-row:last-child {
  border-bottom: none;
}

.sp-row span {
  padding: 7px 4px;
  text-align: center;
  white-space: nowrap;
}

.sp-row span:first-child {
  text-align: left;
  padding-left: 10px;
  padding-right: 6px;
  font-weight: 600;
  color: var(--ink-900);
}

.sp-header {
  background: var(--ink-800);
}

.sp-header span {
  color: white;
  font-weight: 600;
}

.sp-child span {
  color: var(--sand-600);
  font-size: 0.72rem;
}

/* CTA buttons */
.btn-wa-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 12px var(--space-5);
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
  margin-bottom: var(--space-3);
}

.btn-wa-big:hover {
  background: #1fba59;
  transform: translateY(-1px);
}

.btn-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 12px var(--space-5);
  background: white;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--sand-300);
  text-decoration: none;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.btn-phone:hover {
  background: var(--sand-50);
  border-color: var(--ink-700);
}

/* Included / Excluded lists */
.included-list,
.excluded-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.included-list li,
.excluded-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--sand-700);
}

.included-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--jade-500);
  margin-top: 1px;
}

.excluded-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--coral-500);
  margin-top: 1px;
}

/* Policy list */
.policy-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.policy-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.policy-item p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--sand-600);
  margin: 0;
}

/* Notes */
.notes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.notes-list li {
  font-size: 0.8rem;
  color: var(--sand-600);
  line-height: 1.55;
  padding-left: var(--space-4);
  position: relative;
}

.notes-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand-400);
}

.surcharge-box {
  padding: var(--space-4);
  background: var(--sand-50);
  border-radius: 10px;
  border: 1px solid var(--sand-200);
}

.surcharge-box strong {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-900);
  margin-bottom: var(--space-2);
}

.surcharge-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.surcharge-box li {
  font-size: 0.75rem;
  color: var(--sand-600);
}

/* ---- Other Tours CTA ---- */
.other-tours-section {
  padding: var(--space-12) 0;
  text-align: center;
  background: white;
}

.other-tours-sub {
  font-size: 0.95rem;
  color: var(--sand-600);
  margin-bottom: var(--space-6);
}

.btn-back-tours {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---- Mobile-first sidebar reorder ---- */
@media (max-width: 959px) {
  .itinerary-layout {
    display: flex;
    flex-direction: column;
  }

  .itinerary-sidebar {
    order: -1;
  }

  .sidebar-price-card {
    margin-bottom: var(--space-4);
  }

  /* Hide non-price sidebar cards on mobile (show as expandable later) */
  .sidebar-card:not(.sidebar-price-card) {
    display: none;
  }
}

@media (min-width: 960px) {
  .itinerary-sidebar {
    order: unset;
  }
}
