.page-map{--header:60px;--gutter:clamp(22px,2.75vw,53px);height:100dvh;overflow:hidden;background:#dbe9f3}
.page-map .site-header{background:#f5f9fd;box-shadow:0 2px 12px #173e661c}
.page-map .brand img{width:143px}
.page-map .site-header{gap:clamp(14px,2.1vw,32px)}
.page-map .site-header nav{padding-left:clamp(12px,1.5vw,25px)}
.page-map .site-header nav a{font-size:clamp(.83rem,1.13vw,1.02rem)}
.map-layout{height:calc(100dvh - var(--header));display:grid;grid-template-columns:clamp(360px,34.8vw,520px) minmax(0,1fr);position:relative;background:#d9eaf7;isolation:isolate}
.map-panel{position:relative;z-index:3;display:flex;flex-direction:column;min-height:0;margin:13px 0 13px 15px;border:1px solid #fff;border-radius:25px;background:linear-gradient(150deg,#f3faff,#eaf3ff 55%,#e8f1ff);box-shadow:0 4px 22px #1d507e29,inset 0 0 0 1px #fff9}
.map-search{position:relative;padding:20px 20px 0}
.map-search h1{font-size:clamp(1.68rem,2.48vw,2.4rem);line-height:1.035;letter-spacing:-.061em;color:#102653;margin:0;font-weight:820}
.map-search h1 span{display:block;color:var(--red)}
.map-search h1 span::after{content:"";display:block;width:113px;height:6px;margin:5px 0 0 2px;border-top:3px solid var(--red);border-radius:72% 40% 0 0;transform:rotate(-2.6deg)}
.map-search>p:not(.server-notice){color:var(--text);font-size:clamp(.85rem,1.12vw,1rem);letter-spacing:-.026em;margin:8px 0 13px;line-height:1.35}
.location-form--map{width:100%}
.location-form--map .location-bar{min-height:49px;padding:4px;box-shadow:0 3px 9px #1f538b2c;border:1px solid white}
.location-form--map .geo-button{width:45px;height:32px;border-color:#dbe5f2}
.location-form--map .geo-button .icon{width:27px;height:27px}
.location-form--map input[type=search]{height:36px;padding:4px 10px;font-size:.98rem}
.location-form--map .search-submit{background:#075bf5;min-height:38px;min-width:60px;padding:0 12px;border:1px solid #82b5ff;box-shadow:inset 0 0 9px #69baffb5}
.location-form--map .search-submit:hover{background:var(--blue-dark)}
.location-form--map .search-submit .icon{width:25px;height:25px;stroke-width:2.3}
.map-search .server-notice{left:20px}
.results-panel{flex:1;min-height:0;display:flex;flex-direction:column}
.drawer-toggle{display:none}
.results-content{display:flex;flex-direction:column;min-height:0;flex:1}
.map-filters{display:grid;gap:9px;padding:12px 16px 11px}
.filter-buttons,.exam-types{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.filter-buttons button,.exam-types button,.sort-label{background:#fbfdff;color:#142446;border:1px solid #fff;min-height:36px;border-radius:26px;box-shadow:0 3px 7px #1c57932b}
.filter-buttons button,.exam-types button{display:flex;align-items:center;justify-content:center;gap:4px;padding:2px clamp(7px,.83vw,12px);font-size:clamp(.74rem,.94vw,.87rem);font-weight:680;letter-spacing:-.035em;white-space:nowrap}
.filter-buttons button .icon{width:19px;height:19px}
.filter-buttons button:hover,.exam-types button:hover{background:#e0efff}
.filter-buttons [aria-pressed=true],.exam-types [aria-pressed=true]{background:var(--blue);color:white;border-color:#126afa}
.filter-buttons [data-filter=centres][aria-pressed=true],.exam-types [aria-pressed=true]{background:#138242;border-color:#138242}
.exam-types{padding-left:3px}
.exam-types button{min-height:30px}
.sort-row{display:flex;align-items:center;justify-content:space-between;gap:9px}
.sort-note{margin:0;font-size:.73rem;color:var(--muted);line-height:1.3}
.sort-label{display:inline-flex;align-items:center;position:relative;padding-left:11px;white-space:nowrap}
.sort-label>span{font-size:.74rem;color:var(--muted);padding-right:6px;border-right:1px solid var(--line)}
.sort-label select{appearance:none;min-height:34px;padding:0 27px 0 7px;background:transparent;border:0;border-radius:26px;font-size:.81rem;font-weight:700}
.sort-label .icon{pointer-events:none;position:absolute;right:9px;width:14px}
.area-name{font-weight:640;color:#3a5275;font-size:.82rem;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.results-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9cb4d1 transparent;padding:1px 13px 6px 15px}
.result-card{width:100%;display:grid;grid-template-columns:clamp(79px,8vw,132px) minmax(0,1fr) 26px;align-items:center;gap:13px;min-height:103px;margin-bottom:7px;padding:8px 9px 8px 10px;border-radius:16px;border:1px solid #d8e5f4;background:linear-gradient(125deg,white,#f0f6ff);box-shadow:0 2px 5px #244c751d;cursor:pointer;text-align:left}
.result-card:hover,.result-card:focus-within{border-color:#94b9f8}
.result-card.is-selected{background:linear-gradient(120deg,#eef6ff,#dcecff);border-color:#075bf5;box-shadow:0 0 0 1px #075bf5 inset}
.result-image{width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;border-radius:10px;background:#dbeaff}
.result-copy{min-width:0}
.result-title{display:block;padding:0;border:0;background:transparent;color:var(--navy-strong);font-size:clamp(.94rem,1.26vw,1.18rem);font-weight:790;line-height:1.12;letter-spacing:-.046em;text-align:left}
.result-address,.result-metrics{display:flex;gap:4px;align-items:center;margin:5px 0;color:#223a60;font-size:.77rem;line-height:1.2}
.result-address .icon{width:13px;height:13px}
.result-address span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-metrics{flex-wrap:wrap;gap:4px 9px;font-weight:650;font-variant-numeric:tabular-nums}
.result-metrics span{display:inline-flex;align-items:center;gap:3px}
.result-card .tags{margin-top:6px}
.result-card .tags li{font-size:.71rem;padding:3px 8px}
.result-actions{display:grid;justify-items:center}
.result-detail,.result-share{display:grid;place-items:center;color:#0751df;width:29px;height:29px;border:0;border-radius:8px;background:transparent;padding:0}
.result-detail:hover,.result-share:hover{background:#dcecff}
.result-detail .icon{width:19px;height:19px}
.result-share .icon{width:15px;height:15px}
.map-status{padding:2px 3px;font-size:.85rem;color:#304969;line-height:1.4;margin:5px 0}
.map-status:empty{display:none}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 1px;font-size:.76rem}
.pagination button,.retry{font-weight:650;background:white;color:#0c489f;border:1px solid #bfcee4;border-radius:8px;padding:6px 7px}
.pagination button:disabled{opacity:.55}
.map-stage{position:relative;min-width:0;min-height:0;overflow:hidden;margin-left:-7px;isolation:isolate}
.map-viewport{position:absolute;inset:0;overflow:hidden;cursor:grab;touch-action:none;background-color:#e3edf1;background-image:linear-gradient(25deg,#f3f6f8 5%,transparent 5%,transparent 50%,#f3f6f8 50%,#f3f6f8 55%,transparent 55%,transparent);background-size:80px 40px}
.map-viewport.dragging{cursor:grabbing}
.map-tiles,.map-pins{position:absolute;inset:0;pointer-events:none}
.map-tiles img{position:absolute;width:256px;height:256px;max-width:none;user-select:none;filter:saturate(.81) brightness(1.045)}
.map-pins button{position:absolute;pointer-events:auto;color:#fff;border:0;background:none;padding:0;transform:translate(-50%,-100%);width:41px;height:47px;isolation:isolate}
.map-pins button.is-exam{color:#fff}
.marker-shape{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 3px 4px #12315c6e);overflow:visible}
.marker-shape path{fill:#075bf5;stroke:white;stroke-width:2.2}
.is-exam .marker-shape path{fill:#129443}
.is-selected .marker-shape path{fill:#ea0024}
.map-pins .is-selected{z-index:1;width:54px;height:63px}
.map-pins button .icon{position:absolute;width:50%;height:44%;left:25%;top:16%;stroke-width:2.05}
.map-pins .cluster{transform:translate(-50%,-50%);border-radius:50%;background:#075bdc;border:2px solid #fff;box-shadow:0 1px 8px #0b3c78af;width:37px;height:37px;font-size:.83rem;font-weight:780}
.map-pins .cluster.is-exam{background:#128349}
.map-pins .cluster:hover{background:#003b9f}
.map-pins .gps-dot{position:absolute;width:20px;height:20px;background:#0560ee;border:3px solid white;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 10px #2d85ff3d,0 0 0 21px #2d85ff24}
.map-popup{position:absolute;z-index:3;width:max-content;max-width:min(425px,calc(100% - 18px));min-height:92px;background:linear-gradient(120deg,#fff,#f4f8ff);border:1px solid #fff;border-radius:20px;box-shadow:0 8px 21px #17356260;display:flex;align-items:center;gap:12px;padding:11px 33px 11px 11px;cursor:default;isolation:isolate}
.map-popup::after{content:"";position:absolute;z-index:-1;left:var(--pointer,50%);bottom:-8px;width:16px;height:16px;transform:translateX(-50%) rotate(45deg);background:#f7faff}
.map-popup.is-below::after{top:-8px;bottom:auto}
.map-popup .result-image{width:94px;flex:none}
.map-popup .result-title{font-size:clamp(1rem,1.55vw,1.45rem);text-decoration:none}
.result-contacts{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .7rem;margin:2px 0 5px;font-size:.83rem;font-weight:700}
.result-contacts a{white-space:nowrap}
.result-contacts .result-share{width:28px;height:28px;align-self:center}
.popup-close{position:absolute;top:7px;right:7px;padding:4px;border:0;background:none;color:#18335c}
.popup-close:hover{background:#e8f1ff;border-radius:10px}
.map-controls{position:absolute;z-index:4;right:17px;bottom:76px;display:grid;justify-items:end;gap:9px}
.map-controls button{display:grid;place-items:center;width:43px;height:43px;color:#102653;background:#fff;border:0;border-radius:50%;box-shadow:0 3px 11px #1737613b}
.map-controls button:hover{background:#edf5ff}
.map-controls #share-map{color:#fff;background:var(--blue)}
.map-controls #share-map:hover{background:var(--blue-dark)}
.map-controls button .icon{width:22px;height:22px}
.zoom-controls{display:grid;background:white;border-radius:28px;box-shadow:0 3px 11px #1737613b;overflow:hidden}
.zoom-controls button{border-radius:0;box-shadow:none}
.zoom-controls button+button{border-top:1px solid var(--line)}
.zoom-controls button:disabled{color:#8894a5}
.map-legend{position:absolute;right:10px;bottom:6px;z-index:4;display:grid;justify-items:end;gap:4px;pointer-events:none}
.map-legend a,.map-scale{color:#102653;background:#ffffffef;font-size:.68rem;padding:2px 5px;border-radius:4px}
.map-legend a{pointer-events:auto}
.map-scale{display:block;text-align:center;border:1px solid #234163;border-top:0;padding:2px 0;line-height:1.1;min-width:40px}
.tile-status{position:absolute;top:10px;left:14px;z-index:1;max-width:calc(100% - 30px);margin:0;padding:7px 10px;background:white;border-radius:8px;font-size:.79rem}
.map-layout.is-fullscreen{height:100%;grid-template-columns:minmax(0,1fr)}
.map-layout.is-fullscreen .map-panel{display:none}
.map-layout.is-fullscreen .map-stage{margin-left:0}
.page-map:fullscreen{background:#dbe9f3}
.page-map:fullscreen .map-layout{height:calc(100dvh - var(--header))}
.no-map{position:absolute;z-index:2;inset:237px 0 0;overflow:auto;padding:24px;background:#fbfdff}
.map-layout:has(.no-map) .map-panel{background:#f3faff}
.map-layout:has(.no-map) .map-panel:not(:focus-within){z-index:1}
.map-layout:has(.no-map) .map-search{position:relative;z-index:3}
.map-layout:has(.no-map) .results-panel,.map-layout:has(.no-map) .geo-button{display:none}
@media(min-width:1600px){.map-panel{margin-left:19px}.map-search{padding:22px 22px 0}.map-filters{padding-inline:20px}.result-card{min-height:111px}}
@media(max-width:820px){
  .page-map{--header:56px;--gutter:14px}
  .page-map .brand img{width:114px}
  .page-map .site-header{gap:12px}
  .page-map .site-header nav{padding-left:8px}
  .page-map .site-header nav a{font-size:.77rem}
  .map-layout{display:block}
  .map-panel{position:absolute;inset:0;pointer-events:none;margin:0;background:none;border:0;box-shadow:none;z-index:5;border-radius:0}
  .map-search{pointer-events:auto;padding:10px 12px 8px;margin:6px 8px 0;background:#f6fbfff5;border:1px solid white;border-radius:16px;box-shadow:0 3px 13px #19376037}
  .map-search h1{font-size:clamp(1.07rem,4vw,1.37rem);line-height:1.1;letter-spacing:-.045em}
  .map-search h1 span{display:inline}
  .map-search h1 span::after{display:none}
  .map-search>p:not(.server-notice){font-size:.74rem;margin:5px 0 8px}
  .location-form--map .location-bar{min-height:41px;padding:3px}
  .location-form--map .geo-button{width:37px;height:28px}
  .location-form--map .geo-button .icon{width:23px;height:23px}
  .location-form--map input[type=search]{height:33px;font-size:16px}
  .location-form--map .search-submit{min-height:32px;min-width:45px}
  .location-form--map .search-submit .icon{width:20px;height:20px}
  .map-search .server-notice{left:12px}
  .map-stage{position:absolute;inset:0;margin:0}
  .results-panel{position:absolute;inset:auto 0 0;pointer-events:auto;background:#f0f6ff;border:1px solid white;border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -3px 15px #1937603a;overflow:hidden;height:min(39dvh,340px)}
  .results-panel[data-drawer=collapsed]{height:42px}
  .results-panel[data-drawer=expanded]{height:calc(100% - 130px)}
  .results-panel[data-drawer=collapsed] .results-content{visibility:hidden}
  .drawer-toggle{display:flex;flex-direction:column;position:relative;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:4px 10px;background:#f7fbff;border:0;color:#122958;font-size:.84rem;touch-action:none}
  .drawer-toggle>span{width:35px;height:4px;border-radius:5px;background:#a9beda}
  .drawer-toggle .icon{position:absolute;right:16px;top:13px;transform:rotate(180deg)}
  [data-drawer=expanded] .drawer-toggle .icon{transform:none}
  .map-filters{padding:6px 10px 7px;gap:6px}
  .filter-buttons{gap:5px}
  .filter-buttons button{min-height:33px;font-size:.73rem;padding-inline:7px}
  .filter-buttons button .icon{width:16px;height:16px}
  .sort-label{min-height:30px}
  .sort-label select{min-height:28px}
  .area-name{font-size:.74rem}
  .results-scroll{padding-inline:9px}
  .result-card{min-height:79px;padding:6px;grid-template-columns:69px minmax(0,1fr) 24px;gap:8px;border-radius:13px}
  .result-title{font-size:.92rem}
  .result-address,.result-metrics{font-size:.72rem;margin:3px 0}
  .result-card .tags{margin-top:4px}
  .result-card .tags li{font-size:.65rem;padding:2px 7px}
  .map-controls{right:10px;bottom:calc(min(39dvh,340px) + 36px);gap:5px}
  .map-controls button{width:38px;height:38px}
  .map-controls button .icon{width:18px;height:18px}
  .map-legend{bottom:calc(min(39dvh,340px) + 5px);right:7px}
  .map-layout:has([data-drawer=collapsed]) .map-controls{bottom:76px}
  .map-layout:has([data-drawer=collapsed]) .map-legend{bottom:46px}
  .map-layout:has([data-drawer=expanded]) .map-controls,.map-layout:has([data-drawer=expanded]) .map-legend{visibility:hidden}
  .map-layout.is-fullscreen .map-controls{bottom:56px;visibility:visible}
  .map-layout.is-fullscreen .map-legend{bottom:7px;visibility:visible}
  .map-popup{max-width:calc(100% - 70px);border-radius:13px;padding:7px 27px 7px 7px;min-height:65px;gap:7px}
  .map-popup .result-image{width:59px}
  .map-popup .result-title{font-size:.9rem}
  .tile-status{top:128px}
  .no-map{inset:144px 0 0}
  .map-layout:has(.no-map) .map-panel{background:transparent}
}
@media(max-width:380px){
  .map-search h1 span{display:block}
  .filter-buttons{gap:4px;flex-wrap:nowrap}
  .filter-buttons button{font-size:.68rem;padding-inline:5px}
  .filter-buttons button .icon{width:14px;height:14px}
}
