/*
 * NkMap Frontend Styles
 * Version: 12.5.7 (Stable Release)
 */

.nkmap-container {
    position: relative;
    margin: 20px auto;
}

.nkmap-svg-wrapper svg {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Style for individual county paths/groups */
.nkmap-svg-wrapper path[id],
.nkmap-svg-wrapper g[id] {
    cursor: pointer;
    transition: fill 0.2s ease-in-out, transform 0.2s ease;
    stroke: #FFFFFF;
    stroke-width: 2px;
}

/* Hover effect via JS */
.nkmap-svg-wrapper path[id]:hover,
.nkmap-svg-wrapper g[id]:hover {
    transform: translateY(-2px);
}

/* Active (clicked) state */
.nkmap-svg-wrapper .nkmap-active {
    transform: translateY(-2px);
    stroke: #000000;
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* --- Infobox Area Styling --- */
.nkmap-infobox-area {
    padding: 20px;
    background-color: #fcfcfc;
    border: 1px solid #ddd;
    border-top: 3px solid #0073aa;
    border-radius: 0 0 8px 8px;
    margin-top: -1px; /* To align with the SVG border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.infobox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.infobox-title {
    margin: 0;
    font-size: 1.6em;
    font-weight: 600;
    color: #2c3e50;
}

.infobox-close-btn {
    background: none;
    border: none;
    font-size: 2.2em;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.infobox-close-btn:hover {
    color: #e74c3c;
}

.infobox-content {
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}
.infobox-content p:last-child {
    margin-bottom: 0;
}

.infobox-link {
    display: inline-block;
    padding: 10px 22px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 0.95em;
    font-weight: bold;
}

.infobox-link:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}
