:root {
  color-scheme: light;
  --navy: #173651;
  --navy-soft: #29475f;
  --text: #30404d;
  --muted: #6e7478;
  --line: #e8dfd3;
  --mist: #f6f0e7;
  --white: #fffdfa;
  --cream: #f3e9db;
  --bronze: #8a5429;
  --gold: #c18a4e;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --content-width: 1380px;
  --content-gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fffdf9;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.page-shell {
  width: min(var(--content-width), calc(100% - var(--content-gutter) - var(--content-gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 253, 249, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo {
  width: 180px;
  max-height: 69px;
  object-fit: contain;
  object-position: left center;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--bronze);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button-primary:hover {
  background: #70421f;
  transform: translateY(-1px);
}

.header-contact svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: clamp(350px, 29vw, 400px);
  align-items: center;
  overflow: hidden;
  background: #f3e9db;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 58%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 64px clamp(32px, 6.8vw, 88px);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 620px;
  color: var(--navy);
  font-size: clamp(40px, 4.3vw, 54px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 430px;
  margin: 20px 0 0;
  color: #334b60;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.58;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f3e9db;
}

.hero-image-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(246 239 226 / 91%) 0%, rgb(246 239 226 / 82%) 32%, rgb(246 239 226 / 56%) 50%, rgb(246 239 226 / 18%) 68%, transparent 82%);
  content: "";
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: #f7f0e6;
}

.demo-notice-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--bronze);
}

.demo-notice p {
  margin: 0;
  color: #655d54;
  font-size: 13px;
  line-height: 1.55;
}

.demo-notice strong {
  color: var(--navy);
  font-weight: 600;
}

.listing-section {
  --content-width: 1480px;
  padding-top: 40px;
  scroll-margin-top: 104px;
}

.seller-section {
  margin-top: 72px;
  padding: 64px 0;
  background: #f5ede2;
  scroll-margin-top: 104px;
}

.seller-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
}

.seller-intro {
  max-width: 470px;
}

.seller-eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seller-intro h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.seller-intro > p:not(.seller-eyebrow) {
  max-width: 420px;
  margin: 16px 0 0;
  color: #52606b;
  font-size: 15px;
  line-height: 1.65;
}

.seller-points {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  color: #394c5b;
  font-size: 13px;
  list-style: none;
}

.seller-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.seller-points li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.seller-form {
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid #e9dece;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 32px rgb(80 56 33 / 8%);
}

.seller-form-heading h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.seller-form-heading p {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.seller-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: #34495a;
  font-size: 12px;
  font-weight: 600;
}

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

.form-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ded5ca;
  border-radius: 6px;
  outline: none;
  color: var(--text);
  background: #fffdfa;
  font: 400 13px/1.4 var(--sans);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8a8985;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(193 138 78 / 16%);
}

.seller-submit {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  margin-top: 18px;
  background: linear-gradient(110deg, #bd874c, #89542b);
}

.seller-submit:hover {
  background: linear-gradient(110deg, #a8743d, #70421f);
}

.seller-form-note {
  margin: 12px 0 0;
  color: #77736d;
  font-size: 11px;
  line-height: 1.5;
}

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

.section-heading h2 {
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.12;
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}

.listing-filter {
  min-height: 38px;
  padding: 8px 19px;
  border: 1px solid #e6d8c5;
  border-radius: 999px;
  color: var(--navy);
  background: #f7f1e8;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  scroll-margin-top: 110px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.listing-filter:hover {
  border-color: #c6a57d;
  background: #f1e6d6;
}

.listing-filter.is-active {
  border-color: var(--navy);
  color: #fffdfa;
  background: var(--navy);
  box-shadow: 0 3px 10px rgb(22 44 68 / 14%);
}

.listing-filter:focus-visible {
  outline: 3px solid #c8955c;
  outline-offset: 3px;
}

.listing-more-filters,
.listing-clear-filters {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #ded5ca;
  border-radius: 999px;
  color: var(--navy);
  background: #fffdfa;
  font: 500 13px/1.2 var(--sans);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.listing-more-filters:hover,
.listing-clear-filters:hover {
  border-color: #c6a57d;
  background: #f7f1e8;
}

.listing-more-filters:focus-visible,
.listing-clear-filters:focus-visible,
.listing-field select:focus-visible,
.listing-field input:focus-visible {
  outline: 3px solid #c8955c;
  outline-offset: 2px;
}

.listing-filter-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(6, minmax(125px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid #eee5da;
  border-radius: 10px;
  background: #fbf8f3;
}

.listing-filter-options[hidden] {
  display: none;
}

.listing-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #34495a;
  font-size: 11px;
  font-weight: 600;
}

.listing-field select,
.listing-field input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #ded5ca;
  border-radius: 6px;
  color: var(--text);
  background: #fffdfa;
  font: 400 12px/1.3 var(--sans);
}

.listing-field select:disabled {
  color: #77736d;
  background: #f4f0ea;
  cursor: not-allowed;
}

.listing-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.listing-clear-filters {
  justify-self: start;
  color: #80512b;
}

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

.listing-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px 24px;
  border: 1px dashed #d9c8b2;
  border-radius: 12px;
  color: #655d54;
  background: #fbf8f3;
  text-align: center;
}

.listing-empty p {
  margin: 0 0 12px;
}

.listing-empty button {
  border: 0;
  padding: 5px 8px;
  color: #80512b;
  background: transparent;
  font: 600 13px/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.listing-empty button:focus-visible {
  outline: 3px solid #c8955c;
  outline-offset: 2px;
}

.listing-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eee5da;
  border-radius: 11px;
  color: var(--text);
  background: var(--white);
  box-shadow: 0 5px 18px rgb(80 56 33 / 8%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover,
.listing-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(80 56 33 / 13%);
}

.listing-card:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.listing-card-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.listing-card-link:focus-visible {
  outline: none;
}

.listing-card-photo-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}

.listing-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.listing-card:hover .listing-card-photo {
  transform: scale(1.025);
}

.listing-card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 4px;
  color: var(--navy);
  background: var(--mist);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}

.listing-card-body {
  display: flex;
  min-height: 190px;
  flex: 1;
  flex-direction: column;
  padding: 12px 13px 13px;
}

.listing-card-body > .listing-card-tag {
  margin-bottom: 9px;
}

.listing-card-demo {
  margin: 17px 0 4px;
  color: #92704f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.listing-card-title {
  display: block;
  min-height: 2.45em;
  margin: 0;
  color: var(--navy);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.listing-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--bronze);
}

.listing-price {
  margin: 8px 0 0;
  color: var(--bronze);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.listing-price small {
  color: #66513e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.listing-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 14px 0 0;
  color: #52606b;
  font-size: 10px;
}

.listing-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.listing-feature svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--navy);
}

.listing-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 12px;
  padding-bottom: 1px;
  border-top: 1px solid var(--line);
}

.listing-card-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  transition: color 150ms ease, gap 150ms ease;
}

.listing-card:hover .listing-card-more,
.listing-card:focus-within .listing-card-more {
  gap: 10px;
  color: #603a1d;
}

.property-dialog {
  width: min(860px, calc(100% - 32px));
  max-width: none;
  max-height: min(90vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid #e8dfd3;
  border-radius: 14px;
  color: var(--text);
  background: var(--white);
  box-shadow: 0 24px 70px rgb(19 35 48 / 28%);
}

.property-dialog.is-featured {
  width: min(1080px, calc(100% - 32px));
  height: min(540px, 86vh);
  max-height: min(700px, 86vh);
  overflow: hidden;
}

.property-dialog::backdrop {
  background: rgb(23 54 81 / 58%);
  backdrop-filter: blur(3px);
}

.property-dialog-card {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.property-dialog-media {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--cream);
}

.property-dialog-photo-stage {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
}

.property-dialog-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: var(--cream);
}

.property-dialog-gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgb(255 253 249 / 82%);
  border-radius: 50%;
  color: var(--navy);
  background: rgb(255 253 249 / 92%);
  box-shadow: 0 2px 9px rgb(26 36 43 / 15%);
  cursor: pointer;
}

.property-dialog-gallery-nav[hidden],
.property-dialog-gallery[hidden],
.property-dialog-share[hidden],
.property-dialog-copy[hidden] {
  display: none;
}

.property-dialog-gallery-nav svg {
  width: 19px;
  height: 19px;
}

.property-dialog-previous {
  left: 12px;
}

.property-dialog-next {
  right: 12px;
}

.property-dialog-gallery {
  padding: 8px 12px 3px;
  border-top: 1px solid rgb(23 54 81 / 9%);
  background: transparent;
}

.property-dialog-thumbnails {
  display: flex;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px 3px 8px;
  scroll-padding-inline: 3px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.property-dialog-thumbnail {
  width: 84px;
  height: auto;
  flex: 0 0 84px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e8dfd3;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.property-dialog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-dialog-thumbnail.is-active {
  border: 2px solid var(--bronze);
  box-shadow: 0 0 0 2px rgb(193 138 78 / 34%), 0 2px 8px rgb(23 54 81 / 14%);
}

.property-dialog-thumbnail:not(.is-active):hover {
  opacity: 0.82;
}

.property-dialog-thumbnail:focus-visible,
.property-dialog-gallery-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.property-dialog.is-featured .property-dialog-card {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.property-dialog.is-featured .property-dialog-media,
.property-dialog.is-featured .property-dialog-photo-stage {
  min-height: 0;
}

.property-dialog.is-featured .property-dialog-media {
  align-self: start;
  height: fit-content;
  background: transparent;
}

.property-dialog.is-featured .property-dialog-photo {
  min-height: 0;
}

.property-dialog-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 30px 30px;
}

.property-dialog.is-featured .property-dialog-body {
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

.property-dialog-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e8dfd3;
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.property-dialog-close svg {
  width: 18px;
  height: 18px;
}

.property-dialog-tag {
  margin-bottom: 12px;
}

.property-dialog h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.property-dialog-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.property-dialog-location svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--bronze);
}

.property-dialog-price {
  margin-top: 14px;
  font-size: 21px;
}

.property-dialog-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 14px;
  margin-top: 18px;
  font-size: 12px;
}

.property-dialog-details.has-four-features {
  display: grid;
  grid-template-columns: repeat(4, max-content);
}

.property-dialog-demo {
  margin: 26px 0 18px;
  color: #6f675e;
  font-size: 12px;
  line-height: 1.55;
}

.property-dialog.is-featured .property-dialog-demo {
  min-height: 0;
  max-height: 190px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgb(193 138 78 / 58%) transparent;
  scrollbar-width: auto;
  margin-top: 32px;
}

.property-dialog.is-featured .property-dialog-demo::-webkit-scrollbar {
  width: 3px;
}

.property-dialog.is-featured .property-dialog-demo::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(193 138 78 / 62%);
}

.property-dialog.is-featured .property-dialog-demo::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
}

.property-dialog.is-featured .property-dialog-demo::-webkit-scrollbar-button:vertical:decrement,
.property-dialog.is-featured .property-dialog-demo::-webkit-scrollbar-button:vertical:increment,
.property-dialog.is-featured .property-dialog-demo::-webkit-scrollbar-button:single-button:vertical:decrement,
.property-dialog.is-featured .property-dialog-demo::-webkit-scrollbar-button:single-button:vertical:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
}

@supports not selector(::-webkit-scrollbar) {
  .property-dialog.is-featured .property-dialog-demo {
    scrollbar-width: thin;
  }
}

.property-dialog.is-featured .property-dialog-demo:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgb(193 138 78 / 58%);
  outline-offset: 3px;
}

.property-dialog-demo p {
  margin: 0 0 14px;
}

.property-dialog-demo p:last-child {
  margin-bottom: 0;
}

.property-dialog-demo strong {
  color: var(--navy);
}

.property-dialog-actions {
  display: contents;
}

.property-dialog-contact {
  margin-top: auto;
  background: linear-gradient(110deg, #bd874c, #89542b);
}

.property-dialog.is-featured .property-dialog-actions {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.property-dialog.is-featured .property-dialog-actions .property-dialog-contact {
  min-height: 46px;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  justify-content: center;
  margin-top: 0;
  padding-inline: 12px;
  white-space: nowrap;
}

.property-dialog-share,
.property-dialog-copy {
  min-height: 44px;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid #d8c5ac;
  border-radius: 6px;
  color: var(--navy);
  background: #fffdfa;
  font: 500 12px/1.2 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}

.property-dialog.is-featured .property-dialog-actions .property-dialog-share,
.property-dialog.is-featured .property-dialog-actions .property-dialog-copy {
  padding-inline: 6px;
}

.property-dialog-share {
  grid-column: 2;
  grid-row: 1;
}

.property-dialog-copy {
  grid-column: 3;
  grid-row: 1;
}

.property-dialog-share-status {
  grid-column: 1 / -1;
  grid-row: 2;
}

.property-dialog-share svg,
.property-dialog-copy svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.property-dialog-share:hover,
.property-dialog-copy:hover {
  border-color: var(--gold);
  background: #f8f2e9;
}

.property-dialog-share-status {
  width: 100%;
  color: var(--navy-soft);
  font-size: 12px;
}

.property-dialog-share-status:empty {
  display: none;
}

@media (max-width: 1100px) {
  .property-dialog-details.has-four-features {
    grid-template-columns: repeat(2, max-content);
  }

  .property-dialog.is-featured .property-dialog-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-dialog.is-featured .property-dialog-actions .property-dialog-contact {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .property-dialog.is-featured .property-dialog-actions .property-dialog-share {
    grid-column: 1;
    grid-row: 2;
  }

  .property-dialog.is-featured .property-dialog-actions .property-dialog-copy {
    grid-column: 2;
    grid-row: 2;
  }
}

.contact-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #173651 url("assets/images/cta-coast.webp") center 54% / cover no-repeat;
}

.contact-cta::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 43 78 / 96%) 0%, rgb(8 43 78 / 90%) 52%, rgb(8 43 78 / 62%) 100%);
  content: "";
}

.contact-cta-inner {
  position: relative;
  display: grid;
  min-height: 176px;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 24px;
}

.contact-cta-title {
  padding: 10px 30px 10px 0;
}

.cta-rule {
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 14px;
  background: rgb(255 255 255 / 86%);
}

.contact-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.contact-cta-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding-left: 25px;
  border-left: 1px solid rgb(255 255 255 / 35%);
}

.contact-cta-action p {
  max-width: 270px;
  margin: 0;
  color: rgb(255 255 255 / 92%);
  font-size: 12px;
  line-height: 1.6;
}

.site-social-links { display:flex; align-items:center; justify-content:flex-end; gap:10px; grid-column:1/-1; padding-top:16px; border-top:1px solid rgb(255 255 255 / 24%); }
.site-social-links[hidden] { display:none; }
.site-social-links a { display:grid; place-items:center; width:38px; height:38px; border:1px solid rgb(255 255 255 / 50%); border-radius:50%; color:#fff; transition:background-color .18s ease,color .18s ease; }
.site-social-links a:hover { background:#fff; color:var(--navy); }
.site-social-links svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.site-social-links a[aria-label="facebook"] svg,.site-social-links a[aria-label="youtube"] svg { fill:currentColor; stroke:none; }

.button-light {
  flex: 0 0 auto;
  color: var(--white);
  border-color: rgb(255 255 255 / 90%);
  border-radius: 24px;
  background: linear-gradient(110deg, #bd874c, #89542b);
  box-shadow: 0 3px 10px rgb(0 0 0 / 16%);
}

.button-light:hover {
  color: var(--navy);
  background: var(--white);
}

.button-light svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .page-shell {
    --content-gutter: 24px;
  }

  .hero {
    min-height: clamp(350px, 42vw, 390px);
  }

  .hero-copy {
    width: 62%;
    padding: 48px 42px;
  }

  .hero h1 {
    font-size: clamp(38px, 5.2vw, 48px);
  }

  .hero-copy p {
    margin-top: 18px;
    font-size: 16px;
    color: #334b60;
  }

  .seller-section {
    margin-top: 56px;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 38px;
  }

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

}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 78px;
  }

  .page-shell {
    --content-gutter: 20px;
  }

  .listing-filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .header-inner {
    min-height: 74px;
    gap: 18px;
  }

  .brand-logo {
    width: 150px;
    max-height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--navy);
    background: var(--white);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1.5px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 24px rgb(21 36 59 / 8%);
  }

  .main-navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-link {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after {
    display: none;
  }

  .header-contact {
    margin-top: 14px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 48px 24px 36px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(34px, 9vw, 42px);
  }

  .hero-copy p {
    max-width: 350px;
    margin-top: 18px;
    font-size: 15px;
  }

  .hero-image-wrap::after {
    background: linear-gradient(180deg, rgb(246 239 226 / 94%) 0%, rgb(246 239 226 / 87%) 46%, rgb(246 239 226 / 52%) 66%, transparent 88%);
  }

  .hero-image {
    height: 100%;
    object-position: center center;
  }

  .demo-notice {
    margin-top: 24px;
    padding: 14px 15px;
  }

  .listing-section {
    padding-top: 42px;
    scroll-margin-top: 82px;
  }

  .seller-section {
    margin-top: 44px;
    padding: 48px 0;
    scroll-margin-top: 86px;
  }

  .seller-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .seller-intro {
    max-width: 600px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 15px;
  }

  .section-heading h2 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .listing-grid {
    gap: 20px 16px;
  }

  .listing-card-title {
    font-size: 17px;
  }

  .property-dialog {
    max-height: calc(100dvh - 24px);
  }

  .property-dialog-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .property-dialog-media {
    min-height: 0;
  }

  .property-dialog-photo-stage {
    min-height: 0;
    flex: 0 0 auto;
  }

  .property-dialog-photo {
    height: clamp(170px, 32vh, 250px);
    min-height: 0;
  }

  .property-dialog.is-featured {
    width: min(620px, calc(100% - 24px));
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .property-dialog.is-featured .property-dialog-card {
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .property-dialog.is-featured .property-dialog-photo {
    height: 100%;
  }

  .property-dialog.is-featured .property-dialog-body {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 24px 22px 22px;
  }

  .property-dialog.is-featured .property-dialog-demo {
    max-height: none;
    margin-top: 24px;
    margin-bottom: 14px;
  }

  .property-dialog.is-featured .property-dialog-actions {
    position: relative;
    z-index: 2;
    bottom: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 10px;
    background: var(--white);
    box-shadow: 0 -8px 16px rgb(23 54 81 / 6%);
  }

  .property-dialog.is-featured .property-dialog-actions .property-dialog-contact {
    min-height: 46px;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .property-dialog.is-featured .property-dialog-actions .property-dialog-share {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    min-width: 0;
    padding-inline: 8px;
  }

  .property-dialog.is-featured .property-dialog-actions .property-dialog-copy {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    min-width: 0;
    padding-inline: 8px;
  }

  .property-dialog.is-featured .property-dialog-share-status {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .property-dialog-body {
    min-height: 330px;
    padding: 24px 22px 22px;
  }

  .property-dialog-close {
    color: var(--navy);
    background: var(--white);
  }

  .listing-card-bottom {
    align-items: flex-end;
    flex-direction: row;
  }

  .contact-cta-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 28px;
  }

  .contact-cta-title {
    padding: 0;
  }

  .cta-rule {
    margin-bottom: 10px;
  }

  .contact-cta h2 {
    font-size: 27px;
  }

  .contact-cta-action {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 0;
    border-top: 1px solid rgb(255 255 255 / 35%);
    border-left: 0;
  }

  .contact-cta-action p {
    max-width: 340px;
  }

  .site-social-links { justify-content:flex-start; }

  .button-light {
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    --content-gutter: 16px;
  }

  .listing-filter-options {
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .form-field-full {
    grid-column: auto;
  }

  .listing-card-photo-wrap {
    aspect-ratio: 4 / 3;
  }

  .listing-card-body {
    min-height: 190px;
    padding: 12px 14px 10px;
  }

  .contact-cta h2 {
    font-size: 25px;
  }
}

/* Public Home grid. Admin loads this stylesheet too, so all overrides are scoped. */
.public-home {
  --home-max-width: 1680px;
  --home-gutter: clamp(24px, 3.333333vw, 64px);
}

.public-home .page-shell,
.public-home .hero {
  width: min(var(--home-max-width), calc(100% - 2 * var(--home-gutter)));
  margin-inline: auto;
}

.public-home .hero-copy {
  padding: 56px clamp(32px, 3vw, 56px);
}

.public-home .brand-logo {
  width: 240px;
  height: auto;
  max-height: none;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .public-home .brand-logo { width: 180px; }
  .public-home .header-inner { gap: 20px; }
  .public-home .main-navigation { gap: 20px; }
}

@media (max-width: 720px) {
  .public-home { --home-gutter: 20px; }
  .public-home .hero { width: 100%; }
  .public-home .hero-copy { padding: 48px var(--home-gutter) 36px; }
  .public-home .brand-logo { width: 200px; }
}

@media (max-width: 430px) {
  .public-home { --home-gutter: 16px; }
}

@media (max-width: 360px) {
  .public-home .brand-logo { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* The gallery owns its width; thumbnails cannot spill into the action column. */
.property-dialog-gallery { width: 100%; min-width: 0; overflow: hidden; flex: 0 0 auto; box-sizing: border-box; }
.property-dialog-media { min-width: 0; overflow: hidden; }
.property-dialog-body { min-width: 0; }
.property-additional { margin-top: 22px; }
.property-additional h3 { margin: 0 0 12px; color: var(--navy); font: 600 15px/1.4 Inter, sans-serif; }
.property-additional ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 14px; }
.property-additional li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.property-additional li svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--bronze); }
@media (max-width: 720px) {
  .property-dialog.is-featured .property-dialog-card { grid-template-rows: auto minmax(0,1fr); }
  .property-dialog.is-featured .property-dialog-media { width: 100%; }
  .property-dialog.is-featured .property-dialog-body { height: auto; }
}
@media (max-width: 360px) { .property-additional ul { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 720px) {
  .property-dialog.is-featured .property-dialog-photo-stage { height: clamp(145px, 22dvh, 210px); aspect-ratio: auto; }
  .property-dialog.is-featured .property-dialog-photo { object-fit: contain; background: #f4f0e9; }
  .property-dialog.is-featured .property-dialog-thumbnail { width: 68px; flex-basis: 68px; }
  .property-dialog.is-featured .property-dialog-body { padding: 20px 20px 16px; }
  .property-dialog.is-featured .property-dialog-demo { margin-top: 18px; margin-bottom: 10px; }
  .property-dialog.is-featured .property-dialog-actions { padding-top: 12px; padding-bottom: 0; }
}
@media (max-width: 360px), (max-width: 720px) and (max-height: 700px) {
  .property-dialog.is-featured .property-dialog-body { padding: 16px 14px; overflow-y: auto; }
  .property-dialog.is-featured .property-dialog-body > :not(.property-dialog-demo) { flex-shrink: 0; }
  .property-dialog.is-featured .property-dialog-demo { min-height: 74px; }
  .property-dialog.is-featured h2 { font-size: 22px; }
  .property-dialog.is-featured .property-dialog-tag { margin-bottom: 8px; }
  .property-dialog.is-featured .property-dialog-location { margin-top: 8px; }
}
.property-dialog-thumbnails, .property-dialog-thumbnail { cursor: grab; user-select: none; }
.property-dialog-thumbnails.is-dragging, .property-dialog-thumbnails.is-dragging .property-dialog-thumbnail { cursor: grabbing; }
.property-dialog-thumbnails { scrollbar-width: none; scroll-behavior: auto; }
.property-dialog-thumbnails::-webkit-scrollbar { display: none; }
.property-dialog-thumbnail img { -webkit-user-drag: none; pointer-events: none; }
.property-dialog-thumbnail { background: #ece6dc; }
.property-dialog-thumbnail img:not([src]) { visibility: hidden; }
.property-dialog-thumbnail:not(.is-ready) { background: linear-gradient(100deg,#eee8de,#e6ddcf,#eee8de); }
.property-description { margin-top: 24px; }
.property-description h3 { margin: 0 0 12px; color: var(--navy); font: 600 15px/1.4 Inter,sans-serif; }
.property-additional:first-child { margin-top: 0; }
.listing-skeleton { border: 1px solid #eee7dc; border-radius: 12px; overflow: hidden; min-width: 0; padding-bottom: 24px; background: #fffdf8; }
.listing-skeleton > div { aspect-ratio: 4/3; background: #eee8de; }
.listing-skeleton > span { display: block; height: 12px; background: #eee8de; margin: 20px 18px 0; width: 65%; border-radius: 3px; }
.listing-skeleton > span:last-child { width: 40%; }
.property-dialog-demo { scroll-behavior: auto !important; scroll-snap-type: none; overflow-anchor: none; contain: layout paint; }
.listing-card-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 9px; }
.listing-featured-badge { display: inline-flex; align-self: flex-start; padding: 5px 9px; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 1.15; letter-spacing: .04em; color: #172b3b; background: #be963f; }
