:root {
  --forest: #0f2816;
  --forest-light: #1a3d24;
  --stone: #e8e2d9;
  --stone-light: #f5f2ed;
  --offwhite: #fdfcfa;
  --charcoal: #1f1f1f;
  --muted: #6b6b6b;
}

html {
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--offwhite);
  color: var(--charcoal);
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
}

.contact-section {
  scroll-margin-top: 5.5rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.navbar {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}

.navbar-brand {
  font-weight: 700;
  color: var(--forest) !important;
  font-size: 1.25rem;
}

.nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--forest) !important;
}

/* Home hero only — shorter than original 80vh; photo layer uses fixed attachment for parallax */
.hero {
  --hero-photo: url("https://images.unsplash.com/photo-1582719508461-905c673771fd?w=1600&q=80");
  min-height: 72vh;
  background-image: linear-gradient(
      180deg,
      rgba(15, 40, 22, 0.55) 0%,
      rgba(15, 40, 22, 0.25) 100%
    ),
    var(--hero-photo);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  /* Gradient scrolls with section; image stays fixed to viewport for parallax */
  background-attachment: scroll, fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 991.98px) {
  .hero {
    /* fixed attachment is unreliable on many mobile browsers */
    background-attachment: scroll, scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    background-attachment: scroll, scroll;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

.hero-sm {
  min-height: 35vh;
  background: linear-gradient(
      180deg,
      rgba(15, 40, 22, 0.6) 0%,
      rgba(15, 40, 22, 0.3) 100%
    ),
    url("https://images.unsplash.com/photo-1582719508461-905c673771fd?w=1600&q=80") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-sm h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.btn-primary-custom {
  background: var(--forest);
  border: none;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.hero-sm .btn-primary-custom {
  padding: 0.6rem 1.5rem;
}

.btn-primary-custom:hover {
  background: var(--forest-light);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-custom {
  border: 1px solid white;
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  font-weight: 500;
  background: transparent;
}

.btn-outline-custom:hover {
  background: white;
  color: var(--forest);
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.property-card {
  border: 1px solid var(--stone);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: all 0.25s ease;
}

.property-card:hover {
  border-color: #c8c2b8;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.property-card img {
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.property-list .property-card img {
  height: 200px;
}

.property-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.property-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.property-list .property-card h4 {
  font-size: 1.1rem;
}

.property-card-list .property-card-footer {
  border-top: 1px solid var(--stone-light);
}

.property-card .price {
  font-weight: 600;
  color: var(--forest);
}

.feature-item {
  padding: 1.5rem;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--stone);
}

.feature-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.quote-block {
  background: white;
  border-left: 3px solid var(--forest);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}

.sidebar {
  background: white;
  border: 1px solid var(--stone);
  border-radius: 8px;
  padding: 1.5rem;
}

.sidebar h5 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.sidebar .form-check-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.pagination .page-link {
  border: none;
  color: var(--forest);
  border-radius: 6px;
  margin: 0 3px;
  font-weight: 500;
}

.pagination .page-link:hover {
  background: var(--stone-light);
}

.pagination .active .page-link {
  background: var(--forest);
  color: white;
}

footer.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: auto;
}

footer.site-footer.compact {
  padding: 3rem 0 1.5rem;
}

footer.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: white;
}

footer.site-footer h6 {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-body img,
.page-body img {
  max-width: 100%;
  height: auto;
}

.property-gallery-main {
  max-height: 480px;
  object-fit: cover;
  width: 100%;
}

.property-gallery .carousel-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1rem 1rem;
}

.property-gallery-thumb {
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.property-gallery-thumb img {
  height: 64px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.property-gallery-thumb:hover,
.property-gallery-thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--forest);
}

.property-features-list li {
  padding: 0.2rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.property-features-list li::before {
  color: var(--forest);
  content: "✓";
  left: 0;
  position: absolute;
}

.property-details-list dt {
  font-weight: 500;
}

.property-details-list dd {
  margin-bottom: 0.35rem;
}

.lang-switcher-item {
  margin-left: 0.75rem;
}

.lang-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.lang-flag {
  border: 1px solid var(--stone);
  background: white;
  border-radius: 6px;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-flag:hover {
  border-color: var(--forest-light);
}

.lang-flag.active {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(15, 40, 22, 0.15);
}
