:root {
  --lgr-green: #0b6b34;
  --lgr-green-dark: #064d26;
  --lgr-ink: #172019;
  --lgr-muted: #5f695f;
  --lgr-soft: #f4f7f2;
  --lgr-line: #dfe7dc;
  --lgr-warm: #fbfaf6;
}

/* Keep the nine-item desktop navigation compact while preserving the theme's mobile overlay. */
.wp-block-navigation .wp-block-navigation-item__content {
  font-size: clamp(0.86rem, 1vw, 1.02rem);
}
.wp-block-navigation__container { gap: clamp(.55rem, 1.1vw, 1rem); }

.lgr-page-intro,
.lgr-section,
.lgr-callout {
  margin-block: clamp(3rem, 6vw, 6.5rem);
}

.lgr-page-intro {
  padding-block: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--lgr-line);
  border-bottom: 1px solid var(--lgr-line);
}

.lgr-section-title,
.lgr-card-title,
.lgr-callout-title {
  color: var(--lgr-green);
}

.lgr-section-title {
  margin-bottom: 1.2rem;
  line-height: 1.08;
}

.lgr-kicker {
  color: var(--lgr-green-dark);
  font-weight: 650;
  letter-spacing: .01em;
}
.lgr-kicker-large {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.lgr-page-lead,
.lgr-lead {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.62;
  max-width: 760px;
}
.lgr-page-lead { margin-bottom: 0; }
.lgr-note,
.lgr-form-note {
  color: var(--lgr-muted);
  font-size: .95rem;
}

.lgr-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: 1.7rem;
}
.lgr-card-grid-three {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.lgr-card {
  margin: 0 !important;
  padding: clamp(1.35rem, 2.7vw, 2rem);
  border: 1px solid var(--lgr-line);
  background: #fff;
  min-height: 100%;
}
.lgr-card-title { margin-top: 0; margin-bottom: .7rem; }
.lgr-card-copy { margin-top: 0; }
.lgr-card-link { margin-bottom: 0; }
.lgr-text-link {
  color: var(--lgr-green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lgr-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--lgr-line);
  border-bottom: 1px solid var(--lgr-line);
  margin-top: 2rem;
}
.lgr-stat {
  margin: 0 !important;
  padding: 1.4rem 1rem;
  border-right: 1px solid var(--lgr-line);
}
.lgr-stat:last-child { border-right: 0; }
.lgr-stat-big {
  color: var(--lgr-green);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 .35rem;
}
.lgr-stat-small { color: var(--lgr-muted); margin: 0; font-size: .9rem; }

.lgr-callout {
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--lgr-soft);
  border-left: 4px solid var(--lgr-green);
}
.lgr-strategic-callout { background: #eef4ec; }
.lgr-disclaimer { background: var(--lgr-warm); border-left-color: #9a7b45; }
.lgr-callout-copy { max-width: 820px; font-size: 1.05rem; line-height: 1.7; }
.lgr-buttons { margin-top: 1.6rem; gap: .75rem; }
.wp-block-button__link {
  border-radius: 999px;
  padding: .72em 1.25em;
}
.lgr-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--lgr-green);
  color: #fff;
}
.lgr-buttons .is-style-outline .wp-block-button__link {
  color: var(--lgr-green-dark);
  border-color: var(--lgr-green-dark);
}

.lgr-check-list {
  padding-left: 1.25rem;
  line-height: 1.7;
}
.lgr-check-list li { margin-bottom: .65rem; }
.lgr-company-line { color: var(--lgr-muted); margin-top: 2rem; }

.lgr-form-section { max-width: 900px; }
.lgr-form {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid var(--lgr-line);
  background: #fff;
}
.lgr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem 1.2rem;
}
.lgr-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
}
.lgr-form input[type="text"],
.lgr-form input[type="email"],
.lgr-form textarea,
.lgr-form select {
  display: block;
  width: 100%;
  margin-top: .38rem;
  border: 1px solid #bcc8ba;
  border-radius: 4px;
  background: #fff;
  padding: .78rem .85rem;
  font: inherit;
  color: var(--lgr-ink);
  box-sizing: border-box;
}
.lgr-checkbox { font-weight: 400 !important; }
.lgr-checkbox input { margin-right: .45rem; }
.lgr-form-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--lgr-green);
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: .8rem 1.3rem;
  cursor: pointer;
}
.lgr-form input:focus-visible,
.lgr-form textarea:focus-visible,
.lgr-form select:focus-visible {
  outline: 3px solid var(--lgr-green-dark);
  outline-offset: 2px;
}
.lgr-form-submit:focus-visible {
  outline: 3px solid #172019;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
.lgr-form-message { padding: 1rem 1.1rem; margin: 1rem 0; border-left: 4px solid; }
.lgr-form-message.success { background: #eef8ef; border-color: var(--lgr-green); }
.lgr-form-message.error { background: #fff2f2; border-color: #a82222; }
.lgr-honeypot { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

@media (max-width: 900px) {
  .lgr-card-grid-three { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lgr-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lgr-stat:nth-child(2) { border-right: 0; }
  .lgr-stat:nth-child(-n+2) { border-bottom: 1px solid var(--lgr-line); }
}

@media (max-width: 650px) {
  .lgr-card-grid,
  .lgr-card-grid-three,
  .lgr-form-grid,
  .lgr-stat-grid {
    grid-template-columns: 1fr;
  }
  .lgr-stat { border-right: 0; border-bottom: 1px solid var(--lgr-line); }
  .lgr-stat:last-child { border-bottom: 0; }
  .lgr-card { padding: 1.2rem; }
  .lgr-callout { padding: 1.5rem; }
  .lgr-buttons { align-items: stretch; }
  .lgr-buttons .wp-block-button { width: 100%; }
  .lgr-buttons .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
}


/* Managed footer added by LGR Site Builder V1.0.1 */
.lgr-site-footer {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  padding-inline: max(1.25rem, calc((100vw - 1180px) / 2));
  background: var(--lgr-green-dark);
  color: #fff;
}
.lgr-site-footer a {
  color: #fff;
  text-underline-offset: 3px;
}
.lgr-footer-title {
  color: #fff;
  margin-bottom: .35rem;
}
.lgr-footer-descriptor {
  font-size: 1.05rem;
  margin-top: 0;
}
.lgr-footer-location,
.lgr-footer-company,
.lgr-footer-web,
.lgr-footer-links,
.lgr-footer-copy {
  margin-block: .55rem;
}
.lgr-footer-copy {
  opacity: .84;
  font-size: .88rem;
  margin-top: 1.25rem;
}

/* Keep controls legible in browser PDF printouts as well as on screen. */
.lgr-buttons .wp-block-button__link {
  border: 1.5px solid var(--lgr-green-dark);
  font-weight: 600;
}
@media print {
  .lgr-buttons .wp-block-button__link,
  .lgr-form-submit {
    background: #fff !important;
    color: #064d26 !important;
    border: 1.5px solid #064d26 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .lgr-site-footer {
    background: #fff !important;
    color: #172019 !important;
    border-top: 2px solid #064d26;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .lgr-site-footer a,
  .lgr-site-footer .lgr-footer-title {
    color: #064d26 !important;
  }
}

/* Visual integration — LGR Site Builder V1.0.2 */
.lgr-visual-section {
  margin-block: clamp(2.5rem, 5vw, 5.5rem);
}
.lgr-lead-visual-section {
  margin-top: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 6rem);
}
.lgr-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 1.5rem;
}
.lgr-photo-grid > .wp-block-image {
  margin: 0 !important;
}
.lgr-photo {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lgr-line);
}
.lgr-photo img {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 420px);
  object-fit: cover;
}
.lgr-lead-visual-section .lgr-photo-grid {
  grid-template-columns: 1fr;
}
.lgr-lead-visual-section .lgr-photo img {
  height: clamp(320px, 48vw, 620px);
}
.lgr-photo figcaption,
.lgr-photo .wp-element-caption {
  margin: 0;
  padding: .78rem .9rem .9rem;
  color: var(--lgr-muted);
  font-size: .86rem;
  line-height: 1.45;
  text-align: left;
  background: #fff;
}
.lgr-attribution {
  display: inline-block;
  margin-top: .28rem;
  font-size: .78rem;
  line-height: 1.45;
}
.lgr-attribution a {
  color: var(--lgr-green-dark);
  text-underline-offset: 2px;
}
.lgr-photo-destination {
  border-color: #c9d9c7;
  background: var(--lgr-soft);
}
.lgr-photo-destination figcaption,
.lgr-photo-destination .wp-element-caption {
  background: var(--lgr-soft);
}
.lgr-home-visual-gateways .lgr-photo-grid,
.lgr-destination-gallery .lgr-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lgr-home-visual-gateways .lgr-photo img {
  height: clamp(210px, 26vw, 340px);
}
.lgr-property-context {
  padding-top: 1rem;
  border-top: 1px solid var(--lgr-line);
}

@media (max-width: 650px) {
  .lgr-photo-grid,
  .lgr-home-visual-gateways .lgr-photo-grid,
  .lgr-destination-gallery .lgr-photo-grid {
    grid-template-columns: 1fr;
  }
  .lgr-photo img,
  .lgr-home-visual-gateways .lgr-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .lgr-lead-visual-section .lgr-photo img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media print {
  .lgr-photo img {
    max-height: 360px;
    object-fit: cover;
  }
  .lgr-attribution {
    font-size: 8pt;
  }
}

/* Consolidated visual/layout QA refinements — LGR Site Builder V1.0.3 */
.lgr-visual-card {
  padding: 0;
  overflow: hidden;
}
.lgr-visual-card > .wp-block-image {
  margin: 0 !important;
  border: 0;
  border-bottom: 1px solid var(--lgr-line);
}
.lgr-visual-card .lgr-card-photo img {
  height: clamp(190px, 23vw, 285px);
  object-fit: cover;
}
.lgr-visual-card .lgr-card-title,
.lgr-visual-card .lgr-card-copy,
.lgr-visual-card .lgr-card-link,
.lgr-visual-card .lgr-card-attribution {
  margin-left: clamp(1rem, 2vw, 1.4rem);
  margin-right: clamp(1rem, 2vw, 1.4rem);
}
.lgr-visual-card .lgr-card-title { margin-top: 1.2rem; }
.lgr-visual-card .lgr-card-link { margin-bottom: 1.25rem; }
.lgr-card-attribution {
  color: var(--lgr-muted);
  font-size: .68rem;
  line-height: 1.35;
  margin-top: -.55rem;
  margin-bottom: 1.15rem;
}
.lgr-card-attribution a { color: var(--lgr-green-dark); }

/* Five-card groups: deliberate 3 + 2 composition instead of 2 + 2 + 1. */
.lgr-card-grid-balanced-five {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}
.lgr-card-grid-balanced-five > .lgr-card { grid-column: span 2; }
.lgr-card-grid-balanced-five > .lgr-card:nth-child(n+4) { grid-column: span 3; }

/* About: three estate-character photographs form one balanced row. */
.lgr-three-photo-feature .lgr-photo-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.lgr-three-photo-feature .lgr-photo img {
  height: clamp(210px, 25vw, 320px);
}

/* Gallery: five property photographs arranged 2 + 3 rather than leaving an orphan tile. */
.lgr-five-photo-mosaic .lgr-photo-grid {
  grid-template-columns: repeat(6, minmax(0,1fr));
}
.lgr-five-photo-mosaic .lgr-photo-grid > .wp-block-image:nth-child(-n+2) { grid-column: span 3; }
.lgr-five-photo-mosaic .lgr-photo-grid > .wp-block-image:nth-child(n+3) { grid-column: span 2; }
.lgr-five-photo-mosaic .lgr-photo img {
  height: clamp(210px, 27vw, 340px);
}

/* A single closing property image should read as a deliberate feature, not a small orphan tile. */
.lgr-single-wide .lgr-photo-grid { grid-template-columns: 1fr; }
.lgr-single-wide .lgr-photo { max-width: 820px; }
.lgr-single-wide .lgr-photo img { height: clamp(300px, 42vw, 520px); }

/* Destination credits remain complete but visually secondary to the photography. */
.lgr-destination-gallery .lgr-attribution,
.lgr-destination-lead .lgr-attribution {
  font-size: .68rem;
  line-height: 1.35;
}

@media (max-width: 760px) and (min-width: 651px) {
  .lgr-card-grid-balanced-five {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .lgr-card-grid-balanced-five > .lgr-card { grid-column: auto; }
  .lgr-card-grid-balanced-five > .lgr-card:last-child { grid-column: 1 / -1; }
  .lgr-three-photo-feature .lgr-photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lgr-three-photo-feature .lgr-photo-grid > .wp-block-image:last-child { grid-column: 1 / -1; max-width: 70%; }
  .lgr-five-photo-mosaic .lgr-photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lgr-five-photo-mosaic .lgr-photo-grid > .wp-block-image { grid-column: auto !important; }
  .lgr-five-photo-mosaic .lgr-photo-grid > .wp-block-image:last-child { grid-column: 1 / -1 !important; max-width: 70%; }
}

@media (max-width: 650px) {
  .lgr-card-grid-balanced-five,
  .lgr-three-photo-feature .lgr-photo-grid,
  .lgr-five-photo-mosaic .lgr-photo-grid {
    grid-template-columns: 1fr;
  }
  .lgr-card-grid-balanced-five > .lgr-card,
  .lgr-three-photo-feature .lgr-photo-grid > .wp-block-image,
  .lgr-five-photo-mosaic .lgr-photo-grid > .wp-block-image {
    grid-column: auto !important;
    max-width: none !important;
  }
  .lgr-visual-card .lgr-card-photo img { height: auto; aspect-ratio: 4 / 3; }
}

@media print {
  .lgr-card-grid-balanced-five {
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
  }
  .lgr-card-grid-balanced-five > .lgr-card { grid-column: span 2 !important; }
  .lgr-card-grid-balanced-five > .lgr-card:nth-child(n+4) { grid-column: span 3 !important; }
  .lgr-three-photo-feature .lgr-photo-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .lgr-five-photo-mosaic .lgr-photo-grid { grid-template-columns: repeat(6, minmax(0,1fr)) !important; }
  .lgr-five-photo-mosaic .lgr-photo-grid > .wp-block-image:nth-child(-n+2) { grid-column: span 3 !important; }
  .lgr-five-photo-mosaic .lgr-photo-grid > .wp-block-image:nth-child(n+3) { grid-column: span 2 !important; }
  .lgr-visual-card .lgr-card-photo img { max-height: 240px; }
}

/* V1.0.4 — accessible mobile navigation and visible form validation */
.lgr-mobile-nav-toggle,
.lgr-mobile-nav-panel {
  display: none;
}

.lgr-field-error {
  display: block;
  margin: -.55rem 0 1rem;
  color: #8a1f1f;
  font-size: .88rem;
  line-height: 1.4;
}

.lgr-form [aria-invalid="true"] {
  border-color: #a82222 !important;
  outline: 2px solid rgba(168, 34, 34, .12);
  outline-offset: 1px;
}

.lgr-form-anchor {
  scroll-margin-top: 2rem;
}

@media (max-width: 760px) {
  .wp-block-navigation.lgr-mobile-nav-ready {
    position: relative;
    z-index: 80;
  }

  .wp-block-navigation.lgr-mobile-nav-ready > .wp-block-navigation__container,
  .wp-block-navigation.lgr-mobile-nav-ready > .wp-block-navigation__responsive-container,
  .wp-block-navigation.lgr-mobile-nav-ready > .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .wp-block-navigation.lgr-mobile-nav-ready > .lgr-mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .55rem .7rem;
    border: 1px solid var(--lgr-line);
    border-radius: 6px;
    background: #fff;
    color: var(--lgr-ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .lgr-mobile-nav-bars {
    display: inline-flex;
    width: 20px;
    flex-direction: column;
    gap: 4px;
  }
  .lgr-mobile-nav-bars span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .wp-block-navigation.lgr-mobile-nav-ready > .lgr-mobile-nav-panel {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    width: min(82vw, 320px);
    max-height: min(72vh, 620px);
    overflow-y: auto;
    padding: .65rem;
    border: 1px solid var(--lgr-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
  }

  .wp-block-navigation.lgr-mobile-nav-ready > .lgr-mobile-nav-panel.is-open {
    display: block;
  }

  .lgr-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .lgr-mobile-nav-list li {
    margin: 0;
    padding: 0;
  }
  .lgr-mobile-nav-list a {
    display: block;
    padding: .72rem .75rem;
    color: var(--lgr-ink);
    text-decoration: none;
    border-radius: 5px;
    line-height: 1.25;
  }
  .lgr-mobile-nav-list a:hover,
  .lgr-mobile-nav-list a:focus-visible {
    background: var(--lgr-soft);
    color: var(--lgr-green-dark);
    outline: 2px solid var(--lgr-green);
    outline-offset: 1px;
  }
}

/* V1.0.6 direct form anchors and legal-page staging. */
.lgr-form-anchor {
  scroll-margin-top: 7rem;
}
.lgr-legal-section {
  max-width: 900px;
}
.lgr-legal-section .lgr-section-title {
  margin-bottom: 1rem;
}
