:root {
  --brand-dark: #163a2f;
  --brand-green: #1f6b4f;
  --brand-green-soft: #eaf4ef;
  --brand-gold: #f0bb52;
  --brand-text: #17332a;
  --brand-muted: #5f6f69;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  color: var(--brand-text);
  background: #f8faf8;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: var(--brand-green);
}

a:hover {
  color: var(--brand-dark);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(31, 107, 79, 0.18);
}

.bg-deep {
  background: linear-gradient(145deg, #163a2f 0%, #1f6b4f 100%);
}

.section-space {
  margin-bottom: 5rem;
}

.section-space-sm {
  margin-bottom: 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-header .navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-brand,
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.site-footer-brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

.hero-section,
.page-hero,
.cta-band,
.service-area,
.thank-you-shell {
  border-radius: 1.5rem;
}

.hero-copy {
  background: linear-gradient(135deg, #163a2f 0%, #214f40 55%, #2d7a5d 100%);
  color: #fff;
}

.p-xl-6 {
  padding: 4rem !important;
}

.hero-point,
.info-card,
.timeline-card,
.cta-panel,
.contact-panel,
.thank-you-shell {
  background: #fff;
  border: 1px solid rgba(22, 58, 47, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.hero-point {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  padding: 0.9rem 1rem;
  text-align: center;
}

.hero-form,
.form-shell {
  border-radius: 1.5rem;
}

.image-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 239, 0.98));
  border: 1px solid rgba(22, 58, 47, 0.08);
  border-radius: 1.5rem;
  padding: 1rem;
  overflow: hidden;
}

.image-panel-warm {
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(242, 247, 241, 0.98));
}

.image-panel-transparent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 244, 239, 0.72));
}

.feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.feature-image-contain {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}

.team-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.scenic-gallery-card {
  padding: 0.85rem;
}

.scenic-gallery-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scenic-gallery-copy {
  padding: 1rem 0.35rem 0.15rem;
}

.contact-mini-card {
  display: inline-grid;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid rgba(22, 58, 47, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1rem 2rem rgba(16, 24, 40, 0.04);
}

.section-heading {
  max-width: 48rem;
}

.info-card,
.timeline-card,
.cta-panel,
.contact-panel {
  box-shadow: 0 1rem 2rem rgba(16, 24, 40, 0.04);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-area {
  background: #edf5f0;
  padding: 2rem;
}

.county-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.county-grid span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-green);
}

.county-grid a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem;
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-green);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.county-grid a:hover {
  color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 1.25rem rgba(16, 24, 40, 0.08);
}

.property-admin-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.property-card-shell,
.property-detail-hero,
.property-gallery-image {
  overflow: hidden;
  border-radius: 1rem;
}

.property-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-card-image,
.property-detail-hero,
.property-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-detail-hero {
  max-height: 34rem;
}

.property-gallery-image {
  aspect-ratio: 4 / 3;
}

.property-sold-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background: rgba(22, 58, 47, 0.92);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-sold-badge-static {
  position: static;
  display: inline-flex;
}

.property-facts li + li {
  margin-top: 0.7rem;
}

@media (max-width: 767.98px) {
  .property-detail-hero {
    max-height: 20rem;
  }
}

.location-card {
  display: flex;
  flex-direction: column;
}

.location-card .btn {
  margin-top: auto;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.9rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-green);
  font-weight: 700;
}

.cta-band {
  background: linear-gradient(145deg, #163a2f 0%, #215643 100%);
}

.faq-accordion .accordion-item {
  border-radius: 1rem;
  border: 1px solid rgba(22, 58, 47, 0.08);
  overflow: hidden;
  margin-bottom: 1rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(31, 107, 79, 0.08);
  color: var(--brand-dark);
}

.site-footer {
  background: #fff;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.thank-you-shell {
  max-width: 48rem;
}

.admin-login-shell {
  max-width: 32rem;
}

.dashboard-shell {
  display: grid;
  gap: 1rem;
}

.dashboard-card {
  background: #fff;
  border: 1px solid rgba(22, 58, 47, 0.08);
  border-left: 0.4rem solid rgba(31, 107, 79, 0.2);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 1rem 2rem rgba(16, 24, 40, 0.04);
}

.dashboard-card.is-unread {
  border-left-color: var(--brand-green);
}

.dashboard-card.is-read {
  border-left-color: rgba(95, 111, 105, 0.45);
}

.admin-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.04), rgba(20, 83, 45, 0.08));
  border: 1px solid rgba(22, 58, 47, 0.08);
}

.admin-kpi-grid,
.admin-hub-grid {
  display: grid;
  gap: 1rem;
}

.admin-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-kpi-card,
.settings-card {
  background: #fff;
  border: 1px solid rgba(22, 58, 47, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 1rem 2rem rgba(16, 24, 40, 0.04);
}

.admin-kpi-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: 0.75rem;
}

.admin-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.admin-status-list {
  display: grid;
  gap: 0.75rem;
}

.admin-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-status-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.text-secondary {
  color: var(--brand-muted) !important;
}

@media (max-width: 991.98px) {
  .county-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .section-space {
    margin-bottom: 4rem;
  }

  .section-space-sm {
    margin-bottom: 3rem;
  }

  .county-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy,
  .hero-form .card-body,
  .page-hero,
  .cta-band,
  .service-area,
  .image-panel {
    padding: 1.5rem !important;
  }

  .site-brand-logo {
    width: 180px;
  }

  .site-footer-brand-logo {
    width: 180px;
  }
}
