:root {
  --bg: #fbfaf7;
  --surface-solid: #ffffff;
  --surface: #ffffff;
  --soft: #f7f4ee;
  --text: #1e2220;
  --muted: #66706b;
  --line: rgba(30, 34, 32, 0.08);
  --accent: #c93a2f;
  --accent-soft: #edf3ef;
  --shadow: 0 20px 50px rgba(22, 28, 24, 0.08);
  --radius-xl: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fbfaf7;
  color: var(--text);
}

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(251, 250, 247, 0.86);
  border-bottom: 1px solid rgba(30, 34, 32, 0.05);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: none;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

main { padding-bottom: 48px; }
.hero { padding: 34px 0 26px; }

.hero-card,
.contact-card,
.realtor-card {
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 238, 0.82)), var(--surface-solid);
  border: 1px solid rgba(30, 34, 32, 0.06);
  box-shadow: var(--shadow);
}

.hero-grid { display: grid; gap: 0; }
.hero-content { padding: 28px 22px 26px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

h1, h2, h3, p { margin: 0; }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.hero-copy {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
}

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(30, 34, 32, 0.05);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  min-height: 300px;
  position: relative;
}

.hero-visual img,
.property-media img,
.realtor-photo,
.gallery-image {
  border: 1px solid rgba(32, 58, 45, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 18px;
}

.section-head h2,
.contact-card h2,
.realtor-card h2 {
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.section-head p,
.contact-copy {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.65;
}

.contact-copy-top { margin-top: 12px; }

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  flex-wrap: wrap;
}

.catalog-sort-label {
  font-weight: 600;
  color: var(--muted);
}

.catalog-sort-select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.property-grid {
  display: grid;
  gap: 18px;
}

.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 3px solid var(--accent);
  transition: transform .25s ease, box-shadow .25s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.property-open {
  display: block;
  color: inherit;
  text-decoration: none;
}

.property-open:hover .property-link,
.property-open:focus-visible .property-link {
  text-decoration: underline;
}

.property-media {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 16px;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-card:hover .property-media img,
.property-card:focus-within .property-media img {
  transform: scale(1.03);
}

.property-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.property-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(32, 58, 45, 0.84);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 2;
}

.property-body { padding: 18px 18px 20px; }

.property-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.property-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.property-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.property-price {
  font-size: 1.08rem;
  font-weight: 700;
}

.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.property-link {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.small-action {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.property-features {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-feature {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(201, 58, 47, 0.08);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.realtor,
.contact {
  padding-top: 28px;
}

.realtor-card {
  padding: 26px 22px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.realtor-photo {
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  object-fit: cover;
}

.contact-card {
  padding: 26px 22px;
}

.contact-grid {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(30, 34, 32, 0.06);
  border-radius: 20px;
  padding: 16px;
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.contact-value {
  font-weight: 700;
  line-height: 1.5;
}

.site-footer {
  padding: 22px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(15, 17, 16, 0.74);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  width: min(100%, 1080px);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.modal-header {
  padding: 16px 16px 10px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(30, 34, 32, 0.06);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-close,
.gallery-nav {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
}

.modal-close {
  min-width: 42px;
  height: 42px;
  background: #f2f3f1;
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-stage {
  position: relative;
  background: #f4f1eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-image {
  width: 100%;
  height: min(70vh, 700px);
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  font-size: 1.35rem;
}

.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }

.gallery-thumbs {
  padding: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  border-top: 1px solid rgba(30, 34, 32, 0.06);
  background: #fff;
}

.thumb {
  border: 0;
  padding: 0;
  flex: 0 0 82px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  opacity: 0.7;
  outline: 2px solid transparent;
  background: transparent;
}

.thumb.is-active {
  opacity: 1;
  outline-color: var(--accent);
}

.thumb img {
  height: 100%;
  object-fit: cover;
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #203a2d;
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  z-index: 50;
}

/* accents */
.section-head h2 {
  position: relative;
  padding-bottom: 10px;
}

.section-head h2::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:60px;
  height:3px;
  background: var(--accent);
  border-radius:2px;
}

.contact-card {
  border-left: 4px solid var(--accent);
}

.realtor-card {
  border-left: 4px solid var(--accent);
}

.catalog {
  position: relative;
  padding-bottom: 40px;
}

.catalog::after {
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:2px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:.6;
}

/* property page */
.property-page {
  padding: 24px 0 56px;
}

.property-hero {
  padding: 8px 0 32px;
}

.property-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 600;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.property-content-card,
.property-sidebar-card,
.property-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.property-content-card,
.property-sidebar-card {
  padding: 18px;
}

.property-empty {
  margin: 40px auto;
  max-width: 720px;
  padding: 28px;
  text-align: center;
}

.property-main-image-wrap {
  position: relative;
}

.property-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(32, 58, 45, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.property-badge-detail {
  position: absolute;
  left: 14px;
  top: 14px;
}

.property-gallery-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.property-gallery-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(32, 58, 45, 0.18);
}

.property-sidebar-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.property-detail-line {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.property-detail-price {
  margin-top: 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.property-description {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.property-description h2,
.property-contact-box h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.property-description p,
.property-contact-box p {
  color: var(--muted);
  line-height: 1.7;
}

.property-contact-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

/* property details with icons */
.property-features-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.property-features-block h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.property-features-list {
  display: grid;
  gap: 12px;
}

.property-feature-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 34, 32, 0.06);
}

.property-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(201, 58, 47, 0.08);
  color: var(--accent);
  flex-shrink: 0;
}

.property-feature-icon svg {
  width: 22px;
  height: 22px;
}

.property-feature-text {
  min-width: 0;
}

.property-feature-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.property-feature-value {
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

/* favorite button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  border-radius: 50%;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: 0.2s;
  z-index: 3;
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  background: #ffe5e5;
}

@media (min-width: 700px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .nav { display: flex; }
  .hero { padding-top: 40px; }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 620px;
  }

  .hero-content {
    padding: 48px 42px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-visual { min-height: 100%; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .modal-header { padding: 18px 20px 12px; }
  .gallery-thumbs { padding: 14px 16px 16px; }

  .realtor-card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 32px;
  }
}

@media (max-width: 980px) {
  .property-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .brand-logo { height: 46px; }

  .header-cta {
    padding: 0 14px;
    min-height: 42px;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 74px;
    gap: 10px;
  }

  .brand-logo { height: 38px; }

  .header-cta {
    padding: 0 12px;
    min-height: 40px;
    font-size: 0.88rem;
  }

  .property-feature-row {
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .property-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .property-feature-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 1024px) {
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { font-size: 1.05rem; }
  
 
}