/* v2.0 — FINAL FIXED VERSION */

/* ---------- BASE ---------- */

body.page-template-page-explore-valley {
  background: #f5f0e8;
}

/* kill theme interference (strong override) */
.page-template-page-explore-valley .entry-title,
.page-template-page-explore-valley .post-title,
.page-template-page-explore-valley h2 {
  position: static !important;
}

/* ---------- HERO ---------- */

.explore-hero {
  text-align: center;
  padding: 30px 0 10px;
}

.explore-hero h1 {
  font-size: 32px;
  font-weight: 500;
}

/* ---------- FEATURED ---------- */

.explore-featured {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.featured-card {
  width: 320px;
}

/* ---------- MAP ---------- */

.explore-map {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

/* ---------- SPINE ---------- */

.explore-spine {
  position: absolute;
  left: 50%;
  width: 2px;
  top: 0;
  bottom: 0;
  background: #cbb79a;
}

/* ---------- NODE ---------- */

.node {
  position: relative;
  margin: 80px 0;
  display: flex;
}

/* ---------- CONNECTOR ---------- */

.connector {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 2px;
  background: #cbb79a;
}

.branch-left .connector {
  width: 140px;
  transform: translateX(-100%);
}

.branch-right .connector {
  width: 140px;
}

.branch-center .connector {
  display: none;
}

/* connector dot */

.connector span {
  position: absolute;
  right: -5px;
  top: -4px;
  width: 8px;
  height: 8px;
  background: #b88b4a;
  border-radius: 50%;
}

/* ---------- CARD ---------- */

.explore-card {
  width: 300px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: black;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);

  /* CRITICAL: enforce structure */
  display: flex;
  flex-direction: column;
}

/* ensure all nodes use same width */

.node > a {
  width: 300px;
}

/* ---------- IMAGE (FIXED — NO GAPS) ---------- */

.media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.explore-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FORCE TITLE BELOW IMAGE ---------- */

.explore-card h2,
.explore-card .entry-title,
.explore-card .post-title {
  position: static !important;
  display: block !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  padding: 0 !important;
  margin-top: 6px;
}

/* prevent overlay inside media */

.media h2,
.media .entry-title {
  position: static !important;
  margin-top: 8px;
}

/* ---------- CONTENT ---------- */

.content {
  padding: 10px 12px;
}

/* category */

.content span {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* title */

.explore-card h2 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: #000;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- POSITIONING ---------- */

.branch-left {
  justify-content: flex-start;
}

.branch-left .explore-card {
  margin-left: 10%;
}

.branch-right {
  justify-content: flex-end;
}

.branch-right .explore-card {
  margin-right: 12%;
}

.branch-center {
  justify-content: center;
}

/* ---------- CONTROLLED MEANDER ---------- */

.node:nth-child(3n) {
  transform: translateX(-10px);
}

.node:nth-child(4n) {
  transform: translateX(8px);
}

.node:nth-child(5n) {
  margin-top: 100px;
}

.node:nth-child(6n) {
  margin-top: 60px;
}

/* ---------- FORK ---------- */

.explore-fork {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 100px 0;
}

.fork-card {
  width: 260px;
}