/* Shared geometry: the fixed sidebar reserves exactly its original grid column. */
body.mm-model-view {
  --mm-header-height: 64px;
  --mm-admin-height: 0px;
  --mm-profile-top: calc(var(--mm-admin-height) + var(--mm-header-height) + 64px);
  --mm-sidebar-width: clamp(350px, 38vw, 610px);
  --mm-action-size: 14px;
}
body.mm-model-view.admin-bar { --mm-admin-height: 32px; }
body.mm-model-view #wpadminbar { position: fixed !important; top: 0; }
body.mm-model-view .D-Header {
  position: fixed !important;
  top: var(--mm-admin-height) !important;
  left: 0 !important;
  right: 0 !important;
  background: #000 !important;
}
body.mm-model-view .mm-model-page {
  grid-template-columns: var(--mm-sidebar-width) minmax(0, 1fr) !important;
  padding-top: var(--mm-profile-top) !important;
  min-height: 100dvh;
}
body.mm-model-view .mm-model-sidebar { position: static; min-width: 0; }
body.mm-model-view .mm-close {
  top: calc(var(--mm-admin-height) + var(--mm-header-height) + 16px) !important;
  right: 3vw;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font: 400 32px/1 Arial, sans-serif;
  background: #000;
  text-decoration: none;
}
body.mm-model-view .mm-model-actions,
body.mm-model-view .mm-model-actions button,
body.mm-model-view .mm-model-actions a,
body.mm-model-view .mm-model-nav a {
  font: 400 var(--mm-action-size)/1.3 Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}
body.mm-model-view .mm-model-actions { gap: 12px 24px; }
body.mm-model-view .mm-model-actions :focus-visible,
body.mm-model-view .mm-model-nav a:focus-visible,
body.mm-model-view .mm-close:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }

@media (min-width: 761px) {
  body.mm-model-view .mm-left-data {
    position: fixed;
    top: var(--mm-profile-top);
    left: 3vw;
    width: var(--mm-sidebar-width) !important;
    max-width: none;
    overflow: visible;
  }
  body.mm-model-view .mm-model-page h1 {
    font-size: clamp(38px, min(5vw, 8vh), 92px) !important;
    line-height: .96 !important;
    overflow-wrap: anywhere;
    margin-bottom: clamp(16px, 3vh, 32px) !important;
  }
  body.mm-model-view .mm-model-page h1.mm-fit-title { font-size: var(--mm-fit-title) !important; }
  body.mm-model-view .mm-details { margin: clamp(20px, 4vh, 40px) 0 !important; }
  body.mm-model-view .mm-model-nav { margin: 0 !important; gap: 7px; }
  body.mm-model-view .mm-model-nav a:nth-last-child(-n+2) { margin-top: 14px; }
  body.mm-model-view .mm-nav-instagram:after { content: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  body.mm-model-view .mm-details { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 761px) and (max-height: 700px) {
  body.mm-model-view { --mm-profile-top: calc(var(--mm-admin-height) + var(--mm-header-height) + 58px); }
  body.mm-model-view .mm-model-page h1 { margin-bottom: 16px !important; }
  body.mm-model-view .mm-details { margin: 18px 0 !important; }
  body.mm-model-view .mm-model-nav { gap: 4px; }
  body.mm-model-view .mm-model-nav a:nth-last-child(-n+2) { margin-top: 8px; }
}
@media (min-width: 761px) and (max-height: 560px) {
  body.mm-model-view .mm-model-nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.mm-model-view .mm-model-nav a:nth-last-child(-n+2) { margin-top: 0; }
}
@media (min-width: 761px) and (max-height: 480px) {
  body.mm-model-view { --mm-profile-top: calc(var(--mm-admin-height) + var(--mm-header-height) + 54px); --mm-action-size: 12px; }
  body.mm-model-view .mm-model-page h1 { margin-bottom: 10px !important; }
  body.mm-model-view .mm-details { margin: 10px 0 !important; gap: 7px !important; }
  body.mm-model-view .mm-details dt { font-size: 12px; }
  body.mm-model-view .mm-details dd { font-size: 13px; }
  body.mm-model-view .mm-model-nav { gap: 4px; }
}
@media (max-width: 760px) {
  body.mm-model-view { --mm-header-height: 52px; --mm-action-size: 11px; --mm-profile-top: calc(var(--mm-admin-height) + var(--mm-header-height) + 52px); }
  body.mm-model-view.admin-bar { --mm-admin-height: 46px; }
  body.mm-model-view .mm-left-data { position: static; width: auto !important; }
  body.mm-model-view .mm-close {
    width: auto;
    height: 28px;
    left: 16px !important;
    right: auto !important;
    top: calc(var(--mm-admin-height) + var(--mm-header-height) + 10px) !important;
    font: 400 var(--mm-action-size)/1.3 Arial, sans-serif !important;
    text-transform: uppercase;
  }
  body.mm-model-view .mm-model-page h1 { overflow-wrap: anywhere; }
  body.mm-model-view .mm-model-nav { padding-bottom: calc(13px + env(safe-area-inset-bottom)) !important; }
  body.mm-model-view .mm-model-nav .mm-nav-instagram { font-size: 0 !important; }
  body.mm-model-view .mm-model-nav .mm-nav-instagram:after { font: 400 var(--mm-action-size)/1.3 Arial, sans-serif !important; }
  .mandarinaMenu .logo-menu { padding-right: 34px; }
}
@media (max-width: 360px) { body.mm-model-view { --mm-action-size: 10px; } }

/* Interactive monochrome map; tile attribution and controls are never filtered. */
@media (min-width: 761px) {
  .mandarinaMenu .left-section { grid-template-columns: minmax(0, 1fr) !important; }
}
.mandarinaMenu .mm-menu-map {
  position: relative;
  align-self: end;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  height: 36vh;
  min-height: 150px;
  background: #111;
  font: 12px/1.4 Arial, sans-serif;
  z-index: 0;
  overflow: hidden;
}
.mandarinaMenu .mm-menu-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(1.4) contrast(.9); }
.mandarinaMenu .mm-menu-map img.leaflet-tile {
  width: 256px !important;
  height: 256px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: initial !important;
  border-radius: 0 !important;
}
.mandarinaMenu .mm-menu-map a { color: #111 !important; font-family: Arial, sans-serif !important; text-decoration: none !important; }
.mandarinaMenu .mm-menu-map .leaflet-control-zoom a { font: 400 22px/30px Arial, sans-serif !important; }
.mandarinaMenu .mm-menu-map .leaflet-control-attribution { background: #fff; color: #111; font: 10px/1.5 Arial, sans-serif; }
.mandarinaMenu .mm-menu-map .leaflet-control-attribution a { color: #111 !important; font: inherit !important; }
.mandarinaMenu .mm-menu-map .leaflet-popup-content { margin: 14px 20px; color: #111; font: 12px/1.5 Arial, sans-serif; }
.mandarinaMenu .mm-menu-map .leaflet-popup-content a { text-decoration: underline !important; }
.mandarinaMenu .mm-menu-address { color: inherit; text-decoration: none; }
.mandarinaMenu .mm-menu-address:hover { text-decoration: underline !important; }
.mm-map-pin span { display: block; position: absolute; width: 26px; height: 26px; top: 2px; left: 2px; background: #fff; border: 1px solid #111; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 5px #0008; }
.mm-map-pin span:after { content: ''; position: absolute; width: 8px; height: 8px; left: 8px; top: 8px; border-radius: 50%; background: #111; }
.mandarinaMenu .mm-map-fallback { position: absolute; bottom: 25px; left: 10px; right: 10px; z-index: 800; margin: 0; padding: 6px; background: #fff; color: #111; font: 11px/1.4 Arial, sans-serif; text-align: center; }
.mandarinaMenu .mm-map-fallback[hidden] { display: none; }
@media (max-width: 760px) {
  .mandarinaMenu .mm-menu-map { align-self: start; width: 100%; max-width: 100%; height: 24vh; min-height: 180px; margin: 22px 0; flex-shrink: 0; }
  .mandarinaMenu .close-btn-menu { position: fixed !important; top: 18px !important; right: 16px !important; z-index: 1000; }
}
