/* ============================================
   HOI AN LOCAL TOUR — Single Tour v2
   Inspired by Klook / GetYourGuide UI patterns
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary:       #E8A045;
  --primary-dark:  #C5832A;
  --primary-light: #FDF3E3;
  --dark:          #1C1C1E;
  --text:          #333333;
  --muted:         #6E6E73;
  --border:        #E5E5EA;
  --bg:            #F5F5F7;
  --white:         #FFFFFF;
  --green:         #34C759;
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.14);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;
  --ease:          cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================
   GALLERY HERO — Klook style image grid
   ============================================ */
.tour-gallery-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 320px 160px;
  gap: 4px;
  max-height: 488px;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
}

.tour-gallery-hero .img-main {
  grid-row: 1 / 3;
  object-fit: cover;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tour-gallery-hero .img-main:hover { opacity: 0.92; }

.tour-gallery-right {
  display: grid;
  grid-rows: 1fr 1fr;
  gap: 4px;
}

.tour-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tour-gallery-hero img:hover { opacity: 0.92; }

.gallery-see-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

/* No image fallback */
.tour-hero-fallback {
  height: 420px;
  background: linear-gradient(135deg, #1C1C2E 0%, #2D1B69 50%, #11998e 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px 24px;
  position: relative;
}
.tour-hero-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.tour-breadcrumb {
  max-width: 1180px;
  margin: 16px auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font);
}
.tour-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.tour-breadcrumb a:hover { color: var(--primary); }
.tour-breadcrumb .sep { color: var(--border); }
.tour-breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ============================================
   MAIN LAYOUT — 2 col like Klook
   ============================================ */
.tour-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  font-family: var(--font);
}

@media (max-width: 1024px) {
  .tour-page-wrap {
    grid-template-columns: 1fr;
    padding: 0 16px 60px;
  }
}

/* ============================================
   LEFT COLUMN
   ============================================ */
.tour-main { min-width: 0; }

/* Title block */
.tour-title-block {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tour-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tour-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.tour-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.tour-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rating-stars {
  display: flex;
  gap: 2px;
}
.star { color: #FFB800; font-size: 16px; }

.rating-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.rating-count {
  font-size: 13px;
  color: var(--muted);
}

.rating-count a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

/* ============================================
   QUICK STATS BAR
   ============================================ */
.tour-stats-bar {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-icon { font-size: 22px; margin-bottom: 6px; }
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

@media (max-width: 600px) {
  .tour-stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.tour-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.tour-section:last-child { border-bottom: none; }

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   HIGHLIGHTS — Klook checklist style
   ============================================ */
.highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
}

@media (max-width: 540px) {
  .highlights-list { grid-template-columns: 1fr; }
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.highlights-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* ============================================
   DESCRIPTION
   ============================================ */
.tour-desc-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.tour-desc-text p { margin-bottom: 14px; }
.tour-desc-text h2, .tour-desc-text h3 {
  font-family: var(--font-serif);
  color: var(--dark);
  margin: 20px 0 10px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  margin-top: 8px;
}

/* ============================================
   INCLUDES / EXCLUDES — GetYourGuide style
   ============================================ */
.inc-exc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 560px) {
  .inc-exc-grid { grid-template-columns: 1fr; }
}

.inc-exc-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inc-exc-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inc-exc-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.inc-exc-col ul li .check-icon {
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ============================================
   PHOTO GALLERY — masonry mini grid
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.photo-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   REVIEW SUMMARY — Klook style
   ============================================ */
.review-summary-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 32px;
  align-items: center;
}

@media (max-width: 560px) {
  .review-summary-box { flex-direction: column; gap: 20px; }
}

.review-score-big {
  text-align: center;
  flex-shrink: 0;
}

.score-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.score-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 6px 0;
}

.score-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.score-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.review-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

.bar-label { min-width: 12px; text-align: right; font-weight: 500; color: var(--dark); }

/* ============================================
   BOOKING CARD — Sticky sidebar
   ============================================ */
.tour-booking-col { position: sticky; top: 20px; }

.booking-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.booking-card-header {
  padding: 24px 24px 0;
}

.booking-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.price-from {
  font-size: 13px;
  color: var(--muted);
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.price-unit {
  font-size: 14px;
  color: var(--muted);
}

.price-old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-save {
  display: inline-block;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.booking-rating-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.booking-rating-mini .mini-score {
  font-weight: 700;
  color: var(--dark);
}

.booking-card-body { padding: 0 24px 24px; }

.btn-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s var(--ease), transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232,160,69,0.4);
  margin-bottom: 10px;
}

.btn-book:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,160,69,0.5);
}

.btn-enquire {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: var(--dark) !important;
  text-decoration: none !important;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 20px;
}
.btn-enquire:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.booking-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.booking-meta-table tr {
  border-bottom: 1px solid var(--border);
}
.booking-meta-table tr:last-child { border-bottom: none; }

.booking-meta-table td {
  padding: 11px 0;
  font-size: 13px;
  vertical-align: top;
}

.booking-meta-table .meta-key {
  color: var(--muted);
  width: 40%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.booking-meta-table .meta-val {
  font-weight: 600;
  color: var(--dark);
  text-align: right;
}

.booking-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.trust-item .t-icon {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================
   RELATED TOURS
   ============================================ */
.related-section {
  padding: 60px 0;
  background: var(--bg);
}

.related-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.related-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--dark);
}

.related-see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
}
.related-see-all:hover { text-decoration: underline; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Tour Card */
.tc {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
}
.tc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tc-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.tc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.tc:hover .tc-img img { transform: scale(1.06); }

.tc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.tc-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

.tc-body { padding: 16px; }

.tc-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.tc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.tc-meta span {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.tc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.tc-rating .rs { font-weight: 700; color: var(--dark); }

.tc-price {
  text-align: right;
}
.tc-price .from { font-size: 11px; color: var(--muted); }
.tc-price .amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(120deg, #1C1C2E 0%, #2D1B4E 50%, #0F3460 100%);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '🏮';
  position: absolute;
  font-size: 200px;
  opacity: 0.04;
  top: -40px;
  left: -40px;
}
.cta-banner::after {
  content: '🛶';
  position: absolute;
  font-size: 180px;
  opacity: 0.04;
  bottom: -40px;
  right: -40px;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font);
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(232,160,69,0.4);
}
.btn-cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font);
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s, background 0.2s;
}
.btn-cta-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}

/* ============================================
   RESPONSIVE MOBILE BOOKING BAR
   ============================================ */
.mobile-booking-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
  .mobile-booking-bar { display: flex; align-items: center; gap: 12px; }
  .tour-booking-col { display: none; }
}

.mobile-price {
  flex-shrink: 0;
}
.mobile-price .mp-from { font-size: 11px; color: var(--muted); }
.mobile-price .mp-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.mobile-book-btn {
  flex: 1;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  display: block;
  font-family: var(--font);
}

/* ============================================
   ASTRA OVERRIDES
   ============================================ */
.ast-container { max-width: 100% !important; }
.entry-content { max-width: 100% !important; }
.ast-article-single { padding: 0 !important; }
.site-content .ast-container { padding: 0 !important; }
.entry-header { display: none; }
/* ============================================
   ASTRA HARD OVERRIDE
   ============================================ */

/* Reset Astra container */
#primary, #content, .ast-article-single,
.entry-content, .site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Ẩn Astra page title mặc định */
.entry-header,
.ast-archive-description,
.page-header {
  display: none !important;
}

/* Fix grid không bị Astra break */
.tour-gallery-hero {
  width: 100%;
  max-width: 100%;
}

.tour-page-wrap {
  position: relative;
  z-index: 1;
}

/* Fix sidebar booking card bị đè */
.tour-booking-col {
  position: relative;
  z-index: 10;
}

/* Fix Astra sidebar hiện ra không cần */
#secondary { display: none !important; }

/* Fix content area full width */
.ast-single-post #primary {
  width: 100% !important;
  float: none !important;


}

/* ============================================
   ASTRA NUCLEAR OVERRIDE
   ============================================ */

/* Phá container Astra hoàn toàn */
.single-tours #primary,
.single-tours #content,
.single-tours .site-content > .ast-container,
.single-tours .entry-content,
.single-tours .ast-article-single,
.single-tours article {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.single-tours #secondary,
.single-tours .widget-area {
  display: none !important;
}

.single-tours .site-content .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Fix grid overflow */
.tour-gallery-hero,
.tour-page-wrap,
.related-section,
.cta-banner,
.mobile-booking-bar {
  max-width: 100% !important;
  overflow-x: hidden;
}