/**
 * GS Homepage — Duo Block
 * Two-column: nearest saunas + top venues.
 */

.gs-duo {
  padding: 48px 24px;
  border-bottom: 1.5px solid #111;
}
.gs-duo__inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.gs-duo__col {
  padding: 0;
}
.gs-duo__col:first-child {
  padding-right: 40px;
  border-right: 1.5px solid #111;
}
.gs-duo__col:last-child {
  padding-left: 40px;
}
.gs-duo__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
.gs-duo__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

/* ── GP link colour override — stops GeneratePress red hover inside duo block ── */
.gs-duo a,
.gs-duo a:visited,
.gs-duo a:active,
.gs-duo a:focus { color: #111 !important; text-decoration: none !important; }
.gs-duo a:hover { color: #111 !important; text-decoration: none !important; }
.gs-duo a.gs-pill:hover { background: #111 !important; color: #fff !important; text-decoration: none !important; }

/* ── Override popular venues plugin styles to match nearest-row inside duo ── */
.gs-duo .gs-pv-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
.gs-duo .gs-popular-venues { margin: 0; }
.gs-duo .gs-pv-header { display: none !important; }
.gs-duo .gs-pv-card {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 14px 0 !important;
  gap: 0 !important;
  box-shadow: none !important;
}
.gs-duo .gs-pv-card:last-child { border-bottom: none !important; }
.gs-duo .gs-pv-card:hover {
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.gs-duo .gs-pv-card-name {
  grid-column: 1 !important;
  grid-row: 1 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 !important;
}
.gs-duo .gs-pv-card-city {
  grid-column: 1 !important;
  grid-row: 2 !important;
  font-size: 13px !important;
  color: #444 !important;
  margin: 2px 0 0 0 !important;
}
.gs-duo .gs-pv-card-btn {
  display: inline-flex !important;
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #111 !important;
  background: transparent !important;
  border: 1.5px solid #111 !important;
  border-radius: 100px !important;
  padding: 10px 16px !important;
  min-height: 44px !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}
.gs-duo .gs-pv-card:hover .gs-pv-card-btn {
  background: #111 !important;
  color: #fff !important;
}
/* Link overrides for popular venue cards — beat GP red hover */
a.gs-pv-card,
a.gs-pv-card:visited,
a.gs-pv-card:active { color: inherit !important; text-decoration: none !important; }
a.gs-pv-card:hover { color: inherit !important; text-decoration: none !important; }
.gs-duo a.gs-pv-card-btn,
.gs-duo a.gs-pv-card-btn:visited { color: #111 !important; text-decoration: none !important; }
.gs-duo a.gs-pv-card-btn:hover { color: #fff !important; text-decoration: none !important; }

/* ── Nearest venues rows inside duo ── */
.gs-duo .gs-nearest-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
}
.gs-duo .gs-nearest-row {
  display: grid !important;
  grid-template-columns: 54px 1fr auto auto !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  text-decoration: none !important;
  color: #111 !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}
.gs-duo .gs-nearest-row:last-child { border-bottom: none !important; }
.gs-duo .gs-nearest-row:hover {
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.gs-duo .gs-nearest-row__name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111 !important;
  min-width: 0;
}
.gs-duo .gs-nearest-row__meta {
  font-size: 13px !important;
  color: #444 !important;
}
.gs-duo .gs-nearest-row__distance {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #111 !important;
  background: #f5f5f5 !important;
  border-radius: 100px !important;
  padding: 6px 0 !important;
  text-align: center !important;
  min-width: 54px !important;
}
.gs-duo .gs-nearest-row__price {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111 !important;
}
.gs-duo .gs-nearest-row__arrow {
  font-size: 18px !important;
  color: #ccc !important;
}

/* ── NUMBERED CIRCLES — CSS counters on both columns ── */
.gs-duo--numbered .gs-duo__col { counter-reset: venue-rank; }

/* Nearest venues numbered circles */
.gs-duo--numbered .gs-nearest-grid { counter-reset: venue-rank; }
.gs-duo--numbered .gs-nearest-row {
  counter-increment: venue-rank;
  position: relative;
  padding-left: 40px !important;
}
.gs-duo--numbered .gs-nearest-row::before {
  content: counter(venue-rank);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Popular venues numbered circles */
.gs-duo--numbered .gs-pv-grid { counter-reset: venue-rank; }
.gs-duo--numbered .gs-pv-card {
  counter-increment: venue-rank;
  position: relative;
  padding-left: 40px !important;
}
.gs-duo--numbered .gs-pv-card::before {
  content: counter(venue-rank);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}

/* ── DUO RESPONSIVE ── */
@media (max-width: 640px) {
  .gs-duo__inner { grid-template-columns: 1fr; }
  .gs-duo__col:first-child { padding-right: 0; border-right: none; border-bottom: 1.5px solid #111; padding-bottom: 32px; margin-bottom: 32px; }
  .gs-duo__col:last-child { padding-left: 0; }

  /* Stack nearest-row: drop 4-column rigid grid to prevent overflow on narrow screens */
  .gs-duo .gs-nearest-row {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 4px 12px !important;
    padding-left: 0 !important;
  }
  .gs-duo .gs-nearest-row__distance {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
  }
  .gs-duo .gs-nearest-row__name { grid-column: 1 !important; grid-row: 1 !important; }
  .gs-duo .gs-nearest-row__meta { grid-column: 1 !important; grid-row: 2 !important; }
  .gs-duo .gs-nearest-row__price { display: none !important; }
  .gs-duo .gs-nearest-row__arrow { display: none !important; }

  /* Numbered circles: align to first line instead of center on mobile */
  .gs-duo--numbered .gs-nearest-row { padding-left: 36px !important; }
  .gs-duo--numbered .gs-nearest-row::before {
    top: 16px !important;
    transform: none !important;
  }
  .gs-duo--numbered .gs-pv-card { padding-left: 36px !important; }
  .gs-duo--numbered .gs-pv-card::before {
    top: 16px !important;
    transform: none !important;
  }

}
