/* ── Listings & Product Cards ─────────────────────────────────── */

/* Breadcrumb — interior pages */
.category-page .breadcrumb,
.tours-hub .breadcrumb,
.attraction-page .breadcrumb,
.static-page .breadcrumb,
.destination-page .breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: .85rem;
  color: #666;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 0;
}
.category-page .breadcrumb a,
.tours-hub .breadcrumb a,
.attraction-page .breadcrumb a,
.static-page .breadcrumb a,
.destination-page .breadcrumb a { color: #1976d2; text-decoration: none; white-space: nowrap; }
.category-page .breadcrumb a:hover,
.tours-hub .breadcrumb a:hover,
.attraction-page .breadcrumb a:hover,
.static-page .breadcrumb a:hover,
.destination-page .breadcrumb a:hover { text-decoration: underline; }
.category-page .breadcrumb span,
.tours-hub .breadcrumb span,
.attraction-page .breadcrumb span,
.static-page .breadcrumb span,
.destination-page .breadcrumb span { margin: 0 6px; color: #999; opacity: 1; flex-shrink: 0; }
/* Last item (current page) — truncate with ellipsis */
.category-page .breadcrumb > span:last-child,
.tours-hub .breadcrumb > span:last-child,
.attraction-page .breadcrumb > span:last-child,
.static-page .breadcrumb > span:last-child,
.destination-page .breadcrumb > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  margin: 0;
  color: #444;
}

@media (max-width: 600px) {
  .category-page .breadcrumb,
  .tours-hub .breadcrumb,
  .attraction-page .breadcrumb,
  .static-page .breadcrumb,
  .destination-page .breadcrumb {
    padding: 10px 16px;
    font-size: .8rem;
  }
  /* Hide middle crumbs on mobile — keep only first (Home) and last (current) */
  .category-page .breadcrumb a:not(:first-child),
  .tours-hub .breadcrumb a:not(:first-child),
  .attraction-page .breadcrumb a:not(:first-child),
  .static-page .breadcrumb a:not(:first-child),
  .destination-page .breadcrumb a:not(:first-child) { display: none; }
  /* Hide separators except the one right before the last span */
  .category-page .breadcrumb span.sep,
  .tours-hub .breadcrumb span.sep,
  .attraction-page .breadcrumb span.sep,
  .static-page .breadcrumb span.sep,
  .destination-page .breadcrumb span.sep { display: none; }
  /* Show a single › after Home using CSS */
  .category-page .breadcrumb a:first-child::after,
  .tours-hub .breadcrumb a:first-child::after,
  .attraction-page .breadcrumb a:first-child::after,
  .static-page .breadcrumb a:first-child::after,
  .destination-page .breadcrumb a:first-child::after {
    content: ' ›';
    color: #999;
    margin: 0 4px;
  }
}

/* Product Grid */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  gap: 24px;
}
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.product-card__image {
  display: block;
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .product-card__image img {
  transform: scale(1.05);
}
.product-card__price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 6px 0 8px;
  font-weight: 600;
}
.product-card__body h3 a {
  color: #1a1a1a;
  text-decoration: none;
}
.product-card__body h3 a:hover {
  color: #0a5c3e;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.product-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #666;
}
.stars { color: #f59e0b; letter-spacing: 1px; }
.review-count { color: #888; }
.duration { color: #666; }

.product-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.product-card__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--tag-color, #666);
  background: color-mix(in srgb, var(--tag-color, #666) 10%, transparent);
}
.tag-green { --tag-color: #16a34a; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 500;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

/* Buttons — base defined in style.css; only size variants here */
.btn-lg { padding: 14px 28px; font-size: 1rem; width: 100%; justify-content: center; }
.btn-sm { padding: 6px 14px; font-size: .82rem; border-radius: 6px; }
.external { font-size: .75em; }

/* Featured Card */
.product-card--featured {
  grid-column: span 2;
}
.product-card--featured .product-card__image {
  aspect-ratio: 16/9;
}
.product-card--featured h3 { font-size: 1.15rem; }

/* ── Category Page ─────────────────────────────────────────────── */
.category-page { padding-bottom: 40px; }
.category-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}
.category-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  border-left: 4px solid var(--cat-color, #1976d2);
  padding-left: 16px;
}
.category-count {
  color: #666;
  font-size: .9rem;
  margin-top: 8px;
  padding-left: 20px;
}

/* Category Nav */
.category-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  background: #f3f4f6;
  color: #374151;
  transition: all .15s;
}
.cat-pill:hover { background: #e5e7eb; }
.cat-pill--active {
  background: #1976d2;
  color: #fff;
}

/* ── Tours Hub ─────────────────────────────────────────────────── */
.tours-hub { padding-bottom: 40px; }
.tours-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 16px;
}
.tours-hero h1 {
  font-size: 2rem;
  font-weight: 700;
}
.tours-subtitle {
  color: #666;
  margin-top: 8px;
}

/* ── Attraction Page ───────────────────────────────────────────── */
.attraction-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.attraction-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 0 24px;
}

.attraction-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.attraction-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: #555;
  margin-bottom: 12px;
}
.attraction-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Gallery */
.attraction-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.attraction-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.attraction-gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}

/* Features row */
.feature-badges-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}
.feature-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: #374151;
}
.badge-icon { color: #16a34a; }

/* About section */
.attraction-section {
  margin-bottom: 32px;
}
.attraction-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.attraction-section p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* FAQ section on attraction pages — static list, NO accordion card styles */
.attraction-faq .faq-list { display: flex; flex-direction: column; gap: 0; }
.attraction-faq .faq-item {
  /* Reset card styles from homepage .faq-item */
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: none;
  /* Clean divider */
  border-top: 1px solid #e5e7eb;
  padding: 20px 0;
}
.attraction-faq .faq-item:last-child { border-bottom: 1px solid #e5e7eb; }
.attraction-faq dt {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
  cursor: default;
  line-height: 1.4;
}
.attraction-faq dd {
  font-size: .93rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}
/* Section heading */
.attraction-faq > h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* Cancellation notice */
.cancellation-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f0fdf4;
  border-radius: 10px;
  border-left: 4px solid #16a34a;
  margin-bottom: 24px;
}
.cancellation-notice .notice-icon {
  color: #16a34a;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cancellation-notice strong { display: block; margin-bottom: 4px; }
.cancellation-notice p { font-size: .85rem; color: #4b5563; margin: 0; }

/* Booking Sidebar */
.attraction-sidebar { position: relative; }
.booking-card {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.booking-price {
  text-align: center;
  margin-bottom: 20px;
}
.price-label {
  display: block;
  font-size: .75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.price-amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
}
.price-unit {
  display: block;
  font-size: .85rem;
  color: #666;
}
.booking-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.booking-features li {
  padding: 8px 0;
  font-size: .9rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-features .check { color: #16a34a; font-weight: bold; }

/* Related section */
.related-section {
  padding: 0 24px;
  margin-top: 48px;
}
.related-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .attraction-layout { grid-template-columns: 1fr; }
  .attraction-sidebar { order: -1; }
  .booking-card { position: static; }
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .product-card--featured { grid-column: span 2; }
  .attraction-gallery { grid-template-columns: 1fr 1fr; }
  .attraction-gallery img:first-child { grid-column: span 2; grid-row: auto; height: 250px; }
  .attraction-gallery img { height: 150px; }
  .category-hero h1 { font-size: 1.4rem; }
  .tours-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .product-grid--3,
  .product-grid--4 { grid-template-columns: 1fr; }
  .product-card--featured { grid-column: span 1; }
  .category-nav { gap: 6px; }
  .cat-pill { font-size: .78rem; padding: 4px 12px; }
  .feature-badges-row { flex-direction: column; gap: 8px; }
}

/* ── Destination Page ─────────────────────────────────────────────── */
.destination-page { padding-bottom: 60px; }
.dest-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}
.dest-hero__content h1 {
  font-size: 2rem;
  font-weight: 700;
}
.dest-hero__tagline {
  color: #666;
  font-size: 1.1rem;
  margin-top: 8px;
}
.dest-hero__count {
  color: #888;
  font-size: .9rem;
  margin: 8px 0 20px;
}
.dest-categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}
.dest-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.dest-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all .15s;
  border-top: 3px solid var(--cat-color, #1976d2);
}
.dest-category-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.dest-cat-emoji { font-size: 1.5rem; }
.dest-cat-name { font-weight: 600; font-size: .9rem; color: #1a1a1a; }
.dest-cat-count { font-size: .78rem; color: #888; }
.dest-featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.dest-featured h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ── Static Pages (Privacy, Terms, About, Blog) ───────────────────── */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.static-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 24px 0 16px;
}
.static-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.static-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}
.static-page p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 16px;
}
.static-page ul, .static-page ol {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}
.static-page li {
  margin-bottom: 8px;
  list-style: disc;
}
.static-page a { color: #1976d2; }
.static-page a:hover { text-decoration: underline; }
.static-page .last-updated {
  color: #888;
  font-size: .85rem;
  margin-bottom: 24px;
}

/* Blog index */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.blog-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #0a5c3e 0%, #1a7a52 100%);
}
.blog-card__body {
  padding: 20px;
}
.blog-card__body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-card__body h3 a {
  color: #1a1a1a;
  text-decoration: none;
}
.blog-card__body h3 a:hover { color: #0a5c3e; }
.blog-card__body p {
  font-size: .88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-card__meta {
  font-size: .78rem;
  color: #999;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .dest-hero__content h1 { font-size: 1.5rem; }
}

/* ── Share Bar ─────────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}
.share-label {
  font-size: .82rem;
  font-weight: 600;
  color: #555;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .15s, transform .1s;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-wa  { background: #25d366; color: #fff; }
.share-tg  { background: #2aabee; color: #fff; }
.share-copy { background: #f3f4f6; color: #374151; }

/* ── Gallery links ─────────────────────────────────────────── */
.gallery-link {
  display: block;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-link img {
  transition: transform .2s;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-link:hover img { transform: scale(1.03); }
