/* Data city (/gifts/data-city/): the map and print views, the lens buttons, the legend. On the maker layout. */
.dc-view { position: relative; }
.dc-map, .dc-print { position: absolute; inset: 0; }
.dc-map[hidden], .dc-print[hidden] { display: none; }
.dc-view.dc-drop { box-shadow: inset 0 0 0 3px var(--gold); }
.dc-printbtns { display: inline-flex; gap: 8px; }
.dc-printbtns[hidden] { display: none; }

/* the legend over the map */
.dc-legend { position: absolute; left: 10px; top: 10px; z-index: 3; max-width: min(320px, calc(100% - 70px)); background: rgba(20, 23, 22, 0.88); color: var(--ink);
    border-radius: 10px; padding: 9px 12px; font-size: 0.8rem; line-height: 1.35; pointer-events: none; }
.dc-legend[hidden] { display: none; }
.dc-legend strong { display: block; font-size: 0.86rem; margin-bottom: 5px; }
.dc-legend div { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; margin-top: 3px; }
.dc-legend i, .dc-classes i, .dc-pop-cls i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); display: inline-block; }
.dc-legend em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.dc-legend .dc-legend-other { opacity: 0.85; }
.dc-legend.dc-legend-print { display: none; }

/* walk: the start, and picking it */
.dc-from { width: 16px; height: 16px; border-radius: 50%; background: #2fa596; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.dc-pickbar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 4; background: rgba(20, 23, 22, 0.92); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; cursor: pointer; }
.dc-pickbar[hidden] { display: none; }

/* the building under the pointer */
.dc-pop .maplibregl-popup-content { background: rgba(20, 23, 22, 0.95); color: var(--ink, #eceee9); border-radius: 9px; padding: 8px 11px; font: 0.8rem/1.4 'Schibsted Grotesk', system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.dc-pop .maplibregl-popup-tip { display: none; }
.dc-pop strong { display: block; text-transform: capitalize; }
.dc-pop-cls { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #c9d1cc; }

/* the lenses */
.dc-lenses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dc .dc-lenses button { display: flex; align-items: center; gap: 8px; border: 0; background: var(--field); color: var(--ink); font: inherit; font-size: 0.84rem; text-align: left; padding: 9px 10px; border-radius: 9px; cursor: pointer; line-height: 1.2; }
.dc .dc-lenses button i { font-size: 1.15rem; color: var(--gold); flex: none; }
.dc .dc-lenses button:hover { background: #262b29; }
.dc .dc-lenses button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); background: #262b29; }
.dc-opt { margin-top: 12px; }
.dc-opt[hidden] { display: none; }
.dc-file { display: flex; justify-content: center; cursor: pointer; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dc-btns .wm-btn { font-size: 0.82rem; padding: 7px 10px; }
.dc-filename { font-size: 0.82rem; margin: 12px 0 0; color: var(--ink); }
.dc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; margin-top: 10px; cursor: pointer; }
.dc-check input { accent-color: var(--gold); margin-top: 3px; }
#dcRule { margin-top: 10px; }
#dcRule[hidden], #dcRadRow[hidden], #dcAggRow[hidden] { display: none !important; }

/* the classes with their colours */
.dc-classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dc-classes li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; font-size: 0.86rem; }
.dc-classes input[type="color"], .dc-col input[type="color"] { width: 34px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }
.dc-classes em { font-style: normal; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.dc-basecols { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 10px; font-size: 0.84rem; }
.dc-col { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.dc-swatches { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 4px; font-size: 0.82rem; }
.dc-swatches li { display: flex; gap: 8px; align-items: center; }
.dc-swatches i { width: 14px; height: 14px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }

@media (max-width: 900px) {
    .dc-legend { font-size: 0.74rem; padding: 7px 10px; }
}
