body.mb-native {
  --mb-ink: #172f29;
  --mb-forest: #173d34;
  --mb-muted: #53665d;
  --mb-cream: #f5f5ed;
  --mb-line: #dce1d9;
  --mb-display: var(--wp--preset--font-family--manrope, Manrope, system-ui, sans-serif);
  --mb-body: var(--wp--preset--font-family--dm-sans, "DM Sans", system-ui, sans-serif);
  margin: 0;
  color: var(--mb-ink);
  background: #fff;
  font: 15px/1.5 var(--mb-body);
  font-variant-numeric: tabular-nums;
}

.mb-native *, .mb-native *::before, .mb-native *::after { box-sizing: border-box; }
.mb-native :focus-visible { outline: 3px solid #387c62; outline-offset: 3px; }
.mb-native a { color: inherit; }
.mb-native h1, .mb-native h2 { font-family: var(--mb-display); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.mb-native :where(p, dl, dd, h1, h2) { margin: 0; }

.mb-wrap { width: min(100% - 80px, 1280px); margin-inline: auto; }
.mb-skip { position: fixed; z-index: 10; top: 8px; left: 8px; translate: 0 -160%; background: white; padding: 10px; }
.mb-skip:focus { translate: 0; }
.mb-header { background: white; border-bottom: 1px solid var(--mb-line); }
.mb-header-inner, .mb-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.mb-header-inner { min-height: 76px; }
.mb-brand { font: 800 26px/1 var(--mb-display); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.mb-brand span { color: #537466; }
.mb-header nav { display: flex; gap: clamp(12px, 3vw, 30px); font-weight: 700; }
.mb-header nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mb-header nav a:hover, .mb-detail-top a:hover { text-decoration: underline; }
.mb-detail { padding-top: 15px; }
.mb-detail-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; color: var(--mb-muted); font-size: 13px; }
.mb-detail-top a { display: inline-flex; align-items: center; min-height: 38px; font-weight: 700; text-decoration: none; }
.mb-heading { margin-block: 17px 22px; }
.mb-location, .mb-subtitle { color: var(--mb-muted); font-weight: 700; }
.mb-native .mb-heading h1 { font-size: clamp(2.15rem, 4.4vw, 3.65rem); margin: 6px 0 8px; }
.mb-parent { margin-top: 7px; color: var(--mb-muted); font-size: 13px; }

.mb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(292px, .45fr);
  grid-template-areas: "media pricing" "body pricing";
  gap: 26px 20px;
  align-items: start;
}

.mb-pricing { grid-area: pricing; position: sticky; top: 16px; background: var(--mb-cream); border-radius: 14px; padding: 22px; }
.admin-bar .mb-pricing { top: 48px; }
.mb-price-label { color: var(--mb-muted); font-size: 13px; font-weight: 700; }
.mb-rent { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.mb-rent strong { font: 800 clamp(1.95rem, 3.4vw, 2.8rem)/1.2 var(--mb-display); letter-spacing: -.04em; }
.mb-rent span, .mb-mobile-action span { color: var(--mb-muted); font-size: 12px; }
.mb-facts { margin-top: 12px; border-top: 1px solid #d8ded2; }
.mb-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #d8ded2; font-size: 14px; }
.mb-facts dt { color: var(--mb-muted); }
.mb-native .mb-facts dd { margin: 0; text-align: right; font-weight: 700; }

.mb-native .mb-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--mb-forest);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}
.mb-native .mb-button:hover { background: #102e27; }
.mb-desktop-action { width: 100%; margin-top: 19px; }

.mb-media { grid-area: media; min-width: 0; }
.mb-gallery { position: relative; display: grid; height: clamp(290px, 40vw, 443px); gap: 4px; overflow: hidden; border-radius: 14px; background: var(--mb-cream); }
.mb-gallery-pair, .mb-gallery-many { grid-template-columns: 1.16fr .84fr; }
.mb-gallery-many { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.mb-gallery-many .mb-tile:first-child { grid-row: span 2; }
.mb-tile { position: relative; display: block; min-width: 0; overflow: hidden; }
.mb-tile:focus-visible { z-index: 1; outline-offset: -5px; }
.mb-gallery .mb-tile img { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.mb-gallery-open { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid var(--mb-line); border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700; }
.mb-gallery-empty { display: grid; place-items: center; height: 224px; border: 1px solid var(--mb-line); color: var(--mb-muted); font-weight: 700; }
.mb-photo-list { margin-top: 8px; }
[data-mb-enhanced] .mb-photo-list { display: none; }
.mb-body { grid-area: body; display: grid; gap: 24px; overflow-wrap: anywhere; }
.mb-native .mb-body h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.25vw, 1.75rem); }
.mb-body p + p { margin-top: 10px; }
.mb-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 17px; padding-inline-start: 20px; margin: 0; }
.mb-footer { margin-top: 40px; padding-block: 18px; border-top: 1px solid var(--mb-line); font-weight: 700; }
.mb-mobile-action { display: none; }

.mb-dialog { width: min(92vw, 900px); max-height: 90dvh; padding: 16px; border: 0; border-radius: 14px; background: white; color: var(--mb-ink); }
.mb-dialog:not([open]) { display: none; }
.mb-dialog::backdrop { background: #102e27cf; }
.mb-dialog-header, .mb-dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mb-dialog-header { margin-bottom: 10px; }
.mb-dialog-header h2 { font-size: 1.25rem; }
.mb-dialog-controls { margin-top: 10px; }
.mb-dialog button { font: 700 14px var(--mb-body); min-height: 44px; padding: 5px 10px; background: #fff; color: var(--mb-ink); border: 1px solid var(--mb-line); border-radius: 8px; cursor: pointer; }
.mb-dialog button:disabled { opacity: .5; cursor: default; }
.mb-dialog-media { display: grid; place-items: center; height: min(62dvh, 630px); background: var(--mb-cream); border-radius: 8px; overflow: hidden; }
.mb-dialog-media img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 760px) {
  .mb-wrap { width: calc(100% - 32px); }
  .mb-header-inner { min-height: 58px; }
  .mb-brand { font-size: 21px; }
  .mb-header nav { font-size: 13px; }
  .mb-detail { padding-top: 5px; }
  .mb-detail-top { font-size: 11px; }
  .mb-heading { margin-block: 8px 13px; }
  .mb-native .mb-heading h1 { font-size: clamp(1.85rem, 8.2vw, 3.45rem); }
  .mb-location, .mb-subtitle { font-size: 13px; }
  .mb-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pricing" "media" "body"; gap: 14px; }
  .mb-pricing { position: static; padding: 11px 13px; }
  .mb-rent strong { font-size: clamp(1.55rem, 7.5vw, 2rem); }
  .mb-facts { margin-top: 6px; }
  .mb-facts div { padding: 5px 0; font-size: 13px; }
  .mb-facts div:last-child { border: 0; padding-bottom: 1px; }
  .mb-native .mb-desktop-action { display: none; }
  .mb-gallery { height: clamp(170px, 62vw, 265px); grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .mb-gallery .mb-tile:first-child { grid-row: auto; }
  .mb-gallery .mb-tile:not(:first-child) { display: none; }
  .mb-gallery-empty { height: 132px; }
  .mb-footer { margin-bottom: 76px; }
  .mb-mobile-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    padding: 8px 13px max(8px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--mb-line);
  }
  .mb-mobile-action div { display: grid; line-height: 1.15; }
  .mb-mobile-action strong { font: 800 19px/1.15 var(--mb-display); }
  .mb-native .mb-mobile-action .mb-button { text-align: center; font-size: 13px; }
}

.mb-header nav .wp-block-navigation__container { gap: clamp(12px, 3vw, 30px); }
.mb-header nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; }
.mb-header .mb-brand a { text-decoration: none; }
