/* ============================================
   PROperti - Custom Styles
   Modern Real Estate Static Website
   ============================================ */

/* --- Tailwind CSS CDN already loaded --- */

/* ============================================
   Custom Properties (Design Tokens)
   ============================================ */
:root {
  --color-primary: #0a0a0a;
  --color-primary-soft: #171717;
  --color-primary-light: #171717;
  --color-accent: #c9a227;
  --color-accent-dark: #a67c00;
  --color-accent-hover: #a67c00;
  --color-accent-soft: #fff7df;
  --color-bg: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-text: #111827;
  --color-text-muted: #64748b;
  --color-border: #e5e7eb;
  --color-footer-muted: #cbd5e1;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --max-width: 1200px;
  --header-height: 64px;
}

/* ============================================
   Base Reset & Typography
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Layout Helpers
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  height: var(--header-height);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 0;
}

.nav-logo-image {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-logo-wordmark span {
  color: var(--color-accent-dark);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--color-bg-secondary);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  gap: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
  z-index: 49;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.12);
}

.nav-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  font-weight: 600;
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  background: var(--color-accent-soft);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    padding: 0;
    gap: 0.25rem;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

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

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

.btn-accent:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
}

/* ============================================
   Property Card
   ============================================ */
.property-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.property-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.property-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-card-image img {
  transform: scale(1.05);
}

.property-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow-sm);
}

.property-card-content {
  padding: 1.125rem;
}

.property-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.property-card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.45;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.property-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.property-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

.property-card-action:hover,
.property-card-action:focus-visible {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.property-card-action:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.property-card-specs span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.property-card-specs svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent-dark);
}

.property-card-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent-dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 62%, var(--color-accent-soft) 100%);
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 0.875rem;
  padding: 0.3125rem 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.8);
  color: var(--color-accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 360px;
  margin: 0 auto;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  max-width: 560px;
  margin: 1.5rem auto 0;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-trust span::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }

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

  .hero p {
    font-size: 1.125rem;
    max-width: 620px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: none;
  }
}

/* ============================================
   Section Headings
   ============================================ */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-subheading {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.section-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-title-row .section-subheading {
  margin-bottom: 0;
}

.result-count {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.listing-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 1.875rem;
  }

  .section-title-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .section-title-row > div {
    max-width: 640px;
  }
}

/* ============================================
   Property Grid
   ============================================ */
.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 140px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-bar select,
.filter-bar input {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
  color: var(--color-text);
  width: 100%;
  min-height: 44px;
  transition: border-color 0.2s;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--color-accent);
}

.filter-bar select:focus-visible,
.filter-bar input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.listings-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.listings-toolbar .btn {
  align-self: flex-start;
}

@media (max-width: 480px) {
  .filter-group {
    flex-basis: 100%;
  }

  .listings-toolbar .btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .listings-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================
   Property Detail
   ============================================ */
.property-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.property-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 768px) {
  .property-gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .property-gallery img:first-child {
    grid-row: 1 / -1;
  }
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.spec-item {
  padding: 1.375rem 1rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
  min-width: 0;
  overflow: hidden;
}

.spec-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.spec-item svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 0.5rem;
  color: var(--color-accent-dark);
}

.spec-item .spec-value {
  font-size: 1.125rem;
  font-weight: 700;
  display: block;
  line-height: 1.25;
  margin-bottom: 0.125rem;
}

.spec-item .spec-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

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

/* ============================================
   Sticky Mobile WhatsApp CTA
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1da851;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-float .label-text {
  display: none;
}

@media (min-width: 640px) {
  .whatsapp-float .label-text {
    display: inline;
  }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-primary);
  color: var(--color-footer-muted);
  padding: 3rem 0 6rem;
  line-height: 1.7;
}

.site-footer h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer li {
  line-height: 1.8;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer .space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

.site-footer li {
  overflow-wrap: break-word;
  word-break: normal;
}

.site-footer a {
  color: var(--color-footer-muted);
  transition: color 0.2s;
  line-height: inherit;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-link-unavailable {
  color: var(--color-footer-muted);
  cursor: default;
}

.footer-link-note {
  font-size: 0.75rem;
  opacity: 0.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.footer-grid > div {
  min-width: 0;
}

.footer-grid > div:nth-child(3) ul {
  gap: 0.875rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-brand h4 {
  margin-bottom: 0;
}

.footer-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  box-sizing: border-box;
  padding: 3px;
  background: white;
  border-radius: var(--radius);
}

.footer-grid + .container {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
  }

  .site-footer {
    padding-bottom: 3rem;
  }

  .footer-grid + .container {
    margin-top: 2.75rem;
    padding-top: 2rem;
  }
}

/* ============================================
   Loading States
   ============================================ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.loading-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Property Detail — Extra Indonesian Fields
   ============================================ */

/* Detail Properti key-value table */
.property-detail-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.25rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row:nth-child(even) {
  background: var(--color-bg-secondary);
}

.detail-row dt {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.detail-row dd {
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
  overflow-wrap: anywhere;
}

/* Promo callout */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--color-accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
}

.promo-label {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 0.25rem;
}

/* Fasilitas Terdekat list */
.nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.nearby-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.55;
}

.nearby-list svg {
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

/* ============================================
   Property Detail — Visual Polish
   ============================================ */

/* Small uppercase eyebrow headings for in-page sections */
.detail-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 0.625rem;
  border-left: 3px solid var(--color-accent);
}

.detail-heading:first-child {
  margin-top: 0;
}

/* Price note label (e.g. "Harga mulai") */
.property-price-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-hover);
  margin-bottom: 0.25rem;
}

.property-price-note:empty {
  display: none;
}

/* Price / title / location typography */
.property-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.375rem;
}

@media (min-width: 768px) {
  .property-price {
    font-size: 2.25rem;
  }
}

.property-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .property-title {
    font-size: 1.375rem;
  }
}

.property-location {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

#propertyDescription {
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

#propertySpecs {
  margin-bottom: 2.25rem;
}

#propertyFeatures {
  margin-top: 1rem;
  margin-bottom: 2.25rem;
}

#propertyExtra .detail-heading {
  margin-top: 2.25rem;
}

/* Features grid — 2-column card layout */
.features-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

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

.features-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
}

.feature-icon {
  color: var(--color-accent-dark);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Agent contact card */
.agent-card {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.agent-card-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1.125rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-border);
}

/* Agent avatar — initials circle */
.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Tailwind utility color alignment for the static pages. */
.bg-gray-50 {
  background-color: var(--color-bg-secondary) !important;
}

.bg-gray-900 {
  background-color: var(--color-primary) !important;
}

.bg-gray-900.text-white,
#propertyBadge {
  background-color: var(--color-accent-soft) !important;
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--color-primary) !important;
}

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

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

.text-gray-900 {
  color: var(--color-text) !important;
}

.border-gray-700 {
  border-color: rgba(201, 162, 39, 0.28) !important;
}

a.text-gray-900:hover,
a.text-gray-500:hover,
.hover\:text-gray-900:hover {
  color: var(--color-accent-hover) !important;
}

.agent-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.agent-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.agent-role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

/* ============================================
   Mobile Overflow Fixes
   ============================================ */

/* Allow main layout grid children to shrink below content min-size */
#propertyDetail .grid > * {
  min-width: 0;
}

/* Agent card: sticky only makes sense on desktop where the sidebar is beside content */
@media (max-width: 767px) {
  .agent-card {
    position: static;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .site-header,
  .whatsapp-float,
  .btn {
    display: none !important;
  }
}
