.npc-map [hidden] { display:none !important; }
.world-map-tools { display:flex; align-items:flex-end; flex-wrap:wrap; gap:14px 24px; padding:16px; background:linear-gradient(#203e55,#142c40); color:#fff1cf; border-bottom:1px solid #a98b52; }
.map-control-group {display:flex;flex-direction:column;gap:6px;min-width:0}
.map-control-label {font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:#e4c78d}
.map-control-buttons {display:flex;align-items:stretch;overflow:hidden;border:1px solid #8096a5;border-radius:5px;background:#0d2334}
.world-map-tools button,.world-map-tools select { min-width:44px; min-height:44px; padding:8px 12px; border:0; border-radius:0; background:#29495f; color:#fff6df; font:700 14px var(--font-body,Arial,sans-serif); cursor:pointer; margin:0; }
.world-map-tools .map-control-buttons button {font-size:22px;line-height:1;padding:8px;width:44px;flex-shrink:0}
.world-map-tools button:hover { background:#40657d; }
.world-map-tools button:disabled { opacity:.35; cursor:default; }
.world-map-tools select {max-width:190px;background:#0d2334;border-left:1px solid #526878;border-right:1px solid #526878;font-size:14px}
.map-zoom-value {display:grid;place-items:center;min-width:66px;padding:0 6px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.world-map-tools .map-center-button {display:flex;align-items:center;justify-content:center;gap:8px;margin-left:auto;border:1px solid #dfbc6a;border-radius:5px;background:#efd28c;color:#34250e;box-shadow:inset 0 1px #fff4c8;font-size:13px}
.world-map-tools .map-center-button:hover {background:#ffe4a5}
.world-map-location {margin:0!important;display:flex;align-items:center;gap:8px;padding:9px 16px;background:#102435;color:#cde3d4;font-size:12px;font-weight:600}
.world-map-location::before {content:'';width:8px;height:8px;border-radius:50%;background:#de534d;box-shadow:0 0 0 2px #ffe9bd;flex-shrink:0}
.world-map-location.is-other-floor {color:#ffe4a5;background:#3e3320}
.world-map-location.is-other-floor::before {background:#efbf62}
.world-map-canvas { display:block; width:100%; height:clamp(260px,52vh,540px); background:#080d14; touch-action:none; cursor:grab; }
.world-map-canvas.is-dragging { cursor:grabbing; }
.world-map-canvas:focus-visible,.world-map-tools :focus-visible { outline:3px solid #ffda74; outline-offset:-3px; }
.world-map-status { margin:0; padding:8px 10px; color:#d4e0e7; background:#142e4c; font-size:12px; line-height:1.5; }
.npc-map-dialog.location-detail-dialog { width:min(1040px,96vw); max-height:96dvh; }
.npc-map-dialog.location-detail-dialog > div {padding:16px}
.npc-map-dialog .npc-map {margin:0}
.npc-map-dialog .location-modal-header {padding:16px 24px}
.npc-map-dialog .world-map-canvas {height:clamp(240px,54dvh,560px)}
.house-map-open {margin:8px 0 14px}
.house-map-dialog {max-height:94vh}
.house-map-dialog .location-modal-header {justify-content:space-between;position:sticky;top:0;z-index:2}
.house-floor-preview {margin:16px 0}.house-floor-preview summary {cursor:pointer;font-weight:bold}
.house-map-dialog .world-map-canvas {height:clamp(240px,40vh,440px)}
.house-map-filters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.house-map-filters label,.house-map-results {display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:bold}
.house-map-filters input,.house-map-filters select,.house-map-results select {width:100%;min-height:40px;padding:8px;border:1px solid #aa8b53;border-radius:4px;background:#fffaf0;color:#362515}
.house-map-legend {display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px}
.house-map-legend span {display:flex;align-items:center;gap:6px}
.house-map-swatch {display:inline-block;width:15px;height:15px;border:1px solid #263644}
.house-map-swatch.available {background:#52e194}.house-map-swatch.auction {background:#ffd35a}.house-map-swatch.rented {background:#fa7d88}.house-map-swatch.pending {background:#b3bbcc}
.house-map-refresh,.house-map-selection {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}
.house-map-refresh p {margin:0;font-size:12px}.house-map-refresh button {flex-shrink:0}
.house-map-selection {padding:12px;border:1px solid #b29457;background:#fffaf0;border-radius:4px}
.house-map-selection h3 {font-size:18px!important}.house-map-selection p {margin:4px 0;font-size:13px}
.house-map-selection[hidden] {display:none}.house-state {font-weight:bold}
.house-map-placeholder {padding:32px;color:#fff3d5;text-align:center}
@media(max-width:600px){.house-map-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.house-map-selection{align-items:stretch;flex-direction:column}.house-map-refresh{align-items:flex-start}.house-map-legend{font-size:12px}.house-map-dialog .world-map-canvas{height:260px}}
@media(max-width:700px) { .world-map-tools {gap:12px;padding:12px}.map-floor-group {order:3;flex-basis:100%}.map-floor-group .map-control-buttons {width:100%}.world-map-tools .map-floor-group select {max-width:none;flex:1;min-width:0}.world-map-tools .map-center-button {max-width:150px;min-height:46px;padding:8px}.map-center-button span {line-height:1.2}.world-map-tools .map-center-button svg {flex-shrink:0}.world-map-location {padding:9px 12px}.npc-map-dialog.location-detail-dialog > div {padding:8px}.npc-map-dialog .location-modal-header {padding:12px 16px}.npc-map-dialog .world-map-canvas {height:clamp(220px,42dvh,420px)} }
@media(max-width:480px) { .world-map-tools {display:grid;grid-template-columns:134px minmax(0,1fr);gap:12px 10px}.map-floor-group {grid-column:1/-1}.map-zoom-value {min-width:44px;padding:0}.world-map-tools .map-center-button {width:100%;margin:0;min-width:0;max-width:none;font-size:12px;padding:6px;gap:5px}.npc-map-dialog .location-modal-header {position:sticky;top:0;z-index:3}.npc-map-dialog .world-map-canvas {height:clamp(220px,37dvh,360px)} }

.house-map-swatch.unavailable {background:#a8a1bf}
