/* Adopted from “ds apple design improved.html”, Apple Design revision.
   Final contextual-button-scale revision, scoped to listing detail, previews,
   photo viewer and owner editing; the directory retains its existing layout. */
:root {
  --accent-action: #B54725;
  --accent-action-hover: #963A1D;
  --focus: #8B351C;
  --control-border: #858580;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --surface: #fff;
  --radius-control: .75rem;
  --press-scale: .98;
}
#listingDetail, #sellerPageOverlay, .map-preview, #itemSheet {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
#listingDetail { background: #fff; scroll-padding-top: 6rem; }
#listingDetail ::selection, .map-preview ::selection { background: var(--accent-soft); color: var(--ink); }
#listingDetail :focus-visible, .map-preview :focus-visible, #itemSheet :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#listingDetail h1:focus { outline: none; }
#listingDetail button, #listingDetail a, .map-preview button, .map-preview a, #itemSheet button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#listingDetail button, .map-preview button, #itemSheetClose, .map-preview-open, #listingDetail .contact-line {
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, transform 100ms ease-out;
}
#listingDetail button:not(:disabled):active, .map-preview button:not(:disabled):active, #itemSheetClose:active, .map-preview-open:active, #listingDetail .contact-line:active { transform: scale(var(--press-scale)); transition-duration: 0s; }
#listingDetail button:disabled, .map-preview button:disabled { opacity: 1; background: #e6e6e3; color: #666660; border-color: #d0d0cb; box-shadow: none; transform: none; }
.property-header { position: sticky; top: 0; z-index: 20; padding-block: .625rem; background: var(--surface); border-bottom: 1px solid var(--border-light); }
:is(#listingDetail,#sellerPageOverlay) .property-header .detail-back-btn { min-height: 2.75rem; gap: .625rem; padding: .6875rem 1rem; font-size: .875rem; font-weight: 600; line-height: 1.35; border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--surface); }
.property-heading h1 { font-size: clamp(1.75rem, 3vw, 1.875rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.property-heading p, .property-description { font-size: 1rem; }
.property-page h2 { font-size: 1.5rem; font-weight: 650; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 1.25rem; }
#listingDetail .property-page p { line-height: 1.65; }
.property-share, #listingDetail .save-btn--pill { color: var(--ink); min-height: 2.75rem; padding: .625rem 1rem; font-size: 1rem; font-weight: 600; line-height: 1.35; border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--surface); text-decoration: none; white-space: normal; }
#listingDetail .save-btn--pill svg { width: 1.25rem; height: 1.25rem; }
.property-photo { border-radius: 0; }
.property-all-photos { min-height: 2.75rem; padding: .6875rem 1rem; font: inherit; font-size: .875rem; font-weight: 600; border-color: var(--control-border); border-radius: var(--radius-pill); }
.property-nav { padding-block: .75rem; gap: 1rem; }
.property-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .25rem; font-size: .875rem; font-weight: 600; }
.property-content section, #propertyContact { scroll-margin-top: 6rem; }
.property-content section { padding-bottom: var(--space-8); margin-bottom: var(--space-8); }
.property-service-name, .property-service-price { font-size: 1rem; line-height: 1.5; }
.property-service-price { font-weight: 600; }
.property-service-unspecified, #listingDetail .provenance { font-size: .875rem; line-height: 1.5; }
#listingDetail .detail-badge { min-height: 2rem; padding: .3125rem .75rem; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.property-contact { top: 6rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border-light); border-radius: 1rem; }
.property-contact p { font-size: .9375rem; }
.property-contact .contact-line { min-height: 3rem; padding: .75rem 1rem; font-size: 1rem; font-weight: 600; line-height: 1.35; border-radius: var(--radius-pill); }
.property-contact-location { font-size: .875rem; }
#listingDetail .maps-link, #listingDetail .owner-edit-btn, .property-map-action .contact-map-pill { min-height: 2.75rem; padding: .6875rem 1rem; display: inline-flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 600; line-height: 1.35; border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--surface); white-space: normal; }
#listingDetail .owner-edit-btn { text-align: left; }
#listingDetail .maps-link svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
#listingDetail .verified-badge, .map-preview .verified-badge { min-height: 2rem; padding: .3125rem .75rem; font-size: .875rem; font-weight: 600; line-height: 1.35; border: 0; border-radius: var(--radius-pill); background: #e6f0fc; color: #1856a0; vertical-align: middle; }
/* The supplied system uses a single neutral social/contact component. */
:is(#listingDetail,#sellerPageOverlay) .property-contact .contact-icon-btn, .listing-preview-popup .map-preview .contact-icon-btn, #itemSheet .map-preview .contact-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem;
  color: var(--ink); background: var(--surface); padding: 0;
  border: 1px solid var(--border); border-radius: 50%; box-shadow: none;
}
#listingDetail .contact-icon-btn svg, .map-preview .contact-icon-btn svg { width: 1.25rem; height: 1.25rem; display: block; flex-shrink: 0; }
.listing-preview-popup .leaflet-popup-content-wrapper { border-radius: 1rem; box-shadow: var(--shadow-lg); }
.listing-preview-popup a.leaflet-popup-close-button, #itemSheetClose, .map-preview .save-btn--card {
  width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%; box-shadow: var(--shadow-sm); color: var(--ink);
}
.listing-preview-popup a.leaflet-popup-close-button { top: .75rem; right: .75rem; font-size: 1.5rem; line-height: 1; }
.map-preview .save-btn--card svg { width: 1.25rem; height: 1.25rem; }
.map-preview-body { padding: 1rem 1.25rem 1.25rem; }
.map-preview-body h2, #itemSheet .map-preview-body h2 { font-size: 1.375rem; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.map-preview-services, .map-preview-address, .map-preview-description,
#itemSheet .map-preview-services, #itemSheet .map-preview-address, #itemSheet .map-preview-description { font-size: .875rem; line-height: 1.5; }
.map-preview-services { letter-spacing: .01em; }
.map-preview-price { font-size: 1rem; line-height: 1.5; }
.map-preview-contacts { gap: .75rem; }
.map-preview .contact-line, #itemSheet .map-preview-contacts .contact-line { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .875rem; line-height: 1.35; }
.map-preview .contact-icon-row { gap: .5rem; }
.map-preview-open, #itemSheet .map-preview-open { min-height: 3rem; font-size: 1rem; font-weight: 600; line-height: 1.35; padding: .75rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius-pill); }
#itemSheetOverlay { background: rgba(0,0,0,var(--sheet-scrim-opacity,.28)); }
#itemSheet { animation: none; max-height: min(90dvh, 50rem); overflow-y: auto; overscroll-behavior: contain; border-radius: 1.25rem 1.25rem 0 0; background: var(--surface); }
#itemSheet .map-preview-photo { height: clamp(8rem, 22dvh, 11.5rem); }
#itemSheet .map-preview-body { padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); }
#itemSheetClose { top: 1.25rem; right: 1rem; }
#itemSheetHandle { width: 5rem; height: 2.75rem; top: 0; touch-action: none; background: transparent; border: 0; box-shadow: none; }
#itemSheetHandle::after { margin-top: .25rem; background: #858580; }
#itemSheet .map-preview-open { position: sticky; bottom: 0; }
@media (hover:hover) {
  #listingDetail .contact-icon-btn:hover, .map-preview .contact-icon-btn:hover, .property-share:hover, #listingDetail .save-btn--pill:hover, #listingDetail .detail-back-btn:hover { background: #ededeb; border-color: var(--control-border); transform: none; }
}
@media (max-width: 680px) {
  .property-page { padding-inline: 1rem; }
  .property-heading h1 { font-size: 1.75rem; }
  .property-gallery { height: 18rem; }
  .property-header { padding-inline: 1rem; }
  .property-page h2 { font-size: 1.375rem; }
  .property-actions { gap: .5rem; }
  .property-contact { padding: 1.25rem; }
  .property-facts li { padding-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  #listingDetail, #listingDetail *, .map-preview *, #itemSheet { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  #listingDetail button:active, .map-preview button:active, .map-preview-open:active, #itemSheetClose:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .property-header { background: var(--surface); backdrop-filter: none; } #itemSheetOverlay { background: rgba(41,41,41,.7); } }
@media (prefers-contrast: more) {
  #listingDetail, #sellerPageOverlay, .map-preview, #itemSheet { --ink-soft: #404040; --border: #696969; --border-light: #777; --control-border: #444; }
  .property-header { background: var(--surface); backdrop-filter: none; }
  .property-contact, #listingDetail .contact-icon-btn, .map-preview .contact-icon-btn { border-color: #444; }
}
.map-preview-contacts { border-top: 1px solid var(--border-light); padding-top: .75rem; }
.map-preview .contact-line { border: 0; padding: 0; }
.property-contact .contact-line { border: 0; }
#photoLightboxOverlay { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
#photoLightboxOverlay .lightbox-close { width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; }
#photoLightboxOverlay :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Final DS contextual scale: 40px utility, 44px primary and coarse touch. */
#listingDetail, #sellerPageOverlay, .map-preview, #itemSheet, #ownerModalOverlay, #photoLightboxOverlay, .property-map-dialog {
  --bg: #fff; --ink: #222; --ink-soft: #717171; --border: #ddd;
  --border-light: #ebebeb; --accent: #ee6f44; --accent-dark: #a74e30;
  --accent-soft: #fdeee9; --radius-lg: 1rem; --radius-md: .75rem; --radius-pill: 999px;
  --action-font-size: .875rem; --action-font-weight: 600;
  --action-min-height: 2.5rem; --action-padding-inline: .875rem;
  --action-line-height: 1.3;
}
:is(#listingDetail,#sellerPageOverlay) .property-header .detail-back-btn,
:is(#listingDetail,#sellerPageOverlay) .property-share, #listingDetail .save-btn--pill,
#listingDetail .property-all-photos, #listingDetail .owner-edit-btn,
#listingDetail .maps-link, :is(#listingDetail,#sellerPageOverlay) .property-contact .contact-line,
:is(#listingDetail,#sellerPageOverlay) .comp-website-btn, .map-preview .contact-line,
#itemSheet .map-preview-contacts .contact-line, #ownerModalOverlay .btn {
  font-family: inherit; font-size: var(--action-font-size); font-weight: 600;
  line-height: var(--action-line-height); min-height: var(--action-min-height); height: auto;
  padding: .5625rem var(--action-padding-inline); letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  box-sizing: border-box; white-space: normal;
}
#listingDetail .detail-back-btn svg, #listingDetail .owner-edit-btn svg,
#listingDetail .maps-link svg, :is(#listingDetail,#sellerPageOverlay) .property-share svg,
#listingDetail .property-all-photos svg, #listingDetail .save-btn--pill svg,
:is(#listingDetail,#sellerPageOverlay) .contact-line svg, :is(#listingDetail,#sellerPageOverlay) .comp-website-btn svg,
.map-preview .contact-line svg { width: 1rem; height: 1rem; flex-shrink: 0; }
:is(#listingDetail,#sellerPageOverlay) .property-header .detail-back-btn {
  max-width: 100%; flex-shrink: 1; margin: 0; border: 0;
  border-radius: var(--radius-pill); background: var(--border-light); box-shadow: none;
}
:is(#listingDetail,#sellerPageOverlay) .property-header .detail-back-btn::before { content: none; }
#listingDetail .save-btn--pill { border-color: var(--border); }
#listingDetail .save-btn--pill.saved { background: #fff3f6; border-color: #f3b6c8; }
#listingDetail .property-owner .owner-edit-btn {
  display: flex; width: 100%; max-width: 100%; margin-top: 0;
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  background: transparent; color: var(--ink-soft); text-align: left;
}
:is(#listingDetail,#sellerPageOverlay) .property-contact .contact-line, .map-preview .contact-line,
#itemSheet .map-preview-contacts .contact-line {
  background: var(--surface); color: var(--ink); border: 1px solid var(--control-border);
  border-radius: var(--radius-pill); text-decoration: none;
}
:is(#listingDetail,#sellerPageOverlay) .property-contact .contact-line { width: 100%; margin-bottom: .75rem; }
:is(#listingDetail,#sellerPageOverlay) .property-contact-actions { display: grid; gap: .75rem; }
:is(#listingDetail,#sellerPageOverlay) .property-contact-actions .contact-line { margin: 0; }
:is(#listingDetail,#sellerPageOverlay) .property-contact .contact-icon-row { margin-top: 1rem; }
:is(#listingDetail,#sellerPageOverlay) a.detail-primary-cta, .map-preview-open, #itemSheet .map-preview-open,
#ownerModalOverlay .btn-primary {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .625rem 1rem; font-size: .9375rem;
  font-weight: 600; line-height: 1.3; letter-spacing: 0;
  border: 1px solid var(--ink); border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; text-decoration: none;
}
#listingDetail .property-nav a { min-height: 2.5rem; }
@media (pointer: coarse) {
  :is(#listingDetail,#sellerPageOverlay) .property-header .detail-back-btn, :is(#listingDetail,#sellerPageOverlay) .property-share,
  #listingDetail .save-btn--pill, #listingDetail .property-all-photos,
  #listingDetail .owner-edit-btn, #listingDetail .maps-link,
  :is(#listingDetail,#sellerPageOverlay) .property-contact .contact-line, .map-preview .contact-line,
  #itemSheet .map-preview-contacts .contact-line, #ownerModalOverlay .btn,
  #listingDetail .property-nav a { min-height: 2.75rem; }
}
#itemSheet .map-preview-action {
  position: sticky; bottom: calc(-1.25rem - env(safe-area-inset-bottom));
  background: var(--surface); padding: .75rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  margin-bottom: calc(-1.25rem - env(safe-area-inset-bottom));
}
#itemSheet .map-preview-open { position: static; margin-top: 0; }
/* The supplied card revision groups secondary pricing in a quiet footer. */
.map-preview-price-footer { margin: 1rem -1.25rem 0; padding: .75rem 1.25rem; background: #fff; border-block: 1px solid #e9e9e4; }
.map-preview-price-footer .map-preview-price { margin: 0 !important; font-size: .8125rem; font-weight: 600; line-height: 1.5; color: #454540; }
.map-preview-price-footer + .map-preview-contacts { border-top: 0; padding-top: 0; }
#itemSheet .map-preview-price-footer { margin-inline: -1.5rem; padding-inline: 1.5rem; }
.property-data-status { font-size: .875rem; color: #62625c; padding: .75rem 1rem; border: 1px solid var(--border-light); border-radius: .75rem; background: var(--surface); margin: 0 0 1.5rem; }
@media(prefers-contrast:more) { .map-preview-price-footer { border-color: #777; } .map-preview-price-footer .map-preview-price { color: #333; } }
/* Inline map: location, map card, then the external maps action. */
.property-location-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
.property-location-grid > p { margin: 0; }
.property-map-card { min-width: 0; }
.property-map-frame { position: relative; isolation: isolate; width: 100%; height: 20rem; border-radius: 1rem; overflow: hidden; }
.property-map-frame .property-location-map { height: 100%; width: 100%; border-radius: inherit; }
.property-map-expand { position: absolute; top: .75rem; right: .75rem; z-index: 1100; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; touch-action: manipulation; }
.property-map-expand svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.property-map-expand:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.property-map-links { margin-top: 1rem; }
.property-map-dialog { width: min(72rem, calc(100vw - 2rem)); height: calc(100dvh - 2rem); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 1rem; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.property-map-dialog::backdrop { background: rgba(0,0,0,.28); }
.property-map-dialog .property-map-frame { height: 100%; border-radius: inherit; }
@media (hover:hover) { .property-map-expand:hover { background: #ededeb; border-color: var(--control-border); } }
@media (max-width: 680px) { .property-map-frame { height: 17.5rem; } .property-map-dialog { width: calc(100vw - 1rem); height: calc(100dvh - 1rem); } }
@media (prefers-contrast: more) { .property-map-expand { border-color: #444; } }
@media (prefers-reduced-transparency: reduce) { .property-map-dialog::backdrop { background: #292929; } }
.property-map-frame .property-map-status { right: 4rem; max-width: calc(100% - 8rem); }
.property-map-expand:active { transform: scale(var(--press-scale)); }
@media (prefers-reduced-motion: reduce) { .property-map-expand:active { transform: none; } }

/* Shared round controls: one 44px target and 20px SVG on all surfaces. */
#photoLightboxOverlay .lightbox-close, #photoLightboxOverlay .lightbox-nav,
#ownerModalOverlay .modal-close {
  width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; background: #fff; color: #222; border: 1px solid #ddd;
  border-radius: 50%; box-shadow: none;
}
#photoLightboxOverlay button svg, #ownerModalOverlay .modal-close svg,
#itemSheetClose svg { width: 1.25rem; height: 1.25rem; display: block; flex-shrink: 0; }
#photoLightboxOverlay .lightbox-nav:disabled { visibility: hidden; }
#ownerModalOverlay { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; font-optical-sizing: auto; line-height: 1.5; }
#ownerModalOverlay .modal-card { background: #fff; border-radius: 1.25rem; max-height: calc(100dvh - 2rem); }
#ownerModalOverlay .modal-body { padding: 1.5rem; }
#ownerModalOverlay .page-title { font-size: 1.5rem !important; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; padding-right: 2.75rem; }
#ownerModalOverlay .page-subtitle { font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
#ownerModalOverlay .form-group label { font-size: .875rem; font-weight: 600; }
#ownerModalOverlay .form-group input:not([type=checkbox]), #ownerModalOverlay .form-group select,
#ownerModalOverlay .form-group textarea {
  font-family: inherit; font-size: 1rem; line-height: 1.5; min-height: 3rem;
  padding: .6875rem .875rem; border: 1px solid var(--control-border); border-radius: var(--radius-control);
  background: #fff; color: var(--ink); caret-color: var(--focus);
}
#ownerModalOverlay .form-group textarea { min-height: 7rem; }
#ownerModalOverlay .btn-outline { border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: #fff; color: var(--ink); }
#ownerModalOverlay .event-type-toggle label { min-height: 2.75rem; font-size: .875rem; }
#ownerModalOverlay .owner-form-heading { font-size: 1rem; font-weight: 650; margin: 1.5rem 0 .75rem; }
#ownerModalOverlay :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#ownerModalOverlay button { touch-action: manipulation; transition: background-color 120ms ease-out, border-color 120ms ease-out, transform 100ms ease-out; }
#ownerModalOverlay button:not(:disabled):active { transform: scale(var(--press-scale)); transition-duration: 0s; }
#ownerModalOverlay button:disabled { opacity: 1; background: #e6e6e3; color: #666660; border-color: #d0d0cb; box-shadow: none; }
#listingDetail .property-description { max-width: 72ch; }
#listingDetail .property-service-price { font-variant-numeric: tabular-nums; }
@media (hover:hover) {
  #listingDetail .property-owner .owner-edit-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
  :is(#listingDetail,#sellerPageOverlay) .property-header .detail-back-btn:hover { background: var(--border); }
  :is(#listingDetail,#sellerPageOverlay) .property-share:hover, #listingDetail .property-all-photos:hover,
  #listingDetail .maps-link:hover, :is(#listingDetail,#sellerPageOverlay) .property-contact .contact-line:hover,
  .map-preview .contact-line:hover, #ownerModalOverlay .btn-outline:hover,
  #ownerModalOverlay .modal-close:hover, #photoLightboxOverlay button:hover { background: #f0f0ed; }
  :is(#listingDetail,#sellerPageOverlay) a.detail-primary-cta:hover, .map-preview-open:hover,
  #itemSheet .map-preview-open:hover, #ownerModalOverlay .btn-primary:hover { background: #383838; color: #fff; transform: none; }
}
@media (max-width: 680px) {
  #ownerModalOverlay .modal-card { width: calc(100% - 1rem); }
  #ownerModalOverlay .form-row { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #ownerModalOverlay *, #photoLightboxOverlay * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #ownerModalOverlay button:active { transform: none; }
}
@media (prefers-contrast: more) {
  #listingDetail, #sellerPageOverlay, .map-preview, #itemSheet, #ownerModalOverlay, .property-map-dialog { --ink-soft: #404040; --border: #696969; --border-light: #777; --control-border: #444; }
}

/* Native owner dialog supplies modal focus containment, Escape and return. */
#ownerModalOverlay { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 1rem; border: 0; background: transparent; color: var(--ink); }
#ownerModalOverlay::backdrop { background: rgba(0,0,0,.45); }
#ownerModalOverlay .form-field-error { font-size: .875rem; color: #a52b20; margin-top: .5rem; }
#ownerModalOverlay .form-field-invalid input, #ownerModalOverlay .form-field-invalid textarea { border-color: #a52b20; }
#ownerModalOverlay .owner-confirm input { width: 1.25rem; height: 1.25rem; flex-shrink: 0; accent-color: var(--accent-dark); }
@media (prefers-reduced-transparency: reduce) { #ownerModalOverlay::backdrop { background: #292929; } }

.listing-preview-popup .leaflet-popup-close-button svg { width: 1.25rem; height: 1.25rem; display: block; }
#ownerModalOverlay .service-price-field input { font-family: inherit; font-size: 1rem; line-height: 1.5; min-height: 3rem; padding: .6875rem .875rem; border: 1px solid var(--control-border); border-radius: var(--radius-control); }
#ownerModalOverlay .service-prices-editor legend { font-size: .875rem; font-weight: 600; }
:is(#listingDetail,#sellerPageOverlay) a.detail-primary-cta, .map-preview-open { transition: background-color 120ms ease-out, border-color 120ms ease-out, transform 100ms ease-out; }
:is(#listingDetail,#sellerPageOverlay) a.detail-primary-cta:active { transform: scale(var(--press-scale)); transition-duration: 0s; }
@media (prefers-reduced-motion: reduce) { :is(#listingDetail,#sellerPageOverlay) a.detail-primary-cta:active { transform: none; } }
/* Keep the map card's main action reachable on shorter desktop windows. */
.listing-preview-popup .leaflet-popup-content {
  max-height: min(36rem, calc(100dvh - 15rem)); overflow-y: auto;
  overscroll-behavior: contain; border-radius: 1rem;
}
.listing-preview-popup .map-preview-action {
  position: sticky; bottom: 0; background: var(--surface);
  padding: .75rem 0 1.25rem; margin-bottom: -1.25rem;
}
.listing-preview-popup .map-preview-open { margin-top: 0; }
@media (max-height: 650px) and (min-width: 861px) {
  .listing-preview-popup .map-preview-photo { height: 7rem; }
}

#ownerModalOverlay[open] .modal-card { animation: ds-dialog-arrive 160ms ease-out; }
@keyframes ds-dialog-arrive { from { opacity: 0; transform: translateY(.375rem); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #ownerModalOverlay[open] .modal-card { animation: none; } }

/* Main image and every available thumbnail; single photos have no strip. */
#listingDetail .property-gallery--main {
  display: block; height: clamp(18rem, 42vw, 32rem); overflow: hidden;
  border-radius: var(--radius-lg); background: #f4f4f1;
}
#listingDetail .property-gallery--main .property-photo {
  display: block; width: 100%; height: 100%; border-radius: inherit;
}
#listingDetail .property-gallery--main .property-photo img { object-fit: contain; }
#listingDetail .property-gallery--main .property-placeholder { height: 100%; }
.property-thumbnails { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.property-thumbnail {
  flex: 0 0 auto; width: clamp(4.5rem, calc((100% - 1.5rem) / 4), 7rem);
  aspect-ratio: 4/3; padding: .125rem; border: 2px solid transparent;
  border-radius: .75rem; background: #f4f4f1; overflow: hidden; cursor: pointer;
}
.property-thumbnail[aria-pressed="true"] { border-color: var(--ink); }
.property-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: .5rem; }
@media (hover:hover) { .property-thumbnail:hover { border-color: var(--ink-soft); } }
#photoLightboxOverlay { background: #111; }
#photoLightboxOverlay .lightbox-track { min-width: 0; min-height: 0; overflow-y: hidden; touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }
#photoLightboxOverlay .lightbox-img-wrap { min-width: 0; flex: 0 0 100%; user-select: none; -webkit-user-select: none; }
#photoLightboxOverlay .lightbox-track.is-dragging { scroll-snap-type: none; cursor: grabbing; scroll-behavior: auto; }
#photoLightboxOverlay .lightbox-track.zoom-active { touch-action: pan-x pan-y pinch-zoom; }
#photoLightboxOverlay .lightbox-img-wrap.zoomed { touch-action: pan-x pan-y pinch-zoom; }
#photoLightboxOverlay .lightbox-img-wrap.zoomed .lightbox-img { flex: 0 0 250%; }


/* One quiet toolbar, matching the supplied arrow/share/heart reference. */
:is(#listingDetail,#sellerPageOverlay) .property-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: nowrap; gap: 1rem; min-height: 4.25rem;
  padding: .75rem max(1rem, calc((100vw - 1160px) / 2));
  background: #fff; border-bottom: 1px solid var(--border-light);
}
:is(#listingDetail,#sellerPageOverlay) .property-header .property-actions { display: flex; align-items: center; gap: .5rem; margin: 0; }
:is(#listingDetail,#sellerPageOverlay) .property-header :is(.detail-back-btn,.property-share,.save-btn--header) {
  position: static; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem;
  flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); box-shadow: none;
}
:is(#listingDetail,#sellerPageOverlay) .property-header button svg { width: 1.5rem; height: 1.5rem; transform: none; }
@media (hover:hover) {
  :is(#listingDetail,#sellerPageOverlay) .property-header :is(.detail-back-btn,.property-share,.save-btn--header):hover { background: #ededeb; }
}
@media (max-width: 680px) {
  #listingDetail .property-page { display: flex; flex-direction: column; padding-top: 0; }
  #listingDetail .property-gallery--main { order: 0; width: calc(100% + 2rem); margin-inline: -1rem; border-radius: 0; height: auto; aspect-ratio: 4/3; }
  #listingDetail .property-gallery--multiple .property-photo img { object-fit: cover; }
  #listingDetail .property-thumbnails { order: 1; }
  #listingDetail .property-heading { order: 2; margin: 1.5rem 0 0; }
  #listingDetail .property-nav { order: 3; }
  #listingDetail .property-columns { order: 4; }
  #listingDetail .property-footer { order: 5; }
  #listingDetail .property-data-status { order: -1; margin-block: 1rem; }
}

/* Listing content follows its type; dates and programme are event facts. */
#listingDetail .property-page--event .property-heading { display: flex; justify-content: flex-start; align-items: flex-start; gap: 1.25rem; }
#listingDetail .property-page--event .property-heading > div { min-width: 0; }
.property-event-date-tile { display: flex; align-items: center; justify-content: center; flex: 0 0 7.5rem; width: 7.5rem; min-height: 8rem; padding: 1rem .375rem; box-sizing: border-box; border-radius: 1rem; text-align: center; }
.property-event-date-tile .ec-day { font-size: 2.75rem; }
.property-event-date-tile .ec-month { font-size: .875rem; }
.property-event-date-tile .ec-weekday { font-size: .75rem; }
#listingDetail .property-event-summary { font-size: .875rem; margin-top: .75rem; font-weight: 600; }
.property-detail-list { margin: 0; }
.property-detail-list > div { display: grid; grid-template-columns: minmax(7rem,.8fr) minmax(0,1.2fr); gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--border-light); }
.property-detail-list > div:first-child { padding-top: 0; }
.property-detail-list > div:last-child { border-bottom: 0; }
.property-detail-list dt { color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.property-detail-list dd { margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#listingDetail .property-schedule-link { margin-block: 1.25rem 0; max-width: 100%; }
:is(#listingDetail,#sellerPageOverlay) .property-contact > .property-schedule-link { margin-block: 0 1rem; }
#listingDetail .property-schedule-status { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: .875rem; }
.map-preview-event-time { font-size: .875rem; line-height: 1.5; font-weight: 600; margin-top: .75rem !important; }
.listing-preview-popup .map-preview-photo--event, #itemSheet .map-preview-photo--event { display: flex; align-items: center; justify-content: center; height: auto; min-height: 6rem; padding: 1rem 4rem; background: #f5f5f2; text-align: center; font-weight: 600; font-size: .875rem; line-height: 1.5; }
#ownerModalOverlay #omEventFields[hidden] { display: none; }
@media (max-width: 680px) {
  #listingDetail .property-page--event .property-heading { flex-direction: column; gap: 1.25rem; }
  #listingDetail .property-page--event .property-heading > div { width: 100%; }
  #listingDetail .property-event-date-tile { flex-basis: auto; width: 100%; min-height: 8rem; padding: 1rem; }
  #listingDetail .property-event-date-tile .ec-day { font-size: 2.5rem; }
  #listingDetail .property-schedule-link { width: 100%; }
}
@media (prefers-contrast: more) { .property-detail-list > div { border-color: var(--border); } }
#eventModalOverlay { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; color: var(--ink); }
#eventModalOverlay .form-group label { font-size: .875rem; font-weight: 600; }
#eventModalOverlay .form-group input:not([type="file"]), #eventModalOverlay select, #eventModalOverlay textarea { font-family: inherit; font-size: 1rem; line-height: 1.5; min-height: 3rem; padding: .6875rem .875rem; border: 1px solid var(--control-border); border-radius: .75rem; }
#eventModalOverlay .btn-primary { min-height: 2.75rem; font-size: .9375rem; font-weight: 600; line-height: 1.3; padding: .625rem 1rem; border-radius: 999px; background: #222; color: #fff; }
#eventModalOverlay :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#eventModalOverlay .page-title { font-weight: 650; letter-spacing: -.02em; }

/* Desktop gallery sits beside the sticky contact card. */
@media (min-width: 681px) {
  #listingDetail .property-page {
    display: grid; grid-template-columns: minmax(0,1fr) clamp(14rem,30vw,20rem);
    grid-template-areas: "status status" "heading contact" "media contact" "nav contact" "content contact" "owner contact" "footer footer";
    column-gap: clamp(1.5rem,3vw,2.5rem); align-items: start; padding-top: 1.25rem;
  }
  #listingDetail .property-data-status { grid-area: status; }
  #listingDetail .property-heading { grid-area: heading; min-width: 0; }
  #listingDetail .property-heading { margin-bottom: .75rem; }
  #listingDetail .property-nav { grid-area: nav; min-width: 0; overflow-x: auto; white-space: nowrap; padding-block: .25rem .5rem; gap: 1.5rem; }
  #listingDetail .property-nav a[href="#propertyDetails"] { order: -1; }
  #listingDetail .property-columns, #listingDetail .property-sidebar { display: contents; }
  #listingDetail .property-content { grid-area: content; display: flex; flex-direction: column; min-width: 0; padding-top: 1.25rem; }
  #listingDetail #propertyDetails { order: 0; display: flex; flex-direction: column; }
  #listingDetail #propertyAbout { order: 1; }
  #listingDetail #propertyLocation { order: 2; }
  #listingDetail .property-owner { grid-area: owner; min-width: 0; margin-bottom: 1.5rem; }
  #listingDetail .property-content section { padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  #listingDetail .property-page h2 { margin-bottom: 1rem; }
  #listingDetail #propertyDetails > h2 { order: -2; }
  #listingDetail .property-general-price { order: -1; margin: 0 0 1rem; }
  #listingDetail .property-general-price h3 { font-size: .875rem; margin-bottom: .5rem; }
  #listingDetail .property-facts { margin-bottom: 0; }
  #listingDetail .property-facts li { padding-block: .875rem; }
  #listingDetail .property-contact {
    grid-area: contact; min-width: 0; align-self: start; position: sticky; top: 5.25rem;
    max-height: calc(100dvh - 6.25rem); overflow-y: auto; overscroll-behavior-y: contain;
    padding: 1.25rem; margin: 0; background: #fff;
  }
  :is(#listingDetail,#sellerPageOverlay) .property-contact-location { padding-top: 1rem; margin-top: 1rem; }
  #listingDetail .property-media { grid-area: media; min-width: 0; margin-bottom: .75rem; }
  #listingDetail .property-footer { grid-area: footer; }
  #listingDetail .property-gallery--main { width: 100%; height: clamp(15rem,27vw,22rem); margin: 0; border-radius: 1rem; }
  #listingDetail .property-placeholder img { width: 4rem; height: 4rem; }
  #listingDetail .property-placeholder { gap: .5rem; font-size: .8125rem; }
  #listingDetail .property-thumbnails { margin-top: .5rem; }
  #listingDetail .property-thumbnail { width: calc((100% - 1.5rem) / 4); max-width: 5rem; min-width: 2.75rem; min-height: 2.75rem; }
}
/* Keep the existing photo-first phone layout with the new sidebar wrapper. */
@media (max-width: 680px) {
  #listingDetail .property-columns, #listingDetail .property-sidebar { display: contents; }
  #listingDetail .property-media { display: flex; flex-direction: column; order: 0; min-width: 0; }
  #listingDetail .property-content { order: 4; }
  #listingDetail .property-contact { order: 5; }
  #listingDetail .property-owner { order: 6; margin: 0 0 1.5rem; }
  #listingDetail .property-footer { order: 7; }
}

/* Marketplace hierarchy: photo, title/price, description, contact, then location. */
#listingDetail .property-page--board .property-heading h1 { font-size: clamp(1.625rem,3vw,2rem); margin-bottom: .5rem; }
#listingDetail .property-page--board .property-market-price { font-size: 1.5rem; font-weight: 650; line-height: 1.3; margin: 0 0 .625rem; font-variant-numeric: tabular-nums; }
#listingDetail .property-page--board .property-market-price--unknown { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }
#listingDetail .property-page--board .property-market-meta { display: flex; flex-wrap: wrap; column-gap: 1rem; row-gap: .25rem; font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
#listingDetail .property-page--board .property-gallery--main .property-photo img { object-fit: contain; }
#listingDetail .property-page--board .property-thumbnail img { object-fit: contain; }
#listingDetail .property-page--board #propertyAbout { margin-bottom: 1.25rem; padding-bottom: 1.25rem; }
#listingDetail .property-page--board #propertyAbout h2 { font-size: 1.25rem; margin-bottom: .75rem; }
#listingDetail .property-page--board .property-description { margin: 0; font-size: 1rem; }
@media (max-width: 680px) {
  #listingDetail .property-page--board .property-gallery--main { height: clamp(15rem,75vw,23rem); aspect-ratio: auto; }
  #listingDetail .property-page--board .property-heading { margin-top: 1.25rem; margin-bottom: 1.25rem; }
  #listingDetail .property-page--board .property-market-meta { flex-direction: column; }
  #listingDetail .property-page--board .property-content { display: contents; }
  #listingDetail .property-page--board #propertyAbout { order: 3; }
  #listingDetail .property-page--board .property-contact { order: 4; margin: 0 0 1.5rem; padding: 1.25rem; }
  #listingDetail .property-page--board .property-contact h2 { font-size: 1.25rem; }
  #listingDetail .property-page--board #propertyLocation { order: 5; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  #listingDetail .property-page--board #propertyLocation h2 { font-size: 1.25rem; margin-bottom: .75rem; }
  #listingDetail .property-page--board .property-owner { order: 6; margin-bottom: 1rem; }
  #listingDetail .property-page--board .property-footer { order: 7; }
}

/* Shared original-marketplace banner; Vinted composition across all providers. */
.external-listing-card{--market-bg:#222;--market-hover:#383838;display:flex;align-items:center;gap:.75rem;box-sizing:border-box;width:100%;min-width:0;margin-top:1rem;padding:.875rem;border:1px solid var(--market-bg);border-radius:.75rem;background:var(--market-bg);color:#fff;text-decoration:none;transition:background-color 120ms ease-out,border-color 120ms ease-out;touch-action:manipulation}
.external-listing-card--vinted{--market-bg:#007782;--market-hover:#00636c}
.external-listing-card--skelbiu{--market-bg:#286b17;--market-hover:#205513}
.external-listing-card--facebook{--market-bg:#165fc3;--market-hover:#104d9f}
.external-listing-card .external-listing-logo{position:static;display:block;flex:0 0 2rem;width:2rem;height:2rem;object-fit:contain;border-radius:.5rem;box-shadow:0 0 0 1px #ffffffb3}
.external-listing-copy{display:flex;flex-direction:column;gap:.1875rem;flex:1;min-width:0}
.external-listing-card .external-listing-title{display:block;font-size:.875rem;font-weight:650;line-height:1.35;color:#fff;overflow-wrap:anywhere}
.external-listing-card .external-listing-url{display:block;font-size:.8125rem;font-weight:400;line-height:1.4;color:#fff;white-space:normal;opacity:1}
.marketplace-arrow{display:block;flex:0 0 1.125rem;width:1.125rem;height:1.125rem;color:#fff}
.external-listing-card:active{background:var(--market-hover);transition:none}
.external-listing-card:focus-visible{outline:3px solid var(--focus,#8b351c);outline-offset:3px}
@media(hover:hover){.external-listing-card:hover{background:var(--market-hover);border-color:var(--market-hover)}}
.marketplace-contact{padding:1.25rem;border:1px solid #e3e3de;border-radius:1rem;background:#fff;max-width:32rem}
.marketplace-contact h3{margin:0 0 .625rem;font-size:1.125rem;line-height:1.3;font-weight:650;letter-spacing:-.015em}
.marketplace-contact p{margin:0;font-size:.875rem;line-height:1.5;color:#50504b}
.marketplace-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}
#listingDetail .property-page--board .property-contact{padding:1.25rem;border:1px solid #e3e3de;border-radius:1rem;background:#fff}
#listingDetail .property-page--board .property-contact h2{margin:0 0 .625rem;font-size:1.125rem;line-height:1.3;font-weight:650;letter-spacing:-.015em}
#listingDetail .property-page--board .property-contact>p{margin:0;font-size:.875rem;line-height:1.5;color:#50504b}
@media(max-width:680px){
#listingDetail .property-page--board .property-contact{padding:1rem;margin-bottom:1.25rem;border-radius:1rem}
#listingDetail .property-page--board .property-contact h2{font-size:1.125rem;line-height:1.3;margin:0 0 .625rem}
#listingDetail .property-page--board .property-contact>p{font-size:.875rem;line-height:1.5;margin:0}
#listingDetail .property-page--board .property-contact .external-listing-card{margin-top:1rem}
#listingDetail .property-page--board #propertyLocation{margin-bottom:1.25rem;padding-bottom:1.25rem}
.marketplace-contact{padding:1rem}
}
@media(prefers-reduced-motion:reduce){.external-listing-card{transition:none}}

/* Give headings a consistent gap after the preceding section divider. */
#listingDetail .property-content { padding-top: 2rem; }
#listingDetail .property-content section { padding-bottom: 2rem; margin-bottom: 2rem; }
#listingDetail .property-page--board :is(#propertyAbout, #propertyLocation) { padding-bottom: 2rem; margin-bottom: 2rem; }
@media (max-width: 680px) {
  #listingDetail .property-page--board .property-contact { margin-bottom: 2rem; }
}

/* Event and host stable links use the existing detail page typography. */
.property-venue-link { display:flex; align-items:center; gap:1rem; color:inherit; text-decoration:none; padding:1rem; border:1px solid var(--border, #ddd); border-radius:16px; background:#f7f7f5; transition:background-color .16s ease; }
.property-venue-link:hover { background:#efefec; }
.property-venue-photo { width:88px; height:88px; flex:0 0 88px; border-radius:10px; object-fit:cover; background:white; }
.property-venue-copy { display:grid; gap:.55rem; flex:1; min-width:0; }
.property-venue-arrow { width:22px; height:22px; flex:0 0 22px; }
.property-venue-link strong { font-size:1.15rem; overflow-wrap:anywhere; }
.property-venue-action,.property-hosted-action { font-size:.9rem; text-decoration:underline; text-underline-offset:4px; }
.property-venue-link:hover strong,.property-hosted-event:hover strong { text-decoration:underline; text-underline-offset:4px; }
.property-venue-link:focus-visible,.property-hosted-event:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
.property-hosted-events { display:grid; }
.property-hosted-event { display:grid; gap:.55rem; padding:1.25rem 0; border-bottom:1px solid var(--border, #ddd); color:inherit; text-decoration:none; }
.property-hosted-event strong { font-size:1.15rem; line-height:1.4; overflow-wrap:anywhere; }
.property-hosted-date { font-size:.9rem; line-height:1.5; }

@media (max-width:480px) { .property-venue-link { gap:.75rem; padding:.875rem; } .property-venue-photo { width:72px; height:72px; flex-basis:72px; } .property-venue-link strong { font-size:1rem; line-height:1.35; } }
@media (prefers-reduced-motion:reduce) { .property-venue-link { transition:none; } }

.property-page--event .property-content > .property-media { margin:1.5rem 0 2.5rem; }

/* Keep hosted events immediately after About in the desktop flex flow. */
@media (min-width:681px) { #listingDetail #propertyUpcomingEvents { order:3; } }

.property-contact-venue { margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid var(--border,#ddd); }
.property-contact-venue h3 { font-size:1rem; line-height:1.4; margin:0 0 .75rem; }
.property-contact-venue .property-venue-link { gap:.75rem; padding:.75rem; }
.property-contact-venue .property-venue-photo { width:64px; height:64px; flex-basis:64px; }
.property-contact-venue .property-venue-link strong { font-size:.9375rem; line-height:1.4; }

/* Compact event facts: grouped values, no empty metadata rows. */
#listingDetail .property-event-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:2rem; row-gap:1.25rem; margin:0; }
#listingDetail .property-event-facts > div { display:flex; flex-direction:column; align-items:flex-start; gap:.25rem; padding:0; border:0; min-width:0; }
#listingDetail .property-event-facts dt { font-size:.8125rem; line-height:1.5; color:#666; }
#listingDetail .property-event-facts dd { margin:0; font-size:1rem; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
#listingDetail .property-page--event #propertyDetails { padding-bottom:1.5rem; margin-bottom:1.5rem; }
#listingDetail .property-page--event .property-content > .property-media { order:1; }
@media (max-width:380px) { #listingDetail .property-event-facts { column-gap:1rem; } }

.comp-row-excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:.5rem 0; font-size:.9375rem; line-height:1.5; color:var(--muted,#666); }
.comp-read-more { display:inline-flex; align-items:center; gap:.35rem; min-height:44px; color:var(--ink,#222); font-size:.875rem; font-weight:600; text-decoration:underline; text-underline-offset:4px; }
.comp-read-more:focus-visible { outline:2px solid currentColor; outline-offset:3px; }

/* Keep the owner action immediately beneath its contact card. */
@media (min-width:681px) {
  #listingDetail .property-sidebar { display:block; grid-area:contact; position:sticky; top:5.25rem; align-self:start; min-width:0; max-height:calc(100dvh - 6.25rem); overflow-y:auto; overscroll-behavior:contain; }
  #listingDetail .property-sidebar .property-contact { position:static; max-height:none; overflow:visible; }
  #listingDetail .property-sidebar .property-owner { margin:1rem 0 0; }
}

.property-hosted-events { gap:1rem; }
#listingDetail .property-hosted-event-card { margin:0; min-width:0; }
#listingDetail .property-hosted-event-card .comp-row-name { font-size:1rem; line-height:1.4; }
#listingDetail .property-hosted-event-card .comp-row-meta { font-size:.875rem; line-height:1.5; }
#listingDetail .property-hosted-event-card .comp-row-excerpt { margin:.5rem 0; }

/* Compact calendar tiles shared by the event list and stable event cards. */
.comp-row { border-left-width:1px; padding:1.25rem; gap:1rem; }
.comp-row-date { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:0 0 64px; width:64px; min-height:72px; padding:.5rem; box-sizing:border-box; border-radius:14px; background:#f1f0e9; align-self:flex-start; }
.comp-row-day { font-size:2rem; line-height:1.1; font-weight:750; color:#44443f; }
.comp-row-month { font-size:.75rem; line-height:1.4; font-weight:700; letter-spacing:.04em; color:#44443f; }
.comp-row-top { display:block; }
.comp-row-name,#listingDetail .property-hosted-event-card .comp-row-name { font-size:1.25rem; line-height:1.3; font-weight:700; letter-spacing:-.015em; }
.comp-row-body { min-width:0; }
.comp-row-meta { margin-top:.35rem; }
.comp-row-excerpt { -webkit-line-clamp:1; font-size:.875rem; margin:.6rem 0 .2rem; }
.comp-read-more { min-height:36px; }
@media (max-width:480px) { .comp-row { padding:1rem; gap:.75rem; } .comp-row-date { width:52px; flex-basis:52px; min-height:62px; } .comp-row-day { font-size:1.75rem; } .comp-row-name,#listingDetail .property-hosted-event-card .comp-row-name { font-size:1.125rem; } }

/* Match the existing All listings card typography at every viewport. */
.comp-row-name,#listingDetail .property-hosted-event-card .comp-row-name { font-size:17px; font-weight:800; line-height:1.3; }
.comp-row-meta,#listingDetail .property-hosted-event-card .comp-row-meta { font-size:13px; line-height:1.4; }
.comp-row-excerpt,#listingDetail .property-hosted-event-card .comp-row-excerpt { font-size:12.5px; line-height:1.4; }
.comp-read-more { font-size:13px; }

/* Event cards remain white in all interaction states. */
.comp-row,.comp-row:hover,.comp-row:active,.comp-row:focus-within,.comp-row.selected { background:#fff; }
.comp-row:not(.comp-popup-row) { padding:12px; gap:12px; }
.comp-row-date { width:56px; flex-basis:56px; min-height:64px; padding:6px; border-radius:12px; }
.comp-row-excerpt,#listingDetail .property-hosted-event-card .comp-row-excerpt { margin:6px 0 0; }
.comp-read-more { min-height:36px; }
