@font-face { font-family: Inter; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../demo/assets/fonts/inter-latin-400-600.woff2') format('woff2'); }
@font-face { font-family: Lora; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../demo/assets/fonts/lora-latin-400-500.woff2') format('woff2'); }
html { height: auto; overflow: auto; }
.portal-page {
  --portal-accent: #222; --portal-line: #dedede; --portal-muted: #6b6b6b;
  --bg-a: #f5f5f5; --bg-b: #f5f5f5; --ink: #161616;
  margin: 0; height: auto; min-height: 100dvh; overflow: auto !important;
  background: #f5f5f5; color: var(--ink); font: 13px/1.5 Inter, Arial, sans-serif;
}
.portal-page *, .portal-page *::before, .portal-page *::after { box-sizing: border-box; }
.portal-page button, .portal-page input, .portal-page select { font: inherit; }
.portal-page a { color: inherit; text-decoration: none; }
.portal-page button { cursor: pointer; }
.portal-page button:disabled { opacity: .5; cursor: wait; }
.portal-page :focus-visible { outline: 2px solid var(--portal-accent); outline-offset: 4px; }
.portal-variants { display: flex; align-items: center; justify-content: center; gap: 26px; min-height: 36px; padding: 8px 20px; background: #eaeaea; font-size: 10px; color: #686868; }
.portal-variants > span { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.portal-variants a[aria-current] { color: #161616; text-decoration: underline; text-underline-offset: 4px; }
.portal-header { display: flex; align-items: center; gap: 32px; min-height: 98px; padding: 22px max(28px, calc((100vw - 1384px) / 2)); border-bottom: 1px solid var(--portal-line); background: white; }
.portal-brand { font: 500 28px/1.15 Lora, Georgia, serif; white-space: nowrap; }
.portal-brand span { display: block; margin-top: 8px; color: var(--portal-muted); font: 400 10px Inter, Arial, sans-serif; letter-spacing: 1.2px; }
.portal-search { position: relative; flex: 1; max-width: 390px; margin-left: auto; z-index: 40; }
.portal-page #muniSearchShell { position: relative !important; inset: auto !important; width: 100% !important; max-width: none !important; }
.portal-page .muni-search-field { width: 100%; max-width: none; }
.portal-page #muniSearchInput { height: 41px; padding-left: 13px; border: 1px solid var(--portal-line); border-radius: 6px; background: #fafafa; box-shadow: none; font: 12px Inter, Arial, sans-serif; color: var(--ink); }
.portal-page .muni-search-results { border-radius: 6px; background: white; }
.portal-custom-open { padding: 11px 14px; border: 1px solid var(--portal-line); border-radius: 5px; background: white; white-space: nowrap; color: var(--ink); font-size: 11px !important; }
.portal-custom-open span { margin-left: 12px; }
.portal-topics { display: flex; justify-content: center; gap: 22px; min-height: 53px; padding: 0 26px; border-bottom: 1px solid var(--portal-line); background: white; overflow-x: auto; scrollbar-width: thin; }
.portal-topic { flex-shrink: 0; padding: 17px 0 13px; border: 0; border-bottom: 2px solid transparent; background: none; color: #737373; font-size: 11px !important; white-space: nowrap; }
.portal-topic[aria-current="true"] { border-color: var(--portal-accent); color: var(--portal-accent); font-weight: 600; }
.portal-topic:hover { color: var(--ink); }
.portal-content { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.portal-intro { padding: 32px 0 26px; text-align: center; }
.portal-kicker { margin: 0 0 11px; font-size: 9px; letter-spacing: 1.8px; color: var(--portal-muted); text-transform: uppercase; }
.portal-intro h1 { margin: 0; font: 400 35px/1.25 Lora, Georgia, serif; letter-spacing: -.7px; }
#portalLead { margin: 12px 0 0; font-size: 12px; color: var(--portal-muted); }
.portal-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 335px; align-items: stretch; gap: 20px; min-width: 0; outline: none; }
.portal-map-card { display: flex; flex-direction: column; min-width: 0; height: 650px; border: 1px solid var(--portal-line); border-radius: 12px; background: white; overflow: hidden; }
.portal-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #ededed; font-size: 11px; }
#portalEyebrow { font-weight: 600; }
.portal-map-context { color: var(--portal-muted); font-size: 10px; }
.portal-map { position: relative; flex: 1; min-height: 0; }
.portal-page #portalMap .wrap, .portal-page #portalMap .stage, .portal-page #portalMap .map-shell { width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; max-width: none !important; margin: 0 !important; padding: 0 !important; aspect-ratio: auto !important; }
.portal-page #portalMap .stage { display: block !important; }
.portal-page #portalMap .map-shell { background: white; }
.portal-page #embedFloatingShell, .portal-page #embedWideFloatingShell, .portal-page #embedSuperMenuShell, .portal-page #embedMenuShell, .portal-page #embedBottomTitle, .portal-page .legend, .portal-page #floatingTitle { display: none !important; }
.portal-page #compactNavControls { position: absolute; right: 16px; bottom: 16px; z-index: 20; border: 1px solid var(--portal-line); border-radius: 5px; background: white; box-shadow: 0 2px 8px #00000008; }
.portal-page .compact-nav-btn { min-width: 33px; min-height: 33px; border: 0; border-radius: 0; background: white; color: #454545; }
.portal-page #status { left: 16px; bottom: 18px; top: auto; right: auto; max-width: calc(100% - 155px); border: 0; background: #ffffffec; box-shadow: none; font-size: 10px; color: var(--portal-muted); }
.portal-map-footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid #ededed; font-size: 9px; color: var(--portal-muted); }
.portal-map-footer button { padding: 0; border: 0; background: none; font-size: 9px; color: var(--portal-muted); white-space: nowrap; }
.portal-inspector { min-width: 0; min-height: 0; max-height: 650px; overflow-y: auto; scrollbar-width: thin; border: 1px solid var(--portal-line); border-radius: 12px; background: white; }
.portal-inspector-intro { margin: 0 20px; padding: 22px 0 18px; border-bottom: 1px solid var(--portal-line); }
.portal-inspector-intro h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.portal-inspector-intro p { margin: 0; color: var(--portal-muted); font-size: 11px; line-height: 1.65; }
.portal-selection { display: none; margin: 16px 20px 0; padding: 12px; border-left: 2px solid #ccc; background: #f8f8f8; font-size: 11px; line-height: 1.6; color: var(--portal-muted); }
.portal-page[data-topic="tax"][data-municipality-selected="false"] #portalSelection { display: block; }
.portal-page[data-topic="tax"][data-municipality-selected="false"] #taxPanel .kpis,
.portal-page[data-topic="tax"][data-municipality-selected="false"] #panelCtx,
.portal-page[data-topic="tax"][data-municipality-selected="false"] #taxDuePreview { display: none !important; }
.portal-page #taxPanel { position: static !important; display: block !important; width: 100% !important; max-height: none !important; overflow: visible !important; padding: 19px 20px !important; border: 0 !important; border-radius: 0 !important; background: white !important; box-shadow: none !important; backdrop-filter: none !important; opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto !important; }
.portal-page #taxPanel .panel-body { max-height: none; overflow: visible; }
.portal-page .panel-title-row { display: none; }
.portal-page .panel-size-controls, .portal-page #mobilePanelHandle, .portal-page #mobilePanelScrim, .portal-page #layerRow { display: none !important; }
.portal-page #taxPanel input, .portal-page #taxPanel select { width: 100%; max-width: 100%; padding: 9px; border: 1px solid #d7d7d7; border-radius: 5px; background: #fafafa; box-shadow: none; font-size: 12px; color: var(--ink); }
.portal-page #taxPanel input[type="checkbox"] { width: auto; accent-color: var(--portal-accent); }
.portal-page #taxPanel .panel-grid { gap: 13px 10px; }
.portal-page #taxPanel label { color: #555; font-size: 10px; }
.portal-page #taxControls { margin-bottom: 20px; }
.portal-page #taxPanel .panel-opt { border-color: var(--portal-line); border-radius: 5px; background: white; }
.portal-page #taxPanel .panel-opt summary { font-size: 10px; }
.portal-page #taxPanel .kpis { gap: 6px; margin: 16px 0; }
.portal-page #taxPanel .kpi { padding: 12px 8px; border: 0; border-radius: 5px; background: #f5f5f5; }
.portal-page #taxPanel .kpi .v { color: var(--ink); font-size: 16px; }
.portal-page #taxPanel .kpi .l { color: var(--portal-muted); font-size: 9px; }
.portal-page #taxPanel .ctx { color: var(--portal-muted); font-size: 11px; }
.portal-page #taxPanel .panel-note { color: var(--portal-muted); font-size: 10px; line-height: 1.65; }
.portal-page #taxPanel .heat-legend { padding: 12px; border: 1px solid var(--portal-line); border-radius: 5px; background: #fafafa; }
.portal-page #taxPanel .rank-filter { display: none; }
.portal-page #heatOpt { display: block; font-size: 11px; }
.portal-page #heatOpt .heat-controls { justify-content: space-between; margin-top: 8px; }
.portal-page #heatOpt select { flex: 1; width: auto !important; }
.portal-page #popularVoteControls .panel-grid { grid-template-columns: 1fr; }
.portal-page #heatLegendCurrent { display: none; }
.portal-page[data-topic="popular_vote"] #heatLegendCurrent { display: block; }
.portal-page[data-topic="premium"] #taxPanel .kpis, .portal-page[data-topic="premium"] #panelCtx,
.portal-page[data-topic="vacancy"] #taxPanel .kpis, .portal-page[data-topic="vacancy"] #panelCtx,
.portal-page[data-topic="second_home"] #taxPanel .kpis, .portal-page[data-topic="second_home"] #panelCtx,
.portal-page[data-topic="custom"] #taxPanel .kpis, .portal-page[data-topic="custom"] #panelCtx,
.portal-page[data-topic="demography"] #taxPanel .kpis { display: none !important; }
#portalSummary:not(:empty) { padding: 18px 20px 0; }
#portalSummary h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
#portalSummary > div { display: grid; gap: 6px; margin-top: 8px; padding: 12px; border-radius: 5px; background: #f6f6f6; }
#portalSummary span { color: var(--portal-muted); font-size: 10px; }
#portalSummary strong { color: var(--ink); font-size: 21px; font-weight: 500; overflow-wrap: anywhere; }
.portal-custom { padding: 18px 20px 0; }
.portal-custom[hidden] { display: none; }
.portal-custom h3 { margin: 0 0 10px; font-size: 13px; }
.portal-custom p { color: var(--portal-muted); font-size: 11px; line-height: 1.7; }
.portal-custom label { display: block; margin: 18px 0 7px; font-size: 10px; }
.portal-custom textarea { width: 100%; resize: vertical; min-height: 125px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; background: #fafafa; font: 11px/1.65 monospace; }
.portal-custom .portal-primary { width: 100%; margin-top: 10px; padding: 10px; border: 1px solid var(--portal-accent); border-radius: 5px; background: var(--portal-accent); color: white; font-size: 11px; }
.portal-custom input[type="file"] { width: 100%; font-size: 10px; }
.portal-custom-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.portal-custom-actions button { padding: 0; border: 0; background: none; color: #555; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.portal-custom .portal-privacy { padding-top: 12px; border-top: 1px solid var(--portal-line); font-size: 10px; }
.portal-footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; font-size: 9px; color: var(--portal-muted); }
.portal-mobile-filter { display: none; }
.portal-loading { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; background: white; font-size: 12px; color: var(--portal-muted); }
.portal-loading[hidden] { display: none; }
.portal-skip { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 12px; background: white; }
.portal-skip:focus { top: 12px; }
.portal-page dialog { width: min(540px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--portal-line); border-radius: 8px; color: var(--ink); box-shadow: 0 20px 90px #0002; }
.portal-page dialog::backdrop { background: #0005; }
.portal-page dialog h2 { margin: 8px 0 20px; font: 400 26px Lora, Georgia, serif; }
.portal-page dialog p { font-size: 12px; line-height: 1.8; }
.portal-page dialog a { text-decoration: underline; text-underline-offset: 3px; }
.portal-dialog-close { float: right; border: 0; background: none; font-size: 24px !important; }

/* 02: a quiet atlas with a permanent topic index. */
.portal-page[data-variant="atlas"] { --portal-accent: #314e42; background: #fff; }
[data-variant="atlas"] .portal-header { min-height: 85px; padding: 20px 28px; }
[data-variant="atlas"] .portal-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
[data-variant="atlas"] .portal-topics { display: flex; flex-direction: column; justify-content: flex-start; gap: 5px; padding: 33px 16px; border: 0; border-right: 1px solid var(--portal-line); }
[data-variant="atlas"] .portal-topic { padding: 12px 14px; border: 0; border-radius: 4px; text-align: left; font-size: 12px !important; }
[data-variant="atlas"] .portal-topic[aria-current="true"] { background: #edf2ef; }
[data-variant="atlas"] .portal-content { width: 100%; padding: 0 26px; }
[data-variant="atlas"] .portal-intro { text-align: left; padding-top: 30px; }
[data-variant="atlas"] .portal-intro h1 { font-size: 30px; }
[data-variant="atlas"] .portal-workspace { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
[data-variant="atlas"] .portal-map-card, [data-variant="atlas"] .portal-inspector { border-radius: 4px; }
[data-variant="atlas"] .portal-brand { font-size: 25px; }

/* 03: inputs on the left and a restrained service design. */
.portal-page[data-variant="kompass"] { --portal-accent: #284864; background: #fff; }
[data-variant="kompass"] .portal-header { border-top: 3px solid #284864; }
[data-variant="kompass"] .portal-brand { font: 600 25px/1.2 Inter, Arial, sans-serif; letter-spacing: -.8px; }
[data-variant="kompass"] .portal-brand span { letter-spacing: .6px; }
[data-variant="kompass"] .portal-topics { justify-content: flex-start; padding-left: max(28px, calc((100vw - 1384px) / 2)); background: #f7f9fb; }
[data-variant="kompass"] .portal-intro { text-align: left; padding-top: 30px; }
[data-variant="kompass"] .portal-intro h1 { font: 500 33px/1.25 Inter, Arial, sans-serif; }
[data-variant="kompass"] .portal-workspace { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
[data-variant="kompass"] .portal-inspector { grid-column: 1; grid-row: 1; border-radius: 5px; }
[data-variant="kompass"] .portal-map-card { grid-column: 2; grid-row: 1; border-radius: 5px; }
[data-variant="kompass"] .portal-inspector-intro { margin: 0; padding: 22px 20px; background: #f3f6f9; border-bottom: 1px solid #e1e7ed; }
[data-variant="kompass"] .portal-custom-open { border-color: #284864; color: #284864; }

/* 04: the map and controls fill the available screen. */
.portal-page[data-variant="fokus"] { height: 100dvh; min-height: 700px; display: flex; flex-direction: column; background: #fff; }
[data-variant="fokus"] .portal-variants { min-height: 32px; padding: 6px 20px; }
[data-variant="fokus"] .portal-header { min-height: 74px; padding: 16px 26px; }
[data-variant="fokus"] .portal-brand { font-size: 23px; }
[data-variant="fokus"] .portal-brand span { margin-top: 5px; font-size: 9px; }
[data-variant="fokus"] .portal-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
[data-variant="fokus"] .portal-topics { justify-content: flex-start; min-height: 48px; gap: 27px; }
[data-variant="fokus"] .portal-topic { padding-top: 15px; }
[data-variant="fokus"] .portal-content { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: none; padding: 0 26px; }
[data-variant="fokus"] .portal-intro { text-align: left; padding: 21px 0 18px; }
[data-variant="fokus"] .portal-kicker { display: none; }
[data-variant="fokus"] .portal-intro h1 { font-size: 27px; }
[data-variant="fokus"] #portalLead { margin-top: 7px; font-size: 11px; }
[data-variant="fokus"] .portal-workspace { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 305px; gap: 16px; }
[data-variant="fokus"] .portal-map-card { height: 100%; min-height: 0; border-radius: 3px; }
[data-variant="fokus"] .portal-inspector { max-height: none; border-radius: 3px; }
[data-variant="fokus"] .portal-footer { padding: 12px 0; }

@media (max-width: 1100px) {
  .portal-topics { justify-content: flex-start; }
  [data-variant="atlas"] .portal-layout { grid-template-columns: 158px minmax(0, 1fr); }
  [data-variant="atlas"] .portal-workspace { grid-template-columns: minmax(0, 1fr) 275px; }
  [data-variant="atlas"] .portal-content { padding: 0 18px; }
}
@media (max-width: 900px) {
  .portal-page, .portal-page[data-variant="fokus"] { height: auto; min-height: 100dvh; display: block; }
  .portal-variants { justify-content: flex-start; gap: 20px; overflow-x: auto; white-space: nowrap; font-size: 10px; }
  .portal-variants > span { display: none; }
  .portal-page .portal-header { flex-wrap: wrap; min-height: 0; gap: 17px 12px; padding: 20px 16px; }
  .portal-page .portal-brand { flex: 1; font-size: 23px; }
  .portal-brand span { font-size: 9px; letter-spacing: .5px; }
  .portal-search { order: 3; flex: 1 0 100%; max-width: none; }
  .portal-custom-open { padding: 10px; font-size: 10px !important; }
  .portal-custom-open span { margin-left: 4px; }
  .portal-page .portal-layout, .portal-page .portal-content { display: block; }
  .portal-page .portal-topics { flex-direction: row; gap: 22px; min-height: 49px; padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--portal-line); }
  .portal-page .portal-topic { padding: 16px 0 12px; font-size: 11px !important; border-radius: 0; }
  [data-variant="atlas"] .portal-topic[aria-current="true"] { background: none; border-bottom: 2px solid #314e42; }
  .portal-page .portal-content { padding: 0 12px; }
  .portal-page .portal-intro { padding: 24px 4px 21px; text-align: left; }
  .portal-page .portal-intro h1 { font-size: 27px; }
  .portal-kicker { font-size: 8px; }
  #portalLead { font-size: 11px; line-height: 1.7; }
  .portal-page .portal-workspace { display: flex; flex-direction: column; gap: 16px; }
  .portal-page .portal-map-card { order: 1; height: calc((100vw - 24px) * .62 + 95px); min-height: 320px; }
  .portal-page .portal-inspector { order: 2; max-height: none; overflow: visible; scroll-margin-top: 12px; }
  .portal-map-heading { padding: 14px; }
  .portal-map-context { display: none; }
  .portal-mobile-filter { display: block; color: var(--portal-accent) !important; font-size: 10px; }
  .portal-map-footer { padding: 11px 12px; font-size: 8px; }
  .portal-map-footer button { font-size: 8px; }
  .portal-page .portal-footer { padding: 19px 3px; font-size: 8px; }
}
