/* ParterHouse Core 1.0.0 — integration with brand #00b0df, fonts inherited from theme. */
.phcore-map{margin:22px auto 0;max-width:100%;color:#102c48;font-family:inherit}
.phcore-map *{box-sizing:border-box}
.phcore-map__toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.phcore-map__toolbar button{appearance:none;border:1px solid #c7d9e3;background:#fff;color:#12314a;font-size:13px;line-height:1.3;font-family:inherit;padding:9px 13px;border-radius:7px;cursor:pointer;transition:background-color .2s,border-color .2s}
.phcore-map__toolbar button:hover{border-color:#00b0df}
.phcore-map__toolbar button[aria-pressed=true]{background:#00b0df;color:#fff;border-color:#00b0df}
.phcore-map__stage{position:relative;isolation:isolate;width:100%;background:#e9f0f6;border-radius:10px;overflow:hidden}
.phcore-map__image{display:block;width:100%;height:auto;max-width:100%;border:0}
.phcore-map__polygons{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.phcore-map__plot{pointer-events:auto;cursor:pointer}
.phcore-map__plot:focus-visible{outline:none}
.phcore-map__polygon{stroke:#52697b;stroke-width:2.5;fill:rgba(91,104,118,.28);transition:fill .18s,stroke-width .18s;vector-effect:non-scaling-stroke}
.phcore-map__polygon--available{fill:rgba(0,176,223,.28);stroke:#00b0df}
.phcore-map__polygon--reserved{fill:rgba(245,157,27,.29);stroke:#dc910f}
.phcore-map__polygon--sold{fill:rgba(97,112,127,.34);stroke:#697788}
.phcore-map__polygon--unknown{fill:rgba(69,108,136,.19);stroke:#52697b}
.phcore-map__plot:hover .phcore-map__polygon,.phcore-map__plot:focus .phcore-map__polygon{fill:rgba(255,255,255,.40);stroke-width:5}
.phcore-map__pin{position:absolute;z-index:1;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:4px 9px;border-radius:50px;border:2px solid #fff;background:#537186;color:#fff!important;font-family:inherit;font-size:13px;line-height:1;font-weight:700;text-decoration:none!important;box-shadow:0 2px 12px rgba(2,22,36,.32);white-space:nowrap;transition:transform .18s,box-shadow .18s}
.phcore-map__pin--available{background:#00b0df}
.phcore-map__pin--reserved{background:#df9b23}
.phcore-map__pin--sold{background:#788b98}
.phcore-map__pin:hover,.phcore-map__pin:focus-visible{transform:translate(-50%,-50%) scale(1.17);box-shadow:0 5px 15px rgba(2,22,36,.4);z-index:5}
.phcore-map__legend{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;margin:15px 0 20px;color:#536879;font-size:13px}
.phcore-map__legend span{display:inline-flex;align-items:center;gap:7px}
.phcore-map__dot{display:inline-block;width:13px;height:13px;border:2px solid #5b6b77;border-radius:4px;background:#c1cbd3}
.phcore-map__dot--available{background:#00b0df;border-color:#00b0df}
.phcore-map__dot--reserved{background:#df9b23;border-color:#df9b23}
.phcore-map__dot--sold{background:#788b98;border-color:#788b98}
.phcore-map__dot--building{background:#49a6c6;border-style:solid;border-color:#49a6c6}
.phcore-map__list{margin:0!important;padding:0!important;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.phcore-map__list li{margin:0!important;padding:0!important}
.phcore-map__list a{display:flex;gap:12px;align-items:center;padding:13px 14px;background:#fff;border:1px solid #dbe5ed;border-radius:8px;text-decoration:none!important;color:#102c48!important}
.phcore-map__list a:hover{border-color:#00b0df;background:#f4fcfe}
.phcore-map__list a strong{font-size:14px}
.phcore-map__list a span:nth-child(2){font-size:12px;color:#526879;flex:1}
.phcore-map__list a span:last-child{color:#009ac3}
.phcore-map__empty{padding:13px 0;color:#597185}
.phcore-gallery{margin-top:40px}
.phcore-gallery h2{font-size:clamp(25px,3vw,34px);color:#102c48;margin:0 0 18px}
.phcore-gallery__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.phcore-gallery__thumb{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:#eef4f8}
.phcore-gallery__thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.phcore-gallery__thumb:hover img{transform:scale(1.04)}
.phcore-gallery__dialog{max-width:96vw;max-height:94vh;padding:12px;margin:auto;border:0;border-radius:9px;background:#081c2c;box-shadow:0 15px 70px rgba(0,0,0,.55)}
.phcore-gallery__dialog::backdrop{background:rgba(4,17,28,.9)}
.phcore-gallery__dialog img{display:block;max-width:90vw;max-height:85vh;width:auto;height:auto;object-fit:contain}
.phcore-gallery__close{display:block;position:absolute;right:13px;top:13px;border:0;border-radius:50%;width:37px;height:37px;font:26px/1 Arial,sans-serif;color:white;background:rgba(0,0,0,.65);cursor:pointer}
@media(max-width:680px){.phcore-map__pin{min-width:27px;height:27px;font-size:11px;padding:3px 6px}.phcore-map__toolbar{gap:6px}.phcore-map__toolbar button{padding:8px 10px}.phcore-map__legend{gap:8px 13px}}
@media(prefers-reduced-motion:reduce){.phcore-map *,.phcore-gallery *{animation:none!important;transition:none!important}}

/* v1.3.5 — map diagnostics visible only to WordPress administrators */
.phcore-map__diagnostics{background:#f3f9fc;border:1px solid #b6dce9;border-radius:9px;padding:10px 14px;margin:0 0 15px;font-size:13px;line-height:1.45;color:#173850}
.phcore-map__diagnostics summary{cursor:pointer;font-size:13px;font-weight:750;color:#0c4264}
.phcore-map__diagnostics[open] summary{margin-bottom:12px}
.phcore-map__diagnostics-scroll{overflow-x:auto;max-width:100%}
.phcore-map__diagnostics table{width:100%;border-collapse:collapse;background:white;font-size:12px;min-width:600px}
.phcore-map__diagnostics th,.phcore-map__diagnostics td{padding:9px 10px;border:1px solid #dce8ed;text-align:left;vertical-align:top}
.phcore-map__diagnostics th{background:#e5f2f7;color:#183a51;font-weight:750}
.phcore-map__diagnostics a{color:#006a94;text-decoration:underline}
.phcore-map__diagnostics p{margin:10px 0 2px}
.phcore-map__diagnostics-warning{background:#fff1da;border:1px solid #ecd4a1;padding:9px;border-radius:7px}

/* v1.3.6 — consistent map colours on polygons, pins and legend. */
.phcore-map{
  --phcore-available:#8fb31f;
  --phcore-reserved:#e99a24;
  --phcore-sold:#d9444f;
  --phcore-planned:#86939e;
}
.phcore-map__polygon--available{fill:rgba(143,179,31,.28);stroke:#749217}
.phcore-map__polygon--reserved{fill:rgba(233,154,36,.29);stroke:#bf7412}
.phcore-map__polygon--sold{fill:rgba(217,68,79,.30);stroke:#ae2630}
.phcore-map__polygon--planned{fill:rgba(134,147,158,.29);stroke:#687480}
.phcore-map__pin--available{background:var(--phcore-available)}
.phcore-map__pin--reserved{background:var(--phcore-reserved)}
.phcore-map__pin--sold{background:var(--phcore-sold)}
.phcore-map__pin--planned{background:var(--phcore-planned)}
.phcore-map__dot--available{background:var(--phcore-available);border-color:var(--phcore-available)}
.phcore-map__dot--reserved{background:var(--phcore-reserved);border-color:var(--phcore-reserved)}
.phcore-map__dot--sold{background:var(--phcore-sold);border-color:var(--phcore-sold)}
.phcore-map__dot--planned{background:var(--phcore-planned);border-color:var(--phcore-planned)}

/* v1.3.7 — optional custom text inside the existing map pin. */
.phcore-map__pin-text{display:block;max-width:min(200px,64vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* v1.3.12 — synchronized parcel/label highlighting when either is hovered or focused.
   Keep the original sale-status color at rest and distinguish it on interaction. */
.phcore-map__polygon--available{--phcore-hover-fill:rgba(173,218,43,.53);--phcore-hover-stroke:#d8ff63}
.phcore-map__polygon--reserved{--phcore-hover-fill:rgba(255,183,56,.55);--phcore-hover-stroke:#ffe092}
.phcore-map__polygon--sold{--phcore-hover-fill:rgba(242,89,100,.54);--phcore-hover-stroke:#ff9ba6}
.phcore-map__polygon--planned{--phcore-hover-fill:rgba(161,181,199,.48);--phcore-hover-stroke:#e7f2fc}
.phcore-map__polygon{transition:fill .18s,stroke .18s,stroke-width .18s,filter .18s}
.phcore-map__plot.is-phcore-active .phcore-map__polygon,
.phcore-map__plot:hover .phcore-map__polygon,
.phcore-map__plot:focus-visible .phcore-map__polygon{
  fill:var(--phcore-hover-fill,rgba(255,255,255,.48));
  stroke:var(--phcore-hover-stroke,#fff);
  stroke-width:5;
  filter:drop-shadow(0 1px 3px rgba(4,17,30,.58));
}
.phcore-map__pin.is-phcore-active,
.phcore-map__pin:hover,
.phcore-map__pin:focus-visible{
  transform:translate(-50%,-50%) scale(1.2);
  box-shadow:0 5px 19px rgba(2,22,36,.52);
  filter:brightness(1.12);
  z-index:5;
}


/* v1.3.17 — estate home navigation beside the map, synchronized on hover and focus. */
.phcore-map__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(215px,290px);align-items:start;gap:16px}
.phcore-map__layout>.phcore-map__stage{min-width:0}
.phcore-map__sidebar{min-width:0;padding:15px 12px 12px;border:1px solid #d7e2eb;background:#f5f8fb;border-radius:12px}
.phcore-map__sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 11px 1px;color:#12314a}
.phcore-map__sidebar-head>strong{font-size:16px;line-height:1.25;font-weight:800}
.phcore-map__count{display:inline-flex;min-width:26px;padding:0 7px;height:26px;align-items:center;justify-content:center;border-radius:20px;background:#dcebf4;color:#153e58;font-size:12px;font-weight:800}
.phcore-map__list{display:flex;flex-direction:column;gap:7px;margin:0!important;padding:0!important;max-height:min(75vh,770px);overflow-y:auto;scrollbar-width:thin}
.phcore-map__list li{margin:0!important;padding:0!important;min-width:0}
.phcore-map__list a.phcore-map__home-link{--phcore-home-color:#86939e;display:flex;align-items:center;gap:9px;padding:10px 9px;min-height:54px;min-width:0;border:1px solid #d7e2eb;border-left:4px solid var(--phcore-home-color);border-radius:9px;color:#102c48!important;text-decoration:none!important;background:white;box-shadow:0 1px 2px rgba(15,45,65,.03);transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.phcore-map__home-link--available{--phcore-home-color:var(--phcore-available,#8fb31f)!important}
.phcore-map__home-link--reserved{--phcore-home-color:var(--phcore-reserved,#e99a24)!important}
.phcore-map__home-link--sold{--phcore-home-color:var(--phcore-sold,#d9444f)!important}
.phcore-map__home-link--planned{--phcore-home-color:var(--phcore-planned,#86939e)!important}
.phcore-map__home-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--phcore-home-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--phcore-home-color) 15%,transparent)}
.phcore-map__list a.phcore-map__home-link .phcore-map__home-copy{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:3px;color:inherit}
.phcore-map__list a.phcore-map__home-link .phcore-map__home-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-weight:800;font-size:13px;line-height:1.35}
.phcore-map__list a.phcore-map__home-link .phcore-map__home-status{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.3;color:#5c7181}
.phcore-map__home-arrow{font-size:15px;flex:0 0 auto;align-self:center;color:#62889e!important}
.phcore-map__list a.phcore-map__home-link:hover,.phcore-map__list a.phcore-map__home-link.is-phcore-active,.phcore-map__list a.phcore-map__home-link:focus-visible{background:#e9f8fd;border-color:var(--phcore-home-color);border-left-color:var(--phcore-home-color);box-shadow:0 4px 16px rgba(4,40,55,.16);transform:translateX(-2px)}
.phcore-map__list a.phcore-map__home-link:focus-visible{outline:2px solid #00b0df;outline-offset:2px}
@media(max-width:900px){.phcore-map__layout{grid-template-columns:minmax(0,1fr) minmax(188px,235px);gap:10px}.phcore-map__sidebar{padding:11px 8px}.phcore-map__list a.phcore-map__home-link{padding:9px 7px}}
@media(max-width:700px){.phcore-map__layout{grid-template-columns:minmax(0,1fr)}.phcore-map__sidebar{margin-top:0}.phcore-map__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.phcore-map__sidebar-head{margin-bottom:9px}}
@media(max-width:480px){.phcore-map__list{grid-template-columns:minmax(0,1fr)}.phcore-map__home-link{min-height:50px}}
/* Preserve legibility inside the full-screen dark estate-map dialog. */
.ph-property-map-dialog .phcore-map__sidebar{background:#102337;border-color:#334c60;color:#e5eef5}
.ph-property-map-dialog .phcore-map__sidebar-head{color:#f2f8fd}
.ph-property-map-dialog .phcore-map__count{background:#263c4e;color:#ecf7ff}
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link{background:#152d42;color:#fff!important;border-color:#364f62;border-left-color:var(--phcore-home-color)}
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link .phcore-map__home-status{color:#b5cbd8}
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link .phcore-map__home-arrow{color:#d8eaf2!important}
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link:hover,
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link.is-phcore-active,
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link:focus-visible{background:#24445c;border-color:var(--phcore-home-color);box-shadow:0 5px 16px rgba(0,0,0,.35)}

/* v1.3.18 — two-line property prices in the estate map home navigation.
   The larger net price and VAT share one line; smaller gross price sits below.
   Legacy gross-only entries never receive a second VAT charge. */
.phcore-map__list a.phcore-map__home-link .phcore-map__home-copy{min-width:0;overflow:hidden}
.phcore-map__list a.phcore-map__home-link .phcore-map__home-netline{display:flex;align-items:baseline;gap:5px;max-width:100%;white-space:nowrap;line-height:1.25;margin-top:3px}
.phcore-map__list a.phcore-map__home-link .phcore-map__home-net{color:#163d58;font-size:clamp(12px,1.1vw,14px);font-weight:850;line-height:1.25;white-space:nowrap}
.phcore-map__list a.phcore-map__home-link .phcore-map__home-vat{font-size:10px;font-weight:700;color:#687f91;line-height:1.25;white-space:nowrap}
.phcore-map__list a.phcore-map__home-link .phcore-map__home-gross{display:block;font-size:11px;line-height:1.35;font-weight:500;color:#657b8a;white-space:nowrap;max-width:100%;margin-top:1px}
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link .phcore-map__home-net,
.single-ph_estate .ph-estate-map--dark .phcore-map__list a.phcore-map__home-link .phcore-map__home-net{color:#f6fbff}
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link .phcore-map__home-vat,
.single-ph_estate .ph-estate-map--dark .phcore-map__list a.phcore-map__home-link .phcore-map__home-vat{color:#b4cbdc}
.ph-property-map-dialog .phcore-map__list a.phcore-map__home-link .phcore-map__home-gross,
.single-ph_estate .ph-estate-map--dark .phcore-map__list a.phcore-map__home-link .phcore-map__home-gross{color:#b1c5d5}
@media(max-width:900px) and (min-width:701px){
  .phcore-map__list a.phcore-map__home-link .phcore-map__home-net{font-size:11px}
  .phcore-map__list a.phcore-map__home-link .phcore-map__home-vat{font-size:9px}
}

/* ParterHouse Core 1.3.20–1.3.21 — consistent compact rectangular map markers.
   Building stage never changes a pin/parcel border to dashed: colours still show sale status.
   Markers remain synchronized with parcel, right-hand list and map filters via frontend.js.
   On phones markers stay compact and long captions are ellipsized. */
.phcore-map{
  --phcore-badge-bg:#142d41;
  --phcore-badge-stroke:#536c7e;
  --phcore-badge-text:#f9fcff;
  --phcore-building:#49a6c6;
}
.phcore-map__pin{
  --phcore-badge-accent:var(--phcore-planned);
  display:inline-flex;gap:5px;align-items:center;justify-content:center;
  width:auto;height:auto;min-height:28px;min-width:34px;
  max-width:min(230px,57vw);padding:4px 7px 4px 6px;
  border:1px solid var(--phcore-badge-stroke);
  border-left:4px solid var(--phcore-badge-accent);
  border-radius:6px;background:var(--phcore-badge-bg)!important;
  color:var(--phcore-badge-text)!important;
  font-size:12px;font-weight:800;line-height:1.2;
  box-shadow:0 4px 12px rgba(0,14,26,.48);
  transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.phcore-map__pin::before{
  content:"";display:block;flex:0 0 7px;width:7px;height:7px;
  border-radius:50%;background:var(--phcore-badge-accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--phcore-badge-accent) 20%,transparent);
}
.phcore-map__pin--available{--phcore-badge-accent:var(--phcore-available)}
.phcore-map__pin--reserved{--phcore-badge-accent:var(--phcore-reserved)}
.phcore-map__pin--sold{--phcore-badge-accent:var(--phcore-sold)}
.phcore-map__pin--planned,.phcore-map__pin--unknown{--phcore-badge-accent:var(--phcore-planned)}
.phcore-map__pin-text{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phcore-map__pin:is(.is-phcore-active,:hover,:focus-visible){
  transform:translate(-50%,-50%) scale(1.12);
  background:#24465c!important;border-color:var(--phcore-badge-accent);
  border-left-color:var(--phcore-badge-accent);
  box-shadow:0 6px 17px rgba(0,11,22,.62);
  filter:none;z-index:10;
}
.phcore-map__pin:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:700px){
  .phcore-map__pin{min-height:23px;min-width:24px;max-width:min(145px,39vw);padding:3px 5px 3px 4px;border-left-width:3px;border-radius:5px;font-size:10px;gap:4px}
  .phcore-map__pin::before{width:6px;height:6px;flex-basis:6px;box-shadow:0 0 0 2px color-mix(in srgb,var(--phcore-badge-accent) 20%,transparent)}
  .phcore-map__pin:is(.is-phcore-active,:hover,:focus-visible){transform:translate(-50%,-50%) scale(1.07)}
}
@media(max-width:430px){
  .phcore-map__pin{min-height:21px;max-width:min(120px,34vw);padding:2px 4px 2px 3px;font-size:9.5px;gap:3px;border-radius:4px}
  .phcore-map__pin::before{width:5px;height:5px;flex-basis:5px}
}
@media(prefers-reduced-motion:reduce){.phcore-map__pin{transition:none!important}}
/* Wide map cards: short home/status on the left, net price and VAT on the
   right (the approved upper-card layout). Narrow cards fall back to rows. */
.phcore-map__sidebar{container:phcore-home-panel/inline-size}
@container phcore-home-panel (min-width:350px){
  .phcore-map__list a.phcore-map__home-link .phcore-map__home-copy{
    display:grid;grid-template-columns:minmax(0,1fr) max-content;
    column-gap:8px;row-gap:3px;align-items:start;
  }
  .phcore-map__home-title{grid-column:1;grid-row:1;align-self:center}
  .phcore-map__list a.phcore-map__home-link .phcore-map__home-status{
    grid-column:1;grid-row:2;align-self:start;margin:0;
  }
  .phcore-map__list a.phcore-map__home-link .phcore-map__home-netline{
    grid-column:2;grid-row:1;justify-self:end;align-self:center;margin:0;
  }
  .phcore-map__list a.phcore-map__home-link .phcore-map__home-gross{
    grid-column:2;grid-row:2;justify-self:end;align-self:start;margin:0;
  }
  .phcore-map__list a.phcore-map__home-link:not(:has(.phcore-map__home-netline)) .phcore-map__home-gross{grid-row:1}
}

/* v1.3.21 — small sale/build stages in the map sidebar are plain text again.
   No inner dots, framed pills or secondary decoration. Pin and house-dot stay unchanged. */
.phcore-map__list a.phcore-map__home-link .phcore-map__home-status{
  font-weight:500;letter-spacing:0;line-height:1.35;
  background:transparent;border:0;box-shadow:none;padding:0;
}
