body.map-view-active { overflow: hidden; }
.map-expand-trigger,
.expanded-map-pill {
  border: 1px solid #dce6dc;
  border-radius: 24px;
  min-height: 42px;
  padding: 8px 15px;
  background: #fff;
  color: #184538;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 10px #173c3426;
}
.map-expand-trigger { position: absolute; z-index: 3; top: 10px; right: 10px; }
#mapWrap .leaflet-control-zoom {
  display: grid;
  gap: 6px;
  border: 0;
  box-shadow: none;
}
#mapWrap .leaflet-control-zoom a {
  width: 35px;
  height: 35px;
  line-height: 35px;
  border: 1px solid #dce6dc;
  border-radius: 50%;
  box-shadow: 0 2px 7px #173c3426;
}
#mapWrap .photo-cluster,
#mapWrap .photo-cluster img,
#mapWrap .photo-cluster .cluster-initial,
#mapWrap .map-stack .pin,
#mapWrap .map-stack .pin img,
#mapWrap .map-stack .pin .map-initial {
  border-radius: 50%;
}
#mapWrap .map-stack .pin {
  height: var(--pin-size);
  display: grid;
  place-items: center;
}
#mapWrap .map-stack .pin img,
#mapWrap .map-stack .pin .map-initial { margin: 0; }
#mapWrap .map-stack .map-name {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #ffffffed;
  color: #234736;
  border-radius: 20px;
  padding: 0 6px;
}
#mapWrap .map-stack .pin.selected-map-pin .map-name { background: #143e32; color: #fff; }
#mapWrap .photo-cluster .cluster-count,
#mapWrap .map-stack .map-more { border-radius: 999px; }
dialog.expanded-map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
dialog.expanded-map[open] {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
}
.expanded-map-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: max(6px,env(safe-area-inset-top)) 14px 6px;
  border-bottom: 1px solid #e5ece3;
}
.expanded-map-heading { min-width: 0; }
.expanded-map-header h2 { font-size: 18px; margin: 0; }
.expanded-map-summary {
  margin: 2px 0 0;
  color: #586d62;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.expanded-map-back {
  border: 0;
  background: #eff4ee;
  color: #184538;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 100%;
  font-size: 21px;
}
.expanded-map-canvas { min-height: 0; grid-row: 2; grid-column: 1; }
.expanded-map-canvas .map-wrap { position: relative; top: auto; width: 100%; height: 100%; border: 0; border-radius: 0; }
.expanded-map-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-column: 1;
  padding: 0 max(16px,calc((100% - 760px)/2)) max(78px,calc(72px + env(safe-area-inset-bottom)));
  background: #fff;
}
dialog.expanded-map[open][data-mode="split"] { grid-template-rows: auto minmax(150px,38fr) minmax(150px,62fr); }
.expanded-map[data-mode="split"] .expanded-map-list {
  grid-row: 3;
  z-index: 2;
  margin-top: -12px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 14px #173c341d;
}
.expanded-map[data-mode="list"] .expanded-map-list { grid-row: 2; }
.expanded-map .expanded-list-items {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}
.expanded-map .selected-designer-card { border-color: #61947b; box-shadow: 0 0 0 1px #61947b26; }
.expanded-map[data-mode="map"] .expanded-map-list,
.expanded-map[data-mode="list"] .expanded-map-canvas,
.expanded-map[data-mode="list"] .expanded-list-header > button,
.expanded-map[data-mode="map"] .expanded-map-footer button:last-child,
.expanded-map:not([data-mode="map"]) .expanded-map-footer button:first-child { display: none; }
.expanded-map-footer {
  grid-column: 1;
  grid-row: 2;
  z-index: 3;
  place-self: end center;
  margin-bottom: max(27px,calc(22px + env(safe-area-inset-bottom)));
}
.expanded-map[data-mode="split"] .expanded-map-footer { grid-row: 3; }
.expanded-map:not([data-mode="map"]) .expanded-map-pill { background: #194b3d; color: #fff; border-color: #194b3d; }
.expanded-list-header,
.expanded-list-heading,
.expanded-list-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.expanded-list-header { padding-top: 15px; justify-content: space-between; }
.expanded-list-header h3 { font-size: 15px; margin: 0; }
.expanded-list-count { color: #2c7157; font-size: 12px; font-weight: 700; }
.expanded-list-sort { margin: 12px 0 4px; }
.expanded-map-control {
  border: 1px solid #dce6dc;
  border-radius: 20px;
  min-height: 34px;
  padding: 6px 11px;
  background: #fff;
  color: #244839;
  font-size: 12px;
  word-break: keep-all;
}
.expanded-map-control[aria-pressed="true"] { border-color: #45826b; background: #edf7ee; font-weight: 700; }
.expanded-map-control:disabled { opacity: .5; }
.expanded-distance-hint { margin-left: auto; color: #627468; font-size: 11px; }
.expanded-list-more { display: block; margin: 14px auto; }
.expanded-list-empty { color: #576b60; line-height: 1.6; font-size: 14px; padding: 20px 0; }
@media(max-height:440px) {
  dialog.expanded-map[open][data-mode="split"] { grid-template-rows: auto minmax(90px,38fr) minmax(110px,62fr); }
}
/* Exploration keeps the map as one continuous canvas. */
body.explore-map-layout{--explore-top:72px;--explore-bottom:68px;--drawer-width:370px;overflow:hidden}
body.explore-map-layout>header{height:var(--explore-top);padding:10px 24px;box-sizing:border-box;border-bottom:1px solid #e0e7df;background:white}
body.explore-map-layout>header .top{max-width:none;margin:0;height:50px;padding:0}
body.explore-map-layout>header .hero,body.explore-map-layout .page-navigation,body.explore-map-layout #discoveryHome{display:none!important}
body.explore-map-layout main{max-width:none;padding:0;margin:0}
body.explore-map-layout #layout{display:block!important;position:fixed;inset:var(--explore-top) 0 var(--explore-bottom);margin:0;max-width:none;overflow:hidden}
body.explore-map-layout #layout>.map-wrap{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;top:0;z-index:0}
body.explore-map-layout #layout>.results{position:absolute;inset:0 auto 0 0;width:var(--drawer-width);max-width:calc(100% - 50px);padding:16px;box-sizing:border-box;background:#fff;overflow:auto;overscroll-behavior:contain;border:0;border-right:1px solid #dfe7df;border-radius:0;box-shadow:4px 0 18px #183d3217;z-index:4;transition:transform .2s ease;scrollbar-width:thin}
.drawer-heading{display:none}.drawer-toggle{display:none}
body.explore-map-layout .drawer-heading{display:flex;align-items:center;font-size:18px;letter-spacing:-.5px;margin-bottom:12px}
body.explore-map-layout .drawer-toggle{display:block;position:absolute;top:50%;transform:translateY(-50%);left:var(--drawer-width);width:28px;padding:0;min-height:56px;border:1px solid #dce5dc;border-left:0;border-radius:0 12px 12px 0;background:#fff;color:#214e40;box-shadow:3px 1px 8px #183d3215;z-index:5;transition:left .2s ease;font-size:21px}
body.explore-map-layout.drawer-collapsed #layout>.results{transform:translateX(-100%);visibility:hidden}
body.explore-map-layout.drawer-collapsed .drawer-toggle{left:0}
body.explore-map-layout #searchModes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 12px;border-radius:12px;background:#f1f5ef}
body.explore-map-layout #searchModes .search-mode{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:10px 3px;min-height:88px;min-width:0;width:100%;border:0;border-radius:9px;box-shadow:none;font-size:12px}
body.explore-map-layout #searchModes .mode-symbol{width:22px;height:22px;border-radius:0;background:none;color:inherit;padding:0}
body.explore-map-layout #searchModes .mode-symbol svg{width:20px;height:20px}
body.explore-map-layout #searchModes .mode-title{align-self:center;display:block;text-align:center;max-width:100%;font-size:12px;line-height:1.45;letter-spacing:0}
body.explore-map-layout #searchModes .mode-title span{display:block;white-space:nowrap}
body.explore-map-layout #searchModes .mode-description{display:none}
body.explore-map-layout #personalHint{padding:10px;margin-bottom:10px;font-size:12px}
body.explore-map-layout #personalHint p{margin:0 0 6px;font-size:11px;line-height:1.5}
body.explore-map-layout #heading{font-size:16px;margin:14px 0 6px}
body.explore-map-layout #coverage{font-size:10px;line-height:1.5}
body.explore-map-layout #layout>.map-wrap .leaflet-top.leaflet-left{left:calc(var(--drawer-width) + 38px)}
body.explore-map-layout.drawer-collapsed #layout>.map-wrap .leaflet-top.leaflet-left{left:10px;top:70px}
body.explore-map-layout #layout>.map-wrap .mapnote{left:calc(var(--drawer-width) + 12px);max-width:calc(100% - var(--drawer-width) - 40px)}
body.explore-map-layout.drawer-collapsed #layout>.map-wrap .mapnote{left:12px;max-width:calc(100% - 24px)}
body.explore-map-layout .distance{font-size:10px;line-height:1.5;color:#597266}
/* The expanded map never loses height when a result drawer opens. */
dialog.expanded-map[open][data-mode="split"],dialog.expanded-map[open][data-mode="list"]{grid-template-rows:auto minmax(0,1fr)}
.expanded-map[data-mode="split"] .expanded-map-list,.expanded-map[data-mode="list"] .expanded-map-list{position:absolute;inset:64px auto 0 0;width:370px;max-width:calc(100% - 48px);margin:0;padding:0 14px 80px;box-sizing:border-box;border-radius:0 14px 0 0;box-shadow:4px 0 24px #183d3228;z-index:4}
.expanded-map[data-mode="list"] .expanded-map-canvas{display:block}
.expanded-map[data-mode="split"] .expanded-map-footer{grid-row:2}
.expanded-map-list .card-portfolio{gap:5px}
/* Profile details sit above the map; closing returns to the same viewport. */
body.explore-map-layout #dialog[open]{position:fixed;inset:var(--explore-top) 0 var(--explore-bottom) auto;width:min(470px,calc(100vw - 28px));height:calc(100dvh - var(--explore-top) - var(--explore-bottom));max-height:none;max-width:none;margin:0;border-radius:20px 0 0 20px;border:1px solid #dce5dc;box-shadow:-8px 0 36px #173d3224;animation:profile-slide .18s ease-out}
body.map-view-active #dialog[open]{inset:64px 0 0 auto;height:calc(100dvh - 64px)}
body.explore-map-layout #dialog::backdrop{background:#143e3214;backdrop-filter:none}
body.explore-map-layout #dialog>.sheet{padding:18px}
body.explore-map-layout #dialog .sheethead{position:sticky;top:-18px;background:#fff;z-index:3;padding:12px 0}
@keyframes profile-slide{from{transform:translateX(24px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(max-width:700px){
 body.explore-map-layout{--explore-top:58px;--explore-bottom:calc(64px + env(safe-area-inset-bottom));--drawer-width:min(330px,calc(100vw - 54px))}
 body.explore-map-layout>header{padding:6px 12px}body.explore-map-layout>header .top{height:46px}
 body.explore-map-layout .top-actions #registrationOpen,body.explore-map-layout .top-actions #betaInfoOpen{display:none}
 body.explore-map-layout .brand{font-size:23px}body.explore-map-layout .brand-mark{width:32px;height:32px}
 body.explore-map-layout #layout>.results{padding:12px}
 body.explore-map-layout #dialog[open],body.map-view-active #dialog[open]{inset:auto 0 0;width:100%;height:78dvh;max-height:calc(100dvh - 64px);border-radius:22px 22px 0 0;animation:profile-rise .2s ease-out}
 body.explore-map-layout #dialog>.sheet{padding:16px 16px max(22px,env(safe-area-inset-bottom))}
 .expanded-map[data-mode="split"] .expanded-map-list,.expanded-map[data-mode="list"] .expanded-map-list{inset:auto 0 0;width:100%;max-width:none;height:57%;border-radius:20px 20px 0 0;box-shadow:0 -6px 24px #183d3220}
 .expanded-map[data-mode="split"] .expanded-map-footer{position:absolute;right:16px;top:8px;bottom:auto;margin:0}
 @keyframes profile-rise{from{transform:translateY(32px);opacity:.5}to{transform:translateY(0);opacity:1}}
}
@media(prefers-reduced-motion:reduce){body.explore-map-layout #dialog[open],body.explore-map-layout #layout>.results,.drawer-toggle{animation:none;transition:none}}


/* Five primary destinations; all secondary routes remain in their feature menus. */
nav[aria-label="주 메뉴"]{grid-template-columns:repeat(5,minmax(0,1fr))}
nav[aria-label="주 메뉴"] .secondary-quick{display:none}
nav[aria-label="주 메뉴"] button{font-size:12px;min-height:58px;white-space:normal}
.professional-menu{margin:24px 0;border:1px solid #dce5dc;border-radius:14px;padding:15px}
.professional-menu summary{cursor:pointer;font-weight:700;line-height:1.6}
.professional-menu .hub-menu{margin-top:15px}
.hub-search input,.hub-search,.top-actions,.hub-gallery>*{min-width:0}
body:not(.explore-map-layout) #searchModes{display:none}
@media(max-width:700px){.top-actions{flex-wrap:wrap;justify-content:flex-end}.top{gap:10px;height:auto;min-height:47px}.brand{flex-shrink:0}.hub-search{grid-template-columns:24px minmax(0,1fr) auto}.work-actions{display:flex;flex-wrap:wrap}.work-actions>*{flex:1;min-width:90px}.booking-channels .action{overflow-wrap:anywhere}}

.designer-detail .work-preview{max-height:46dvh;width:auto;max-width:100%;object-fit:contain}
@media(max-width:700px){.top-actions .account-open,.top-actions .beta-badge{flex-shrink:0;white-space:normal;max-width:100%}.top-actions{flex-wrap:wrap!important}body.explore-map-layout .top-actions .beta-badge{display:none}}
.designer-detail .work-full{max-height:42dvh;width:auto;max-width:100%;object-fit:contain;margin-inline:auto;display:block}

/* Keep map controls in a reserved rail rather than on top of clickable pins. */
.map-wrap>.map{position:absolute;top:58px;bottom:26px;height:auto;width:100%}
.map-control-rail{position:absolute;top:8px;left:12px;z-index:3;display:flex}
.map-control-rail .leaflet-control-zoom{display:flex;float:none;margin:0;border:1px solid #d7e2d9;border-radius:12px;overflow:hidden;background:white}
.map-control-rail .leaflet-control-zoom a{width:38px;height:38px;line-height:38px;border:0;border-radius:0}
.map-control-rail .leaflet-control-zoom a+a{border-left:1px solid #d7e2d9}
.map-wrap .mapnote{bottom:2px;padding:3px 7px;line-height:17px;font-size:10px;background:transparent;border:0;box-shadow:none}
body.explore-map-layout #layout>.map-wrap .map-control-rail{left:calc(var(--drawer-width) + 10px)}
body.explore-map-layout.drawer-collapsed #layout>.map-wrap .map-control-rail{left:12px}
body.explore-map-layout.drawer-collapsed .drawer-toggle{top:50%}
@media(max-width:700px){body.explore-map-layout:not(.drawer-collapsed) #layout>.map-wrap .map-control-rail,body.explore-map-layout:not(.drawer-collapsed) #layout>.map-wrap .map-expand-trigger{display:none}}

#mapWrap .map-control-rail .leaflet-control-zoom{display:flex;gap:0;border:1px solid #d7e2d9;box-shadow:none}#mapWrap .map-control-rail .leaflet-control-zoom a{width:38px;height:38px;line-height:38px;border:0;border-radius:0}#mapWrap .map-control-rail .leaflet-control-zoom a+a{border-left:1px solid #d7e2d9}
/* Give the home search a clear boundary before the introduction banner. */
#homeHub>.hub-search{margin-bottom:16px}
@media(max-width:700px){#homeHub>.hub-search{margin-bottom:12px}}

/* Quiet text navigation, with generous click targets and visible keyboard focus. */
header .top-actions{display:flex;align-items:center;column-gap:18px;row-gap:0;max-width:none}
body header .top .top-actions>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent!important;box-shadow:none;color:var(--green,#163c34);font:inherit;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:0;white-space:nowrap;cursor:pointer}
header .top-actions button:hover{background:transparent;text-decoration:underline;text-underline-offset:4px}
header .top-actions button:focus-visible{outline:2px solid #547c67;outline-offset:3px}
@media(max-width:700px){
 header .top-actions{column-gap:12px}
 body header .top .top-actions>button{font-size:11px}
 body:not(.explore-map-layout) header .top{
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;
  gap:clamp(6px,2vw,14px);min-height:52px;height:auto;
 }
 body:not(.explore-map-layout) header .top :is(.brand,.connect-logo):has(.gyeol-brand-logo){
  min-width:44px;min-height:44px;
 }
 body:not(.explore-map-layout) header .top .gyeol-brand-logo{
  width:clamp(42px,11vw,52px);height:auto;object-fit:contain;
 }
 body:not(.explore-map-layout) header .top-actions{
  min-width:0;width:auto;max-width:none;justify-content:flex-end;
  flex-wrap:nowrap!important;gap:clamp(3px,1.5vw,10px);
 }
 body:not(.explore-map-layout) header .top-actions>button{
  min-height:44px;min-width:44px;padding-inline:2px;
 }
 body:not(.explore-map-layout) header #accountOpen{
  flex:0 1 auto;min-width:0;max-width:100%;
 }
 body:not(.explore-map-layout) header #accountOpen:has(.account-display-name){
  align-items:flex-start;gap:1px;
 }
 header #accountOpen :is(.account-display-name,.account-display-role){
  display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.25;
 }
}

.style-settings-drawer[hidden],.settings-toggle[hidden]{display:none!important}
.style-settings-drawer{display:none}
body.explore-map-layout{--settings-width:clamp(270px,23vw,340px)}
body.explore-map-layout .style-settings-drawer:not([hidden]){display:block;position:absolute;inset:0 auto 0 var(--drawer-width);width:var(--settings-width);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;z-index:5;background:white;color:#183d32;border-right:1px solid #dfe7df;box-shadow:4px 0 18px #183d3217;padding:16px}
.style-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px;position:static;background:white;padding:0;border:0}
.style-settings-heading h2{font-size:17px;margin:0}.style-settings-heading button,.settings-toggle{min-height:44px}
.settings-toggle{margin:8px 0}.style-settings-drawer input{min-width:0}
@media(min-width:1001px){body.explore-map-layout.style-settings-open .drawer-toggle{left:calc(var(--drawer-width) + var(--settings-width))}
body.explore-map-layout.style-settings-open #layout>.map-wrap .map-control-rail,body.explore-map-layout.style-settings-open #layout>.map-wrap .mapnote{left:calc(var(--drawer-width) + var(--settings-width) + 10px)}}
@media(max-width:1000px){body.explore-map-layout .style-settings-drawer:not([hidden]){inset:0 auto 0 0;width:min(100%,var(--drawer-width));padding:14px}
body.explore-map-layout.style-settings-open .drawer-toggle{visibility:hidden}}

.work-results>.result-more{grid-column:1/-1;width:100%}

/* Give the map its own visible viewport so its center stays among the visible pins. */
body.explore-map-layout{--drawer-width:clamp(245px,23.5vw,370px);--settings-width:clamp(220px,20vw,320px);--panels-width:var(--drawer-width)}
@media(min-width:1001px){body.explore-map-layout.style-settings-open{--panels-width:calc(var(--drawer-width) + var(--settings-width))}}
body.explore-map-layout.drawer-collapsed{--panels-width:0px}
body.explore-map-layout #layout>.map-wrap{left:var(--panels-width);width:auto}
body.explore-map-layout #layout>.map-wrap .map-control-rail,body.explore-map-layout.style-settings-open #layout>.map-wrap .map-control-rail,
body.explore-map-layout #layout>.map-wrap .mapnote,body.explore-map-layout.style-settings-open #layout>.map-wrap .mapnote{left:10px;max-width:calc(100% - 20px)}
body.explore-map-layout .drawer-toggle{width:44px;min-height:64px;z-index:6;touch-action:none;user-select:none;cursor:ew-resize}
body.explore-map-layout .drawer-toggle:focus-visible{outline:3px solid #347a60;outline-offset:-3px}
body.explore-map-layout.style-settings-open .drawer-toggle{visibility:visible}
body.explore-map-layout.drawer-dragging #layout>.results,body.explore-map-layout.drawer-dragging .style-settings-drawer{transform:translateX(var(--drag-offset,0px));transition:none;visibility:visible}
body.explore-map-layout.drawer-collapsed.drawer-dragging #layout>.results{transform:translateX(calc(-100% + var(--drag-offset,0px)))}
body.explore-map-layout.drawer-dragging .drawer-toggle{transform:translate(var(--drag-offset,0px),-50%);transition:none}
@media(max-width:700px){
 body.explore-map-layout{--drawer-width:min(300px,63vw)}
 body.explore-map-layout #layout>.results{padding:10px}
 body.explore-map-layout #searchModes{gap:3px;padding:3px}
 body.explore-map-layout #searchModes .search-mode{padding:8px 2px}
 body.explore-map-layout #searchModes .mode-title{font-size:11px}
 .style-settings-heading{flex-wrap:wrap}
 body.explore-map-layout:not(.drawer-collapsed) #layout>.map-wrap>.map{top:0}
 body.explore-map-layout:not(.drawer-collapsed) #layout>.map-wrap .mapnote{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

.work-style-title{margin:8px 0 12px;font-size:1.4rem}.designer-detail .work-full{max-height:54dvh}.work-designer-byline{display:flex;align-items:center;gap:12px;margin:16px 0}.work-designer-byline .designer-photo{width:54px;height:64px;object-fit:cover;border-radius:10px;flex:none}.work-designer-info{display:grid;gap:3px;font-size:.9rem}.work-designer-info strong{font-size:1.05rem}.work-author-label{color:#416854;font-size:.8rem}
