/* ==========================================================================
   Hague Creek — Single Listing Detail (matches homepage listing cards)
   Use as localhost mockup + visual target for Elementor Single Listing template
   ========================================================================== */

:root {
  --clr-primary: #1c2227;
  --clr-accent: #198ecd;
  --clr-accent-hover: #1476ab;
  --clr-accent-muted: rgba(25, 142, 205, 0.12);
  --clr-cream: #f4f6f8;
  --clr-cream-dark: #e8ecf0;
  --clr-white: #ffffff;
  --clr-text: #3a4148;
  --clr-text-muted: #5c656e;
  --clr-border: rgba(28, 34, 39, 0.08);
  --clr-sold: #9b2c2c;
  --clr-pending: #b45309;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 12px rgba(28, 34, 39, 0.05);
  --shadow-md: 0 10px 36px rgba(28, 34, 39, 0.08);
  --container: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.ld-page {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--clr-text);
  background: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
}
a:hover {
  color: var(--clr-accent-hover);
}

/* ----- Top bar ----- */
.ld-top {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.ld-top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ld-back {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}
.ld-back:hover {
  color: var(--clr-accent);
}
.ld-logo img {
  display: block;
  height: 40px;
  width: auto;
}
.ld-top-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--clr-accent);
  padding: 0.55rem 1rem;
  border-radius: 999px;
}
.ld-top-cta:hover {
  background: var(--clr-accent-hover);
  color: #fff;
}

/* ----- Main ----- */
.ld-main {
  padding: 2rem 1.25rem 3.5rem;
}
.ld-container {
  max-width: var(--container);
  margin: 0 auto;
}

/* ----- Card shell (homepage .listing-card language) ----- */
.ld-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 1.35rem;
}

.ld-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 860px) {
  .ld-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .ld-top-cta {
    display: none;
  }
}

/* ----- Media ----- */
.ld-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--clr-cream-dark);
  aspect-ratio: 1 / 1.05;
}

.ld-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ld-media-link {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(28, 34, 39, 0.72);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ld-media-link:hover {
  color: #fff;
  background: rgba(25, 142, 205, 0.9);
}

.ld-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.ld-badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  color: #fff;
  width: fit-content;
}
.ld-badge-featured {
  background: var(--clr-accent);
}
.ld-badge-sale {
  background: var(--clr-primary);
}
.ld-badge-sold {
  background: var(--clr-sold);
}
.ld-badge-pending {
  background: var(--clr-pending);
}

/* ----- Body (homepage .listing-body order) ----- */
.ld-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0.15rem 0.5rem;
}

.ld-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.ld-loc svg {
  flex-shrink: 0;
  color: var(--clr-accent);
}

.ld-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--clr-primary);
}

.ld-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin: 0.2rem 0 0.15rem;
}

.ld-price {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--clr-primary);
}

.ld-price-note {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clr-accent-hover);
  background: var(--clr-accent-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Specs — homepage .listing-specs */
.ld-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

@media (max-width: 480px) {
  .ld-specs {
    grid-template-columns: 1fr;
  }
}

.ld-spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ld-spec-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.ld-spec strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-primary);
}

.ld-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}
.ld-meta strong {
  color: var(--clr-primary);
  font-weight: 600;
}
.ld-dot {
  margin: 0 0.35rem;
}

.ld-tag {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.ld-excerpt {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
}

.ld-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ld-btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border: 1px solid transparent;
}
.ld-btn-primary:hover {
  background: var(--clr-accent-hover);
  color: #fff;
}
.ld-btn-outline {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid var(--clr-border);
}
.ld-btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* PDF specs — solid brand blue + high-contrast white text */
a.ld-btn-pdf,
.ld-btn-pdf {
  gap: 0.55rem;
  padding: 0.55rem 1.15rem 0.55rem 0.75rem;
  color: #ffffff !important;
  background: #1476ab;
  background-image: linear-gradient(160deg, #1a8ec8 0%, #1476ab 48%, #0d5f8a 100%);
  border: 1px solid #0a4f73;
  box-shadow:
    0 0 0 3px rgba(20, 118, 171, 0.25),
    0 8px 20px rgba(10, 60, 90, 0.3);
  animation: ld-pdf-pulse 2.6s ease-in-out infinite;
  -webkit-font-smoothing: antialiased;
}
a.ld-btn-pdf:hover,
.ld-btn-pdf:hover {
  color: #ffffff !important;
  background: #0f6a9a;
  background-image: linear-gradient(160deg, #1c96d4 0%, #0f6a9a 50%, #0a557c 100%);
  border-color: #084466;
  box-shadow:
    0 0 0 4px rgba(20, 118, 171, 0.35),
    0 10px 26px rgba(10, 60, 90, 0.38);
  transform: translateY(-1px);
}
.ld-btn-pdf:focus-visible {
  outline: 3px solid #0a4f73;
  outline-offset: 3px;
}
.ld-btn-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.ld-btn-pdf-icon svg {
  stroke: #ffffff;
}
.ld-btn-pdf-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
  color: #ffffff !important;
}
.ld-btn-pdf-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
}
.ld-btn-pdf-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  opacity: 0.95;
}
@keyframes ld-pdf-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(20, 118, 171, 0.25),
      0 8px 20px rgba(10, 60, 90, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(20, 118, 171, 0.16),
      0 10px 24px rgba(10, 60, 90, 0.36);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ld-btn-pdf {
    animation: none;
  }
}

/* ----- Agent ----- */
.ld-agent {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--clr-border);
}
.ld-agent-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-cream-dark);
  flex-shrink: 0;
}
.ld-agent-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.ld-agent-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.ld-agent-meta strong {
  font-size: 0.95rem;
  color: var(--clr-primary);
}
.ld-agent-role {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.ld-agent-contact {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ----- Full details stack ----- */
.ld-full {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--clr-border);
}

.ld-section {
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.ld-section:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.ld-section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--clr-primary);
}

.ld-section-lead {
  margin: -0.25rem 0 1rem;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  max-width: 60ch;
}

.ld-prose {
  max-width: 72ch;
}
.ld-prose p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
  color: var(--clr-text);
}
.ld-prose p:last-child {
  margin-bottom: 0;
}

.ld-muted {
  font-weight: 400;
  color: var(--clr-text-muted);
  font-size: 0.88em;
}

/* Fact grid (overview) */
.ld-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}
@media (max-width: 760px) {
  .ld-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .ld-facts {
    grid-template-columns: 1fr;
  }
}
.ld-fact {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--clr-cream);
  border-radius: 10px;
  border: 1px solid var(--clr-border);
}
.ld-fact dt {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.ld-fact dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-primary);
  line-height: 1.4;
}

/* Detail blocks */
.ld-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.35rem;
}
@media (max-width: 700px) {
  .ld-detail-grid {
    grid-template-columns: 1fr;
  }
}
.ld-detail-block {
  padding: 1rem 1.1rem;
  background: var(--clr-cream);
  border-radius: 10px;
  border: 1px solid var(--clr-border);
}
.ld-detail-block-wide {
  grid-column: 1 / -1;
}
.ld-detail-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
}
.ld-detail-block p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--clr-text);
}

/* Highlights */
.ld-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
}
@media (max-width: 640px) {
  .ld-checklist {
    grid-template-columns: 1fr;
  }
}
.ld-checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--clr-text);
}
.ld-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--clr-accent-muted);
  box-shadow: inset 0 0 0 2px var(--clr-accent);
}
.ld-checklist li::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.78rem;
  width: 0.35rem;
  height: 0.2rem;
  border-left: 2px solid var(--clr-accent);
  border-bottom: 2px solid var(--clr-accent);
  transform: rotate(-45deg);
}

/* Map placeholder */
.ld-map-placeholder {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background:
    linear-gradient(135deg, rgba(25, 142, 205, 0.08), rgba(28, 34, 39, 0.04)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(28, 34, 39, 0.04) 24px,
      rgba(28, 34, 39, 0.04) 25px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 24px,
      rgba(28, 34, 39, 0.04) 24px,
      rgba(28, 34, 39, 0.04) 25px
    ),
    #e4e9ee;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ld-map-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.5rem;
}
.ld-map-pin {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.ld-map-inner strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--clr-primary);
}
.ld-map-inner span {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
}

/* Diligence steps */
.ld-steps {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 70ch;
}
.ld-steps li {
  margin: 0 0 0.55rem;
  padding-left: 0.35rem;
  line-height: 1.55;
  color: var(--clr-text);
}
.ld-steps li:last-child {
  margin-bottom: 0;
}

/* Bottom CTA band */
.ld-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0.25rem;
  padding: 1.35rem 1.25rem !important;
  background: var(--clr-cream);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  border-bottom: 1px solid var(--clr-border) !important;
}
.ld-cta-band-copy {
  flex: 1 1 280px;
  max-width: 52ch;
}
.ld-cta-band-copy .ld-section-title {
  margin-bottom: 0.45rem;
}
.ld-cta-band-copy p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
}
.ld-cta-band .ld-actions {
  margin-top: 0;
}

/* Legacy content block (if reused) */
.ld-content {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}
.ld-content-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--clr-primary);
}
.ld-content p {
  margin: 0;
  color: var(--clr-text);
  line-height: 1.65;
  max-width: 65ch;
}

/* Handoff notes for Elementor (builder only) */
.ld-handoff {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--clr-white);
  border: 1px dashed rgba(25, 142, 205, 0.35);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
}
.ld-handoff h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--clr-primary);
}
.ld-handoff ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.ld-handoff table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.ld-handoff th,
.ld-handoff td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
}
.ld-handoff th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
}
.ld-handoff code {
  font-size: 0.78rem;
  background: var(--clr-cream);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.ld-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.ld-footer a {
  font-weight: 600;
}

/* ----- Jump nav ----- */
.ld-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  margin: 1.5rem 0 0.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 64px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
.ld-jump a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--clr-text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.ld-jump a:hover {
  color: var(--clr-accent);
  background: var(--clr-accent-muted);
  border-color: rgba(25, 142, 205, 0.2);
}

.ld-section-head {
  margin-bottom: 0.25rem;
}

.ld-btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
}

/* ----- Gallery ----- */
.ld-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ld-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--clr-cream-dark);
  aspect-ratio: 16 / 10;
}
.ld-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ld-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(transparent, rgba(28, 34, 39, 0.75));
}
.ld-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.45rem;
}
@media (max-width: 900px) {
  .ld-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .ld-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ld-thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-cream-dark);
  aspect-ratio: 4 / 3;
}
.ld-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.ld-thumb:hover img,
.ld-thumb.is-active img {
  opacity: 1;
}
.ld-thumb.is-active {
  border-color: var(--clr-accent);
}

/* ----- Feature cards ----- */
.ld-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 960px) {
  .ld-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .ld-feature-grid {
    grid-template-columns: 1fr;
  }
}
.ld-feature-card {
  padding: 1.1rem 1.15rem;
  background: var(--clr-cream);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
}
.ld-feature-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-accent);
}
.ld-feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ld-feature-card li {
  position: relative;
  padding: 0.3rem 0 0.3rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--clr-text);
  border-bottom: 1px solid rgba(28, 34, 39, 0.05);
}
.ld-feature-card li:last-child {
  border-bottom: none;
}
.ld-feature-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}

/* ----- Plans ----- */
.ld-plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}
.ld-plan-tab {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.ld-plan-tab:hover {
  color: var(--clr-accent);
  border-color: rgba(25, 142, 205, 0.35);
}
.ld-plan-tab.is-active {
  color: #fff;
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}
.ld-plan-canvas {
  border-radius: 12px;
  border: 1px solid var(--clr-border);
  overflow: hidden;
  background: #f7f5f2;
}
.ld-plan-svg {
  display: block;
  width: 100%;
  height: auto;
}
.ld-plan-plat-img img,
.ld-plan-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #f7f5f2;
}
.ld-plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}
.ld-plan-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ld-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ld-swatch-pad {
  background: #fff;
  border: 2px dashed var(--clr-accent);
}
.ld-swatch-well {
  background: rgba(25, 142, 205, 0.25);
  border: 2px solid var(--clr-accent);
  border-radius: 50%;
}
.ld-swatch-road {
  background: #8b7355;
}
.ld-swatch-ridge {
  background: #d4ddd0;
  border: 1px solid #b8c4b4;
}
.ld-plan-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* ----- Location ----- */
.ld-location-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 860px) {
  .ld-location-grid {
    grid-template-columns: 1fr;
  }
}
.ld-map-lg {
  min-height: 280px;
}
.ld-map-inner .ld-btn {
  margin-top: 0.65rem;
}
.ld-map-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.ld-map-thumbs figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-cream-dark);
}
.ld-map-thumbs img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.ld-map-thumbs figcaption {
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  background: #fff;
}
.ld-location-side .ld-detail-label {
  margin-top: 1rem;
}
.ld-location-side .ld-detail-label:first-child {
  margin-top: 0;
}
.ld-address {
  margin: 0.35rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-primary);
  line-height: 1.5;
}
.ld-muted-block {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}
.ld-drive-times {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.ld-drive-times li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
}
.ld-drive-times span {
  color: var(--clr-text-muted);
  font-weight: 500;
}
.ld-small-text {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--clr-text);
}

/* ----- Video / tour ----- */
.ld-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .ld-media-grid {
    grid-template-columns: 1fr;
  }
}
.ld-video-card p {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
}
.ld-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 200px;
  border-radius: 12px;
  border: 1px solid var(--clr-border);
  background:
    linear-gradient(160deg, rgba(28, 34, 39, 0.55), rgba(28, 34, 39, 0.35)),
    url("assets/images/parallax_mesa.webp") center / cover;
  color: #fff;
  text-align: center;
  padding: 1.25rem;
}
.ld-video-tour {
  background:
    linear-gradient(160deg, rgba(25, 142, 205, 0.55), rgba(28, 34, 39, 0.4)),
    url("assets/images/parallax_grasslands.webp") center / cover;
}
.ld-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--clr-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.ld-video-placeholder > span:not(.ld-play):not(.ld-muted) {
  font-weight: 600;
  font-size: 0.95rem;
}
.ld-video-placeholder .ld-muted {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}
.ld-video-placeholder code {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* ----- Documents ----- */
.ld-pdf-spotlight {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  margin: 0 0 1.15rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 2px solid rgba(25, 142, 205, 0.45);
  background:
    linear-gradient(135deg, rgba(25, 142, 205, 0.12), rgba(255, 255, 255, 0.98) 42%, #fff),
    var(--clr-white);
  box-shadow:
    0 0 0 4px rgba(25, 142, 205, 0.1),
    0 10px 28px rgba(15, 90, 130, 0.1);
}
.ld-pdf-spotlight-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2a9fd4, #198ecd 50%, #0f6f9e);
  box-shadow: 0 4px 14px rgba(15, 90, 130, 0.28);
}
.ld-pdf-spotlight-copy {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ld-pdf-spotlight-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f6f9e;
}
.ld-pdf-spotlight-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-primary);
  line-height: 1.25;
}
.ld-pdf-spotlight-desc {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.45;
  max-width: 42ch;
}
.ld-btn-pdf-lg {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem 0.65rem 0.8rem;
}
a.ld-btn-pdf-compact,
.ld-btn-pdf-compact {
  padding: 0.5rem 1rem;
  gap: 0.35rem;
  animation: none;
  color: #ffffff !important;
  background: #1476ab;
  background-image: none;
  border: 1px solid #0a4f73;
  box-shadow: 0 0 0 2px rgba(20, 118, 171, 0.22), 0 3px 12px rgba(10, 60, 90, 0.25);
}
a.ld-btn-pdf-compact:hover,
.ld-btn-pdf-compact:hover {
  color: #ffffff !important;
  background: #0f6a9a;
}
.ld-btn-pdf-compact .ld-btn-pdf-icon {
  display: none;
}
.ld-btn-pdf-compact .ld-btn-pdf-text {
  display: none;
}
a.ld-btn-sm.ld-btn-pdf,
.ld-btn-sm.ld-btn-pdf {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
}

.ld-docs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ld-docs li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--clr-cream);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
}
.ld-doc-featured {
  border-color: rgba(25, 142, 205, 0.4) !important;
  background: linear-gradient(90deg, rgba(25, 142, 205, 0.12), var(--clr-cream) 42%) !important;
  box-shadow: 0 0 0 2px rgba(25, 142, 205, 0.1);
}
.ld-doc-hot {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #ffffff !important;
  background: #1476ab;
  border-radius: 999px;
}
.ld-doc-featured .ld-doc-meta strong {
  color: var(--clr-primary);
}
.ld-doc-featured .ld-doc-meta span {
  color: var(--clr-text-muted);
}
.ld-doc-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--clr-accent-muted);
  color: var(--clr-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ld-doc-featured .ld-doc-icon {
  background: linear-gradient(145deg, #2a9fd4, #0f6f9e);
  color: #fff;
}
.ld-doc-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ld-doc-meta strong {
  font-size: 0.92rem;
  color: var(--clr-primary);
}
.ld-doc-meta span {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
@media (max-width: 520px) {
  .ld-docs li {
    flex-wrap: wrap;
  }
  .ld-docs .ld-btn {
    margin-left: auto;
  }
}

/* ----- Nearby ----- */
.ld-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 800px) {
  .ld-nearby-grid {
    grid-template-columns: 1fr;
  }
}
.ld-nearby-card {
  padding: 1.1rem 1.15rem;
  background: var(--clr-cream);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
}
.ld-nearby-list {
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
}
.ld-nearby-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(28, 34, 39, 0.06);
  font-size: 0.9rem;
}
.ld-nearby-list li:last-child {
  border-bottom: none;
}
.ld-nearby-list strong {
  color: var(--clr-primary);
}
.ld-nearby-list span {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}
.ld-nearby-card > .ld-muted {
  margin: 0;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ----- Financing compact facts ----- */
.ld-facts-compact {
  margin-top: 1rem;
}

/* ----- Contact form ----- */
.ld-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .ld-contact-grid {
    grid-template-columns: 1fr;
  }
}
.ld-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--clr-cream);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
}
.ld-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ld-form-row label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.ld-form-row input,
.ld-form-row select,
.ld-form-row textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--clr-primary);
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}
.ld-form-row input:focus,
.ld-form-row select:focus,
.ld-form-row textarea:focus {
  outline: 2px solid rgba(25, 142, 205, 0.35);
  border-color: var(--clr-accent);
}
.ld-form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.ld-form .ld-btn {
  align-self: flex-start;
  cursor: pointer;
  border: none;
}

.ld-agent-lg {
  margin-top: 0;
  padding: 1rem;
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  background: #fff;
}
.ld-agent-lg .ld-agent-photo {
  width: 72px;
  height: 72px;
}
.ld-aside-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--clr-cream);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
}
.ld-aside-facts {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.ld-aside-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
}
.ld-aside-facts li:last-child {
  border-bottom: none;
}
.ld-aside-facts span {
  color: var(--clr-text-muted);
}
.ld-share {
  margin-top: 1rem;
}
.ld-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.ld-share-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-primary);
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.ld-share-btn:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

/* Scroll offset for sticky jump links */
.ld-section[id] {
  scroll-margin-top: 120px;
}

/* ===== WordPress integration (do not alter design tokens above) ===== */
body.single-property,
body.ll-single-property {
  background: var(--clr-cream) !important;
}
body.single-property .site-main,
body.ll-single-property .site-main,
body.single-property #primary,
body.ll-single-property #primary,
body.single-property .content-area,
body.ll-single-property .content-area {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
body.single-property .entry-header,
body.ll-single-property .entry-header,
body.single-property .entry-title,
body.ll-single-property .entry-title {
  display: none !important;
}
.ll-ld-root.ld-page {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
}
/* PDF shortcode inside spotlight */
.ld-pdf-spotlight .ll-pdf,
.ld-pdf-spotlight .ll-btn {
  margin: 0;
}
.ld-pdf-spotlight .ll-pdf__open {
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  color: #fff !important;
  background: #1476ab;
  background-image: linear-gradient(160deg, #1a8ec8 0%, #1476ab 48%, #0d5f8a 100%);
  border: 1px solid #0a4f73;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(10, 60, 90, 0.28);
  font-weight: 700;
}
.ld-pdf-spotlight .ll-pdf__open:hover {
  color: #fff !important;
  background: #0f6a9a;
}
.ld-page .ll-pdf__dialog {
  font-family: var(--font-sans);
  border-radius: 16px;
}
.ld-page .ll-pdf__title {
  font-family: var(--font-serif, Georgia, serif);
  color: var(--clr-primary);
}
.ld-page .ll-pdf__submit {
  background: #1476ab;
  border-radius: 999px;
}

/* Gravity Forms inside contact column */
.ld-form .ll-inquiry,
.ld-form .gform_wrapper,
.ld-contact-grid .gform_wrapper {
  margin: 0;
  width: 100%;
}
.ld-form .gform_wrapper form {
  margin: 0;
}
.ld-form .gform_fields {
  grid-row-gap: 0.85rem;
}
.ld-form .gform_button,
.ld-form input[type="submit"] {
  background: var(--clr-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.35rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.ld-form .gform_wrapper input[type="text"],
.ld-form .gform_wrapper input[type="email"],
.ld-form .gform_wrapper input[type="tel"],
.ld-form .gform_wrapper input[type="url"],
.ld-form .gform_wrapper input[type="number"],
.ld-form .gform_wrapper select,
.ld-form .gform_wrapper textarea {
  width: 100%;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}
.ld-form .gfield_label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
