/* Public property website. Agency colors still apply to the publication details. */
:root {
  --ink: #1e293b;
  --muted: #52627a;
  --canvas: #f8fafc;
  --surface: #ffffff;
  --raised: #f1f5fa;
  --line: #e1e8f1;
  --control: #8798ae;
  --navy: #0f172a;
  --link: #1d4ed8;
  --gold: #e9f0ff;
  --on-gold: #1e40af;
  --danger: #a12e42;
  --focus: #2563eb;
  --placeholder: #576982;
}

html[data-theme="dark"] {
  --ink: #edf3ff;
  --muted: #aebdd4;
  --canvas: #0d1423;
  --surface: #151f32;
  --raised: #1c2940;
  --line: #2b3b54;
  --control: #677f9e;
  --navy: #c7dbff;
  --link: #a2c3ff;
  --gold: #22365a;
  --on-gold: #c7dbff;
  --danger: #ffb5c2;
  --focus: #a3c6ff;
  --placeholder: #abbcd5;
}

body.public-site {
  --public-paper: var(--canvas);
  --public-surface: var(--surface);
  --public-ink: var(--ink);
  --public-muted: var(--muted);
  --public-line: var(--line);
  --public-tint: var(--raised);
  --public-gold: var(--gold);
  --public-forest: #0f172a;
  --client-cta: #2563eb;
  --client-cta-hover: #1d4ed8;
  font-size: .96rem;
}

html[data-theme="dark"] body.public-site { --client-cta: #3b6ee0; --client-cta-hover: #295bcc; }
body.public-site ::selection { background: var(--gold); color: var(--ink); }
body.public-site .site-container { width: min(1240px, calc(100% - 56px)); }
body.public-site .header-row { min-height: 77px; gap: 18px; }
body.public-site .site-brand { gap: 10px; }
.site-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; background: #0f172a; border: 1px solid #dfbd7270; border-radius: 10px; overflow: hidden; }
body.public-site .site-mark img { width: 23px; height: 23px; object-fit: contain; background: transparent !important; padding: 0; border: 0; border-radius: 0; }
body.public-site .site-mark img.agency-image { width: 100%; height: 100%; background: #ffffff !important; padding: 3px; }
body.public-site .desktop-links a { display: flex; align-items: center; min-height: 42px; padding: 3px 7px; color: var(--muted) !important; font-size: .86rem; }
body.public-site .desktop-links a[aria-current="page"] { color: var(--link) !important; font-weight: 780; box-shadow: inset 0 -2px var(--link); }
body.public-site .mobile-menu summary { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; min-height: 34px; color: var(--ink); list-style: none; font-weight: 720; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary .ui-icon { width: 16px; height: 16px; color: var(--muted); }
body.public-site .mobile-menu a { color: var(--link); min-height: 34px; }
body.public-site .button { background: var(--client-cta) !important; border-color: var(--client-cta) !important; color: #ffffff !important; border-radius: 8px; }
body.public-site .button:hover { background: var(--client-cta-hover) !important; border-color: var(--client-cta-hover) !important; }
html body.public-site :is(.button-outline, .header-actions .button) { background: var(--surface) !important; border-color: var(--control) !important; color: var(--ink) !important; }
html body.public-site :is(.button-outline, .header-actions .button):hover { background: var(--raised) !important; border-color: var(--focus) !important; }
.public-site .header-actions .theme-toggle { min-width: 42px; min-height: 42px; padding: 8px; }
.public-site .header-actions .theme-toggle .ui-icon { width: 18px; height: 18px; }
html:not([data-theme="dark"]) .public-site .theme-toggle [data-theme-icon="sun"],
html[data-theme="dark"] .public-site .theme-toggle [data-theme-icon="moon"] { display: none !important; }
.site-header :focus-visible { outline-color: var(--focus); }

/* The photograph and headline occupy separate parts of the first viewport. */
body.public-site .client-hero.site-hero { padding: 24px 0 0; background: transparent !important; border: 0; }
.client-stage {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: 430px;
  border-radius: 16px;
  overflow: hidden;
  background: #10203c;
  color: #f3f7ff;
}
.client-stage.client-stage-text { grid-template-columns: minmax(0, 1fr); min-height: 335px; background: #10203c; }
.client-stage-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.client-stage-default { object-position: 73% center; }
.client-stage-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 36px clamp(24px, 4.1vw, 62px) 57px; }
body.public-site .client-stage h1 { margin: 0; max-width: 23ch; color: #f7faff !important; font-size: clamp(2rem, 3.7vw, 3.35rem); line-height: 1.35; font-weight: 840; }
.client-stage p { max-width: 45ch; margin: 14px 0 0; color: #d8e5f8; font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
.client-stage .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin: 22px 0 0; }
body.public-site .client-hero-action { padding-inline: 15px; }
.client-hero-action .ui-icon, .client-search .ui-icon { width: 17px; height: 17px; }
body.public-site .client-hero-link { display: inline-flex; align-items: center; min-height: 44px; color: #e0ecff; font-weight: 710; font-size: .89rem; text-decoration: underline; }
.client-stage :focus-visible, .site-footer :focus-visible { outline-color: #c3dcff; }
.client-search.hero-search {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 11px;
  width: calc(100% - 48px);
  max-width: 1130px;
  margin: -35px auto 0;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface) !important;
  box-shadow: 0 12px 30px #0f172a14;
  transform: none;
}
.client-search .field { gap: 4px; margin: 0; min-width: 0; }
.client-search .form-input, .client-search .button { min-height: 46px; }
.client-search .form-input { border-radius: 8px; }

.public-home-content > :is(.property-section, .client-services, .category-section, .home-consultation) { margin: 36px 0; }
body.public-site .section-heading { align-items: center; gap: 8px 12px; margin-bottom: 14px; }
body.public-site .section-heading h2 { font-size: 1.48rem; }
body.public-site .section-heading > a { display: inline-flex; gap: 6px; align-items: center; min-height: 39px; padding: 0; color: var(--link); font-weight: 710; font-size: .88rem; }
.section-heading > a .ui-icon { width: 16px; height: 16px; }
.client-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.client-service { display: grid; grid-template-columns: 36% minmax(0, 1fr); min-width: 0; min-height: 111px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink) !important; transition: border-color .16s ease; }
.client-service:hover { border-color: var(--control); text-decoration: none; }
.client-service-media { min-width: 0; overflow: hidden; background: var(--raised); }
.client-service-media > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.client-service-copy { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; padding: 9px 11px; }
.client-service-copy > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.client-service-copy b { display: block; font-size: 1.04rem; line-height: 1.45; }
.client-service-copy small { display: block; color: var(--muted); font-size: .77rem; margin-top: 3px; }
.client-service-arrow { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 6px; color: var(--link); background: var(--raised); }
.client-service-arrow .ui-icon { width: 15px; height: 15px; }
body.public-site :is(.estate-card, .catalog-filters, .property-summary, .contact-form-panel, .home-consultation, .public-property-head, .public-photo-section) { border-radius: 13px !important; }
body.public-site .estate-card:hover { border-color: var(--control) !important; }
body.public-site .home-consultation { padding: 23px; background: var(--raised); }
body.public-site .site-footer { background: #0f172a !important; color: #f2f6ff !important; border-top: 0 !important; }
html body.public-site .site-footer :is(h2, h3, .office-phone) { color: #f2f6ff !important; }
html body.public-site .site-footer :is(p, a, .footer-bottom) { color: #b9c9e1 !important; }
body.public-site .footer-bottom { border-color: #34405a !important; }
body.public-site .save-feedback { background: #0f172a; border-color: #526782; }

@media (max-width: 900px) {
  body.public-site .site-container { width: calc(100% - 36px); }
  .client-stage { min-height: 355px; }
  .client-stage-copy { padding-inline: 25px; }
  .client-search.hero-search { width: calc(100% - 26px); }
  .client-services-grid { gap: 9px; }
  .client-service-copy { padding-inline: 8px; }
  .client-service-arrow { display: none; }
}

@media (max-width: 680px) {
  body.public-site .site-container { width: calc(100% - 28px); }
  body.public-site .header-row { min-height: 64px; gap: 8px; }
  body.public-site .header-actions .button { min-height: 40px; padding-inline: 8px; font-size: .76rem; }
  .site-mark { width: 34px; height: 34px; flex-basis: 34px; }
  body.public-site .site-mark img { width: 19px; height: 19px; }
  body.public-site .site-brand { gap: 6px; font-size: .94rem; }
  body.public-site .site-brand small { font-size: .68rem; }
  body.public-site .mobile-menu { padding-bottom: 5px; }
  body.public-site .client-hero.site-hero { padding-top: 13px; }
  .client-stage, .client-stage.client-stage-text { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 12px; }
  .client-stage-photo { grid-row: 1; height: auto; aspect-ratio: 2.15; object-position: 68% 50%; }
  .client-stage-copy { padding: 19px 17px 22px; }
  body.public-site .client-stage h1 { max-width: 25ch; font-size: 1.75rem; }
  .client-stage p { margin-top: 7px; font-size: .85rem; }
  .client-stage .hero-actions { margin-top: 11px; }
  .client-search.hero-search { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 11px 0 0; padding: 10px; gap: 7px; }
  .client-search .client-search-query, .client-search.hero-search > .button { grid-column: 1 / -1; }
  .client-search .form-input { font-size: 16px; padding-inline: 8px; }
  .client-services-grid { grid-template-columns: minmax(0, 1fr); }
  .client-service { grid-template-columns: 29% minmax(0, 1fr); min-height: 78px; }
  .client-service-arrow { display: grid; }
  .public-home-content > :is(.property-section, .client-services, .category-section, .home-consultation) { margin: 25px 0; }
  body.public-site .section-heading h2 { font-size: 1.2rem; }
  body.public-site .section-heading > a { font-size: .77rem; }
}

.client-stage { position: relative; }
.client-stage-trace { position: absolute; inset-inline-end: 16px; inset-block-end: 43px; width: 90px; color: #d4e5ff; opacity: .36; pointer-events: none; }
@media (max-width: 680px) { .client-stage-trace { display: none; } }

/* Illustration artwork stays local and is distinct from approved property photographs. */
.property-placeholder { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; }
.property-placeholder-image { object-fit: cover; object-position: 88% center; }
.property-placeholder > img { width: 100%; height: 100%; object-position: 88% center; }
.property-placeholder-label { position: absolute; inset: auto auto 10px 10px; padding: 2px 8px; border-radius: 5px; background: #10203c; color: #f3f7ff; font-size: .77rem; }
.public-property-placeholder { aspect-ratio: 2.2; overflow: hidden; border-radius: 10px; }

body.public-site .estate-media .save-property {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: #fff !important; color: #142745 !important; border: 1px solid #a7b6cd !important;
  box-shadow: 0 2px 6px #0f172a23; border-radius: 9px;
}
body.public-site .estate-media .save-property > .ui-icon { display: block; width: 22px; height: 22px; stroke: currentColor !important; fill: none; }
body.public-site .estate-media .save-property[aria-pressed="true"] { background: #e5eeff !important; color: #1c50bd !important; border-color: #83a4df !important; }
body.public-site .estate-media .save-property[aria-pressed="true"] > .ui-icon { fill: currentColor; }
html[data-theme="dark"] body.public-site .estate-media .save-property { background: #142541 !important; color: #edf5ff !important; border-color: #7186a3 !important; }
html[data-theme="dark"] body.public-site .estate-media .save-property[aria-pressed="true"] { background: #273f67 !important; color: #b8d3ff !important; border-color: #91b9fa !important; }
body.public-site .estate-media .save-property:hover { outline: 2px solid currentColor; outline-offset: -4px; }

@media (min-width: 681px) {
  .client-stage-illustrated { grid-template-columns: minmax(0, 1fr); isolation: isolate; }
  .client-stage-illustrated .client-stage-default { position: absolute; inset: 0; z-index: -2; object-position: right center; }
  .client-stage-illustrated::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10203cbb 0%, #10203c75 36%, #10203c00 66%); }
  .client-stage-illustrated .client-stage-copy { justify-self: end; width: min(48%, 580px); padding-inline: clamp(25px, 4.6vw, 68px) 20px; }
  .client-stage-illustrated .client-stage-trace { display: none; }
}
@media (max-width: 680px) {
  .client-stage-illustrated .client-stage-default { object-position: 91% center; }
}
