:root {
  --bg: #f4f2ef;
  --surface: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --brand: #1D4A37;
  --brun-green: #1D4A37;
  --accent: #1D4A37;
  --border: #e0ddd8;
  --title-font: Georgia, "Times New Roman", serif;
  --body-font: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background: radial-gradient(circle at top right, #f9f7f3, var(--bg) 40%);
  color: var(--text);
}

.landing-page {
  background: #f7f7f5;
}

h1,
h2,
h3 {
  font-family: var(--title-font);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--brun-green);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 86px;
  padding: 0.45rem 0 0.7rem;
  gap: 0.4rem;
}

.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  height: 92px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 0.9rem 1.2rem;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-center {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-right {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 1000px) {
  .nav-wrapper {
    align-items: center;
  }

  .main-nav {
    justify-content: center;
  }

  .nav-center {
    justify-content: center;
  }

  .nav-right {
    justify-content: center;
  }
}

.main-nav a {
  text-decoration: none;
  color: #f6f8f7;
  font-weight: 600;
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.nav-cta {
  background: #14161a;
  color: #fff;
  border-radius: 9px;
  padding: 0.45rem 0.9rem;
}

.mail-contact-btn {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1;
  border-bottom: 1px solid currentColor;
  transition: opacity 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mail-contact-btn:hover {
  opacity: 0.9;
  color: var(--brun-green);
  border-color: var(--brun-green);
}

.site-header-light {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header-light .brand-logo img {
  height: 64px;
}

.site-header-light .main-nav a {
  color: #262b31;
}

.site-header-light .nav-cta {
  color: #fff;
}

main {
  padding: 2rem 0 3rem;
}

.hero {
  background: linear-gradient(130deg, #f5ebe0, #e9f2f7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.landing-hero {
  text-align: center;
  padding: 4rem 0 2.5rem;
}

.landing-hero h1 {
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: 0.95;
  margin: 0;
}

.landing-hero p {
  margin: 1.2rem auto 0;
  max-width: 760px;
  color: #676c73;
  font-size: 1.45rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-dark {
  background: #14161a;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #14161a;
  border: 1px solid #dbdde1;
}

.landing-search-wrap {
  margin: 1rem 0 1.9rem;
  padding: 1.1rem 0;
  border-top: 1px solid #e8e6e3;
  border-bottom: 1px solid #e8e6e3;
}

.landing-search-form {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr 1.2fr 2fr 1.1fr 1.1fr;
}

.landing-search-form input,
.landing-search-form select,
.landing-search-form button {
  width: 100%;
  min-width: 0;
}

.search-btn {
  margin-top: 0;
}

.landing-featured-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 1.6rem 0 0.8rem;
}

.landing-featured-head h2 {
  margin: 0;
  font-size: 2.5rem;
}

.landing-featured-head p {
  margin: 0.2rem 0 0;
  color: #7a7f85;
}

.home-cards {
  margin-bottom: 1.8rem;
}

.hero h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.16);
  opacity: 0.96;
}

.section-header h1,
.section-header h2 {
  margin-bottom: 0.2rem;
}

.section-header p {
  color: var(--muted);
  margin-top: 0;
}

.properties-head h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.1rem;
}

.search-form {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.search-form input {
  flex: 1;
}

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.properties-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.3rem;
  align-items: start;
}

.filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  position: sticky;
  top: 96px;
}

.filters-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.filters-title-row h2 {
  margin: 0;
  font-size: 1.25rem;
}

.clear-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.filters-form {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.filters-form label {
  margin-top: 0.45rem;
  font-weight: 600;
}

.filters-form input,
.filters-form select,
.filters-form button {
  width: 100%;
  min-width: 0;
}

.inline-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
}

.filters-btn {
  width: 100%;
  margin-top: 0.9rem;
  background: #14161a;
}

.properties-content {
  min-width: 0;
}

.results-text {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.property-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 23, 32, 0.1);
  border-color: #d3d9de;
}

.card-image-wrap {
  position: relative;
}

.card-image-link {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.card-image-wrap img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.card-image-link:hover img {
  transform: scale(1.04);
}

.card-image-cta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.card-image-link:hover .card-image-cta {
  background: var(--brand);
  color: #fff;
}

.badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
}

.badge-dark {
  left: 10px;
  background: #111827;
  color: #fff;
}

.badge-light {
  right: 10px;
  background: #f8fafc;
  color: #111827;
  border: 1px solid #d5dbe3;
}

.property-body {
  padding: 0.9rem 1rem 1rem;
}

.row-between {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.row-between h3 {
  margin: 0;
  font-size: 1.15rem;
}

.card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

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

.card-content {
  padding: 1rem;
}

.card-content h2,
.card-content h3 {
  margin: 0 0 0.3rem;
}

.location {
  color: var(--muted);
  margin: 0.2rem 0;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.price {
  color: var(--brand);
  font-weight: 700;
  margin: 0.2rem 0 0.4rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-value {
  letter-spacing: 0.01em;
}

.details {
  margin: 0.3rem 0 0.8rem;
  font-size: 0.92rem;
}

.details-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.mini-svg {
  width: 14px;
  height: 14px;
  display: inline-flex;
  color: #a0a4aa;
}

.mini-svg svg {
  width: 14px;
  height: 14px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.property-detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
  align-items: start;
  margin-bottom: 1.6rem;
}

.property-hero {
  margin-bottom: 1rem;
}

.detail-image {
  width: 100%;
  border-radius: 14px;
  height: 420px;
  object-fit: cover;
}

.detail-gallery {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, transform 180ms ease;
}

.gallery-arrow:hover {
  background: rgba(17, 24, 39, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-thumbs {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  width: 94px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: #9cb8ab;
}

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

.gallery-thumb.is-active {
  border-color: var(--brand);
}

.property-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.property-main-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem;
}

.property-tags {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.inline-badge {
  position: static;
}

.property-title {
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3rem);
}

.property-address-line {
  margin-top: 0.5rem;
}

.property-street {
  margin: 0;
  color: #5f666f;
}

.property-price {
  margin: 0.65rem 0 0.9rem;
  color: #111827;
  font-family: var(--title-font);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 700;
}

.property-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric-card {
  border: 1px solid #e4e6ea;
  border-radius: 12px;
  padding: 0.7rem;
  background: #fbfcfd;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 22, 26, 0.08);
  border-color: #d0d7df;
}

.metric-label {
  display: block;
  color: #69707a;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.metric-card strong {
  font-size: 1.05rem;
}

.property-description {
  margin-top: 1rem;
}

.property-description h2 {
  margin: 0 0 0.45rem;
}

.property-description p {
  margin: 0;
  color: #5c646d;
  line-height: 1.62;
}

.property-side-column {
  display: grid;
  gap: 0.9rem;
  position: sticky;
  top: 98px;
}

.property-contact-card h2 {
  margin: 0;
}

.property-contact-card p {
  color: #68707a;
}

.property-contact-info h3 {
  margin: 0 0 0.6rem;
}

.property-contact-info p {
  margin: 0.35rem 0;
  color: #5f6770;
}

.property-map-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
}

.property-map-box h2 {
  margin: 0;
}

.property-map {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  margin-top: 0.7rem;
  border: 1px solid #e5e7eb;
}

.map-status {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}

.admin-properties-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}

.admin-panel {
  margin-top: 0;
}

.admin-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.admin-head p {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-search {
  flex: 1;
  max-width: 360px;
}

.admin-new-btn {
  margin-top: 0;
  border-radius: 10px;
  padding: 0.58rem 1rem;
}

.admin-create-panel {
  margin-bottom: 1rem;
}

.admin-create-panel h2 {
  margin: 0;
}

.admin-create-panel.is-collapsed {
  display: none;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid #ece9e4;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background-color 180ms ease;
}

.admin-table tbody tr:hover {
  background: #f8fafb;
}

.admin-table th {
  color: #4c5158;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-title {
  font-weight: 700;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fef1dd;
  color: #9a5c00;
}

.mini-badge-soft {
  margin-left: 0;
  background: #f2f4f7;
  color: #394150;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.mini-action {
  border: 1px solid #d4d8de;
  color: #2f3741;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  background: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.mini-action:hover {
  border-color: #bfc7d1;
  background: #f8fafb;
  transform: translateY(-1px);
}

.admin-actions form {
  margin: 0;
}

.mini-danger {
  color: #ab1f2e;
  border-color: #efc4ca;
  cursor: pointer;
}

.admin-edit-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.collapse-toggle {
  border: 1px solid #d8dde3;
  border-radius: 10px;
  background: #fff;
  color: #2b3138;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.collapse-toggle:hover {
  background: #f7f9fb;
  border-color: #c7d0da;
}

.collapse-icon {
  transition: transform 180ms ease;
}

.collapse-toggle[aria-expanded='false'] .collapse-icon {
  transform: rotate(-90deg);
}

.collapse-panel {
  max-height: 2500px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 280ms ease, opacity 200ms ease;
}

.collapse-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
}

.collapsible-card .collapse-toggle {
  width: 100%;
  margin-bottom: 0.65rem;
}

.filters-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filters-collapse-btn {
  padding: 0.22rem 0.45rem;
}

.form-intro {
  margin-top: 0;
  color: var(--muted);
}

.helper-panel {
  background: #fff9ef;
  border: 1px solid #f2d7ad;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 1rem;
}

.helper-panel p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.field-help {
  margin: -0.2rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-split {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

textarea#imagenes_extra {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

input,
textarea,
select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  font: inherit;
}

.auth-box {
  max-width: 560px;
  margin: 0 auto;
}

.error {
  background: #fdecee;
  border: 1px solid #f2b5bc;
  border-radius: 8px;
  padding: 0.7rem;
}

.inline-form {
  margin: 0;
}

.link-btn {
  border: none;
  background: transparent;
  color: #f6f8f7;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.user-chip {
  font-size: 0.85rem;
  color: #d6e2dc;
}

.inline-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.success {
  background: #edf7ee;
  border: 1px solid #bdddbf;
  border-radius: 8px;
  padding: 0.7rem;
}

.notice {
  background: #eef3ff;
  border: 1px solid #c9d8ff;
  border-radius: 8px;
  padding: 0.7rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: #1d4a37;
  margin-top: 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 1.4rem;
  padding: 1.65rem 0 1.8rem;
}

.footer-logo {
  width: 180px;
  max-width: 100%;
  display: block;
  margin-bottom: 0.8rem;
}

.footer-brand-block p {
  margin: 0;
  color: #dce9e2;
  max-width: 290px;
}

.footer-wide-text {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  color: #f2f8f5;
  font-size: clamp(1.2rem, 2.1vw, 2.3rem);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  max-width: 100%;
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  color: #ffffff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.site-footer li {
  color: #dce9e2;
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: none;
  color: #f2f8f5;
  font-size: 0.9rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer .mail-contact-btn {
  display: inline;
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  border-bottom-color: transparent;
}

.site-footer ul a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.legal-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.6rem 0 2.8rem;
}

.legal-page h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.legal-block {
  margin-top: 1.4rem;
}

.legal-block h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.legal-block p {
  margin: 0;
  color: #767b81;
  line-height: 1.7;
  font-size: 1.02rem;
}

.legal-block ul {
  margin: 0.55rem 0 0;
  padding-left: 1.55rem;
  color: #767b81;
  line-height: 1.7;
  font-size: 1.02rem;
}

.legal-block li + li {
  margin-top: 0.3rem;
}

.legal-block h3 {
  margin: 1rem 0 0.25rem;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.legal-block a {
  color: var(--brand-green);
  text-decoration: none;
}

.about-hero {
  text-align: center;
  padding: 2.6rem 0 2.2rem;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
}

.about-hero p {
  max-width: 860px;
  margin: 0.95rem auto 0;
  color: #7a7f85;
  font-size: 1.45rem;
}

.about-history {
  border-top: 1px solid #e8e6e3;
  border-bottom: 1px solid #e8e6e3;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.about-history-text h2,
.about-values-head h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-history-text p {
  color: #6f747b;
  line-height: 1.55;
  margin: 0.95rem 0 0;
}

.about-history-media img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.about-values {
  padding: 2.2rem 0 1.2rem;
}

.about-values-head {
  text-align: center;
}

.about-values-head p {
  color: #7a7f85;
  margin-top: 0;
}

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

.value-card {
  border: 1px solid #e2e3e6;
  border-radius: 16px;
  padding: 1.3rem 1rem;
  text-align: center;
  background: #fff;
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #252a30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  margin: 0.85rem 0 0.4rem;
  font-size: 1.7rem;
}

.value-card p {
  margin: 0;
  color: #70757c;
  line-height: 1.45;
}

.contact-hero {
  text-align: center;
  padding: 2.4rem 0 2rem;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.contact-hero p {
  margin: 0.9rem auto 0;
  max-width: 840px;
  color: #7a7f85;
  font-size: 1.3rem;
}

.contact-layout {
  border-top: 1px solid #e8e6e3;
  padding-top: 1.8rem;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  border: 1px solid #e1e2e5;
  border-radius: 16px;
  background: #fff;
}

.contact-info-card {
  padding: 1.15rem;
  display: grid;
  gap: 1rem;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.contact-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #f2f3f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #282d33;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info-item h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.7rem;
}

.contact-info-item p {
  margin: 0.14rem 0;
  color: #6b7178;
}

.contact-info-item .mail-contact-btn {
  color: #6b7178;
  background: transparent;
}

.contact-info-item .mail-contact-btn:hover {
  color: var(--brun-green);
}

.contact-form-card {
  padding: 1.15rem;
}

.contact-grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contact-grid-form .full-row {
  grid-column: 1 / -1;
}

.contact-grid-form label {
  display: block;
  margin: 0 0 0.34rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .nav-wrapper {
    row-gap: 0.45rem;
    padding: 0.5rem 0;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
  }

  .nav-center,
  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.6rem 1rem;
  }

  .property-page-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .property-side-column {
    top: 90px;
  }

  .property-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-history {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1100px, 94%);
  }

  .brand-logo img {
    height: 70px;
  }

  .main-nav a,
  .link-btn {
    font-size: 0.95rem;
  }

  .user-chip {
    font-size: 0.8rem;
  }

  main {
    padding: 1.2rem 0 2rem;
  }

  .landing-hero {
    padding: 2.4rem 0 1.7rem;
  }

  .landing-hero h1 {
    font-size: 2.4rem;
    line-height: 1;
  }

  .landing-hero p {
    font-size: 1rem;
    margin-top: 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .landing-search-form {
    grid-template-columns: 1fr;
  }

  .landing-featured-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .properties-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .card-image-wrap img {
    height: 220px;
  }

  .property-detail {
    grid-template-columns: 1fr;
  }

  .property-page-grid {
    grid-template-columns: 1fr;
  }

  .property-side-column {
    position: static;
  }

  .property-title {
    font-size: 2.2rem;
  }

  .property-price {
    font-size: 2.2rem;
  }

  .property-metrics {
    grid-template-columns: 1fr;
  }

  .detail-image {
    height: 280px;
  }

  .gallery-thumb {
    width: 82px;
    height: 60px;
  }

  .property-map {
    height: 280px;
  }

  .form-split {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    max-width: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-grid-form {
    grid-template-columns: 1fr;
  }

  .contact-info-item {
    grid-template-columns: 54px 1fr;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
