/* Property management uses the existing TOKA cream, clay and green palette. */
.property-manager, .property-public-page, .pm-public-list {
  --pm-line: rgba(25, 34, 29, .18);
  --pm-card: #fffdf8;
  --pm-muted: #626862;
}
.property-manager {
  min-width: 0;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem) 5rem;
  overflow-wrap: anywhere;
}
.property-shell { width: min(100%, 76rem); margin-inline: auto; }
.property-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.property-heading h1, .property-public-heading h1 { max-width: 17ch; font-size: clamp(2.8rem, 7vw, 6rem); }
.property-heading > p:last-child { max-width: 43rem; color: var(--pm-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.property-kicker { margin: 0 0 .55rem; color: var(--forest); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.property-section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.property-section-title h2, .property-publish h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.property-section-title p:not(.property-kicker) { max-width: 42rem; margin: .65rem 0 0; color: var(--pm-muted); }
.property-create, .property-panel, .property-publish { min-width: 0; margin-bottom: 2rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--pm-line); background: var(--pm-card); }
.property-create { border-top: .35rem solid var(--forest); }
.property-form, .property-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.property-field { display: grid; align-content: start; gap: .4rem; min-width: 0; }
.property-field label, .property-field-label { font-weight: 700; }
.property-field label span { color: var(--pm-muted); font-size: .9em; font-weight: 400; }
.property-field input, .property-field select, .property-field textarea { width: 100%; min-width: 0; min-height: 3rem; padding: .65rem .75rem; border: 1px solid #929b92; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.property-field textarea { min-height: 9rem; resize: vertical; }
.property-field input[type="file"] { padding: .45rem; }
.property-field input:focus-visible, .property-field select:focus-visible, .property-field textarea:focus-visible, .property-button:focus-visible, .property-back:focus-visible, .property-unpublish button:focus-visible, .property-check:focus-within { outline: 3px solid rgba(189, 90, 56, .4); outline-offset: 2px; border-color: var(--clay); }
.property-field small { color: var(--pm-muted); font-size: .88rem; }
.property-field-wide { grid-column: 1 / -1; }
.property-field-action { align-self: end; }
.property-button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--forest); border-radius: 0; font: inherit; font-weight: 750; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.property-button-primary { border-color: var(--clay); background: var(--clay); color: #fff; }
.property-button-primary:hover { border-color: #a94c2e; background: #a94c2e; }
.property-button-secondary { background: transparent; color: var(--forest); }
.property-button-secondary:hover { background: #e8ede5; }
.property-notice { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-left: .35rem solid var(--forest); background: #e9efe7; }
.property-list-section { margin-top: clamp(3rem, 7vw, 5rem); }
.property-count { display: inline-grid; min-width: 2.5rem; min-height: 2.5rem; place-items: center; border: 1px solid var(--pm-line); border-radius: 50%; color: var(--forest); font-weight: 700; }
.property-list { border-top: 1px solid var(--pm-line); }
.property-list-card { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-width: 0; padding: 1.35rem .25rem; border-bottom: 1px solid var(--pm-line); text-decoration: none; }
.property-list-card:hover .property-list-copy strong, .property-list-card:hover .property-list-action { color: var(--clay); }
.property-list-mark { display: grid; width: 3rem; height: 3rem; place-items: center; background: #e8ede5; color: var(--forest); font-family: var(--serif); font-size: 1.8rem; }
.property-list-copy { display: grid; min-width: 0; gap: .2rem; }
.property-list-meta { color: var(--forest); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.property-list-copy strong { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 400; line-height: 1.15; }
.property-list-copy > span:last-child { color: var(--pm-muted); }
.property-list-action { display: inline-flex; gap: .65rem; align-items: center; font-weight: 700; white-space: nowrap; }
.property-empty { display: flex; align-items: flex-start; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem); background: #ebe8e1; }
.property-empty h3 { margin: 0; font-size: 1.65rem; }
.property-empty p { max-width: 42rem; margin-bottom: 0; color: var(--pm-muted); }
.property-empty-mark { color: var(--clay); font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.property-back { display: inline-block; margin-bottom: 1.5rem; color: var(--forest); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.property-editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.property-editor-heading h1 { overflow-wrap: anywhere; }
.property-editor-heading > .property-button { flex: 0 0 auto; }
.property-editor-form { min-width: 0; }
.property-media-panel { padding-bottom: 0; }
.property-media-list { border-top: 1px solid var(--pm-line); }
.property-media-item { display: grid; grid-template-columns: minmax(11rem, .7fr) minmax(0, 1.3fr); gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--pm-line); }
.property-media-item > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ebe8e1; }
.property-media-fields { display: grid; align-content: start; gap: .9rem; min-width: 0; }
.property-media-options { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; }
.property-check { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; cursor: pointer; }
.property-check input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--forest); }
.property-remove { color: #7c3826; }
.property-position { display: grid; grid-template-columns: auto 5rem; align-items: center; gap: .5rem; }
.property-position span { font-weight: 700; }
.property-position input { min-height: 2.5rem; padding: .3rem; }
.property-empty-inline { margin: 0; padding: 1.2rem; background: #ebe8e1; color: var(--pm-muted); }
.property-upload { margin-inline: calc(clamp(1.2rem, 3vw, 2rem) * -1); padding: 1.5rem clamp(1.2rem, 3vw, 2rem); border-top: 1px solid var(--pm-line); background: #f4f1e9; }
.property-upload h3 { margin: 0; font-size: 1.5rem; }
.property-upload > p { margin: .4rem 0 1.25rem; color: var(--pm-muted); }
.property-upload-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem; }
.property-reuse-images { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--pm-line); }
.property-reuse-images h4 { margin: 0; font-size: 1.15rem; }
.property-reuse-images > p { margin: .35rem 0 1rem; color: var(--pm-muted); }
.property-original-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.property-original-thumbnails figure { min-width: 0; margin: 0; background: #ebe8e1; }
.property-original-thumbnails img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.property-original-thumbnails figcaption { padding: .35rem .45rem; color: var(--pm-muted); font-size: .8rem; overflow-wrap: anywhere; }
.property-original-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem; }
.property-internal-fields { padding-top: .85rem; border-top: 1px solid var(--pm-line); }
.property-internal-fields summary { color: var(--forest); font-weight: 700; cursor: pointer; }
.property-internal-fields > p { color: var(--pm-muted); }
.property-internal-fields .property-form-grid { margin-top: 1rem; }
.property-unit-list { display: grid; gap: .75rem; }
.property-unit { min-width: 0; border: 1px solid var(--pm-line); background: #fff; }
.property-unit summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.property-unit summary::-webkit-details-marker { display: none; }
.property-unit summary > span:first-child { display: grid; gap: .2rem; min-width: 0; }
.property-unit summary strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.property-unit summary small { color: var(--pm-muted); }
.property-unit-toggle { color: var(--forest); font-weight: 700; white-space: nowrap; }
.property-unit[open] .property-unit-toggle { font-size: 0; }
.property-unit[open] .property-unit-toggle::after { content: 'Schließen −'; font-size: 1rem; }
.property-unit-form { padding: 1.2rem; border-top: 1px solid var(--pm-line); background: #fffdf8; }
.property-unit-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.property-add-unit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem; margin-top: 1.25rem; padding: 1.25rem; border: 1px dashed rgba(25, 34, 29, .35); }
.property-publish { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-left: .35rem solid var(--forest); background: #ebe8e1; }
.property-publish > div:first-child { max-width: 44rem; }
.property-publish p:not(.property-kicker) { color: var(--pm-muted); }
.property-publish .property-published-state { color: var(--forest); font-weight: 700; }
.property-publish-actions { display: grid; flex: 0 0 min(100%, 17rem); gap: .7rem; }
.property-unpublish { margin-top: 1.5rem; text-align: right; }
.property-unpublish button { min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid transparent; background: transparent; color: #843b28; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Public detail */
.property-public-page { min-height: 65vh; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) 5rem; overflow-wrap: anywhere; }
.property-public-shell { width: min(100%, 76rem); margin-inline: auto; }
.property-preview-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin: 0 auto 2rem; padding: .9rem 1.2rem; width: min(calc(100% - 2rem), 76rem); border-left: .35rem solid var(--clay); background: #fff0df; }
.property-preview-banner a { font-weight: 700; text-underline-offset: .18em; }
.property-public-heading { max-width: 60rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.property-public-heading h1 { overflow-wrap: anywhere; }
.property-public-type { color: var(--pm-muted); font-size: 1.1rem; }
.property-public-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
.property-public-gallery figure { min-width: 0; margin: 0; background: #ebe8e1; }
.property-public-gallery figure.property-public-cover { grid-column: 1 / -1; }
.property-public-gallery img { display: block; width: 100%; max-height: 42rem; aspect-ratio: 4 / 3; object-fit: cover; }
.property-public-gallery .property-public-cover img { aspect-ratio: 16 / 8; }
.property-public-gallery figcaption { padding: .65rem .8rem; color: var(--pm-muted); }
.property-public-description { max-width: 54rem; margin: 0 auto clamp(3rem, 7vw, 5rem); }
.property-public-description h2, .property-public-units > h2 { font-size: clamp(2rem, 4vw, 3rem); }
.property-public-description p { white-space: pre-line; font-size: 1.12rem; line-height: 1.8; }
.property-public-unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.property-public-unit { min-width: 0; padding: 1.4rem; border: 1px solid var(--pm-line); background: var(--pm-card); }
.property-public-unit-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.property-public-unit-heading h3 { margin: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.property-public-status { flex: 0 1 auto; max-width: 100%; padding: .3rem .5rem; border: 1px solid var(--pm-line); color: var(--forest); font-size: .8rem; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.property-public-facts { margin: 1.2rem 0; border-top: 1px solid var(--pm-line); }
.property-public-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--pm-line); }
.property-public-facts dt { color: var(--pm-muted); }
.property-public-facts dd { margin: 0; text-align: right; }
.property-public-unit-description { white-space: pre-line; color: var(--pm-muted); }

/* Public overview cards used by the matching property index template. */
.pm-public-list { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.pm-public-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; min-width: 0; border-top: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); background: rgba(255, 253, 248, .55); }
.pm-public-card > a { display: block; min-width: 0; overflow: hidden; background: #ebe8e1; }
.pm-public-card > a img { display: block; width: 100%; height: 100%; min-height: 19rem; max-height: 33rem; object-fit: cover; transition: transform .25s ease; }
.pm-public-card > a:hover img { transform: scale(1.02); }
.pm-public-card > div { align-self: center; min-width: 0; padding: clamp(1.4rem, 4vw, 3.5rem); }
.pm-public-card .eyebrow { margin-bottom: .75rem; color: var(--forest); }
.pm-public-card h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.8rem); overflow-wrap: anywhere; }
.pm-public-card h2 a { text-decoration: none; }
.pm-public-card h2 a:hover { color: var(--clay); }
.pm-public-card > div > p:not(.eyebrow) { max-width: 40rem; color: var(--pm-muted); }
.pm-public-card .button { margin-top: .5rem; }

@media (max-width: 760px) {
  .property-editor-heading, .property-publish { align-items: stretch; flex-direction: column; }
  .property-editor-heading > .property-button { align-self: flex-start; }
  .property-publish-actions { flex-basis: auto; width: 100%; }
  .property-upload-form, .property-original-form, .property-add-unit { grid-template-columns: 1fr; }
  .property-list-card { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .75rem; }
  .property-list-mark { width: 2.5rem; height: 2.5rem; }
  .property-list-action { grid-column: 2; }
}
@media (max-width: 560px) {
  .property-form, .property-form-grid { grid-template-columns: minmax(0, 1fr); }
  .property-field-wide { grid-column: auto; }
  .property-media-item { grid-template-columns: minmax(0, 1fr); }
  .property-original-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-media-item > img { max-height: 20rem; }
  .property-media-options { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .property-position { grid-template-columns: auto 5rem; }
  .property-unit summary { align-items: flex-start; }
  .property-unit-actions { align-items: stretch; flex-direction: column; }
  .property-unit-actions .property-button { width: 100%; }
  .property-public-gallery { grid-template-columns: minmax(0, 1fr); }
  .property-public-gallery figure.property-public-cover { grid-column: auto; }
  .property-public-gallery .property-public-cover img, .property-public-gallery img { aspect-ratio: 4 / 3; }
  .property-public-facts div { align-items: flex-start; }
  .property-public-facts dd { overflow-wrap: anywhere; }
  .property-empty { flex-direction: column; }
  .pm-public-card { grid-template-columns: minmax(0, 1fr); }
  .pm-public-card > a img { min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-public-card > a img { transition-duration: .01ms; }
}
@media (prefers-reduced-motion: reduce) {
  .property-manager *, .property-public-page *, .property-preview-banner * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
