* { box-sizing: border-box; }
body.public-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.public-header {
  min-height: 82px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.public-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.public-brand img { width: 56px; height: 56px; object-fit: contain; }
.public-brand small { display: block; margin-top: 3px; letter-spacing: .24em; }
.public-header nav { display: flex; align-items: center; gap: 24px; }
.public-header nav a { font-weight: 700; text-decoration: none; }
.public-header nav a:hover, .public-header nav .nav-current { text-decoration: underline; text-underline-offset: 5px; }
.public-main { width: min(100% - 40px, 1280px); margin: 0 auto; padding: 36px 0 64px; flex: 1 0 auto; }
.search-intro { margin-bottom: 25px; }
.public-eyebrow { margin: 0 0 8px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.search-intro h1, .detail-heading h1 { margin: 0 0 8px; color: var(--ink); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; }
.search-intro > p:last-child { margin: 0; color: var(--muted); }

.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 24px; }
.search-sidebar { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 25px rgba(24, 70, 26, .045); }
.sidebar-title { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sidebar-title h2 { margin: 0; font-size: 1.08rem; }
.sidebar-title a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.sidebar-title a:hover { color: var(--green-dark); text-decoration: underline; }
.search-form { display: grid; gap: 14px; }
.filter-message { margin: 12px 0 0; color: #715313; font-size: .8rem; line-height: 1.45; }
.search-field { min-width: 0; display: grid; gap: 6px; }
.search-field span { color: #405347; font-size: .82rem; font-weight: 700; }
.search-field input, .search-field select { width: 100%; min-height: 38px; padding: 6px 9px; border: 1px solid #cbd8cb; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: .9rem; }
.search-field input:focus, .search-field select:focus { border-color: var(--green); outline: 3px solid rgba(49, 158, 39, .13); }
.advanced-filters { padding-top: 13px; border-top: 1px solid #edf2eb; }
.advanced-filters summary { width: fit-content; color: var(--green-dark); font-size: .84rem; font-weight: 700; cursor: pointer; }
.advanced-grid { margin-top: 13px; display: grid; gap: 13px; }
.price-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.price-filter legend { margin-bottom: 7px; padding: 0; color: #405347; font-size: .82rem; font-weight: 700; }
.price-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.price-range .search-field { min-width: 0; }
.price-range .search-field span { font-size: .76rem; }
.price-range input::-webkit-inner-spin-button, .price-range input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.price-range input { appearance: textfield; -moz-appearance: textfield; }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 7px; padding: 0; color: #405347; font-size: .82rem; font-weight: 700; }
.choice-options { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-options label { position: relative; display: inline-flex; cursor: pointer; }
.choice-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-options span { min-width: 34px; min-height: 32px; padding: 6px 8px; border: 1px solid #cbd8cb; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #405347; background: #fff; font-size: .82rem; line-height: 1.2; text-align: center; transition: color 120ms ease, background 120ms ease, border-color 120ms ease; }
.choice-options input:checked + span { border-color: var(--green); color: #fff; background: var(--green); }
.choice-options input:focus-visible + span { outline: 3px solid rgba(49, 158, 39, .2); outline-offset: 2px; }
.choice-group-age .choice-options span { min-height: 30px; padding: 5px 7px; font-size: .76rem; }
.feature-filters { margin: 16px 0 0; padding: 10px 11px 12px; border: 1px solid #e5eee2; border-radius: 9px; display: grid; gap: 9px; }
.feature-filters legend { padding: 0 5px; color: #405347; font-size: .82rem; font-weight: 700; }
.feature-filters label { display: inline-flex; align-items: center; gap: 6px; color: #405347; font-size: .83rem; cursor: pointer; }
.feature-filters input { accent-color: var(--green); }
.search-actions { margin-top: 20px; display: flex; align-items: center; justify-content: flex-end; gap: 17px; }
.clear-search { color: var(--muted); font-size: .86rem; text-decoration: none; }
.clear-search:hover { color: var(--green-dark); text-decoration: underline; }
.search-button, .contact-property { min-height: 44px; padding: 10px 17px; border: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--green); font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.search-button:hover, .contact-property:hover { background: #25821e; }

.results-section { min-width: 0; }
.results-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; }
.results-heading h2 { margin: 0 0 5px; font-size: 1.35rem; }
.results-heading p { margin: 0; color: var(--muted); font-size: .86rem; }
.property-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 15px; }
.public-property-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 26px rgba(24, 70, 26, .055); transition: transform 160ms ease, box-shadow 160ms ease; }
.public-property-card:hover { transform: translateY(-3px); box-shadow: 0 15px 32px rgba(24, 70, 26, .1); }
.card-image-link { position: relative; display: block; overflow: hidden; background: #f0f5ed; }
.card-image-link > img { width: 100%; aspect-ratio: 1.48; display: block; object-fit: cover; }
.operation-tag { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 99px; color: #fff; background: rgba(29, 83, 26, .92); font-size: .73rem; font-weight: 700; }
.card-content { padding: 16px; }
.card-location { margin: 0 0 7px; color: var(--green-dark); font-size: .75rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.card-content h3 { margin: 0 0 5px; font-size: 1.08rem; line-height: 1.3; }
.card-content h3 a { color: var(--ink); text-decoration: none; }
.card-content h3 a:hover { color: var(--green-dark); text-decoration: underline; }
.card-address { margin: 0; color: var(--muted); font-size: .84rem; }
.card-facts { min-height: 32px; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px 12px; color: #526157; font-size: .77rem; }
.card-price { margin: 12px 0 0; color: #171b18; font-size: 1.15rem; font-weight: 800; }
.no-results, .public-notice { padding: 42px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.no-results h3, .no-results h1 { margin: 0 0 9px; font-size: 1.25rem; }
.no-results p { margin: 0 0 16px; color: var(--muted); }
.no-results a { color: var(--green-dark); font-size: .9rem; font-weight: 700; }
.public-notice { color: #8b3029; background: #fff6f4; }
.search-loading { color: var(--muted); font-size: .8rem; }
#results-content { transition: opacity 140ms ease; }
#results-content.is-loading { opacity: .48; }
.detail-main { max-width: 1080px; }
.back-to-results { margin-bottom: 23px; display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-to-results:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-to-results span { font-size: 1.2rem; }
.detail-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.detail-heading h1 { margin-bottom: 6px; }
.static-tag { position: static; }
.property-gallery { margin: 0 0 20px; }
.gallery-stage { position: relative; min-height: 280px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; background: #eaf2e6; }
.gallery-current-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.gallery-arrow { position: absolute; z-index: 1; top: 50%; width: 42px; height: 42px; padding: 0 0 4px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 3px 12px rgba(0,0,0,.16); font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.gallery-arrow:hover, .gallery-arrow:focus-visible { color: #fff; background: var(--green-dark); outline: 3px solid rgba(49,158,39,.2); }
.gallery-previous { left: 15px; }
.gallery-next { right: 15px; }
.gallery-counter { position: absolute; right: 14px; bottom: 13px; padding: 5px 9px; border-radius: 99px; color: #fff; background: rgba(20,35,22,.72); font-size: .78rem; font-weight: 700; }
.gallery-thumbnails { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.gallery-thumbnail { flex: 0 0 76px; width: 76px; height: 60px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: #eaf2e6; cursor: pointer; }
.gallery-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-thumbnail.is-active { border-color: var(--green-dark); box-shadow: 0 0 0 2px rgba(49,158,39,.15); }
.gallery-thumbnail:focus-visible { outline: 3px solid rgba(49,158,39,.35); outline-offset: 2px; }
.detail-no-image { height: 310px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; background: #fff; }
.detail-no-image img { width: 115px; height: 140px; object-fit: contain; opacity: .72; }
.detail-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-card h2 { margin: 0 0 16px; font-size: 1.2rem; }
.description-card { margin-bottom: 18px; text-align: center; }
.description-card h2 { margin-bottom: 10px; }
.property-description { max-width: 900px; margin: 0 auto; color: #435248; font-size: .95rem; line-height: 1.75; text-align: center; overflow-wrap: anywhere; word-break: normal; }
.detail-features { margin-bottom: 18px; }
.feature-tags { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.feature-tags li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: #38553b; background: #f2f8ef; font-size: .83rem; }
.detail-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); align-items: stretch; gap: 18px; }
.location-card > p { margin: -7px 0 13px; color: var(--muted); font-size: .9rem; }
.location-card iframe { width: 100%; height: 320px; border: 0; border-radius: 8px; display: block; background: #eaf2e6; }
.map-link { margin-top: 10px; display: inline-block; color: var(--green-dark); font-size: .85rem; font-weight: 700; }
.property-contact-card { display: flex; align-items: flex-start; flex-direction: column; }
.property-contact-card h2 { margin: 22px 0 4px; }
.property-contact-card .operation-heading { margin: 22px 0 5px; font-size: 1.2rem; }
.property-contact-card .operation-value { margin: 0 0 22px; color: var(--green-dark); font-size: 1.25rem; font-weight: 800; }
.detail-price { margin-bottom: 22px; color: var(--green-dark); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.office-address { width: 100%; margin-top: auto; padding-top: 24px; }
.office-address h3 { margin: 0 0 6px; font-size: .9rem; }
.office-address p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.contact-property { width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chat-widget { position: fixed; z-index: 10; right: 22px; bottom: 22px; }
.chat-launcher { min-height: 52px; padding: 9px 16px 9px 10px; border: 0; border-radius: 999px; display: flex; align-items: center; gap: 9px; color: #fff; background: #26a845; box-shadow: 0 10px 25px rgba(21, 112, 40, .25); cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700; }
.chat-launcher:hover, .chat-launcher:focus-visible { background: #1d9639; outline: 3px solid rgba(37, 147, 23, .28); outline-offset: 3px; }
.chat-launcher-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.chat-launcher-icon img { width: 20px; height: 20px; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.chat-panel { width: min(360px, calc(100vw - 32px)); margin-bottom: 12px; padding: 22px; border: 1px solid rgba(45, 144, 49, .2); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 16px 44px rgba(22, 65, 31, .2); }
.chat-panel[hidden] { display: none; }
.chat-close { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; float: right; color: #547057; background: #eff5ef; cursor: pointer; font: inherit; font-size: 1.3rem; }
.chat-greeting { margin: 0 34px 7px 0; color: var(--green-dark); font-size: .75rem; font-weight: 700; }
.chat-panel h2 { margin: 0 0 8px; font-size: 1.25rem; }
.chat-description { margin: 0 0 16px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.chat-form { display: grid; gap: 9px; }
.chat-form input { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #cbd8cb; border-radius: 8px; color: var(--ink); font: inherit; font-size: .86rem; }
.chat-form button { min-height: 40px; padding: 9px; border: 0; border-radius: 8px; color: #fff; background: #26a845; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 700; }
.chat-close:focus-visible, .chat-form input:focus-visible, .chat-form button:focus-visible { outline: 3px solid rgba(37, 147, 23, .3); outline-offset: 2px; }

@media (max-width: 900px) {
  .search-layout { grid-template-columns: 275px minmax(0, 1fr); gap: 16px; }
  .property-cards { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
  .gallery-stage { min-height: 240px; }
  .detail-bottom-grid { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); }
}
@media (max-width: 620px) {
  .public-header { min-height: 70px; padding-inline: 16px; }
  .public-brand { gap: 8px; }
  .public-brand img { width: 46px; height: 46px; }
  .public-header nav { gap: 13px; }
  .public-main { width: min(100% - 28px, 560px); padding: 30px 0 46px; }
  .search-layout { grid-template-columns: 1fr; }
  .search-sidebar { position: static; max-height: none; overflow: visible; padding: 15px; }
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search-form > .search-field:nth-child(1), .search-form > .search-field:nth-child(2), .advanced-filters { grid-column: 1 / -1; }
  .advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-cards { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
  .card-content { padding: 12px; }
  .card-content h3 { font-size: .98rem; }
  .card-location { font-size: .68rem; }
  .card-address { font-size: .78rem; }
  .card-price { font-size: 1rem; }
  .public-footer { padding: 18px; flex-direction: column; align-items: flex-start; }
  .chat-widget { right: 12px; bottom: 12px; }
  .chat-launcher { padding-right: 13px; font-size: .77rem; }
  .detail-heading { align-items: flex-start; flex-direction: column; }
  .gallery-stage { min-height: 210px; aspect-ratio: 4 / 3; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 1.7rem; }
  .gallery-previous { left: 9px; }
  .gallery-next { right: 9px; }
  .gallery-thumbnails { gap: 7px; }
  .gallery-thumbnail { flex-basis: 66px; width: 66px; height: 52px; }
  .detail-bottom-grid { grid-template-columns: 1fr; }
  .location-card iframe { height: 270px; }
  .office-address { margin-top: 0; }
}
@media (max-width: 390px) {
  .property-cards { grid-template-columns: 1fr; }
  .public-property-card { max-width: 430px; width: 100%; margin: 0 auto; }
  .search-form { grid-template-columns: 1fr; }
  .search-form > .search-field:nth-child(1), .search-form > .search-field:nth-child(2), .advanced-filters { grid-column: auto; }
  .feature-filters { gap: 10px; }
}
