/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background: #134422;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 86, 50, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--heading-color);
  border-color: var(--heading-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 86, 50, 0.2);
}

/* CARDS */
.card {
  background: var(--surface-color);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card h4 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent-color);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.card p {
  color: var(--gray-color);
  line-height: 1.7;
}

/* PROPERTY CARD
   Note: the card itself is not a link/button — only "Contact Agent"
   inside it is interactive — so it intentionally has no pointer cursor
   or click-style hover lift. See audit F14. */
.property-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.property-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.property-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--light-color);
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-color);
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.property-content {
  padding: 24px;
}

.property-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-color);
  font-size: 14px;
  margin-bottom: 16px;
}

.property-details {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--light-color);
  border-bottom: 1px solid var(--light-color);
}

.property-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-color);
}

.detail-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--heading-color);
  flex-shrink: 0;
}

.detail-icon svg {
  width: 100%;
  height: 100%;
}

.property-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--light-color);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--heading-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* STATS SECTION */
.stats-section {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 60px 0;
  margin: 80px 0;
}

.stats-grid {
  display: grid;
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item h3 {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.9;
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f3d24 100%);
  color: var(--white-color);
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-header p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* FILTER BAR */
.filter-bar {
  background: var(--surface-color);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 48px;
}

.filter-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr) auto;
  }
}

/* ALERT */
.alert {
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Neutral tone for the mailto fallback (F10) — it opens the visitor's
   email app but doesn't guarantee delivery, so it isn't styled as a
   confirmed success. */
.alert-info {
  background: #e2e8f4;
  color: #1e3a6d;
  border: 1px solid #c7d4ea;
}

@media (prefers-color-scheme: dark) {
  .alert-success {
    background: #1c3a24;
    color: #8fd9a8;
    border-color: #2d5940;
  }

  .alert-error {
    background: #3a1c1f;
    color: #f0a8ae;
    border-color: #5c2d33;
  }

  .alert-info {
    background: #1c2a3a;
    color: #a8c5f0;
    border-color: #2d4059;
  }
}

/* SCROLL TO TOP BUTTON */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white-color);
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #134422;
}

/* SOCIAL FLOATING BUTTONS (WhatsApp, Facebook, Twitter/X) */
.social-float-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}

.social-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-float-btn.whatsapp {
  background: #25d366;
  width: 56px;
  height: 56px;
}

.social-float-btn.facebook {
  background: #1877f2;
}

.social-float-btn.twitter {
  background: #000;
}

@media (max-width: 480px) {
  .social-float-container {
    bottom: 16px;
    left: 16px;
    gap: 10px;
  }
  .social-float-btn {
    width: 44px;
    height: 44px;
  }
  .social-float-btn.whatsapp {
    width: 48px;
    height: 48px;
  }
  .scroll-top-btn {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
}

/* REVEAL-ON-SCROLL ANIMATION */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init,
  .reveal-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   UTILITY / LAYOUT-HELPER CLASSES
   Replaces repeated inline styles across contact.html,
   privacy-policy.html, properties.html, about.html and
   properties-render.js (audit F21). Named by what they do rather
   than by page, so they can be reused anywhere.
   ============================================================ */

.section-heading {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--heading-color);
}

.section-subtitle {
  color: var(--gray-color);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--gray-color);
  margin-bottom: 32px;
}

.policy-meta {
  margin-bottom: 24px;
}

.policy-heading {
  font-size: 28px;
  margin: 40px 0 16px;
  color: var(--heading-color);
}

.policy-container {
  max-width: 800px;
}

.link-accent {
  color: var(--heading-color);
}

.link-accent-bold {
  color: var(--heading-color);
  font-weight: 600;
}

.text-small-muted {
  font-size: 14px;
  margin-top: 8px;
}

.muted-text {
  color: var(--gray-color);
}

.muted-text-mb {
  color: var(--gray-color);
  margin-bottom: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.center-text {
  text-align: center;
}

.section-alt-bg {
  background: var(--light-color);
}

.form-group-flush {
  margin-bottom: 0;
}

.btn-full {
  width: 100%;
}

.flex-1-center {
  flex: 1;
  text-align: center;
}

.quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-text-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.loading-text {
  text-align: center;
  color: var(--gray-color);
  grid-column: 1 / -1;
}

.notice-text {
  text-align: center;
  color: var(--gray-color);
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
}

.no-results {
  display: none;
  text-align: center;
  padding: 60px 24px;
}

.no-results.is-visible {
  display: block;
}

.map-section {
  padding: 0;
  margin: 80px 0;
}

.map-embed-card {
  padding: 0;
  overflow: hidden;
}

.map-embed-card iframe {
  border: 0;
  display: block;
}

.map-caption {
  text-align: center;
  margin-top: 24px;
  color: var(--gray-color);
}

.about-values-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-content-top {
  align-items: start;
}