:root {
  --ink: #27231f;
  --muted: #706b64;
  --line: #e3dcd2;
  --soft: #f4f0ea;
  --white: #fffdfa;
  --accent: #b9157d;
  --accent-dark: #7c0f57;
  --green: #76866a;
  --champagne: #eee6da;
  --graphite: #211e1c;
  --shadow: 0 18px 48px rgba(39, 35, 31, .13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f4ef 0%, #fbfaf7 44%, #f2ede6 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(227, 220, 210, .9);
  background: rgba(255, 253, 250, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: transparent;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 0;
}

.brand small {
  margin-top: -4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a,
.ghost-button,
.secondary-button,
.primary-button,
.tab {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.nav a:hover,
.ghost-button:hover,
.secondary-button:hover,
.tab:hover {
  background: var(--soft);
}

.ghost-button {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--line);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-weight: 700;
}

.primary-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
  background: rgba(255, 253, 250, .86);
  color: var(--ink);
  font-weight: 700;
}

.text-button {
  width: max-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
  gap: clamp(28px, 5vw, 78px);
  min-height: calc(100svh - 78px);
  align-items: center;
  padding: clamp(42px, 7vw, 98px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(115deg, rgba(247,244,239,.96), rgba(255,253,250,.74)),
    radial-gradient(circle at 82% 12%, rgba(185, 21, 125, .12), transparent 34%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 86px);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: 18px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(124, 15, 87, .18);
  border-radius: 8px;
  background: rgba(255, 253, 250, .68);
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 253, 250, .9);
  border: 1px solid rgba(255, 253, 250, .76);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.hero-panel div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.hero-panel .icon {
  grid-row: span 2;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-submit-panel {
  align-self: center;
  padding: clamp(20px, 3vw, 28px);
}

.hero-submit-panel h2 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: var(--ink);
}

.hero-submit-panel .eyebrow {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 12px;
}

.hero-submit-panel > p:not(.eyebrow) {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
}

.hero-submit-panel .contact-form {
  margin-top: 18px;
  padding-top: 18px;
}

.section,
.about-band,
.contact-section {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

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

.tab {
  background: var(--white);
  border-color: var(--line);
  color: var(--muted);
  font-weight: 700;
}

.tab[hidden] {
  display: none;
}

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.offer-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.offer-card.is-featured {
  display: block;
  grid-column: span 2;
  border-color: rgba(194, 23, 133, .35);
  box-shadow: var(--shadow);
}

.offer-card.is-featured .offer-media {
  aspect-ratio: 2 / 1;
  height: auto;
}

.offer-card.is-featured .offer-body {
  display: block;
  padding: 18px;
}

.offer-card.is-featured h3 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 21px;
  line-height: 1.2;
}

.offer-card.is-featured .price {
  margin-top: 9px;
  font-size: 23px;
}

.offer-card.is-featured .secondary-button {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
}

.featured-label {
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff2fa;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

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

.status-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.offer-body {
  padding: 16px;
}

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

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price {
  margin: 9px 0 0;
  color: var(--accent-dark);
  font-size: 21px;
  font-weight: 800;
}

.location {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.offer-card .secondary-button {
  width: 100%;
  margin-top: 16px;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-band {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: clamp(26px, 5vw, 80px);
  background: linear-gradient(135deg, var(--graphite), #312b27);
  color: var(--white);
}

.about-band .eyebrow,
.about-band h2 {
  color: var(--white);
}

.realized-section {
  background: rgba(255, 253, 250, .82);
}

.realized-carousel {
  overflow: hidden;
  position: relative;
}

.realized-carousel::before,
.realized-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 54px;
  pointer-events: none;
}

.realized-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #fffdfa, rgba(255,253,250,0));
}

.realized-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #fffdfa, rgba(255,253,250,0));
}

.realized-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.realized-track.is-animated {
  animation: realized-scroll 34s linear infinite;
}

.realized-carousel:hover .realized-track.is-animated {
  animation-play-state: paused;
}

@keyframes realized-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.realized-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
  flex: 0 0 min(560px, calc(100vw - 68px));
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.realized-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.realized-card span {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.realized-card strong {
  display: block;
  line-height: 1.2;
}

.realized-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.realized-card p {
  display: -webkit-box;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.realized-card .offer-meta {
  margin: 0;
}

.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-copy p {
  margin: 0;
  color: rgba(255, 253, 250, .78);
  font-size: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 28px;
  align-items: center;
}

.contact-box,
.contact-methods {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-box a {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-box span {
  color: var(--muted);
}

.contact-methods {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-method {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-method .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--soft);
}

.contact-method strong,
.contact-method small {
  display: block;
}

.contact-method strong {
  color: var(--ink);
}

.contact-method small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--accent);
}

.icon::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  mask: var(--mask) center/contain no-repeat;
}

[data-icon="home"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 10.8 12 3l9 7.8v9.7a.5.5 0 0 1-.5.5H15v-6H9v6H3.5a.5.5 0 0 1-.5-.5v-9.7Z'/%3E%3C/svg%3E"); }
[data-icon="map"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8 4 8-2 5 2v16l-5-2-8 2-5-2V2l5 2Zm1.5 2.2v11.4l5-1.25V4.95l-5 1.25Z'/%3E%3C/svg%3E"); }
[data-icon="key"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.2 14.2A6 6 0 1 1 16 10h5v3h-2v2h-3v2h-3v-2.1c.43-.17.83-.4 1.2-.7ZM8 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z'/%3E%3C/svg%3E"); }
[data-icon="area"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16v16H4V4Zm3 3v10h10V7H7Z'/%3E%3C/svg%3E"); }
[data-icon="plot"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5 12 2l8 3v14l-8 3-8-3V5Zm2 1.4v11.2l5 1.9V8.3L6 6.4Zm7 1.9v11.2l5-1.9V6.4l-5 1.9Z'/%3E%3C/svg%3E"); }
[data-icon="rooms"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16v16H4V4Zm2 2v5h5V6H6Zm7 0v5h5V6h-5ZM6 13v5h5v-5H6Zm7 0v5h5v-5h-5Z'/%3E%3C/svg%3E"); }
[data-icon="floor"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 21V3h14v18h-2v-4H7v4H5Zm2-6h10v-4H7v4Zm0-6h10V5H7v4Z'/%3E%3C/svg%3E"); }
[data-icon="year"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2Zm11 8H6v10h12V10ZM6 8h12V6H6v2Z'/%3E%3C/svg%3E"); }
[data-icon="mail"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h18v14H3V5Zm2.4 2 6.6 5.1L18.6 7H5.4ZM5 9.3V17h14V9.3l-7 5.4-7-5.4Z'/%3E%3C/svg%3E"); }
[data-icon="phone"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 2.8 10 6.2 7.8 9c.8 1.6 2.6 3.4 4.2 4.2l2.8-2.2 3.4 3.4-1.4 4.2c-.3.8-1 1.3-1.8 1.2C8.4 19 3 13.6 2.2 7c-.1-.8.4-1.5 1.2-1.8l3.2-2.4Z'/%3E%3C/svg%3E"); }
[data-icon="whatsapp"] { --mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.1 3a8.8 8.8 0 0 0-7.5 13.4L3.5 21l4.8-1.2A8.8 8.8 0 1 0 12.1 3Zm0 2a6.8 6.8 0 1 1-3.2 12.8l-.4-.2-2.3.6.6-2.2-.3-.4A6.8 6.8 0 0 1 12.1 5Zm-2.5 3.4c-.2 0-.5.1-.7.4-.3.3-.8.8-.8 1.9s.8 2.2.9 2.3c.1.2 1.6 2.6 4 3.5 2 .8 2.4.5 2.8.5.4-.1 1.3-.6 1.5-1.1.2-.5.2-1 .1-1.1l-.6-.3-1.5-.7c-.2-.1-.5-.1-.7.2l-.6.8c-.2.2-.3.2-.6.1-.3-.1-1.1-.4-2-1.2-.8-.7-1.2-1.5-1.4-1.8-.1-.2 0-.4.1-.5l.4-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.7-1.6c-.2-.4-.4-.4-.5-.4Z'/%3E%3C/svg%3E"); }

.offer-dialog {
  width: min(1260px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f2f4;
  box-shadow: var(--shadow);
}

.offer-dialog::backdrop {
  background: rgba(20, 17, 23, .54);
}

.detail-page {
  padding: 22px;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.detail-gallery {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.gallery-main {
  overflow: hidden;
  height: clamp(520px, 68vh, 760px);
  border-radius: 8px;
  background: var(--line);
}

.gallery-main img,
.gallery-main iframe,
.gallery-main video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.gallery-main img {
  object-fit: cover;
}

.gallery-main iframe,
.gallery-main video {
  object-fit: contain;
  background: #101828;
}

.media-video-link {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #101828;
  color: var(--white);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.detail-video {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #101828;
}

.detail-video iframe,
.detail-video video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--line);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.gallery-tile.is-selected {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

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

.gallery-tile span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(20, 17, 23, .55);
  font-weight: 900;
  text-decoration: underline;
}

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

.detail-main {
  display: grid;
  gap: 16px;
}

.detail-card,
.agent-card {
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.detail-card h2 {
  max-width: 820px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.2;
}

.detail-card h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.detail-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  margin-top: 12px;
}

.detail-price-line strong {
  color: #101828;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.detail-price-line span {
  color: var(--muted);
  font-weight: 800;
}

.detail-location {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.detail-table {
  display: grid;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(140px, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

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

.detail-row span {
  color: var(--ink);
}

.detail-row strong {
  color: var(--ink);
  font-weight: 500;
}

.long-description {
  max-width: 720px;
  color: var(--ink);
  font-size: 17px;
}

.long-description p {
  margin: 0 0 18px;
}

.agent-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.agent-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.agent-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.agent-card span {
  color: var(--muted);
}

.property-contact-form {
  display: grid;
  gap: 11px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.property-contact-form p {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.property-contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.property-contact-form input,
.property-contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: var(--white);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.contact-actions .primary-button,
.contact-actions .secondary-button {
  min-width: 0;
  padding-inline: 9px;
  font-size: 13px;
}

.video-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 800;
}

.close-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.offer-dialog > .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
}

.admin-panel.is-open {
  pointer-events: auto;
  visibility: visible;
}

.admin-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 23, .42);
  opacity: 0;
  transition: opacity .2s ease;
}

.admin-panel.is-open .admin-scrim {
  opacity: 1;
}

.admin-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(720px, 100vw);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .24s ease;
}

.admin-panel.is-open .admin-drawer {
  transform: translateX(0);
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.offer-form,
.admin-list {
  display: grid;
  gap: 14px;
}

.admin-auth,
.admin-workspace {
  display: grid;
  gap: 18px;
}

.login-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.settings-form {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.offer-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.offer-form input,
.offer-form select,
.offer-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check-row,
.icon-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-row label,
.icon-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.check-row input,
.icon-picker input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.icon-picker {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.drop-zone {
  min-height: 148px;
  align-content: center;
  justify-items: center;
  padding: 18px;
  border: 2px dashed #d7b4ce;
  border-radius: 8px;
  background: #fff8fc;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-zone strong {
  color: var(--accent-dark);
  font-size: 16px;
}

.drop-zone span,
.drop-zone small {
  color: var(--muted);
  font-weight: 600;
}

.drop-zone.is-dragging {
  border-color: var(--accent);
  background: #fff0f8;
}

.video-drop-zone {
  min-height: 132px;
  border-color: #c8b9a8;
}

.gallery-order-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.gallery-order-panel strong,
.gallery-order-panel small {
  display: block;
}

.gallery-order-panel small,
.gallery-order-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.gallery-order-list {
  display: grid;
  gap: 8px;
}

.gallery-order-item {
  display: grid;
  grid-template-columns: 34px 64px 1fr 34px;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery-order-item.is-dragging {
  opacity: .55;
  border-color: var(--accent);
}

.gallery-order-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}

.media-order-video {
  display: grid;
  width: 64px;
  height: 48px;
  place-items: center;
  border-radius: 6px;
  background: #211e1c;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.video-tile {
  display: grid;
  place-items: center;
  background: #211e1c;
  color: var(--white);
  font-weight: 900;
}

.gallery-order-item span {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-drag,
.remove-photo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  cursor: grab;
  font-weight: 900;
}

.remove-photo {
  background: #fff7f8;
  border-color: #efc9d0;
  color: #a5142b;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.full {
  width: 100%;
}

.admin-list {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item.is-dragging {
  opacity: .55;
  border-color: var(--accent);
}

.drag-handle {
  flex: 0 0 auto;
  width: 36px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  cursor: grab;
  font-size: 18px;
  font-weight: 900;
}

.drag-handle:active {
  cursor: grabbing;
}

.admin-item-main {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-item strong {
  display: block;
}

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

.admin-item small {
  display: block;
  margin-top: 3px;
  color: var(--accent-dark);
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tiny-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.delete-button {
  min-width: 38px;
  height: 38px;
  border: 1px solid #efc9d0;
  border-radius: 8px;
  background: #fff7f8;
  color: #a5142b;
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 980px) {
  .hero,
  .about-band,
  .contact-section,
  .detail-columns {
    grid-template-columns: 1fr;
  }

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

  .offer-card.is-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .offer-card.is-featured .offer-media {
    aspect-ratio: 16 / 10;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .gallery-main {
    height: clamp(360px, 54vh, 560px);
  }

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

  .agent-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

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

  .realized-card {
    grid-template-columns: 1fr;
    flex-basis: min(330px, calc(100vw - 42px));
  }

  .realized-card img {
    height: 190px;
  }

  .offer-card.is-featured {
    grid-column: span 1;
    min-height: 0;
  }

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

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

  .check-row,
  .icon-picker {
    grid-template-columns: 1fr;
  }

  .detail-page,
  .admin-drawer {
    padding: 20px;
  }

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

  .gallery-main {
    height: min(62vh, 430px);
  }

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

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
