:root {
    --blue-dark: #003854;
    --blue: #00476b;
    --light-blue: #7fade3;
    --light-blue-hover: #5997e0;
    --blue-tint-border: #c5d8ef;
    --blue-tint: #e5eff9;
    --blue-tint-hover: #d4e7fa;
    --green: #3f7043;
    --light-green: #98b870;
    --light-green-hover: #7f9e58;
    --green-tint: #eaf0e2;
    --orange: #d8622f;
    --orange-hover: #cb501a;
    --gray: #88847d;
    --gray-tint: #e7e6e3;
    --white-hover: #f3f6f9;
    --header-height: 40px;
    --sidebar-width: 350px;
}

@font-face {
    font-family: PostGrotesk;
    src: url("../fonts/PostGrotesk/PostGrotesk-Medium.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: PostGrotesk;
    src: url("../fonts/PostGrotesk/PostGrotesk-MediumItalic.otf") format("opentype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: PostGrotesk;
    src: url("../fonts/PostGrotesk/PostGrotesk-Bold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: PostGrotesk;
    src: url("../fonts/PostGrotesk/PostGrotesk-BoldItalic.otf") format("opentype");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: FreightTextPro;
    src: url("../fonts/FreightTextPro/FreightTextProMedium-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: FreightTextPro;
    src: url("../fonts/FreightTextPro/FreightTextProBold-Regular.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: var(--blue);
}

h2,
h3,
h4,
p {
    margin: 0;
}

p {
    font-family: FreightTextPro, Georgia, serif;
    letter-spacing: -0.011em;
}

#main {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex: none;
    height: var(--header-height);
    padding-left: 20px;
    background: var(--blue);
    z-index: 5;
    position: relative;
}

.header-logo {
    display: flex;
}

img.logo-img {
    height: var(--header-height);
}

.header-title {
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-size: 16px;
    color: white;
}

.action-buttons-container {
    position: absolute;
    right: 0;
    margin-right: 20px;
    display: flex;
}

.action-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 7px 12px;
    margin-left: 10px;
    font-weight: bold;
    background: none;
    color: var(--green-tint);
    border: none;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}

.action-button:hover,
.action-button:active {
    background-color: var(--blue-dark);
}

.action-button i {
    margin-right: 6px;
    font-size: 12px;
}

.action-button.share {
    background: var(--orange);
    color: white;
}

.action-button.share:hover,
.action-button.share:active {
    background: var(--orange-hover);
}

.main-content {
    display: flex;
    flex: 1;
    height: calc(100% - var(--header-height));
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    align-self: baseline;
    background-color: white;
    box-shadow: 0 0 12px rgba(136, 132, 125, 0.25);
    z-index: 2;
    height: 100%;
    text-align: left;
    transition: width 400ms;
    position: relative;
}

.sidebar.closed {
    width: 0;
}

.sidebar-inner {
    min-width: var(--sidebar-width);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: auto;
}

.sidebar-tabs {
    width: 100%;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
}

.sidebar-tabs button {
    flex-grow: 1;
    border: none;
    background-color: var(--light-blue);
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-tabs button:hover {
    background-color: var(--light-blue-hover);
}

.sidebar-tabs button.active {
    background-color: white;
    color: var(--blue);
    cursor: default;
}

.tab-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    transform: translateY(-2px);
}

.tab-icon svg {
    width: 13px;
    height: 13px;
}

.sidebar-content {
    padding: 12px 16px 16px;
}

.sidebar-panel {
    display: none;
}

.sidebar-panel.is-active {
    display: block;
}

p.help-text {
    font-size: 16px;
    color: var(--blue);
    margin-top: 4px;
    margin-bottom: 12px;
}

.layer-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layer-group {
    border-bottom: 1px solid var(--gray-tint);
    padding-bottom: 8px;
}

.layer-group-header {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 8px;
    font-size: 16px;
}

.layer-subgroup {
    margin-bottom: 2px;
    border-radius: 4px;
    overflow: hidden;
}

.layer-subgroup-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--blue);
    margin: 0;
}

.layer-subgroup-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    border-radius: 4px;
    background: var(--blue-tint);
    padding: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.layer-subgroup-toggle:hover {
    background: var(--blue-tint-hover);
}

.layer-subgroup-arrow {
    color: var(--light-blue);
    font-size: 16px;
    transition: transform 0.16s ease;
}

.layer-subgroup.is-open .layer-subgroup-arrow {
    transform: rotate(90deg);
}

.layer-subgroup-body {
    border: 1px solid var(--blue-tint-border);
    border-top: none;
    padding: 0;
    background: var(--blue-tint);
}

.layer-row {
    display: flex;
    align-items: center;
    margin: 0;
    background: var(--blue-tint);
    border-top: 1px solid var(--blue-tint-border);
    padding: 8px 10px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.layer-row:first-child {
    border-top: none;
}

.layer-row:hover {
    background: var(--blue-tint-hover);
}

.layer-row input {
    margin: 0 8px 0 0;
}

.layer-label {
    flex: 1;
    color: var(--blue);
    font-size: 14px;
    -webkit-user-select: none;
    user-select: none;
}

.layer-info-icon {
    width: 14px;
    height: 14px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #7ea7ce;
    color: #7ea7ce;
    font-size: 10px;
    line-height: 17px;
    font-weight: 600;
    background: #fff;
    cursor: help;
    user-select: none;
}

.layer-info-tooltip {
    position: absolute;
    z-index: 1200;
    max-width: 320px;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #bfd8f0;
    background: #e9f3ff;
    color: var(--blue);
    box-shadow: 0 6px 14px rgba(22, 68, 109, 0.18);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.layer-info-tooltip-description {
    color: var(--blue);
}

.layer-info-tooltip-source {
    margin-top: 6px;
    color: #6f9eca;
    font-weight: 600;
}

.category-help-text {
    margin-top: 0;
}

.opacity-row {
    margin: 2px 0 8px 22px;
}

.opacity-row input[type="range"] {
    width: 100%;
}

.refine-block {
    margin-bottom: 20px;
}

.title {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--blue);
    font-size: 16px;
    margin-bottom: 10px;
}

.tool-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tool-button,
.combine-layer-button {
    background: none;
    border: none;
    color: var(--light-blue);
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    padding: 4px 8px;
    text-align: left;
    font-size: 13px;
}

.combine-layer-button {
    width: 100%;
    padding: 8px 10px;
    background-color: var(--blue-tint);
    text-transform: uppercase;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    color: var(--blue);
}

.combine-layer-button:hover {
    background-color: var(--blue-tint-hover);
}

.field-label {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: var(--blue);
}

#analysis-dataset,
#basemap-select,
.share-url,
#viz-x-field,
#viz-y-field {
    width: 100%;
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    background: white;
    color: var(--blue);
    margin-bottom: 8px;
}

.status-line {
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: var(--gray);
}

.summary-block {
    min-height: 42px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--blue-tint-border);
    border-radius: 4px;
    background: white;
    font-size: 12px;
    color: var(--gray);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
}

.sidebar-toggle-button {
    position: absolute;
    right: -22px;
    width: 22px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-green);
    font-size: 18px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
}

.map-section {
    width: 100%;
    position: relative;
    flex-shrink: 1;
}

#map {
    width: 100%;
    height: 100%;
}

.main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 100%;
    text-align: left;
    display: flex;
}

.viz-panel {
    margin-left: 32px;
    margin-top: 32px;
    height: 0;
}

.viz-panel.is-hidden {
    display: none;
}

.viz-content {
    background-color: white;
    box-shadow: 0 0 4px rgba(136, 132, 125, 0.25);
    border-radius: 8px;
    height: fit-content;
    max-width: 650px;
    min-width: 520px;
}

.viz-header {
    position: relative;
}

h2.viz-title {
    margin: 0;
    color: var(--blue);
    padding: 20px 50px 16px 20px;
    font-size: 18px;
}

.viz-button-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--blue-tint);
    padding: 0 20px;
}

.viz-button {
    cursor: pointer;
    padding: 6px;
    margin-left: 12px;
    background: none;
    color: var(--gray);
    border: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid transparent;
}

.viz-button:first-child {
    margin-left: 0;
}

.viz-mode.is-active {
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
}

.viz-fields {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 12px 20px 0;
    font-size: 12px;
    color: var(--gray);
}

.viz-contents {
    padding: 12px 20px 20px;
    max-height: 420px;
    overflow: auto;
}

.panel-note {
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--gray);
    font-size: 14px;
}

.legend-box {
    position: fixed;
    bottom: 36px;
    right: 24px;
    display: flex;
    flex-direction: column;
    width: 226px;
    max-height: calc(100% - 250px);
    overflow: auto;
    background: white;
    text-align: left;
    padding: 4px 0;
    border: 1px solid var(--blue-tint);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1;
}

.legend-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 4px 12px;
}

.legend-title {
    font-size: 12px;
    line-height: 16px;
    font-weight: bold;
    color: var(--blue);
    margin: 0 0 4px;
}

.legend-ramp {
    height: 14px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--gray);
}

.legend-swatch-row {
    margin-top: 4px;
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    color: var(--blue);
}

.legend-swatch {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    opacity: 0.5;
}

.basemap-picker {
    position: absolute;
    top: 124px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 3;
}

.basemap-button {
    width: 29px;
    height: 29px;
    background: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px rgba(136, 132, 125, 0.25);
    color: var(--blue);
    padding: 0;
}

.basemap-button svg {
    width: 16px;
    height: 16px;
}

.basemap-button:hover {
    background: var(--white-hover);
}

.basemap-options-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 4px;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    min-width: 148px;
    box-shadow: 0 0 6px rgba(136, 132, 125, 0.25);
    padding: 8px 0;
}

.basemap-options-list.open {
    display: flex;
}

.basemap-option {
    width: 100%;
    border: none;
    background: white;
    color: var(--blue);
    text-align: left;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.basemap-option:hover {
    background: var(--white-hover);
}

.basemap-option.is-active {
    font-weight: bold;
}

.loading {
    margin: 10px;
    background-color: var(--blue);
    opacity: 0.85;
    position: absolute;
    width: calc(100% - 280px);
    padding: 8px;
    color: white;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-direction: column;
    left: 0;
    top: 0;
    z-index: 4;
}

.loading.is-visible {
    display: flex;
}

.spinner-wrap {
    display: flex;
    align-items: center;
}

.spinner-wrap h3 {
    margin: 0 4px;
    font-size: 16px;
    color: white;
}

.loading p {
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
}

.query-loader-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast-message {
    position: fixed;
    bottom: 36px;
    width: 300px;
    left: calc(50% - 150px);
    pointer-events: auto;
    z-index: 9;
    background-color: var(--blue);
    padding: 6px 12px;
    color: white;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toast-message.is-visible {
    opacity: 0.9;
}

.toast-message.is-error {
    background-color: var(--orange);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99;
    background: rgba(0, 71, 107, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 12px;
}

.modal.is-open {
    display: flex;
}

.modal-contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    background: white;
    box-shadow: 0 0 12px rgba(136, 132, 125, 0.25);
    border-radius: 4px;
}

.welcome-modal-contents-wrap {
    max-width: 700px;
}

.workspace-modal-contents-wrap {
    width: min(860px, 96vw);
    max-width: 860px;
}

.close-button-container {
    align-self: flex-end;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-blue);
    font-size: 18px;
}

.modal-body {
    text-align: left;
}

h2.section-title {
    margin-top: 0;
    font-size: 24px;
    color: var(--blue);
}

.welcome-modal-body {
    margin: 12px;
    margin-bottom: 2rem;
    max-width: 640px;
    color: var(--blue);
    padding: 0 50px;
}

.workspace-modal-body {
    margin: 6px 12px 20px;
    width: 100%;
    max-width: 760px;
    color: var(--blue);
    padding: 0 12px;
}

.workspace-modal-subtitle {
    margin-top: 12px;
    margin-bottom: 24px;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: var(--blue);
}

.workspace-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.workspace-option {
    border: 1px solid #d7e4f5;
    background: #eef5fd;
    border-radius: 6px;
    padding: 14px;
    text-align: left;
    color: var(--blue);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.workspace-option:hover {
    transform: translateY(-1px);
    background: #e5f0fb;
    box-shadow: 0 8px 16px rgba(0, 71, 107, 0.16);
}

.workspace-option-title {
    margin: 0;
    font-size: 20px;
    line-height: 1;
    color: #0e5780;
}

.workspace-option-preview {
    height: 112px;
    border: 1px solid #d0deee;
    border-radius: 4px;
    margin: 12px 0;
    overflow: hidden;
    background-image: linear-gradient(140deg, #dce9f6 0%, #edf4fc 55%, #d5e7f8 100%);
}

.workspace-option-preview.has-image {
    background: #dce6f2;
}

.workspace-option-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.workspace-option-label {
    margin: 0;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #6d747b;
}

.workspace-option-summary {
    margin-top: 4px;
    color: #67a1dd;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
}

.welcome-modal-body p {
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--blue);
}

.feature-box {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.feature-icon {
    margin-right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--blue-tint);
    border: 1px solid var(--light-blue);
    font-weight: bold;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.feature-text {
    color: var(--gray);
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.buttons {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 8px;
}

.button {
    width: 100%;
    padding: 6px 0;
    border-radius: 4px;
    border: 1px solid var(--light-blue);
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.button.white {
    color: var(--blue);
    background: white;
    text-decoration: none;
    margin-right: 4px;
}

.button.dark {
    color: white;
    background-color: var(--light-blue);
    margin-left: 4px;
}

.share-modal-contents {
    margin: 0 12px 24px;
    width: 350px;
    text-align: left;
    color: var(--blue);
}

.share-modal-contents p {
    margin-top: 6px;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.copy-share-url {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background-color: var(--orange);
    color: white;
    margin-top: 12px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.copy-share-url:hover {
    background-color: var(--orange-hover);
}

.mapboxgl-ctrl-geocoder {
    text-align: left;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-width: 340px;
    max-width: 340px;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 0 3px rgba(136, 132, 125, 0.25) !important;
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--icon {
    fill: #88847d;
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--input {
    height: 25px;
    padding-left: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--icon-search {
    top: 5px;
    left: 10px;
    width: 14px;
    height: 14px;
}

.mapboxgl-ctrl-geocoder input:focus {
    outline: none;
}

.mapboxgl-ctrl-group {
    border-radius: 3px;
    background-color: white;
    box-shadow: 0 0 3px rgba(136, 132, 125, 0.25) !important;
    color: var(--blue);
    border: none;
    outline: none;
}

.mapboxgl-ctrl-group button:hover {
    background-color: var(--white-hover) !important;
}

.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%209%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7.92163%205.13748C8.30606%205.13748%208.61771%204.82584%208.61771%204.44141C8.61771%204.05697%208.30606%203.74533%207.92163%203.74533L7.92163%205.13748ZM0.960847%203.74533C0.576414%203.74533%200.264769%204.05697%200.264769%204.44141C0.264769%204.82584%200.576414%205.13748%200.960847%205.13748L0.960847%203.74533ZM7.92163%203.74533L0.960847%203.74533L0.960847%205.13748L7.92163%205.13748L7.92163%203.74533Z%22%20fill%3D%22%2300476B%22%2F%3E%3Cpath%20d%3D%22M5.13724%200.960938C5.13724%200.576504%204.8256%200.264859%204.44116%200.264859C4.05673%200.264859%203.74508%200.576504%203.74508%200.960938H5.13724ZM3.74508%207.92172C3.74508%208.30615%204.05673%208.6178%204.44116%208.6178C4.8256%208.6178%205.13724%208.30615%205.13724%207.92172H3.74508ZM3.74508%200.960938V7.92172H5.13724V0.960938H3.74508Z%22%20fill%3D%22%2300476B%22%2F%3E%3C%2Fsvg%3E") !important;
}

.mapboxgl-ctrl-group .mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%209%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7.92163%205.01981C8.30606%205.01981%208.61771%204.70816%208.61771%204.32373C8.61771%203.9393%208.30606%203.62765%207.92163%203.62765L7.92163%205.01981ZM0.960847%203.62765C0.576414%203.62765%200.264769%203.9393%200.264769%204.32373C0.264769%204.70816%200.576414%205.01981%200.960847%205.01981L0.960847%203.62765ZM7.92163%203.62765L0.960847%203.62765L0.960847%205.01981L7.92163%205.01981L7.92163%203.62765Z%22%20fill%3D%22%2300476B%22%2F%3E%3C%2Fsvg%3E") !important;
}

.mapboxgl-popup-content {
    border-radius: 4px;
    font-size: 12px;
    font-family: PostGrotesk, "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: left;
}

.mapboxgl-ctrl-top-right {
    z-index: 2;
    top: 10px;
    right: 10px;
}

.mapboxgl-ctrl-top-right .mapboxgl-ctrl {
    margin: 0 0 8px;
}

.viz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.viz-table th,
.viz-table td {
    border-bottom: 1px solid var(--gray-tint);
    text-align: left;
    padding: 6px 4px;
}

@media (max-width: 1200px) {
    .viz-content {
        min-width: 460px;
        max-width: 560px;
    }
}

@media (max-width: 980px) {
    body {
        position: static;
    }

    #main {
        height: auto;
        min-height: 100vh;
    }

    .main-header {
        height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 10px;
        gap: 8px;
    }

    .header-title {
        padding-left: 0;
    }

    .action-buttons-container {
        position: static;
        margin-right: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .workspace-options {
        grid-template-columns: 1fr;
    }

    .workspace-option-title {
        font-size: 18px;
    }

    .workspace-option-preview {
        height: 90px;
    }

    .main-content {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar-inner {
        position: relative;
        min-width: 0;
    }

    .sidebar-toggle-button {
        display: none;
    }

    .map-section {
        min-height: 420px;
        height: 60vh;
    }

    .viz-panel {
        margin: 12px;
    }

    .viz-content {
        min-width: 0;
        width: calc(100vw - 24px);
        max-width: 100%;
    }

    .legend-box {
        right: 12px;
        bottom: 12px;
        width: 220px;
    }

    .mapboxgl-ctrl-geocoder {
        min-width: 220px;
        max-width: 62vw;
    }

    .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--input {
        height: 24px;
        font-size: 13px;
        padding-left: 30px;
    }

    .basemap-picker {
        top: 120px;
        right: 12px;
    }

    .loading {
        width: calc(100% - 24px);
    }
}
