647 lines
11 KiB
CSS
647 lines
11 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f3efe3;
|
|
--panel: rgba(253, 249, 240, 0.75);
|
|
--panel-border: rgba(92, 73, 49, 0.18);
|
|
--ink: #1f2a2e;
|
|
--muted: #5f6b6f;
|
|
--accent: #1f7a62;
|
|
--accent-strong: #125441;
|
|
--shadow: 0 24px 60px rgba(52, 43, 28, 0.12);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
font-family: "Aptos", "Segoe UI", sans-serif;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 32%),
|
|
linear-gradient(135deg, #e9dec4 0%, #f7f4ec 52%, #d8eadf 100%);
|
|
color: var(--ink);
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app-shell {
|
|
position: relative;
|
|
min-height: 100vh;
|
|
padding: 24px;
|
|
}
|
|
|
|
.sidebar,
|
|
.map-wrap {
|
|
min-height: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
z-index: 10;
|
|
top: 24px;
|
|
bottom: 24px;
|
|
left: 24px;
|
|
width: min(266px, calc(100vw - 48px));
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
transition: transform 240ms ease;
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
position: fixed;
|
|
z-index: 11;
|
|
display: grid;
|
|
width: 42px;
|
|
height: 42px;
|
|
padding: 0;
|
|
place-items: center;
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 14px;
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
font-size: 1.65rem;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.sidebar-open {
|
|
top: 32px;
|
|
left: 32px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition: opacity 180ms ease;
|
|
}
|
|
|
|
.sidebar-close {
|
|
position: absolute;
|
|
top: 18px;
|
|
right: 18px;
|
|
}
|
|
|
|
.sidebar-close span[aria-hidden="true"] {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.app-shell.sidebar-is-collapsed .sidebar {
|
|
transform: translateX(calc(-100% - 24px));
|
|
}
|
|
|
|
.app-shell.sidebar-is-collapsed .sidebar-open {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.brand,
|
|
.panel {
|
|
background: var(--panel);
|
|
backdrop-filter: blur(16px);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 24px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.brand {
|
|
padding: 24px;
|
|
}
|
|
|
|
.brand-logo {
|
|
display: block;
|
|
width: min(100%, 178px);
|
|
height: auto;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
margin-top: 8px;
|
|
color: var(--muted);
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
h1 {
|
|
font-family: "Aptos Display", "Segoe UI", sans-serif;
|
|
font-size: clamp(2rem, 4vw, 2.7rem);
|
|
line-height: 0.98;
|
|
}
|
|
|
|
.panel {
|
|
padding: 20px;
|
|
}
|
|
|
|
form.panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.parcel-search-form {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.parcel-search-form button {
|
|
width: 100%;
|
|
}
|
|
|
|
.background-selector {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
label span {
|
|
color: var(--muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(73, 84, 79, 0.18);
|
|
background: rgba(255, 255, 255, 0.72);
|
|
color: var(--ink);
|
|
font: inherit;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus {
|
|
outline: 2px solid rgba(31, 122, 98, 0.18);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
button {
|
|
border: 0;
|
|
border-radius: 14px;
|
|
padding: 13px 16px;
|
|
background: linear-gradient(135deg, var(--accent) 0%, #2b9a79 100%);
|
|
color: #fffefb;
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
|
|
box-shadow: 0 18px 36px rgba(31, 122, 98, 0.22);
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.72;
|
|
cursor: wait;
|
|
}
|
|
|
|
.panel-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.badge {
|
|
min-width: 2rem;
|
|
padding: 5px 10px;
|
|
border-radius: 999px;
|
|
background: rgba(31, 122, 98, 0.12);
|
|
color: var(--accent-strong);
|
|
text-align: center;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status {
|
|
margin-top: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.status.error {
|
|
color: #9d2e21;
|
|
}
|
|
|
|
.status.success {
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.layer-list {
|
|
margin-top: 16px;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.layer-list.empty {
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.layer-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.66);
|
|
border: 1px solid rgba(73, 84, 79, 0.12);
|
|
}
|
|
|
|
.layer-item input {
|
|
width: auto;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.layer-title {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.map-wrap {
|
|
position: fixed;
|
|
z-index: 0;
|
|
inset: 24px;
|
|
overflow: hidden;
|
|
border-radius: 32px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
#map {
|
|
position: absolute;
|
|
inset: 0;
|
|
}
|
|
|
|
.feature-modal[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.feature-modal {
|
|
position: fixed;
|
|
z-index: 20;
|
|
inset: 0;
|
|
display: grid;
|
|
padding: 24px;
|
|
place-items: center;
|
|
}
|
|
|
|
.feature-modal-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(31, 42, 46, 0.35);
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
|
|
.feature-modal-dialog {
|
|
position: relative;
|
|
width: min(100%, 360px);
|
|
padding: 28px;
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 24px;
|
|
background: #fffefb;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.feature-modal-close {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
display: grid;
|
|
width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
place-items: center;
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
color: var(--ink);
|
|
box-shadow: none;
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.feature-modal-kind {
|
|
margin-bottom: 6px;
|
|
color: var(--accent-strong);
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.feature-details {
|
|
margin: 20px 0 0;
|
|
}
|
|
|
|
.feature-details div {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 14px 0;
|
|
border-top: 1px solid var(--panel-border);
|
|
}
|
|
|
|
.feature-details dt {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.feature-details dd {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.map-wrap .ol-zoom {
|
|
top: 16px;
|
|
right: 16px;
|
|
left: auto;
|
|
overflow: hidden;
|
|
background: var(--panel);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 14px;
|
|
backdrop-filter: blur(16px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.map-wrap .ol-zoom button,
|
|
.map-wrap .ol-visible-layers-extent button {
|
|
width: 2.0625em;
|
|
height: 2.0625em;
|
|
margin: 0;
|
|
background: linear-gradient(135deg, var(--accent) 0%, #2b9a79 100%);
|
|
color: #fffefb;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
}
|
|
|
|
.map-wrap .ol-zoom button + button {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
.map-wrap .ol-zoom button:hover,
|
|
.map-wrap .ol-zoom button:focus,
|
|
.map-wrap .ol-visible-layers-extent button:hover,
|
|
.map-wrap .ol-visible-layers-extent button:focus {
|
|
background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
|
|
color: #fff;
|
|
outline: 2px solid rgba(31, 122, 98, 0.35);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.map-wrap .ol-visible-layers-extent {
|
|
top: 96px;
|
|
right: 16px;
|
|
left: auto;
|
|
overflow: hidden;
|
|
background: var(--panel);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 14px;
|
|
backdrop-filter: blur(16px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.map-wrap .ol-visible-layers-extent button {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.map-wrap .ol-area-zoom {
|
|
top: 140px;
|
|
right: 16px;
|
|
left: auto;
|
|
overflow: hidden;
|
|
background: var(--panel);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 14px;
|
|
backdrop-filter: blur(16px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.map-wrap .ol-area-zoom button {
|
|
display: grid;
|
|
width: 2.0625em;
|
|
height: 2.0625em;
|
|
margin: 0;
|
|
padding: 0;
|
|
place-items: center;
|
|
background: linear-gradient(135deg, var(--accent) 0%, #2b9a79 100%);
|
|
color: #fffefb;
|
|
font-size: 1.3rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.map-wrap .ol-area-zoom button:hover,
|
|
.map-wrap .ol-area-zoom button:focus,
|
|
.map-wrap .ol-area-zoom button[aria-pressed="true"] {
|
|
background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
|
|
color: #fff;
|
|
outline: 2px solid rgba(31, 122, 98, 0.35);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.area-zoom-icon {
|
|
display: block;
|
|
width: 1.2em;
|
|
height: 1.2em;
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
.map-wrap .ol-viewport.area-zoom-is-active {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.map-wrap .ol-area-zoom-box {
|
|
border-color: var(--accent);
|
|
background: rgba(31, 122, 98, 0.16);
|
|
}
|
|
|
|
.map-wrap .ol-device-compass {
|
|
top: 184px;
|
|
right: 16px;
|
|
left: auto;
|
|
overflow: hidden;
|
|
background: var(--panel);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 14px;
|
|
backdrop-filter: blur(16px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.map-wrap .ol-device-compass button {
|
|
display: grid;
|
|
width: 2.0625em;
|
|
height: 2.0625em;
|
|
margin: 0;
|
|
padding: 0;
|
|
place-items: center;
|
|
background: linear-gradient(135deg, var(--accent) 0%, #2b9a79 100%);
|
|
color: #fffefb;
|
|
font-size: 1.3rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.map-wrap .ol-device-compass button:hover,
|
|
.map-wrap .ol-device-compass button:focus {
|
|
background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
|
|
color: #fff;
|
|
outline: 2px solid rgba(31, 122, 98, 0.35);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
/* Compass orientation stays visibly engaged after the pointer leaves the
|
|
control. The inset high-contrast ring and explicit label do not rely on
|
|
the green active colour alone. */
|
|
.map-wrap .ol-device-compass button[aria-pressed="true"] {
|
|
position: relative;
|
|
border: 3px solid #fffefb;
|
|
background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
|
|
color: #fff;
|
|
outline: 2px solid #1f2a2e;
|
|
outline-offset: -5px;
|
|
}
|
|
|
|
.map-wrap .ol-device-compass button[aria-pressed="true"]::after {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
padding: 1px 2px;
|
|
border-radius: 3px;
|
|
background: #fffefb;
|
|
color: #1f2a2e;
|
|
content: "ON";
|
|
font-size: 0.45rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.02em;
|
|
line-height: 1;
|
|
}
|
|
|
|
.device-compass-icon {
|
|
display: block;
|
|
width: 1.2em;
|
|
height: 1.2em;
|
|
}
|
|
|
|
/* OpenLayers hides this control while the view is north-up. */
|
|
.map-wrap .ol-rotate {
|
|
top: auto;
|
|
right: 16px;
|
|
bottom: 16px;
|
|
left: auto;
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.map-wrap .ol-rotate button {
|
|
display: grid;
|
|
width: 42px;
|
|
height: 42px;
|
|
margin: 0;
|
|
padding: 0;
|
|
place-items: center;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
line-height: 1;
|
|
box-shadow: 0 10px 24px rgba(52, 43, 28, 0.2);
|
|
}
|
|
|
|
.north-pointer-icon {
|
|
display: block;
|
|
width: 26px;
|
|
height: 26px;
|
|
transform-origin: center;
|
|
}
|
|
|
|
.map-wrap .ol-rotate button:hover {
|
|
background: #fff;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
@media (max-width: 920px) {
|
|
.app-shell {
|
|
padding: 16px;
|
|
}
|
|
|
|
.map-wrap {
|
|
inset: 16px;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.map-wrap .ol-zoom {
|
|
top: 12px;
|
|
right: 12px;
|
|
}
|
|
|
|
.map-wrap .ol-visible-layers-extent {
|
|
top: 92px;
|
|
right: 12px;
|
|
}
|
|
|
|
.map-wrap .ol-area-zoom {
|
|
top: 136px;
|
|
right: 12px;
|
|
}
|
|
|
|
.map-wrap .ol-device-compass {
|
|
top: 180px;
|
|
right: 12px;
|
|
}
|
|
|
|
.map-wrap .ol-rotate {
|
|
right: 12px;
|
|
bottom: 12px;
|
|
}
|
|
|
|
.sidebar {
|
|
top: 16px;
|
|
bottom: 16px;
|
|
left: 16px;
|
|
width: min(266px, calc(100vw - 32px));
|
|
}
|
|
|
|
.sidebar-open {
|
|
top: 24px;
|
|
left: 24px;
|
|
}
|
|
|
|
.app-shell.sidebar-is-collapsed .sidebar {
|
|
transform: translateX(calc(-100% - 16px));
|
|
}
|
|
}
|