body {
    background: #f6f7f9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.navbar-brand {
    letter-spacing: 0.08em;
}

.map-card {
    min-height: 600px;
}

.map-placeholder {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cccccc;
    background: #ffffff;
    color: #777777;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.card {
    border-radius: 12px;
}

.btn,
.form-select {
    border-radius: 8px;
}

.dataset-table th,
.dataset-table td {
    font-size: 0.85rem;
}

.dataset-table input {
    min-width: 80px;
}
.color-scale-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.color-scale-option {
    width: 52px;
    height: 36px;
    display: flex;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.color-scale-option span {
    flex: 1;
}
.color-scale-option.active {
    border-color: #212529;
}
.color-scale-option:hover {
    transform: translateY(-1px);
}
.map-placeholder {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cccccc;
    background: #ffffff;
}

.map-container {
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container svg {
    max-width: 100%;
    max-height: 520px;
    width: 100%;
    height: auto;
    display: block;
}
.map-tooltip {
    position: fixed;
    display: none;
    z-index: 9999;

    background: rgba(20, 20, 20, 0.95);
    color: white;

    padding: 8px 12px;
    border-radius: 6px;

    font-size: 0.9rem;
    line-height: 1.4;

    pointer-events: none;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);

    max-width: 250px;
}

.modal .btn-primary {
	background-color: #424649;
	border-color: #424649;
	color: #e6e6e6;
}
.modal .btn-primary:hover {
	background-color: #515457;
	border-color: #424649;
	color: #e6e6e6;
}
.modal .btn-secondary {
	background-color: #6E7174;
	border-color: #6E7174;
	color: #e6e6e6;
}
.modal .btn-secondary:hover {
	background-color: #837e7e;
	border-color: #555;
}
.btn-modal-trigger {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #6c757d;
}

.btn-modal-trigger:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}
#error-div {
    background-color: #f6f7f9;
	min-height: 100vh;
	display: flex;
    align-items: center;
    justify-content: center;
	text-align: center;
}
.error {
    color: #333;
    padding: 20px;
}

.error h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    margin: 0;
}

.error h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: normal;
    margin: 10px 0 30px;
    opacity: 0.8;
}

.error h3 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: normal;
    margin: 0;
}

.error a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #666;
}

.error a:hover {
    opacity: 0.7;
}
.error .cursor {
	display: inline-block;
	width: 0.6em;
	height: 1em;
	margin-left: 4px;
	background: #666;
	vertical-align: -0.15em;
	animation: cursor-blink 1s steps(2, start) infinite;
  }

  .cursor {
	display: inline-block;
	width: 0.6em;
	height: 1em;
	margin-left: 4px;
	background: #e6e6e6;
	vertical-align: -0.15em;
	opacity: 0;
}
@keyframes cursor-blink {
0%, 49% {
	opacity: 1;
}
50%, 100% {
	opacity: 0;
}}

/* ==========================================================
   Loader Overlay
========================================================== */

#loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#loader-overlay.d-none {
    display: none;
}

.loader-content {
    text-align: center;
    color: #ffffff;
    user-select: none;
}

.loader-content img {
    display: block;
    margin: 0 auto;
}

.loader-content p {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================
   Result
========================================================== */

#interactiveMap {
    width: 100%;
    min-height: 300px;
}

#interactiveMap svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
}
#interactiveMap .interactive-region {
    cursor: pointer;
}
.map-tab-content {
    background: #fff;
}