/* ==========================================================================
   TGCG — tours.css (REVAMPED)
   Purpose:
   - More “TGCG” visual energy
   - Smaller image blocks, stronger hierarchy
   - Clear buttons and CTAs
   - Card layout feels like premium app, not plain text
   Scope:
   - Everything scoped under .tour-grid so it doesn’t bleed into other pages
   ========================================================================== */

/* ---------------------------
   Core variables
---------------------------- */
:root {
  --tgcg-green: #014421;
  --tgcg-green-700: #01361f;
  --tgcg-green-50: #f0f6f2;
  --tgcg-accent: #0bb36e;
  --tgcg-pink: #f472b6;
  --tgcg-gold: #facc15;
  --tgcg-teal: #0f766e;
  --tgcg-text: #1c1c1c;
  --tgcg-text-2: #333333;
  --tgcg-muted: #666666;
  --tgcg-border: #e1ebe4;
  --tgcg-shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.08);
  --tgcg-radius-lg: 18px;
  --tgcg-radius: 12px;
  --tgcg-radius-pill: 999px;
}

/* ---------------------------
   Page container
---------------------------- */
.tour-grid {
  max-width: 1200px;
  margin: 32px auto 80px;
  padding: 0 18px 10px;
  position: relative;
}

/* faint background “glow” behind entire section */
.tour-grid::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto;
  max-width: 860px;
  margin: 0 auto;
  height: 260px;
  background: radial-gradient(circle at top, rgba(1, 68, 33, 0.12), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

/* optional inner wrapper */
.tour-grid .tours-inner {
  width: 100%;
}

/* ---------------------------
   Header / Intro
---------------------------- */
.tour-grid .tours-header {
  background: linear-gradient(135deg, #ffffff, #f5faf7);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  padding: 18px 18px 16px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.tour-grid .tours-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.22), transparent 65%);
  opacity: 0.75;
  pointer-events: none;
}

.tour-grid .tours-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tgcg-muted);
  margin-bottom: 4px;
}

.tour-grid .tours-heading {
  color: var(--tgcg-green-700);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 6px;
}

.tour-grid .tours-tagline {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--tgcg-text-2);
  max-width: 860px;
  margin: 0 0 8px;
}

.tour-grid .tours-subtext {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--tgcg-muted);
  max-width: 900px;
  margin: 0 0 12px;
}

.tour-grid .tours-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------------------
   Filter bar (anchor-based nav)
---------------------------- */
.tour-grid .tour-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  margin: 14px 0 18px;
  background: #f6faf7;
  border-radius: var(--tgcg-radius);
  border: 1px solid var(--tgcg-border);
  align-items: center;
}

.tour-grid .tour-filter-label {
  font-size: 0.86rem;
  color: var(--tgcg-muted);
  margin-right: 4px;
}

.tour-grid .tour-filter-pill {
  border-radius: var(--tgcg-radius-pill);
  border: 1px solid transparent;
  background: #ffffff;
  padding: 7px 13px;
  font-size: 0.88rem;
  color: var(--tgcg-text-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.tour-grid .tour-filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.tour-grid .tour-filter-pill.is-active {
  background: var(--tgcg-green);
  color: #ffffff;
  border-color: #00361a;
  box-shadow: 0 6px 16px rgba(1, 68, 33, 0.25);
}

/* ---------------------------
   Section / category headings
---------------------------- */
.tour-grid .tour-section {
  margin-top: 26px;
  padding: 14px 12px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(225, 235, 228, 0.9);
}

/* subtle different tint by section via ID */
.tour-grid #section-holiday {
  background: linear-gradient(135deg, #ffffff, #fdf6f5);
}

.tour-grid #section-city {
  background: linear-gradient(135deg, #ffffff, #f3f7fb);
}

.tour-grid #section-brewery {
  background: linear-gradient(135deg, #ffffff, #f4f8f4);
}

.tour-grid #section-wine {
  background: linear-gradient(135deg, #ffffff, #fdf7ff);
}

.tour-grid #section-private {
  background: linear-gradient(135deg, #ffffff, #f5faf7);
}

.tour-grid .tour-section-heading {
  font-size: 1.18rem;
  color: var(--tgcg-green-700);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-grid .tour-section-heading::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--tgcg-radius-pill);
  background: var(--tgcg-accent);
}

.tour-grid .tour-section-tagline {
  font-size: 0.94rem;
  color: var(--tgcg-muted);
  margin: 0 0 12px;
}

/* ---------------------------
   Tour gallery grid
---------------------------- */
.tour-grid .tour-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .tour-grid .tour-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* wider screens: still 2 columns to keep cards impactful */
@media (min-width: 1120px) {
  .tour-grid .tour-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------------------------
   Tour cards
---------------------------- */
.tour-grid .tour-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--tgcg-radius-lg);
  box-shadow: var(--tgcg-shadow-soft);
  overflow: hidden;
  position: relative;
}

/* top border color hint per section via parent ID */
.tour-grid #section-holiday .tour-card {
  border-top: 4px solid #f97373;
}

.tour-grid #section-city .tour-card {
  border-top: 4px solid #22c1c3;
}

.tour-grid #section-brewery .tour-card {
  border-top: 4px solid #f59e0b;
}

.tour-grid #section-wine .tour-card {
  border-top: 4px solid #f472b6;
}

.tour-grid #section-private .tour-card {
  border-top: 4px solid #0bb36e;
}

/* --- Media (image) --- */
.tour-grid .tour-card__media {
  position: relative;
  background: #f4f7f4;
  overflow: hidden;
}

/* control height so pics don’t look huge */
@supports (aspect-ratio: 16/7) {
  .tour-grid .tour-card__media {
    aspect-ratio: 16 / 7; /* wide and shallow, more banner-like */
  }
}

.tour-grid .tour-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

.tour-grid .tour-card:hover .tour-card__media img {
  transform: scale(1.06);
}

/* subtle gradient overlay */
.tour-grid .tour-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.15),
    transparent
  );
}

/* chips on image */
.tour-grid .tour-card__chips {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tour-grid .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: var(--tgcg-radius-pill);
  font-size: 0.78rem;
  white-space: nowrap;
}

.tour-grid .chip--category {
  background: rgba(255, 255, 255, 0.95);
  color: var(--tgcg-green-700);
}

.tour-grid .chip--category-brew {
  background: rgba(1, 68, 33, 0.96);
  color: #ffffff;
}

.tour-grid .chip--category-wine {
  background: rgba(244, 114, 182, 0.96);
  color: #1f2933;
}

.tour-grid .chip--category-city {
  background: rgba(15, 118, 110, 0.97);
  color: #ecfdf5;
}

.tour-grid .chip--flag {
  background: rgba(250, 204, 21, 0.98);
  color: #1c1917;
}

.tour-grid .chip--seasonal {
  background: rgba(220, 252, 231, 0.98);
  color: #14532d;
}

/* meta band (duration / price / min) */
.tour-grid .tour-card__meta-band {
  position: absolute;
  top: 9px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.tour-grid .meta-pill {
  padding: 4px 8px;
  border-radius: var(--tgcg-radius-pill);
  background: rgba(0, 0, 0, 0.75);
  color: #f9fafb;
  font-size: 0.72rem;
}

/* ---------------------------
   Card body
---------------------------- */
.tour-grid .tour-card__body {
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.tour-grid .tour-card__title {
  font-size: 1.04rem;
  line-height: 1.3;
  color: var(--tgcg-green-700);
  margin: 0 0 4px;
}

.tour-grid .tour-card__teaser {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--tgcg-text-2);
  margin: 0 0 10px;
}

/* stat row (duration, who it’s for, etc.) */
.tour-grid .tour-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.83rem;
  color: var(--tgcg-muted);
  margin: 0 0 8px;
}

.tour-grid .tour-card__stats span::before {
  content: "• ";
  opacity: 0.7;
}

/* highlights list */
.tour-grid .tour-card__highlights {
  margin: 0 0 8px 14px;
  padding: 0;
}

.tour-grid .tour-card__highlights li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tgcg-text);
  margin: 2px 0;
}

/* icon row — carts, ADA, music, etc. */
.tour-grid .tour-card__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 8px;
}

.tour-grid .tour-card__icon-pill {
  border-radius: var(--tgcg-radius-pill);
  background: #f3f6f4;
  color: var(--tgcg-muted);
  font-size: 0.78rem;
  padding: 4px 8px;
}

/* ---------------------------
   CTA row
---------------------------- */
.tour-grid .tour-card__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

/* ---------------------------
   Buttons (scoped so your global styles stay clean)
---------------------------- */
.tour-grid .btn,
.tour-grid a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0b8d53, #014421);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  line-height: 1;
  font-size: 0.92rem;
  border: 1px solid #00361a;
  box-shadow: 0 4px 12px rgba(1, 68, 33, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.tour-grid .btn:hover,
.tour-grid a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(1, 68, 33, 0.32);
}

.tour-grid .btn:active,
.tour-grid a.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(1, 68, 33, 0.35);
}

.tour-grid .btn-secondary,
.tour-grid a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: var(--tgcg-green-700);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  line-height: 1;
  font-size: 0.92rem;
  border: 1px solid var(--tgcg-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
  white-space: nowrap;
}

.tour-grid .btn-secondary:hover,
.tour-grid a.btn-secondary:hover {
  background: var(--tgcg-green-50);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ---------------------------
   Details toggle + body
---------------------------- */
.tour-grid .tour-card__toggle {
  border: none;
  background: transparent;
  color: var(--tgcg-accent);
  font-size: 0.88rem;
  padding: 5px 0;
  margin-top: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tour-grid .tour-card__toggle::after {
  content: "▾";
  font-size: 0.72rem;
  transform-origin: center;
  transition: transform 0.18s ease;
}

.tour-grid .tour-card.is-open .tour-card__toggle::after {
  transform: rotate(180deg);
}

/* hidden by default; JS toggles .is-open on .tour-card */
.tour-grid .tour-card__details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform-origin: top;
  transition: max-height 0.25s ease, opacity 0.22s ease;
}

.tour-grid .tour-card.is-open .tour-card__details {
  max-height: 620px; /* adjust if you have monster copy */
  opacity: 1;
}

.tour-grid .tour-card__details-inner {
  border-top: 1px solid #edf1ee;
  margin-top: 8px;
  padding-top: 8px;
  padding-bottom: 4px;
}

/* typography inside details */
.tour-grid .tour-card__details p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--tgcg-text-2);
  margin: 4px 0 8px;
}

.tour-grid .tour-card__details h4 {
  font-size: 0.94rem;
  color: var(--tgcg-green-700);
  margin: 8px 0 3px;
}

.tour-grid .tour-card__details ul {
  margin: 0 0 8px 16px;
  padding: 0;
}

.tour-grid .tour-card__details li {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 2px 0;
}

/* ---------------------------
   Thin separators between sections
---------------------------- */
.tour-grid .tour-sep {
  height: 1px;
  background: var(--tgcg-border);
  opacity: 0.8;
  margin: 26px 0 22px;
}

/* ---------------------------
   Mid-page CTA
---------------------------- */
.tour-grid .tours-hero-cta + .tours-hero-cta {
  margin-top: 18px;
}

.tour-grid .tours-hero-cta-wrap {
  text-align: center;
}

/* ---------------------------
   “Don’t Tour Boring” compare table
---------------------------- */
.tour-compare {
  max-width: 1100px;
  margin: 52px auto 10px;
  padding: 0 18px;
}

.tour-compare h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--tgcg-green-700);
  font-size: 1.7rem;
}

.tour-compare p.lede {
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: center;
  max-width: 840px;
  margin: 0 auto 20px;
  color: var(--tgcg-text-2);
}

.tour-compare .table-wrap {
  overflow-x: auto;
}

.tour-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tgcg-border);
}

.tour-compare thead th {
  background: var(--tgcg-green);
  color: #ffffff;
  padding: 11px 13px;
  text-align: left;
}

.tour-compare tbody tr:nth-child(odd) {
  background: #f7faf8;
}

.tour-compare tbody tr:nth-child(even) {
  background: #ffffff;
}

.tour-compare td {
  padding: 10px 13px;
  color: var(--tgcg-text);
}

/* ---------------------------
   Responsive adjustments
---------------------------- */
@media (max-width: 720px) {
  .tour-grid {
    margin-top: 24px;
    padding-inline: 14px;
  }

  .tour-grid .tours-header {
    padding: 14px 14px 13px;
  }

  .tour-grid .tours-heading {
    font-size: 1.6rem;
  }

  .tour-grid .tours-tagline {
    font-size: 0.98rem;
  }

  .tour-grid .tour-section {
    padding-inline: 10px;
  }

  .tour-grid .tour-card__body {
    padding: 11px 11px 11px;
  }

  .tour-grid .tour-card__title {
    font-size: 1rem;
  }

  .tour-grid .tour-card__details {
    max-height: 520px;
  }

  .tour-compare {
    padding-inline: 12px;
    margin-top: 40px;
  }
}

/* ---------------------------
   Motion / dark-mode polish
---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tour-grid .btn,
  .tour-grid a.btn,
  .tour-grid .btn-secondary,
  .tour-grid a.btn-secondary,
  .tour-grid .tour-card__toggle,
  .tour-grid .tour-card__details {
    transition: none !important;
  }

  .tour-grid .tour-card__media img {
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  .tour-grid {
    color: #e5ece7;
  }

  .tour-grid .tours-header {
    background: radial-gradient(circle at top, #020712, #04120b);
    border-color: #141d18;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  }

  .tour-grid .tours-tagline,
  .tour-grid .tours-subtext {
    color: #dbe8e0;
  }

  .tour-grid .tour-filter-bar {
    background: #0c1510;
    border-color: #1a261f;
  }

  .tour-grid .tour-filter-pill {
    background: #131c17;
    color: #e4efe7;
    box-shadow: none;
  }

  .tour-grid .tour-section {
    background: #050a08;
    border-color: #18211b;
  }

  .tour-grid .tour-card {
    background: #050908;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .tour-grid .tour-card__teaser,
  .tour-grid .tour-card__details p,
  .tour-grid .tour-card__details li {
    color: #dde7e0;
  }

  .tour-grid .tour-card__icons .tour-card__icon-pill {
    background: #101814;
    color: #b5c4bb;
  }

  .tour-compare table {
    background: #050908;
    border-color: #18211b;
  }

  .tour-compare tbody tr:nth-child(odd) {
    background: #0a100d;
  }

  .tour-compare tbody tr:nth-child(even) {
    background: #050908;
  }

  .tour-compare td {
    color: #e4efe7;
  }
}
