.listing-modal[hidden], .project-modal[hidden], .notary-modal[hidden] { display: none; }
.listing-modal, .project-modal, .notary-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; }
.listing-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 34, .7); backdrop-filter: blur(5px); }
.listing-dialog, .notary-dialog { position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 28px 90px rgba(4, 30, 38, .34); outline: 0; }
.listing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.listing-head span { color: var(--brand-green); font-size: 13px; font-weight: 900; }
.listing-head h2, .notary-dialog h2 { margin: 3px 0 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; }
.listing-close { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 25px; line-height: 1; }
.listing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.listing-grid label, .document-field, .full-field { display: grid; gap: 7px; }
.listing-grid label > span, .document-field legend, .full-field > span { font-size: 14px; font-weight: 900; }
.listing-grid input, .listing-grid select, .document-field select, .full-field input, .full-field select, .full-field textarea { width: 100%; min-height: 48px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.listing-grid input:focus, .listing-grid select:focus, .document-field select:focus, .full-field input:focus, .full-field textarea:focus { border-color: var(--brand-green); outline: 3px solid rgba(7, 84, 58, .1); }
.document-field { margin: 18px 0 0; padding: 17px; border: 1px solid #d4e5dd; border-radius: 13px; background: #f7fbf9; }
.document-field legend { padding: 0 7px; color: var(--brand-green); }
.document-field p { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 0; color: #53655e; font-size: 13px; line-height: 1.55; }
.document-field p b { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; background: #e7b948; color: #fff; }
.listing-primary { width: 100%; margin-top: 18px; border: 0; border-radius: 10px; padding: 14px 18px; background: var(--brand-green); color: #fff; font-weight: 900; }
.document-summary { display: grid; gap: 3px; margin-top: 13px; padding: 10px 11px; border: 1px solid #dce8e2; border-radius: 9px; background: #f8fbfa; }
.document-summary > span { color: #234f3f; font-size: 13px; font-weight: 900; }
.document-summary > small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.notary-request { justify-self: start; margin-top: 5px; padding: 0; border: 0; background: transparent; color: var(--brand-green); font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.notary-dialog { width: min(520px, 100%); text-align: center; }
.notary-dialog > .listing-close { position: absolute; inset-inline-end: 18px; top: 18px; }
.notary-icon { width: 56px; height: 56px; margin: 3px auto 14px; display: grid; place-items: center; border-radius: 15px; background: #e7f2ed; color: var(--brand-green); font-size: 28px; font-weight: 900; }
.notary-dialog > p { margin: 12px auto 18px; color: var(--muted); line-height: 1.7; }
.notary-location { display: grid; gap: 3px; padding: 13px; border-radius: 10px; background: #f4f7f6; }
.notary-location small { color: var(--muted); }
.notary-independence { display: block; margin-top: 13px; color: var(--muted); line-height: 1.55; }
body.listing-is-open { overflow: hidden; }
body.detail-is-open { overflow: hidden; }
.property-details-button { width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--brand-green); border-radius: 8px; background: #fff; color: var(--brand-green); font-weight: 850; }
.property-detail-modal[hidden] { display: none; }
.property-detail-modal { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 20px; }
.property-detail-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 34, .72); backdrop-filter: blur(5px); }
.property-detail-dialog { position: relative; width: min(760px, 100%); overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(4, 30, 38, .32); outline: none; }
.property-detail-close { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; }
.property-detail-photo { min-height: 370px; background: #dce9e5 center/cover no-repeat; }
.property-detail-body { padding: 34px 28px; }
.property-detail-kicker { color: var(--brand-green); font-size: 13px; font-weight: 900; }
.property-detail-body h2 { margin: 7px 0 12px; font-size: 27px; line-height: 1.3; }
.property-detail-price { font-size: 22px; }
.property-detail-location, .property-detail-document { color: var(--muted); }
.property-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.property-detail-actions button { padding: 11px; border: 1px solid var(--brand-green); border-radius: 9px; background: #fff; color: var(--brand-green); font-weight: 850; }
.property-detail-actions button:last-child { background: var(--brand-green); color: #fff; }
.property-detail-status { display: block; margin-top: 13px; color: var(--muted); }
@media (max-width: 650px) {
  .property-detail-modal { align-items: end; padding: 0; }
  .property-detail-dialog { max-height: 92vh; overflow: auto; grid-template-columns: 1fr; border-radius: 20px 20px 0 0; }
  .property-detail-photo { min-height: 230px; }
  .property-detail-body { padding: 24px 18px; }
}
[dir="ltr"] .notary-request { justify-self: start; }
.listing-progress { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: 5px; margin: 0 0 22px; overflow-x: auto; padding-bottom: 5px; }
.listing-progress button { min-width: 100px; padding: 7px 4px 9px; border: 0; border-bottom: 3px solid #dce5e1; background: transparent; color: #73817b; }
.listing-progress button b { width: 25px; height: 25px; margin: 0 auto 5px; display: grid; place-items: center; border-radius: 50%; background: #e8eeeb; font-size: 12px; }
.listing-progress button span { display: block; font-size: 11px; font-weight: 800; white-space: nowrap; }
.listing-progress button.is-active, .listing-progress button.is-complete { border-color: var(--brand-green); color: var(--brand-green); }
.listing-progress button.is-active b, .listing-progress button.is-complete b { background: var(--brand-green); color: #fff; }
.listing-step[hidden] { display: none; }
.listing-step { min-height: 310px; animation: listing-step-in .18s ease; }
@keyframes listing-step-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step-intro { display: grid; gap: 3px; margin-bottom: 16px; }
.step-intro strong { font-size: 20px; }
.step-intro small { color: var(--muted); line-height: 1.5; }
.project-entry { margin-top: 17px; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #d9e7e1; border-radius: 13px; background: #f4f8f6; }
.project-entry > div { display: flex; align-items: center; gap: 11px; }
.project-entry > div > b { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-green); color: #fff; font-size: 21px; }
.project-entry span { display: grid; gap: 2px; }
.project-entry small { color: var(--muted); line-height: 1.45; }
.project-entry button { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--brand-green); border-radius: 9px; background: #fff; color: var(--brand-green); font-weight: 900; }
.specific-fields { display: grid; gap: 13px; margin-top: 17px; }
.specific-group { padding: 15px; border: 1px solid #dbe7e1; border-radius: 13px; background: #fafcfb; }
.specific-group h3 { margin: 0 0 12px; color: var(--brand-green); font-size: 16px; }
.specific-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.specific-grid label { display: grid; gap: 6px; }
.specific-grid label > span { font-size: 13px; font-weight: 800; }
.specific-grid input, .specific-grid select { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.listing-grid .wide { grid-column: 1 / -1; }
.map-picker { min-height: 105px; margin-top: 15px; padding: 16px; display: grid; gap: 12px; border: 1px dashed #9fbbb0; border-radius: 13px; background: linear-gradient(135deg, #f3f8f6, #e8f1ed); }
.map-picker-heading, .map-picker-heading > div, .map-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-picker-heading > div { justify-content: flex-start; font-weight: 900; }
.map-picker-heading b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-green); color: #fff; font-size: 20px; }
.map-picker button, .title-generator button { padding: 10px 15px; border: 1px solid var(--brand-green); border-radius: 9px; background: #fff; color: var(--brand-green); font-weight: 900; }
.map-picker.is-set { border-style: solid; border-color: var(--brand-green); }
.listing-map { width: 100%; height: 300px; overflow: hidden; border: 1px solid #c8d9d1; border-radius: 11px; background: #dde8e3; direction: ltr; }
.listing-map .leaflet-control-attribution { font-size: 11px; }
.map-picker-footer { color: #52616d; font-size: 13px; font-weight: 700; line-height: 1.55; }
.map-picker-footer span { flex: 1 1 auto; }
.map-picker-footer button { flex: 0 0 auto; }
.admin-data-note { margin: 10px 0 0; color: #52616d; font-size: 12px; font-weight: 700; }
.privacy-choice, .confirmation { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; padding: 13px; border-radius: 11px; background: #f7f9f8; }
.privacy-choice input, .confirmation input, .inline-check input, .choice-field input { width: 18px; height: 18px; accent-color: var(--brand-green); }
.privacy-choice span { display: grid; gap: 2px; }
.privacy-choice small { color: var(--muted); }
.conditional-panel { margin-top: 17px; padding: 16px; border: 1px solid #dbe7e1; border-radius: 13px; background: #f9fbfa; }
.conditional-panel[hidden] { display: none; }
.conditional-panel > strong { display: block; margin-bottom: 12px; color: var(--brand-green); }
.conditional-panel output { min-height: 48px; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #eef4f1; font-weight: 900; }
.inline-check { display: flex; gap: 8px; align-items: center; margin-top: 11px; }
.choice-field { margin: 15px 0 0; padding: 13px; display: flex; flex-wrap: wrap; gap: 9px 18px; border: 1px solid #dbe7e1; border-radius: 11px; }
.choice-field legend { padding: 0 6px; font-weight: 900; }
.choice-field label { display: flex; gap: 7px; align-items: center; font-size: 14px; }
.full-field { margin-bottom: 14px; }
.title-generator { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.media-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.media-grid label, .future-media { min-height: 92px; padding: 13px; display: grid; align-content: center; gap: 7px; border: 1px solid #dce6e2; border-radius: 11px; background: #fafcfb; }
.media-grid label > span { font-weight: 900; }
.media-grid label small { color: var(--muted); }
.media-grid input[type="file"] { width: 100%; }
.future-media { grid-template-columns: auto 1fr; align-items: center; }
.future-media b { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: #e8f1ed; color: var(--brand-green); }
.photo-preview { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; }
.photo-preview:empty { display: none; }
.photo-item { position: relative; width: 126px; flex: 0 0 126px; padding: 5px; border: 1px solid #dce6e2; border-radius: 10px; background: #fff; }
.photo-item.is-cover { border: 2px solid var(--brand-green); }
.photo-item img { width: 100%; height: 72px; display: block; object-fit: cover; border-radius: 7px; }
.photo-item span { display: block; margin: 5px 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.photo-item em { position: absolute; inset-inline-start: 8px; top: 8px; padding: 3px 6px; border-radius: 20px; background: var(--brand-green); color: #fff; font-size: 9px; font-style: normal; font-weight: 900; }
.photo-order { display: flex; gap: 4px; }
.photo-order button { flex: 1; padding: 3px; border: 1px solid #d7e2dd; border-radius: 5px; background: #f7faf8; color: var(--brand-green); }
.media-rule { display: flex; gap: 9px; margin-top: 12px; padding: 11px 13px; border-radius: 10px; background: #fff8e8; color: #725a1f; font-size: 13px; }
.equipment-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.confirmation { align-items: center; font-weight: 800; }
.contact-options { margin-top: 16px; }
.completion-card { margin-top: 15px; padding: 15px; border: 1px solid #d8e7e0; border-radius: 12px; background: #f5f9f7; }
.completion-card > div { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 8px; font-weight: 900; }
.completion-card progress { width: 100%; height: 10px; accent-color: var(--brand-green); }
.completion-card small { display: block; margin-top: 7px; color: var(--muted); }
.project-dialog { width: min(940px, 100%); }
.project-unit { margin-top: 18px; padding: 16px; border: 1px solid #d9e7e1; border-radius: 13px; background: #f8fbfa; }
.listing-actions { position: sticky; bottom: -26px; margin: 22px -26px -26px; padding: 14px 26px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #e4ebe7; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.listing-actions .listing-primary, .listing-secondary { width: auto; min-width: 118px; margin: 0; padding: 12px 18px; }
.listing-secondary { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 900; }
.listing-actions #listingStepCounter { margin-inline: auto; color: var(--muted); font-size: 13px; font-weight: 900; }
.listing-actions #listingStepCounter { direction: ltr; }
@media (max-width: 650px) {
  .listing-modal, .project-modal, .notary-modal { align-items: end; padding: 0; }
  .listing-dialog, .notary-dialog { max-height: 92vh; border-radius: 20px 20px 0 0; padding: 20px 17px 24px; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-progress { grid-template-columns: repeat(6, 82px); }
  .listing-progress button { min-width: 82px; }
  .listing-step { min-height: 360px; }
  .listing-grid .wide { grid-column: auto; }
  .map-picker-heading, .map-picker-footer { align-items: stretch; flex-direction: column; }
  .listing-map { height: 260px; }
  .title-generator, .media-grid { grid-template-columns: 1fr; }
  .equipment-list { grid-template-columns: 1fr 1fr; }
  .specific-grid { grid-template-columns: 1fr 1fr; }
  .project-entry { align-items: stretch; flex-direction: column; }
  .project-entry button { width: 100%; }
  .listing-actions { bottom: -24px; margin: 20px -17px -24px; padding: 12px 17px; }
  .listing-actions .listing-primary, .listing-secondary { min-width: 96px; }
}
