:root {
  --green-900: #1a3a15;
  --green-800: #2d5a27;
  --green-700: #3a7233;
  --green-600: #4a8c3f;
  --green-100: #e8f5e3;
  --green-50: #f3faf1;
  --gold: #c5961a;
  --gold-light: #f5e6b8;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --border-radius: 8px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

body[data-lang="hi"] {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

body[data-lang="en"] [data-lang-hi],
body[data-lang="hi"] [data-lang-en] {
  display: none !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.header-top {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 10px;
  gap: 16px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-group img {
  height: 50px;
  width: auto;
  border: 1px solid var(--green-700);
  border-radius: 6px;
  padding: 3px;
  background: var(--white);
}

.logo-text {
  line-height: 1.25;
}

.logo-text .name-en {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-800);
}

.logo-text .name-hi {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--green-700);
}

.logo-text .name-reg {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-nav {
  background: var(--green-800);
}

.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 12px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-weight: 600;
}

/* Longer label for /properties without breaking the bar layout */
.nav-links li:has(a[href="/properties"]) a {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 10.5rem;
  justify-content: center;
}

.lang-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.lang-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  background: var(--green-700);
  color: var(--white);
  border-radius: 20px;
}

/* ── Mobile menu ── */
.mobile-menu-btn {
  display: none;
  background: var(--green-800);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}

.mobile-menu-btn span,
.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 10px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn span {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-btn span::before {
  content: '';
  top: -6px;
  left: 0;
}

.mobile-menu-btn span::after {
  content: '';
  top: 6px;
  left: 0;
}

.mobile-menu-btn.active span {
  background: transparent;
}

.mobile-menu-btn.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Section ── */
.section {
  padding: 56px 0;
}

.section:nth-child(even) {
  background: var(--gray-50);
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-color: var(--green-600);
}

.service-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  border-radius: 50%;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 4px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.contact-item .icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.contact-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green-800);
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--green-700);
}

.wa-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  color: #25d366;
}

/* ── Legal pages ── */
.legal-page {
  padding: 48px 24px 64px;
}

.legal-page h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-900);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 6px;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.8);
  padding: 36px 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-links {
  margin-bottom: 14px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin: 0 4px;
  padding: 10px 8px;
  display: inline-block;
  min-height: 44px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  opacity: 0.65;
  font-size: 0.8rem;
}

/* ── Map ── */
.map-wrapper {
  margin-top: 32px;
  text-align: center;
}

.map-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 14px;
}

.map-embed {
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius);
  border: none;
}

.map-embed--tall {
  height: 400px;
}

.hero-compact {
  padding: 40px 24px;
}

body.lightbox-open {
  overflow: hidden;
}

.map-link {
  margin-top: 10px;
  font-size: 0.88rem;
}

.map-link a {
  color: var(--green-700);
  text-decoration: none;
  font-weight: 500;
}

.map-link a:hover {
  text-decoration: underline;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.gallery-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--gray-200);
}

.gallery-caption {
  padding: 18px 20px;
}

.gallery-caption h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 6px;
}

.gallery-caption p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.doc-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green-700);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.doc-download-link:hover {
  background: var(--green-800);
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
  color: var(--white);
}

.doc-download-link svg {
  flex-shrink: 0;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ── QR Code page ── */
.qr-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.qr-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 32px 36px;
  background: var(--green-50);
  border-bottom: 1px solid var(--gray-200);
}

.qr-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 10px;
}

.qr-field-icon {
  font-size: 1.15rem;
}

.qr-field select {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 52px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.qr-field select:hover {
  border-color: var(--green-600);
}

.qr-field select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(74, 140, 63, 0.15);
}

.qr-field select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background-color: var(--gray-50);
}

.qr-display {
  text-align: center;
  min-height: 240px;
}

.qr-placeholder {
  padding: 56px 32px;
  color: var(--text-light);
}

.qr-placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
  opacity: 0.4;
}

.qr-placeholder p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

.qr-result {
  padding: 36px 32px 40px;
}

.qr-result h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 24px;
  background: var(--green-100);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
}

.qr-result img {
  max-width: 340px;
  width: 100%;
  height: auto;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.qr-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  min-height: 48px;
}

.qr-btn:active {
  transform: scale(0.97);
}

.qr-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.qr-btn svg {
  flex-shrink: 0;
}

.qr-btn-download {
  background: var(--green-700);
  color: var(--white);
}

.qr-btn-download:hover:not(:disabled) {
  background: var(--green-800);
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
}

.qr-hint {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Electricity App Showcase ── */
.app-showcase {
  background: var(--green-50);
}

/* Beat .section:nth-child(even) (same specificity but must come after); keep green panel as designed */
.section.app-showcase {
  background: var(--green-50);
}

/* WCAG AA: --text-light on green-50 / gray-50 is below 4.5:1 for body-sized text */
.app-showcase .section-subtitle {
  color: var(--text);
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.app-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
}

.app-feature-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.app-feature h3 {
  font-size: 1.05rem;
  color: var(--green-800);
  margin-bottom: 6px;
}

.app-feature p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.app-cta {
  text-align: center;
  margin-top: 36px;
}

.app-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green-700);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.25);
}

.app-cta-btn:hover {
  background: var(--green-800);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.35);
  transform: translateY(-1px);
  color: var(--white);
}

.app-cta-btn svg {
  flex-shrink: 0;
}

/* ── AGM page ── */
.agm-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.agm-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.agm-detail-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-color: var(--green-600);
}

.agm-detail-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  border-radius: 50%;
}

.agm-detail-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 4px;
}

.agm-detail-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.agm-pdf-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.agm-pdf-embed {
  width: 100%;
  aspect-ratio: 210 / 297;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  background: var(--gray-50);
}

.agm-pdf-actions {
  margin-top: 20px;
}

.agm-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.agm-info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.agm-info-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-color: var(--green-600);
}

.agm-info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 4px;
}

.agm-info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.agm-info-card a {
  color: var(--green-700);
  text-decoration: none;
  font-weight: 500;
}

.agm-info-card a:hover {
  text-decoration: underline;
}

/* ── AGM Newspaper ── */
.agm-newspaper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.agm-newspaper-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.agm-newspaper-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--gray-200);
}

.agm-newspaper-pdf {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: block;
}

.agm-newspaper-caption {
  padding: 18px 20px;
}

.agm-newspaper-caption h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 6px;
}

.agm-newspaper-caption p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.agm-newspaper-caption .doc-download-link {
  margin-top: 14px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-top {
    padding: 10px 16px 8px;
  }

  .header-top {
    flex-wrap: wrap;
  }

  .logo-group {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .logo-group img {
    height: 36px;
  }

  .logo-text .name-en {
    font-size: 0.72rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .logo-text .name-hi {
    display: none;
  }

  .logo-text .name-reg {
    font-size: 0.56rem;
    margin-top: 1px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  .header-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .nav-links a.active {
    background: rgba(255,255,255,0.12);
    font-weight: 600;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .services-grid,
  .app-features {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 36px 0;
  }

  .qr-form {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .qr-result {
    padding: 28px 20px 32px;
  }

  .qr-placeholder {
    padding: 40px 20px;
  }

  .agm-details-grid,
  .agm-info-cards,
  .agm-newspaper-grid {
    grid-template-columns: 1fr;
  }

  .agm-pdf-embed {
    aspect-ratio: 210 / 297;
  }
}

/* ── Google AdSense slots ── */
.ad-slot {
  margin: 0 auto;
  padding: 32px 0 40px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.ad-slot--home-inline {
  background: var(--white);
  border-top: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0 36px;
}

.ad-slot-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.ad-slot .adsbygoogle {
  min-height: 100px;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

.ad-slot-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* ── Property listings (rent / sale) ── */
.property-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  min-height: 100%;
}

.property-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #c5e4bc;
}

.property-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}

.property-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-800);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.property-badge--sale {
  color: #92400e;
  background: rgba(254, 243, 199, 0.98);
}

.property-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.property-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-800);
  line-height: 1.3;
  margin: 0;
}

.property-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.property-card__meta {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.property-card__teaser {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.property-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-700);
  margin-top: 4px;
}

.property-card:hover .property-card__cta {
  color: var(--green-800);
  text-decoration: underline;
}

.property-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 20px;
  max-width: 720px;
}

.property-detail-intro {
  margin-bottom: 24px;
}

.property-price-block {
  background: var(--green-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 20px 22px;
  margin: 28px 0 24px;
}

.property-price-block h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.property-price-block .property-price-line {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 8px;
}

.property-price-block .property-price-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.property-conditions {
  margin-top: 8px;
}

.property-conditions h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 12px;
}

.property-conditions ul {
  padding-left: 1.25rem;
  margin: 0;
}

.property-conditions li {
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}

.property-detail-sections > .property-conditions + .property-conditions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.property-contact-strip {
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.property-contact-strip p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text);
}

.property-contact-strip a {
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}

.property-contact-strip a:hover {
  text-decoration: underline;
}

/* Property detail: directions + phone (orchid-1) */
.property-directions {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.property-directions__layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .property-directions__layout {
    grid-template-columns: 1fr minmax(240px, 300px);
    align-items: start;
  }
}

.property-directions .map-wrapper {
  margin-top: 0;
}

.property-directions .map-embed {
  border-radius: var(--border-radius);
}

.property-directions__aside .contact-item {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Property photo carousel */
.property-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto 8px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-900);
}

.property-carousel:focus {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

.property-carousel__viewport {
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  width: 100%;
  max-width: 100%;
  /* Height set by property-carousel.js from the active image (--carousel-viewport-h). */
  height: var(--carousel-viewport-h, min(75vw, 70vh));
  margin-inline: auto;
  background: var(--gray-900);
}

.property-carousel__slides {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  width: calc(var(--carousel-count, 1) * 100%);
  height: 100%;
  min-height: 0;
  transition: transform 0.35s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .property-carousel__slides {
    transition: none;
  }
}

.property-carousel__slides > li {
  flex: 0 0 calc(100% / var(--carousel-count, 1));
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  align-self: stretch;
}

.property-carousel__slides img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  display: block;
}

.property-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.15s;
}

.property-carousel__btn:hover {
  background: var(--white);
}

.property-carousel__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.property-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.property-carousel__btn--prev {
  left: 10px;
}

.property-carousel__btn--next {
  right: 10px;
}

.property-carousel__btn svg {
  width: 22px;
  height: 22px;
}

.property-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 14px;
  background: rgba(0, 0, 0, 0.55);
}

.property-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.property-carousel__dot[aria-current="true"] {
  background: var(--white);
  transform: scale(1.15);
}

.property-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.property-carousel__thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 8px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.property-carousel__thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, opacity 0.2s, transform 0.15s;
}

.property-carousel__thumb:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.property-carousel__thumb[aria-current="true"] {
  border-color: var(--green-600);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.property-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.property-carousel__counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 20px;
}

@media (max-width: 600px) {
  .property-list-grid {
    grid-template-columns: 1fr;
  }

  .property-carousel__btn {
    width: 40px;
    height: 40px;
  }

  .property-carousel__btn--prev {
    left: 6px;
  }

  .property-carousel__btn--next {
    right: 6px;
  }

  .property-carousel__thumb {
    width: 56px;
    height: 42px;
  }
}
