:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --text: #171511;
  --muted: #6f675b;
  --line: #ded7ca;
  --primary: #d5a83d;
  --primary-dark: #a57916;
  --black: #171511;
  --ink: #0f0f0d;
  --gold: #d5a83d;
  --gold-soft: #f7ead0;
  --cream: #fbfaf6;
  --danger: #b42318;
  --warning: #9a6700;
  --sold: #384b78;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

section[id],
footer[id] {
  scroll-margin-top: 104px;
}

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

.public-page {
  background:
    linear-gradient(115deg, rgba(213, 168, 61, 0.12) 0 12%, transparent 12% 42%, rgba(23, 21, 17, 0.04) 42% 58%, transparent 58%),
    linear-gradient(180deg, #fbfaf6 0%, #f4efe3 44%, #fbfaf6 100%);
}

.public-page main {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(213, 168, 61, 0.08) 8% 8.35%, transparent 8.35% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 248, 232, 0.82) 36%, rgba(255, 255, 255, 0.2) 72%, rgba(15, 15, 13, 0.04) 100%);
}

.public-page main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, transparent 0 32%, rgba(213, 168, 61, 0.1) 32% 32.35%, transparent 32.35% 67%, rgba(15, 15, 13, 0.05) 67% 67.35%, transparent 67.35%),
    repeating-linear-gradient(90deg, rgba(23, 21, 17, 0.018) 0 1px, transparent 1px 74px);
  pointer-events: none;
}

.public-page main > section {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(213, 168, 61, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(15, 15, 13, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand-logo {
  width: 62px;
  height: 44px;
  padding: 4px;
  border: 1px solid rgba(213, 168, 61, 0.36);
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
}

.brand-text {
  max-width: 210px;
  color: var(--black);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  gap: 8px;
  padding-bottom: 2px;
  font-size: 14px;
  scrollbar-width: none;
}

.site-header nav::-webkit-scrollbar {
  display: none;
}

.site-header nav a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 6px;
  color: #3b352b;
  font-weight: 700;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--black);
  background: var(--gold-soft);
}

.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-height: 610px;
  display: grid;
  align-items: end;
  padding: 96px 32px 164px;
  color: #ffffff;
  background: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 28, 0.78), rgba(10, 18, 28, 0.43), rgba(10, 18, 28, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 18, 28, 0.34));
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 126px;
  background: linear-gradient(180deg, transparent, rgba(251, 250, 246, 0.86) 62%, #fbfaf6);
  pointer-events: none;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.02) brightness(1.06);
  animation: hero-carousel 18s infinite;
  transform: scale(1.04);
}

.hero-slide-1 {
  background-image: url('https://images.pexels.com/photos/35155683/pexels-photo-35155683.jpeg?auto=compress&cs=tinysrgb&w=1800');
  background-position: center 42%;
}

.hero-slide-2 {
  background-image: url('https://images.pexels.com/photos/37284559/pexels-photo-37284559.jpeg?auto=compress&cs=tinysrgb&w=1800');
  background-position: center 48%;
  animation-delay: 6s;
}

.hero-slide-3 {
  background-image: url('https://images.pexels.com/photos/27674087/pexels-photo-27674087.jpeg?auto=compress&cs=tinysrgb&w=1800');
  background-position: center 45%;
  animation-delay: 12s;
}

@keyframes hero-carousel {
  0% {
    opacity: 0;
    transform: scale(1.04) translateX(0);
  }

  8%,
  30% {
    opacity: 1;
  }

  38%,
  100% {
    opacity: 0;
    transform: scale(1.1) translateX(-2.5%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 860px;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.hero-copy {
  max-width: 680px;
  color: #fff8ea;
  font-size: 19px;
  line-height: 1.55;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.search-band {
  position: relative;
  z-index: 4;
  margin-top: -72px;
  padding: 0 32px 30px;
}

.search-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(135px, 1fr)) auto;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(213, 168, 61, 0.42);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(17, 17, 17, 0.14);
}

.hero-search-panel {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  max-width: 920px;
  margin: 28px 0 0;
  border-color: rgba(213, 168, 61, 0.48);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.hero-search-panel .gold-button {
  width: 100%;
}

.gold-button {
  align-self: end;
  color: var(--black);
  background: var(--gold);
}

.gold-button:hover {
  background: #e8bd58;
}

.advisory-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  max-width: 1180px;
  margin: -88px auto 0;
  padding: 34px 32px 58px;
}

.advisory-section::before {
  content: "";
  position: absolute;
  inset: 0 18px;
  z-index: -1;
  border: 1px solid rgba(213, 168, 61, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 70px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(12px);
}

.advisory-copy h2 {
  max-width: 520px;
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.08;
}

.advisory-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.advisory-grid article {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(213, 168, 61, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 232, 0.74));
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.advisory-grid strong {
  color: var(--gold);
  font-size: 14px;
}

.advisory-grid h3,
.advisory-grid p {
  margin: 0;
}

.advisory-grid h3 {
  font-size: 18px;
  line-height: 1.2;
}

.advisory-grid p {
  color: var(--muted);
  font-size: 14px;
}

.services-section {
  position: relative;
  margin-top: -26px;
  padding: 94px 32px 86px;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.84), rgba(251, 250, 246, 0) 26%, rgba(251, 250, 246, 0) 74%, rgba(251, 250, 246, 0.72)),
    linear-gradient(90deg, rgba(15, 15, 13, 0.84), rgba(15, 15, 13, 0.5)),
    url('https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.services-section::before,
.services-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 72px;
  pointer-events: none;
}

.services-section::before {
  top: 0;
  background: linear-gradient(180deg, #fbfaf6, transparent);
}

.services-section::after {
  bottom: 0;
  background: linear-gradient(0deg, #fbfaf6, transparent);
}

.services-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  gap: 16px;
  min-height: 330px;
  padding: 34px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.18);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:nth-child(even) {
  transform: translateY(28px);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(17, 17, 17, 0.3);
}

.service-card:nth-child(even):hover {
  transform: translateY(20px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--black);
  background: linear-gradient(135deg, #f4dfaa, #d5a83d);
  font-size: 27px;
}

.service-card h3 {
  margin: 0;
  color: var(--black);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.service-card a {
  align-self: end;
  justify-self: center;
  min-width: 190px;
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--black);
  background: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.testimonials-section {
  max-width: 1180px;
  margin: -8px auto 0;
  padding: 58px 32px 74px;
}

.testimonials-title {
  margin-bottom: 18px;
}

.testimonial-slider {
  display: flex;
  gap: 18px;
  overflow: hidden;
  padding: 8px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.testimonial-slider:hover .testimonial-card {
  animation-play-state: paused;
}

.testimonial-card {
  display: grid;
  flex: 0 0 min(520px, 52vw);
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(215, 169, 40, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.07);
  backdrop-filter: blur(8px);
  animation: testimonial-scroll 34s linear infinite;
}

@keyframes testimonial-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% * 8 - 18px * 8));
  }
}

.testimonial-card.featured {
  color: #ffffff;
  background: var(--black);
}

.testimonial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.testimonial-card.featured p,
.testimonial-card.featured span {
  color: #f3ead2;
}

.testimonial-card strong {
  color: var(--black);
}

.testimonial-card.featured strong {
  color: #ffffff;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 13px;
}

.stars {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}


.public-section {
  position: relative;
  max-width: 1180px;
  margin: -22px auto 0;
  padding: 48px 32px 58px;
}

.public-section::before {
  content: "";
  position: absolute;
  inset: 16px 18px 0;
  z-index: -1;
  border: 1px solid rgba(213, 168, 61, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 232, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.catalog-hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  padding: 86px 32px 96px;
  color: #ffffff;
}

.catalog-hero-sale {
  background:
    linear-gradient(90deg, rgba(15, 15, 13, 0.92), rgba(15, 15, 13, 0.55), rgba(15, 15, 13, 0.18)),
    url('https://images.unsplash.com/photo-1600566753376-12c8ab7fb75b?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.catalog-hero-rent {
  background:
    linear-gradient(90deg, rgba(15, 15, 13, 0.92), rgba(15, 15, 13, 0.55), rgba(15, 15, 13, 0.18)),
    url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.blog-hero {
  background:
    linear-gradient(90deg, rgba(15, 15, 13, 0.92), rgba(15, 15, 13, 0.55), rgba(15, 15, 13, 0.18)),
    url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.catalog-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: 56px;
  line-height: 1;
}

.catalog-search {
  margin-top: -52px;
}

.catalog-search-panel {
  grid-template-columns: 1.4fr minmax(150px, 0.8fr) minmax(135px, 0.7fr) minmax(135px, 0.7fr) auto;
}

.catalog-section {
  padding-top: 10px;
}

.catalog-page .public-grid {
  grid-auto-flow: row;
  grid-auto-columns: initial;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.catalog-page .listing-card {
  scroll-snap-align: none;
}

.blog-section {
  padding-top: 34px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(242, 194, 48, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.09);
}

.blog-card-image,
.blog-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.blog-card-image {
  display: block;
  object-fit: cover;
}

.blog-card-placeholder {
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--gold-soft);
  font-weight: 800;
}

.blog-card-content {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.blog-card-content h3,
.blog-card-content p {
  margin: 0;
}

.blog-card-content h3 {
  font-size: 21px;
  line-height: 1.2;
}

.blog-card-content p {
  color: var(--muted);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.blog-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #5f4b13;
  background: #f6f0df;
  font-size: 12px;
  font-weight: 700;
}

.article-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

.article-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.1);
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  display: block;
  object-fit: cover;
}

.article-placeholder {
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--gold-soft);
  font-size: 34px;
  font-weight: 800;
}

.article-content {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.article-content h1 {
  font-size: 42px;
  line-height: 1.08;
}

.article-excerpt {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.article-body {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.12;
}

.public-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 330px);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.public-grid::-webkit-scrollbar {
  display: none;
}

.carousel-shell {
  position: relative;
  margin-inline: -10px;
  padding: 0 10px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(215, 169, 40, 0.35);
  border-radius: 50%;
  color: var(--black);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14);
  font-size: 28px;
  line-height: 1;
}

.carousel-arrow-left {
  left: -20px;
}

.carousel-arrow-right {
  right: -20px;
}

.carousel-arrow:hover {
  background: var(--gold-soft);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d7ccb1;
}

.carousel-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.listing-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 168, 61, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(8px);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.15);
}

.clickable-listing {
  cursor: pointer;
}

.clickable-listing:focus-visible {
  outline: 3px solid rgba(213, 168, 61, 0.72);
  outline-offset: 4px;
}

.listing-slideshow,
.listing-image,
.listing-placeholder {
  width: 100%;
  aspect-ratio: 16 / 11;
}

.listing-slideshow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f1df, #ffffff);
}

.listing-image {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 0.45s ease;
}

.listing-image.active {
  opacity: 1;
}

.image-dots {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(36, 33, 26, 0.48);
}

.image-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.image-dots span.active {
  background: var(--gold);
}

.listing-placeholder {
  display: grid;
  place-items: center;
  color: var(--black);
  background: linear-gradient(135deg, #f4dfaa, #ffffff);
  font-weight: 800;
  text-align: center;
}

.listing-content {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 6px;
  padding: 11px 12px 12px;
}

.listing-content h3,
.listing-content p {
  margin: 0;
}

.listing-content h3 {
  font-size: 17px;
  line-height: 1.2;
}

.property-reference {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 2px;
  padding: 4px 8px;
  border: 1px solid rgba(222, 181, 63, 0.38);
  border-radius: 999px;
  color: #6d5010;
  background: #fff8dd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.listing-topline,
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-topline span,
.listing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f5efe2;
  color: #5b4510;
  font-size: 10.5px;
  font-weight: 700;
}

.listing-topline .recent-badge {
  color: var(--black);
  background: var(--gold);
}

.listing-meta svg,
.icon-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.listing-location {
  color: var(--muted);
  font-size: 12px;
}

.listing-content strong {
  color: var(--black);
  font-size: 16px;
}

.listing-cta {
  justify-self: stretch;
  align-self: end;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--black);
  background: var(--gold);
  text-align: center;
  font-weight: 800;
}

.listing-cta:hover {
  background: #e8bd58;
}

.why-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: center;
  max-width: 1180px;
  margin: -12px auto 0;
  padding: 72px 32px 90px;
}

.why-section::before {
  content: "";
  position: absolute;
  inset: 28px 18px 28px;
  z-index: -1;
  border: 1px solid rgba(213, 168, 61, 0.13);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 248, 232, 0.82) 42%, rgba(255, 255, 255, 0.36));
}

.why-visual {
  position: relative;
  min-height: 470px;
}

.why-photo {
  position: absolute;
  overflow: hidden;
  border: 8px solid #ffffff;
  background: var(--gold-soft);
  box-shadow: 0 22px 48px rgba(17, 17, 17, 0.16);
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}

.why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid rgba(213, 168, 61, 0.86);
  clip-path: inherit;
  pointer-events: none;
}

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

.why-photo-large {
  left: 0;
  top: 42px;
  width: 62%;
  height: 285px;
}

.why-photo-top {
  right: 0;
  top: 116px;
}

.why-photo-bottom {
  left: 16%;
  bottom: 0;
}

.why-photo-small {
  width: 48%;
  height: 210px;
}

.why-content h2 {
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.05;
}

.why-content h2 span {
  display: block;
  color: var(--gold);
}

.why-points {
  display: grid;
  gap: 26px;
}

.why-points article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  padding: 4px 0;
}

.why-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, #f7df9d, var(--gold));
  box-shadow: 8px 8px 0 var(--gold-soft);
  font-weight: 900;
}

.why-points h3,
.why-points p {
  margin: 0;
}

.why-points h3 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.why-points p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.listing-actions {
  align-self: end;
  display: grid;
}

.secondary-cta {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff;
}

.detail-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #5f4b13;
  font-weight: 800;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.detail-gallery,
.detail-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
}

.detail-gallery {
  overflow: hidden;
}

.detail-carousel {
  position: relative;
  background: #0f0f0d;
}

.detail-main-button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.detail-main-image,
.detail-placeholder {
  width: 100%;
  aspect-ratio: 16 / 11;
}

.detail-main-image {
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.detail-placeholder {
  display: grid;
  place-items: center;
  color: var(--black);
  background: var(--gold-soft);
  font-size: 28px;
  font-weight: 800;
}

.detail-carousel-arrow,
.photo-lightbox-arrow,
.photo-lightbox-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  background: rgba(15, 15, 13, 0.62);
  backdrop-filter: blur(8px);
}

.detail-carousel-arrow {
  top: 50%;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 32px;
  transform: translateY(-50%);
}

.detail-carousel-prev {
  left: 12px;
}

.detail-carousel-next {
  right: 12px;
}

.detail-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 15, 13, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.agent-contact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, #ffffff, #fff8e8);
}

.agent-flip {
  position: relative;
  width: 92px;
  height: 92px;
  transform-style: preserve-3d;
  animation: agent-coin-flip 8s ease-in-out infinite;
}

.agent-contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
  backface-visibility: hidden;
}

.agent-flip-back {
  object-fit: contain;
  padding: 8px;
  transform: rotateY(180deg);
}

@keyframes agent-coin-flip {
  0%,
  78%,
  100% {
    transform: rotateY(0deg);
  }

  88% {
    transform: rotateY(180deg);
  }
}

.agent-contact-content {
  min-width: 0;
}

.agent-contact-content span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-contact-content h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 21px;
}

.agent-contact-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.agent-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-contact-links a {
  padding: 7px 9px;
  border: 1px solid rgba(213, 168, 61, 0.28);
  border-radius: 999px;
  color: var(--black);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.agent-contact-links a:hover {
  background: var(--gold-soft);
}

.detail-info {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.detail-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: start;
  width: min(100%, 420px);
  margin-right: auto;
}

.detail-share-button,
.detail-download-button {
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(213, 168, 61, 0.36);
  color: var(--black);
  background: var(--gold-soft);
  font-size: 13px;
}

.detail-download-button {
  background: var(--gold);
  font-weight: 900;
}

.detail-share-button:hover,
.detail-download-button:hover {
  background: var(--gold);
}

.detail-download-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.detail-info h1 {
  font-size: 34px;
}

.detail-reference {
  margin-top: -8px;
}

.detail-price {
  color: var(--black);
  font-size: 26px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-meta span {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8ef;
  color: #5f4b13;
  text-align: center;
}

.detail-meta svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-description {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.detail-description h2 {
  margin-bottom: 8px;
}

.detail-description p {
  color: var(--muted);
  line-height: 1.6;
}

.formatted-description {
  display: grid;
  gap: 12px;
  padding: 2px 0 0;
}

.formatted-description p {
  margin: 0;
}

.formatted-description .description-lead {
  color: #3d362b;
  font-size: 17px;
  line-height: 1.72;
}

.structured-preview {
  max-width: 76ch;
}

.detail-contact {
  margin-top: 24px;
  border-radius: 8px;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--black);
}

.visit-section p {
  color: #f3ead2;
}

.visit-form {
  display: grid;
  gap: 14px;
}

.visit-form label {
  color: #ffffff;
}

.contact-button {
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) repeat(3, minmax(150px, 0.8fr));
  gap: 16px;
  align-items: stretch;
  margin-top: -22px;
  padding: 64px 32px 42px;
  border-top: 1px solid rgba(242, 194, 48, 0.24);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.78), rgba(251, 250, 246, 0) 72px),
    linear-gradient(135deg, rgba(15, 15, 13, 0.99), rgba(29, 27, 22, 0.96) 54%, rgba(9, 43, 54, 0.92)),
    var(--black);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.site-footer > div:first-child {
  display: grid;
  align-content: center;
  grid-row: span 2;
  min-height: 170px;
  padding-right: 22px;
}

.site-footer p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #f5ead0;
  line-height: 1.65;
}

.footer-brand {
  width: fit-content;
}

.footer-brand .brand-logo {
  border-color: rgba(213, 168, 61, 0.5);
}

.footer-brand .brand-text {
  color: #ffffff;
}

.footer-info {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-info span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-info a,
.footer-info strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.footer-info a {
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.footer-info a:hover {
  border-color: rgba(213, 168, 61, 0.72);
  color: #f8dc88;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(213, 168, 61, 0.3);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.social-link img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

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

.social-instagram {
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0 11%, #fdf497 12%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-linkedin {
  background: #0a66c2;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.site-footer .contact-button {
  align-self: stretch;
  min-height: 104px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(36, 33, 26, 0.66);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid rgba(242, 194, 48, 0.36);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--black);
  background: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  background: var(--gold-soft);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px 72px;
  background: rgba(5, 5, 4, 0.9);
  backdrop-filter: blur(10px);
}

.photo-lightbox.hidden {
  display: none;
}

.photo-lightbox img {
  display: block;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 56px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 32px;
}

.photo-lightbox-arrow {
  top: 50%;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 38px;
  transform: translateY(-50%);
}

.photo-lightbox-prev {
  left: 20px;
}

.photo-lightbox-next {
  right: 20px;
}

.contact-modal-card .section-heading {
  padding-right: 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--black);
  color: #ffffff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
}

.api-status {
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.api-status.online {
  border-color: rgba(242, 194, 48, 0.5);
  color: var(--gold);
  background: rgba(242, 194, 48, 0.14);
}

.api-status.offline {
  border-color: #f1b4ac;
  color: var(--danger);
  background: #fff1ef;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 20px;
  padding: 24px 32px;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-panel {
  padding: 20px;
  align-self: start;
}

.login-panel {
  grid-column: 1 / -1;
  padding: 20px;
}

.login-panel form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  align-items: end;
}

.locked {
  opacity: 0.58;
}

.locked form {
  pointer-events: none;
}

.list-panel {
  padding: 20px;
  min-height: 540px;
}

.requests-panel {
  grid-column: 1 / -1;
  padding: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #34413b;
  font-size: 13px;
  font-weight: 700;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-top: 20px;
}

.checkbox-label input {
  width: auto;
  min-height: auto;
}

.optional-field {
  opacity: 0.72;
}

.optional-field::after {
  content: "Optionnel pour terrain";
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #cfd8d2;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(15, 107, 87, 0.14);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.image-preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6f8f6;
}

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

.image-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-color: rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
}

.image-order-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--black);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.image-order-controls {
  position: absolute;
  top: 5px;
  left: 5px;
  display: grid;
  gap: 4px;
}

.image-order-controls button {
  display: grid;
  place-items: center;
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-color: rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  font-size: 14px;
}

.image-order-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.upload-hint {
  padding: 12px;
  border: 1px dashed #cfd8d2;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  background: #f9fbf9;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 12px;
}

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

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

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

button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.primary:hover {
  background: #ffd85a;
}

.secondary {
  border-color: var(--line);
  color: #34413b;
  background: #ffffff;
}

.secondary:hover {
  background: #f1f4f1;
}

.danger {
  border-color: #f1b4ac;
  color: var(--danger);
  background: #fff7f5;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-message.error {
  color: var(--danger);
}

.properties {
  display: grid;
  gap: 12px;
}

.property-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.property-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: #e9ede9;
}

.property-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  color: var(--muted);
  background: #e9ede9;
  font-size: 13px;
  text-align: center;
}

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

.property-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.property-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ef;
  color: #34413b;
  font-size: 12px;
  font-weight: 700;
}

.badge.available {
  color: #6f5100;
  background: var(--gold-soft);
}

.badge.sold {
  color: var(--sold);
  background: #eef2ff;
}

.badge.rented {
  color: var(--warning);
  background: #fff7df;
}

.property-description {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.requests-list {
  display: grid;
  gap: 12px;
}

.request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.request-card p,
.request-card h3 {
  margin-bottom: 8px;
}

.request-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.request-header span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

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

  .site-header,
  .site-footer,
  .section-title {
    align-items: flex-start;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 18px;
  }

  .site-header .brand {
    width: 100%;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
  }

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

  .site-footer > div:first-child {
    grid-row: auto;
    min-height: auto;
    padding-right: 0;
  }

  .site-footer .contact-button {
    min-height: 48px;
  }

  .photo-lightbox {
    padding: 18px;
  }

  .photo-lightbox-arrow {
    width: 40px;
    min-height: 40px;
    font-size: 30px;
  }

  .photo-lightbox-prev {
    left: 8px;
  }

  .photo-lightbox-next {
    right: 8px;
  }

  .hero {
    min-height: 360px;
    padding: 48px 18px 118px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .search-band,
  .advisory-section,
  .testimonials-section,
  .public-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-panel,
  .catalog-search-panel,
  .advisory-section,
  .advisory-grid,
  .why-section,
  .services-inner,
  .detail-shell,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .advisory-section {
    gap: 20px;
    margin-top: -78px;
    padding-top: 26px;
    padding-bottom: 34px;
  }

  .advisory-section::before {
    left: 10px;
    right: 10px;
  }

  .public-section::before {
    left: 10px;
    right: 10px;
  }

  .why-section::before {
    left: 10px;
    right: 10px;
  }

  .testimonial-slider {
    gap: 14px;
  }

  .testimonial-card {
    flex-basis: 84vw;
    animation-duration: 40s;
  }

  .services-section {
    margin-top: -10px;
    padding: 58px 18px 52px;
  }

  .service-card:nth-child(even),
  .service-card:nth-child(even):hover {
    transform: none;
  }

  .why-section {
    gap: 22px;
    margin-top: -10px;
    padding: 48px 18px 54px;
  }

  .why-visual {
    min-height: 280px;
    order: 1;
  }

  .why-content {
    order: 2;
  }

  .why-content h2 {
    margin-bottom: 20px;
    font-size: 32px;
    line-height: 1.08;
  }

  .why-photo-large {
    left: 0;
    top: 0;
    width: 100%;
    height: 220px;
  }

  .why-photo-small {
    width: 46%;
    height: 118px;
  }

  .why-photo {
    border-width: 6px;
    border-radius: 16px;
    clip-path: none;
  }

  .why-photo::after {
    border-width: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px rgba(213, 168, 61, 0.75);
  }

  .why-photo-top {
    right: 4%;
    top: 150px;
  }

  .why-photo-bottom {
    left: 4%;
    bottom: 0;
  }

  .why-points {
    gap: 14px;
  }

  .why-points article {
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(213, 168, 61, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  }

  .why-icon {
    width: 46px;
    height: 46px;
    border-width: 3px;
    border-radius: 14px;
    font-size: 15px;
  }

  .why-points h3 {
    font-size: 18px;
  }

  .why-points p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
  }

  .service-card {
    min-height: 280px;
  }

  .public-grid {
    grid-auto-columns: minmax(270px, 82vw);
  }

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

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

  .catalog-hero {
    min-height: 320px;
    padding: 52px 18px 82px;
  }

  .catalog-hero h1 {
    font-size: 40px;
  }

  .detail-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article-page {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 560px) {
  section[id],
  footer[id] {
    scroll-margin-top: 132px;
  }

  .site-header {
    padding: 9px 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 54px;
    height: 38px;
  }

  .brand-text {
    max-width: none;
    font-size: 13px;
  }

  .site-header nav {
    gap: 6px;
  }

  .site-header nav a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .why-visual {
    min-height: 250px;
  }

  .why-photo {
    border-width: 5px;
  }

  .why-photo-large {
    top: 0;
    width: 100%;
    height: 188px;
  }

  .why-photo-top {
    top: 138px;
    right: 3%;
  }

  .why-photo-bottom {
    left: 3%;
    bottom: 0;
  }

  .why-photo-small {
    width: 47%;
    height: 98px;
  }

  .why-points article {
    grid-template-columns: 46px 1fr;
    gap: 10px;
    padding: 13px;
  }

  .why-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .property-card,
  .request-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }

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

  .detail-actions {
    justify-content: flex-start;
    justify-self: stretch;
    width: 100%;
  }

  .agent-contact-card {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .agent-contact-photo {
    width: 100%;
    height: 100%;
  }

  .agent-flip {
    width: 72px;
    height: 72px;
  }

  .agent-contact-content h2 {
    font-size: 18px;
  }

  .agent-contact-links {
    gap: 6px;
  }

  .agent-contact-links a {
    font-size: 12px;
  }

  .detail-info h1 {
    padding-right: 0;
  }

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

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

  .article-content {
    padding: 20px;
  }

  .article-content h1 {
    font-size: 30px;
  }
}
