/* listing_filters_approved */
/* Approved option 1: one disclosure for the complete form; result row always visible. */
body.property-page .filter-wrap { max-width:1240px; margin:20px auto; padding:0 20px; box-sizing:border-box; }
body.property-page .filter-panel { padding:12px 16px 0; background:#fff; border:1px solid #e0e7ec; border-radius:10px; box-shadow:none; }
body.property-page .property-filter-disclosure { margin:0; padding:0; border:0; }
body.property-page .property-filter-disclosure > summary { display:inline-flex; align-items:center; gap:12px; min-height:38px; box-sizing:border-box; padding:7px 14px; border:1px solid #cbd8e1; border-radius:7px; color:#193d50; background:#fff; font-size:13px; line-height:1.4; font-weight:600; cursor:pointer; list-style:none; }
body.property-page .property-filter-disclosure > summary::-webkit-details-marker { display:none; }
body.property-page .property-filter-disclosure > summary::marker { content:''; }
body.property-page .filters-open-label { display:none; }
body.property-page .property-filter-disclosure[open] .filters-closed-label { display:none; }
body.property-page .property-filter-disclosure[open] .filters-open-label { display:inline; }
body.property-page .filter-disclosure-chevron { width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-4px; }
body.property-page .property-filter-disclosure[open] .filter-disclosure-chevron { transform:rotate(225deg); margin-top:4px; }
body.property-page .property-filter-controls { padding:14px 0 2px; }
body.property-page .filter-row { display:grid; grid-template-columns:minmax(170px,1.8fr); grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:10px; }
body.property-page .filter-field { display:flex; flex-direction:column; gap:5px; min-width:0; max-width:none; width:auto; text-align:left; }
body.property-page .filter-field.wide { grid-column:auto; }
body.property-page .filter-field label { margin:0; color:#60717c; font-size:11px; font-weight:500; line-height:1.4; letter-spacing:normal; text-transform:none; }
body.property-page .filter-panel input[type="text"],body.property-page .filter-panel input[type="number"],body.property-page .filter-panel select { width:100%; height:36px; min-width:0; max-width:100%; padding:7px 9px; box-sizing:border-box; border:1px solid #d7e1e8; border-radius:6px; background:#fff; color:#264353; font:400 13px/1.4 Arial,sans-serif; }
body.property-page .filter-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; padding-top:12px; border-top:1px solid #eef2f4; }
body.property-page #panel-rent .filter-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.property-page .filter-checks { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:8px; }
body.property-page .filter-checks label { padding:3px 0; border:0; background:none; color:#60717c; font-size:12px; font-weight:400; }
body.property-page .filter-choice-toggle { display:flex; min-height:36px; border:1px solid #d7e1e8; border-radius:6px; overflow:hidden; background:#fff; }
body.property-page .filter-choice-toggle button { flex:1 1 0; min-width:0; margin:0; padding:7px 8px; border:0; border-radius:0; background:transparent; color:#60717c; font:400 12px/1.4 Arial,sans-serif; cursor:pointer; }
body.property-page .filter-choice-toggle button + button { border-left:1px solid #e6ecef; }
body.property-page .filter-choice-toggle button[aria-pressed="true"] { background:#e4f3ef; color:#183e43; font-weight:600; }
body.property-page .filter-footer { margin-top:10px; padding:10px 0; border-top:1px solid #edf1f4; font-size:12px; }
body.property-page .filter-footer span[id$="resultCount"] { color:#264353; font-weight:500; }
body.property-page .clear-filters { min-height:34px; padding:5px 0; border:0; box-shadow:none; background:none; color:#188a83; font-size:12px; font-weight:400; }
body.property-page .filter-panel :is(input,select,button,summary):focus-visible { outline:2px solid #279bb3; outline-offset:2px; }
@media(max-width:1023px) {
 body.property-page .filter-row { grid-auto-flow:row; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
 body.property-page .filter-field.wide { grid-column:1/-1; }
}
@media(max-width:767px) {
 body.property-page .filter-wrap { margin:14px auto; padding:0 12px; }
 body.property-page .filter-panel { padding:10px 12px 0; }
 body.property-page .property-filter-disclosure > summary { min-height:44px; font-size:14px; }
 body.property-page .filter-row,body.property-page .filter-options,body.property-page #panel-rent .filter-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 body.property-page .filter-options > .filter-field:first-child { grid-column:1/-1; }
 body.property-page .filter-panel input[type="text"],body.property-page .filter-panel input[type="number"],body.property-page .filter-panel select { min-height:44px; height:44px; font-size:16px; }
 body.property-page .filter-choice-toggle,body.property-page .filter-choice-toggle button { min-height:44px; }
 body.property-page .filter-checks label { display:flex; align-items:center; gap:6px; min-height:44px; }
 body.property-page .filter-footer { font-size:11px; }
 body.property-page .clear-filters { min-height:44px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { body.property-page .filter-panel * { transition:none; scroll-behavior:auto; } }

body.property-page .result-count-short { display:none; }
@media(max-width:767px) {
 body.property-page .result-count-full { display:none; }
 body.property-page .result-count-short { display:inline; }
}

/* agriculture */
/* Agriculture hero heading. Shared listings live in main.css. */
.agriculture-page .buy-heading { max-width: 24ch; margin-inline: auto; }

/* dropdown_options_match */
/* Popup options match the existing closed dropdown text. */
body.property-page .filter-panel select option,
body.property-page .filter-panel select optgroup {
    font: inherit;
    color: inherit;
}

/* dropdown_popup_match */
/* Popup rendering only: retain the existing filter size, font and values. */
body.property-page .filter-popup-text-fix { position:relative; width:100%; min-width:0; }
body.property-page .filter-popup-text-fix > select[hidden] { display:none !important; }
body.property-page .filter-popup-text-trigger { position:relative; display:block; width:100%; margin:0; text-align:left; cursor:pointer; box-shadow:none; text-transform:none; }
body.property-page .filter-popup-text-trigger > span { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding-right:16px; }
body.property-page .filter-popup-text-trigger::after { content:''; position:absolute; right:10px; top:50%; width:5px; height:5px; margin-top:-4px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); }
body.property-page .filter-popup-text-options { position:absolute; z-index:10000; top:calc(100% + 3px); left:0; right:0; max-height:280px; overflow-y:auto; border:1px solid #cbd8e1; border-radius:6px; background:#fff; box-shadow:0 4px 12px #0002; text-align:left; }
body.property-page .filter-popup-text-options[hidden] { display:none !important; }
body.property-page .filter-popup-text-option { padding:8px 10px; font:inherit; line-height:1.4; color:inherit; cursor:pointer; overflow-wrap:anywhere; }
body.property-page .filter-popup-text-option.is-active { background:#e4f3ef; }
body.property-page .filter-popup-text-option[aria-selected='true'] { font-weight:600; }
body.property-page .filter-popup-text-option[aria-disabled='true'] { opacity:.5; cursor:default; }

/* filters_polished_v1 */
/* Filter presentation only: existing fields, values, events and disclosure behavior stay intact. */
body.property-page .filter-wrap {
  width:100%; max-width:1160px; margin:28px auto; padding:0 24px; box-sizing:border-box;
}
body.property-page .filter-panel {
  width:100%; max-width:none; min-width:0; margin-inline:auto; box-sizing:border-box;
  padding:24px 24px 0; border:1px solid #dce6ec; border-radius:18px;
  background:linear-gradient(180deg,#fbfdfe 0,#fff 130px);
  box-shadow:0 8px 32px rgba(22,52,72,.055),0 1px 3px rgba(22,52,72,.025);
}
body.property-page .property-filter-disclosure { width:100%; min-width:0; margin:0; padding:0; border:0; }
body.property-page .property-filter-disclosure > summary {
  display:flex; align-items:center; justify-content:center; gap:12px;
  width:fit-content; min-width:190px; max-width:100%; min-height:50px;
  margin:0 auto; padding:12px 22px; box-sizing:border-box;
  list-style:none; border:1px solid #183d50; border-radius:999px;
  background:#183d50; color:#fff; box-shadow:0 4px 12px rgba(24,61,80,.12);
  font:600 14px/1.4 Arial,sans-serif; letter-spacing:.015em; cursor:pointer;
  user-select:none; -webkit-tap-highlight-color:transparent;
  transition:background-color .16s ease,box-shadow .16s ease;
}
body.property-page .property-filter-disclosure > summary::before {
  content:""; flex:0 0 18px; width:18px; height:18px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 5h14M3 10h14M3 15h14'/%3E%3Ccircle cx='7' cy='5' r='2' fill='white'/%3E%3Ccircle cx='13' cy='10' r='2' fill='white'/%3E%3Ccircle cx='8' cy='15' r='2' fill='white'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 5h14M3 10h14M3 15h14'/%3E%3Ccircle cx='7' cy='5' r='2' fill='white'/%3E%3Ccircle cx='13' cy='10' r='2' fill='white'/%3E%3Ccircle cx='8' cy='15' r='2' fill='white'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
body.property-page .property-filter-disclosure > summary::marker { content:""; }
body.property-page .property-filter-disclosure > summary::-webkit-details-marker { display:none; }
body.property-page .property-filter-disclosure[open] > summary { background:#eaf4f4; color:#183d50; border-color:#c5dedd; box-shadow:none; }
body.property-page .property-filter-disclosure > summary:hover { box-shadow:0 4px 15px rgba(24,61,80,.2); }
body.property-page .filter-disclosure-chevron { flex:0 0 7px; width:7px; height:7px; margin-left:3px; }
body.property-page .property-filter-controls { padding:24px 0 6px; min-width:0; }
body.property-page .filter-row {
  display:grid; grid-auto-flow:row; grid-auto-columns:auto;
  grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; align-items:end;
}
body.property-page .filter-row:has(> .filter-field:nth-child(7):last-child) { grid-template-columns:repeat(6,minmax(0,1fr)); }
body.property-page .filter-row:has(> .filter-field:nth-child(6):last-child) { grid-template-columns:repeat(5,minmax(0,1fr)); }
body.property-page .filter-field { display:flex; flex-direction:column; gap:8px; width:100%; min-width:0; max-width:none; margin:0; text-align:center; box-sizing:border-box; }
body.property-page .filter-field.wide { grid-column:1/-1; }
body.property-page .filter-field label { display:block; margin:0; padding:0; min-height:17px; color:#526b7b; text-align:center; font:600 12px/1.4 Arial,sans-serif; text-transform:none; letter-spacing:.02em; }
body.property-page .filter-panel input[type="text"],
body.property-page .filter-panel input[type="number"],
body.property-page .filter-panel select,
body.property-page .filter-popup-text-trigger {
  width:100%; min-width:0; max-width:100%; height:48px; min-height:48px;
  padding:12px 30px 12px 12px; box-sizing:border-box;
  border:1px solid #d6e2e9; border-radius:10px; background-color:#fff;
  color:#244858; font:400 15px/1.4 Arial,sans-serif; text-align:center;
  transition:border-color .16s ease,box-shadow .16s ease;
}
body.property-page .filter-panel input[type="text"],
body.property-page .filter-panel input[type="number"] { padding-inline:12px; }
body.property-page .filter-panel input::placeholder { color:#889ba8; opacity:1; text-align:center; }
body.property-page .filter-panel select { text-align-last:center; }
body.property-page .filter-panel :is(input,select):hover { border-color:#adc7d3; }
body.property-page .filter-panel :is(input,select):focus { border-color:#458b9d; box-shadow:0 0 0 3px rgba(69,139,157,.12); }
body.property-page .filter-panel :is(input,select,button,summary):focus-visible { outline:3px solid #68aebd; outline-offset:3px; }
body.property-page .filter-options,
body.property-page #panel-rent .filter-options {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px;
  margin:22px 0 0; padding:20px 0 0; border-top:1px solid #e9eff2;
}
body.property-page .filter-checks { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px 24px; margin:16px 0 0; padding:0; }
body.property-page .filter-checks label { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; margin:0; padding:0 6px; border:0; background:none; color:#526b7b; font:400 13px/1.4 Arial,sans-serif; cursor:pointer; }
body.property-page .filter-checks input { width:17px; height:17px; margin:0; accent-color:#226779; }
body.property-page .filter-choice-toggle {
  display:flex; gap:4px; width:100%; min-width:0; min-height:48px; padding:4px; box-sizing:border-box;
  border:1px solid #dce7eb; border-radius:11px; background:#f3f7f9; overflow:visible;
}
body.property-page .filter-choice-toggle button {
  flex:1 1 0; min-width:0; min-height:38px; margin:0; padding:8px 5px; box-sizing:border-box;
  border:1px solid transparent; border-radius:7px; background:transparent;
  color:#526b7b; font:400 13px/1.4 Arial,sans-serif; text-align:center; cursor:pointer;
}
body.property-page .filter-choice-toggle button + button { border-left:1px solid transparent; }
body.property-page .filter-choice-toggle button:hover { background:#e8eff2; }
body.property-page .filter-choice-toggle button[aria-pressed="true"] { border-color:#1f5668; background:#1f5668; color:#fff; font-weight:600; box-shadow:0 1px 3px rgba(24,61,80,.14); }
body.property-page .filter-panel .filter-footer {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  align-items:center; gap:12px; margin:20px -24px 0; padding:16px 24px;
  border-top:1px solid #e4edf1; border-radius:0 0 18px 18px; background:#f6fafb;
  color:#526b7b; font-size:12px; text-align:center;
}
body.property-page .filter-footer > span[id$="resultCount"] { grid-column:1; justify-self:center; width:100%; min-width:0; color:#365465; text-align:center; line-height:1.5; overflow-wrap:anywhere; }
body.property-page .filter-footer .main-page-update { grid-column:2; justify-self:center; width:100%; max-width:none; min-width:0; margin:0; padding:0; background:none; color:#718590; text-align:center; font:400 11px/1.5 Arial,sans-serif; overflow-wrap:anywhere; }
body.property-page .filter-footer .main-page-update time { color:inherit; font:inherit; }
body.property-page .filter-footer .clear-filters { grid-column:3; justify-self:center; max-width:100%; min-height:44px; margin:0; padding:8px; border:1px solid transparent; border-radius:8px; background:none; color:#226779; font:600 12px/1.4 Arial,sans-serif; text-align:center; white-space:normal; box-shadow:none; }
body.property-page .filter-footer .clear-filters:hover { border-color:#d6e6e9; background:#eaf3f5; }
/* Match the installed accessible dropdown helper without changing its select values. */
body.property-page .filter-popup-text-fix { position:relative; width:100%; min-width:0; }
body.property-page .filter-popup-text-trigger { display:flex; align-items:center; justify-content:center; cursor:pointer; }
body.property-page .filter-popup-text-trigger > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.property-page .filter-popup-text-options { position:absolute; inset:calc(100% + 6px) 0 auto; z-index:90; max-height:280px; overflow:auto; box-sizing:border-box; padding:6px; border:1px solid #d6e2e9; border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(22,52,72,.14); text-align:center; }
body.property-page .filter-popup-text-option { min-height:44px; display:flex; align-items:center; justify-content:center; padding:8px 10px; box-sizing:border-box; border-radius:6px; color:#244858; cursor:pointer; }
body.property-page .filter-popup-text-option:hover,
body.property-page .filter-popup-text-option.is-active { background:#edf5f7; }
body.property-page .filter-popup-text-option[aria-selected="true"] { background:#e4f0f3; font-weight:600; }
body.property-page .filter-popup-text-options[hidden],body.property-page .filter-panel select[hidden] { display:none !important; }
@media(min-width:768px) and (max-width:1023px) {
  body.property-page .filter-row,
  body.property-page .filter-row:has(> .filter-field:nth-child(7):last-child),
  body.property-page .filter-row:has(> .filter-field:nth-child(6):last-child) { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.property-page .filter-options,body.property-page #panel-rent .filter-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
  body.property-page .filter-wrap { margin:20px auto; padding-inline:16px; }
  body.property-page .filter-panel { padding:18px 16px 0; border-radius:15px; }
  body.property-page .property-filter-disclosure > summary { min-width:190px; min-height:50px; font-size:14px; }
  body.property-page .property-filter-controls { padding-top:20px; }
  body.property-page .filter-row,
  body.property-page .filter-row:has(> .filter-field:nth-child(7):last-child),
  body.property-page .filter-row:has(> .filter-field:nth-child(6):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; }
  body.property-page .filter-field.wide,body.property-page .filter-sort { grid-column:1/-1; }
  body.property-page .filter-row:has(> .filter-field:nth-child(7):last-child) > .filter-field:nth-child(6) { grid-column:1/-1; }
  body.property-page .filter-field label { font-size:12px; }
  body.property-page .filter-panel input[type="text"],body.property-page .filter-panel input[type="number"],body.property-page .filter-panel select,body.property-page .filter-popup-text-trigger { min-height:48px; height:48px; font-size:16px; }
  body.property-page .filter-options,body.property-page #panel-rent .filter-options { grid-template-columns:minmax(0,1fr); gap:16px; margin-top:18px; padding-top:18px; }
  body.property-page .filter-options > .filter-field:first-child { grid-column:auto; }
  body.property-page .filter-choice-toggle { min-height:50px; }
  body.property-page .filter-choice-toggle button { min-height:40px; font-size:13px; }
  body.property-page .filter-panel .filter-footer { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:18px -16px 0; padding:12px 10px; border-radius:0 0 15px 15px; }
  body.property-page .filter-footer > span[id$="resultCount"] { font-size:11px; }
  body.property-page .filter-footer .main-page-update { font-size:10px; }
  body.property-page .filter-footer .clear-filters { padding-inline:3px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  body.property-page .filter-panel * { transition:none !important; scroll-behavior:auto; }
}

/* filter_footer_visibility_v1 */
/* The existing Show filters control also controls its own count/date/clear row. */
body.property-page .filter-panel > .property-filter-disclosure:not([open]) ~ .filter-footer {
  display:none !important;
}
body.property-page .filter-panel:has(> .property-filter-disclosure:not([open])) {
  padding-bottom:24px;
}
@media(max-width:767px) {
  body.property-page .filter-panel:has(> .property-filter-disclosure:not([open])) {
    padding-bottom:18px;
  }
}
/* Even controls and centered partial rows at every existing breakpoint. */
body.property-page .filter-row {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-end;
  gap:16px;
}
body.property-page .filter-row > .filter-field {
  flex:1 1 140px;
  min-width:0;
  max-width:none;
  width:auto;
  grid-column:auto;
  text-align:center;
}
body.property-page .filter-row > .filter-field.wide {
  flex:0 0 100%;
  width:100%;
}
body.property-page .filter-panel select {
  padding-inline:30px;
  text-align:center;
  text-align-last:center;
}
body.property-page .filter-panel .filter-footer {
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;
  text-align:center;
}
body.property-page .filter-footer > span[id$="resultCount"],
body.property-page .filter-footer .main-page-update,
body.property-page .filter-footer .clear-filters {
  justify-self:center;
  min-width:0;
  max-width:100%;
  text-align:center;
}
@media(min-width:768px) and (max-width:1023px) {
  body.property-page .filter-row > .filter-field {
    flex:0 0 calc((100% - 32px) / 3);
  }
  body.property-page .filter-row:has(> .filter-field:nth-child(5):last-child) > .filter-field {
    flex:0 0 calc((100% - 16px) / 2);
  }
  body.property-page .filter-row > .filter-field.wide,
  body.property-page .filter-row:has(> .filter-field:nth-child(5):last-child) > .filter-field.wide {
    flex:0 0 100%;
  }
}
@media(max-width:767px) {
  body.property-page .filter-row { gap:14px 12px; }
  body.property-page .filter-row > .filter-field { flex:0 0 calc((100% - 12px) / 2); }
  body.property-page .filter-row > .filter-field.wide { flex:0 0 100%; }
}

/* listing_counts_quiet_v1 */
/* Quiet count and existing Grid/List controls. No content or behaviour changes. */
body.property-page .ly-toolbar { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px 14px; width:100%; min-width:0; box-sizing:border-box; margin:4px 0 12px; padding:0; background:transparent; border:0; box-shadow:none; text-align:center; }
body.property-page .ly-toolbar .ly-range { flex:0 1 auto; min-width:0; min-height:0; margin:0; padding:0; color:#647789; font:400 12px/1.5 Arial,sans-serif; text-align:center; }
body.property-page .ly-toolbar .ly-view { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; gap:2px; margin:0; padding:0; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
body.property-page .ly-toolbar .ly-view button { display:inline-flex; align-items:center; justify-content:center; min-width:36px; min-height:32px; margin:0; padding:4px 7px; border:0; border-radius:3px; background:transparent; box-shadow:none; color:#647789; font:400 11px/1.4 Arial,sans-serif; text-align:center; cursor:pointer; }
body.property-page .ly-toolbar .ly-view button.is-active { background:transparent; color:#526b7b; text-decoration:underline; text-underline-offset:3px; }
body.property-page .ly-toolbar .ly-view button:hover { background:#f3f6f8; color:#365465; }
body.property-page .ly-toolbar .ly-view button:focus-visible { outline:2px solid #4c91a3; outline-offset:1px; }
@media(max-width:767px) {
 body.property-page .ly-toolbar { gap:2px 10px; margin:2px 0 10px; }
 body.property-page .ly-toolbar .ly-range { font-size:11px; }
 body.property-page .ly-toolbar .ly-view button { min-height:44px; }
}
/* Listing presentation: explicit theme values keep details readable even when a legacy variable is missing. */
body.property-page .ly-modal {
 --ly-navy:#14354d; --ly-navy-soft:#1d4a6b; --ly-ink:#263f4e; --ly-muted:#647789; --ly-soft:#f7fafc; --ly-line:#e0e8ee;
 position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center;
 padding:20px; box-sizing:border-box; background:rgba(13,35,49,.68); color:#263f4e;
 font-family:Arial,sans-serif; -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}
body.property-page .ly-modal[hidden] { display:none; }
body.property-page .ly-modal .ly-panel { position:relative; display:flex; flex-direction:column; width:100%; max-width:980px; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); margin:auto; border:1px solid #dce5eb; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 20px 64px rgba(10,30,45,.24); }
body.property-page .ly-modal .ly-scroll { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
body.property-page .ly-modal .ly-close { position:absolute; top:12px; right:12px; z-index:5; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid #dce5eb; border-radius:8px; background:rgba(255,255,255,.96); color:#14354d; font:400 28px/1 Arial,sans-serif; cursor:pointer; box-shadow:0 2px 8px rgba(10,30,45,.08); }
body.property-page .ly-modal .ly-stage { position:relative; height:clamp(220px,45vh,480px); background:#102b3c; }
body.property-page .ly-modal .ly-stage-img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
body.property-page .ly-modal .ly-nav { position:absolute; top:50%; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid rgba(220,229,235,.85); border-radius:8px; background:rgba(255,255,255,.94); color:#14354d; font:400 28px/1 Arial,sans-serif; cursor:pointer; }
body.property-page .ly-modal .ly-nav.prev { left:12px; }
body.property-page .ly-modal .ly-nav.next { right:12px; }
body.property-page .ly-modal .ly-stage-count { position:absolute; bottom:12px; left:50%; right:auto; transform:translateX(-50%); padding:5px 10px; border-radius:5px; background:rgba(16,43,60,.85); color:#fff; font-size:12px; line-height:1.4; }
body.property-page .ly-modal .ly-thumbs { display:flex; justify-content:safe center; gap:8px; padding:10px 12px; overflow-x:auto; border-bottom:1px solid #e0e8ee; background:#f7fafc; scrollbar-width:thin; }
body.property-page .ly-modal .ly-thumb { flex:0 0 76px; width:76px; height:54px; padding:0; overflow:hidden; border:2px solid transparent; border-radius:5px; background:#e7edf2; opacity:.7; cursor:pointer; }
body.property-page .ly-modal .ly-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
body.property-page .ly-modal .ly-thumb.is-active { border-color:#14354d; opacity:1; }
body.property-page .ly-modal .ly-detail { box-sizing:border-box; padding:24px 32px 28px; color:#263f4e; text-align:center; }
body.property-page .ly-modal .ly-detail-head { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:14px; margin:0 auto 22px; max-width:760px; text-align:center; }
body.property-page .ly-modal .ly-d-price { color:#14354d; font-size:32px; font-weight:600; line-height:1.2; letter-spacing:-.02em; text-align:center; }
body.property-page .ly-modal .ly-d-price .ly-per { color:#647789; font-size:15px; font-weight:400; }
body.property-page .ly-modal .ly-d-address { margin:7px 0 0; color:#526b7b; font-size:15px; line-height:1.6; text-align:center; overflow-wrap:anywhere; }
body.property-page .ly-modal .ly-btn-primary { display:inline-flex; align-items:center; justify-content:center; max-width:100%; min-height:44px; margin:0; padding:11px 22px; box-sizing:border-box; border:1px solid #14354d; border-radius:7px; background:#14354d; color:#fff; font:500 14px/1.4 Arial,sans-serif; text-align:center; cursor:pointer; box-shadow:none; }
body.property-page .ly-modal .ly-btn-primary:hover { background:#1d4a6b; border-color:#1d4a6b; }
body.property-page .ly-modal .ly-stats { display:flex; flex-wrap:wrap; justify-content:center; align-items:stretch; gap:10px; width:100%; max-width:760px; margin:0 auto; }
body.property-page .ly-modal .ly-stat { flex:0 0 calc((100% - 20px)/3); min-width:0; min-height:64px; padding:11px 12px; box-sizing:border-box; border:1px solid #e0e8ee; border-radius:7px; background:#f7fafc; text-align:center; }
body.property-page .ly-modal .ly-stats:has(> .ly-stat:nth-child(4):last-child) > .ly-stat { flex-basis:calc((100% - 10px)/2); }
body.property-page .ly-modal .ly-stat-k { margin:0 0 5px; color:#647789; font-size:12px; font-weight:400; line-height:1.4; text-align:center; }
body.property-page .ly-modal .ly-stat-v { color:#263f4e; font-size:15px; font-weight:500; line-height:1.5; text-align:center; overflow-wrap:anywhere; }
body.property-page .ly-modal .ly-section-title { margin:24px auto 12px; padding-top:20px; max-width:760px; border-top:1px solid #e0e8ee; color:#14354d; font-size:17px; font-weight:600; line-height:1.4; text-align:center; }
body.property-page .ly-modal .ly-desc { max-width:70ch; margin:0 auto; color:#354f5f; font-size:15px; font-weight:400; line-height:1.75; white-space:pre-line; overflow-wrap:anywhere; text-align:center; }
body.property-page .ly-modal .ly-meta { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 24px; margin:22px auto 0; padding:14px 0 0; max-width:760px; border-top:1px solid #e0e8ee; color:#647789; font-size:12px; line-height:1.6; text-align:center; }
body.property-page .ly-modal .ly-attrib { margin:12px auto 0; max-width:760px; color:#647789; font-size:12px; line-height:1.65; text-align:center; }
body.property-page .ly-modal .ly-attrib summary { margin:10px 0 0; color:#526b7b; font-size:12px; font-weight:500; text-align:center; cursor:pointer; }
body.property-page .ly-modal .ly-attrib details div { margin:10px auto 0; padding:12px; border:1px solid #e0e8ee; border-radius:7px; background:#f7fafc; }
body.property-page .ly-modal :is(button,summary):focus-visible { outline:2px solid #559aaf; outline-offset:2px; }
@media(max-width:600px) {
 body.property-page .ly-modal { padding:8px; }
 body.property-page .ly-modal .ly-panel { height:auto; max-height:calc(100vh - 16px); max-height:calc(100dvh - 16px); border-radius:10px; }
 body.property-page .ly-modal .ly-stage { height:clamp(200px,34vh,320px); }
 body.property-page .ly-modal .ly-detail { padding:20px 16px 24px; }
 body.property-page .ly-modal .ly-d-price { font-size:28px; }
 body.property-page .ly-modal .ly-d-address { font-size:14px; }
 body.property-page .ly-modal .ly-stat,body.property-page .ly-modal .ly-stats:has(> .ly-stat:nth-child(4):last-child) > .ly-stat { flex-basis:calc((100% - 10px)/2); padding:10px 8px; }
 body.property-page .ly-modal .ly-desc { font-size:16px; line-height:1.7; }
 body.property-page .ly-modal .ly-btn-primary { min-height:46px; }
}

/* shared final site-zoom */
/* Match the existing Home desktop sizing on every public website page.
   Keep Home's two existing breakpoints and leave mobile sizing unchanged. */
@media screen and (min-width: 1024px) and (pointer: fine) {
    body.website-page {
        zoom: 0.7;
        min-height: calc(100vh / 0.7);
    }
    body.website-page .image-header-container {
        height: calc(100vh / 0.7);
    }
}

@media screen and (min-width: 901px) {
    body.website-page .image-header-container .overlay-content {
        zoom: 1 !important;
        transform: scale(0.7) !important;
        transform-origin: center center;
    }
    body.website-page [class$="-page-menu"] .menu-bar {
        zoom: 1 !important;
        transform: scale(0.7) !important;
        transform-origin: top left;
        width: calc(142.857143% - 40px);
    }
}

/* shared final property_update_quiet */
/* Small update date centered on the count / clear-filters row. */
body.property-page .filter-panel .filter-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 16px;
}
body.property-page .filter-footer > span[id$="resultCount"] {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
    text-align: left;
}
body.property-page .filter-footer .main-page-update {
    display: block;
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    max-width: 230px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #71808c;
    text-align: center;
    font: 400 11px/1.4 Arial, sans-serif;
}
body.property-page .filter-footer .main-page-update time { font: inherit; color: inherit; }
body.property-page .filter-footer .clear-filters {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    white-space: normal;
}
@media(max-width:767px) {
    body.property-page .filter-panel .filter-footer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    body.property-page .filter-footer .main-page-update { max-width: 100%; font-size: 10px; }
}

#property-page-coverage { margin:24px auto; max-width:1100px; padding:0 16px; box-sizing:border-box; }
#property-page-coverage > .listing-scope-note { margin:0; padding:0; border:0; }
#property-page-coverage > .listing-scope-note[hidden] { display:none !important; }
#property-page-coverage > .listing-scope-note + .listing-scope-note { display:none; }
#property-page-coverage > .listing-scope-note[hidden] + .listing-scope-note:not([hidden]) { display:block; }

/* shared final footer_gallery_colors_v2 */
/* Darker than the active navigation buttons; includes the Home footer strip. */
body.website-page footer.footer,
body.website-page footer.footer.home-footer-strip { background:#0b1f2b; background-image:none; }
/* Neutral photo surround. Photograph sizing and gallery interactions are unchanged. */
body.property-page .ly-modal .ly-stage { background:#fff; }

/* Coverage belongs to the open filters, after the count/date/Clear filters row. */
body.property-page .property-filter-disclosure .filter-footer { margin:16px 0 0; padding:12px 0; border-radius:0; border-top:1px solid #e6edf1; background:transparent; }
body.property-page .property-filter-disclosure .listing-scope-note { margin:0; padding:10px 4px 14px; border:0; border-top:1px solid #e6edf1; border-radius:0; background:transparent; box-shadow:none; color:#657785; font:400 11px/1.6 Arial,sans-serif; text-align:center; }
body.property-page .property-filter-disclosure .listing-scope-note a { color:inherit; text-underline-offset:2px; }

/* FILTER_SYMMETRY_20261112: waterfront gets its own centered, readable row. */
body.agriculture-page .filter-panel .filter-row > .visible-filter-field {order:2;flex:0 0 100%;width:100%;max-width:none;min-width:0;grid-column:1/-1;margin-top:0;}
body.agriculture-page .filter-panel .filter-row > .visible-filter-field > label {display:block;text-align:center;}
body.agriculture-page .filter-panel .filter-row > .visible-filter-field .waterfront-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:600px;box-sizing:border-box;margin:0 auto;gap:4px;}
body.agriculture-page .filter-panel .filter-row > .visible-filter-field .waterfront-choices button {min-width:0;min-height:44px;white-space:normal;font-size:13px;line-height:1.3;padding:8px 6px;}
@media(max-width:600px){body.agriculture-page .filter-panel .filter-row > .visible-filter-field .waterfront-choices {max-width:none;}body.agriculture-page .filter-panel .filter-row > .visible-filter-field .waterfront-choices button {font-size:12px;}}
