/* ============================================================
   LOCATION PAGE — Scoped styles
   Reuses .location-panel / .location-grid from home.css
   ============================================================ */

/* —— PAGE HEADER FOLIO —— */
.page-hero {
  padding: 7rem 0 3rem;
  background: var(--detail-shell-bg) !important;
}

/* Section directly after page-hero gets the slightly darker cream tone */
.page-hero + section {
  background: var(--color-bg-alt) !important;
}

.detail-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1rem;
}

.detail-breadcrumb li {
  position: relative;
  font-size: 0.9rem;
  color: #6d5647;
}

.detail-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.75rem;
  color: #b8964a;
}

.detail-breadcrumb a {
  color: #8c5a3c;
  text-decoration: none;
}

.detail-page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
  color: #1a120c;
}

.detail-page-subtitle {
  max-width: 760px;
  font-size: 1rem;
  color: #5f4d41;
  margin-bottom: 0;
}

/* —— CONNECTIVITY HIGHLIGHTS —— */
.location-extra-section {
  background: #fffdf9;
  border-top: 1px solid rgba(192, 133, 82, 0.12);
}

.location-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.location-extra-card {
  background: #ffffff;
  border: 1px solid rgba(192, 133, 82, 0.18);
  border-radius: 18px;
  padding: 1.7rem 1.4rem 1.5rem;
  text-align: center;
  box-shadow: 0 14px 32px rgba(43, 31, 24, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.location-extra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(43, 31, 24, 0.12);
  border-color: rgba(192, 133, 82, 0.45);
}

.location-extra-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #c08552, #b8964a);
  color: #fff8f0;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(192, 133, 82, 0.3);
}

.location-extra-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a120c;
  margin: 0 0 0.55rem;
}

.location-extra-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5f4d41;
  margin: 0;
}

/* —— DETAIL CTA ROW —— */
.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.detail-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 180px;
}

/* —— STRATEGIC EDGE — split editorial —— */
.location-edge-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fffdf9 0%, #fdf3e1 100%);
  border-top: 1px solid rgba(192, 133, 82, 0.12);
}

.location-edge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.location-edge-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 24px 56px rgba(43, 31, 24, 0.16);
}

.location-edge-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-edge-stat {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: linear-gradient(135deg, #1a120c 0%, #2b1f18 100%);
  color: #fff8f0;
  padding: 1rem 1.3rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 12px 28px rgba(26, 18, 12, 0.32);
}

.location-edge-stat-num {
  font-size: 2rem;
  font-weight: 600;
  color: #f9d89a;
  line-height: 1;
}

.location-edge-stat-num sup {
  font-size: 0.95rem;
  top: -0.55em;
}

.location-edge-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.72);
  line-height: 1.4;
}

.location-edge-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c08552;
  margin-bottom: 1rem;
}

.location-edge-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: #1a120c;
  line-height: 1.18;
  margin: 0 0 1.2rem;
}

.location-edge-title em {
  font-style: italic;
  color: #c08552;
}

.location-edge-copy p {
  font-size: 1rem;
  line-height: 1.85;
  color: #5f4d41;
  margin: 0 0 1.4rem;
}

.location-edge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.location-edge-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #1a120c;
  font-weight: 500;
  line-height: 1.5;
}

.location-edge-list i {
  color: #c08552;
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* —— DRIVE TIMES — DARK BAND ——
   Higher specificity (section.location-drive-section) needed to beat
   global.css `section:nth-of-type(even)` background. */
section.location-drive-section,
.location-drive-section {
  position: relative;
  padding: 5.5rem 0 5rem !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(192, 133, 82, 0.22), transparent 45%),
    radial-gradient(circle at 92% 85%, rgba(249, 216, 154, 0.16), transparent 50%),
    linear-gradient(135deg, #1a120c 0%, #2b1f18 55%, #3a2a1d 100%) !important;
  overflow: hidden;
  isolation: isolate;
}

.location-drive-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 216, 154, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 216, 154, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

.location-drive-section .section-container {
  position: relative;
  z-index: 2;
}

/* Override global .section-head h2 inline-block + colour inside this dark section */
.location-drive-section .section-head {
  margin-bottom: 3rem;
}

.location-drive-section .section-head h2,
.location-drive-section .location-drive-title {
  display: block !important;
  color: #fff8f0 !important;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 600;
  margin: 0 auto 0.85rem;
  line-height: 1.18;
}

.location-drive-section .section-head h2::after {
  background: linear-gradient(90deg, #c08552, #f9d89a) !important;
}

.location-drive-title em {
  font-style: italic;
  background: linear-gradient(120deg, #c08552, #f9d89a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.location-drive-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f9d89a;
  margin-bottom: 0.95rem;
}

.location-drive-sub {
  color: rgba(255, 248, 240, 0.72) !important;
  font-size: 1rem;
  margin: 0.5rem auto 0 !important;
  max-width: 560px;
  line-height: 1.65;
}

.location-drive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.location-drive-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 248, 240, 0.06), rgba(255, 248, 240, 0.02));
  border: 1px solid rgba(249, 216, 154, 0.2);
  border-radius: 20px;
  padding: 1.7rem 1.6rem 1.5rem;
  backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  overflow: hidden;
}

.location-drive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(192, 133, 82, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.location-drive-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f9d89a, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.location-drive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 216, 154, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 248, 240, 0.1), rgba(255, 248, 240, 0.04));
}

.location-drive-card:hover::before,
.location-drive-card:hover::after {
  opacity: 1;
}

.location-drive-time {
  font-size: 1.95rem;
  font-weight: 600;
  background: linear-gradient(120deg, #f9d89a, #c08552);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.location-drive-place {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff8f0;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.location-drive-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f9d89a;
  background: rgba(249, 216, 154, 0.1);
  border: 1px solid rgba(249, 216, 154, 0.2);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
}

.location-drive-tag i {
  color: #c08552;
  font-size: 0.82rem;
}

/* —— NEARBY LANDMARKS —— */
.location-landmarks-section {
  background: #fffdf9;
  border-top: 1px solid rgba(192, 133, 82, 0.12);
}

.location-landmarks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.location-landmark-card {
  background: #ffffff;
  border: 1px solid rgba(192, 133, 82, 0.18);
  border-radius: 18px;
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: 0 14px 32px rgba(43, 31, 24, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.location-landmark-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(43, 31, 24, 0.12);
  border-color: rgba(192, 133, 82, 0.45);
}

.location-landmark-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #c08552, #b8964a);
  color: #fff8f0;
  font-size: 1.15rem;
  box-shadow: 0 10px 22px rgba(192, 133, 82, 0.3);
}

.location-landmark-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a120c;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(192, 133, 82, 0.3);
}

.location-landmark-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.location-landmark-card ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #5f4d41;
  line-height: 1.5;
}

.location-landmark-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c08552;
}

/* —— RESPONSIVE —— */
@media (max-width: 991.98px) {
  .location-extra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-edge-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .location-drive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-landmarks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 6rem 0 2.5rem;
  }
  .location-extra-grid {
    grid-template-columns: 1fr;
  }
  .location-drive-grid {
    grid-template-columns: 1fr;
  }
  .location-landmarks-grid {
    grid-template-columns: 1fr;
  }
  .location-edge-section,
  .location-drive-section {
    padding: 3.5rem 0;
  }
  .location-edge-stat {
    bottom: 16px;
    left: 16px;
    padding: 0.75rem 0.95rem;
  }
  .location-edge-stat-num {
    font-size: 1.6rem;
  }
  .detail-cta-row .btn,
  .detail-link-btn {
    width: 100%;
  }
}
