#nearmap-icon {
    display: inline-block;
    align-items: center;
    vertical-align: top;
}

.LayersBut {
    display: inline-block;
    align-items: center;
    justify-content: center;
    /* prevents baseline/descender pushing */
    padding: 0;
    /* keep your existing size */
}

#nearmap-icon img {
    display: block;
    /* IMPORTANT */
    height: 28px;
    /* adjust (22–26px) */
    width: auto;
    margin: 0;
    /* remove your margin-right */
}


#nearmap-key-request-div {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 20;
}

.nm-card {
    background: #08112E;
    width: 420px;
    max-width: 90%;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: fadeInScale 0.2s ease-out;
}

.nm-logo img {
    max-height: 120px;
    /* margin-bottom: 20px; */
}

.infobar-nm-logo {
    max-width: 90px;
    margin-right: 16px;
    margin-top: 4px;
}

.infobar-divider {
    width: 1.5px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.35);
    margin-right: 16px;

}

.nm-card h2 {
    margin-top: 0px;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    color: #f3f3f3;
}

.nm-description {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 24px;
    line-height: 1.5;
}

.nm-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nm-link:hover {
    text-decoration: underline;
}

.nm-input-group input {
    width: 93%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.nm-input-group input:focus {
    border-color: #3448FF;
    /* box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15); */
}

.nm-button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.nm-primary-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #3448FF;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}

.nm-primary-btn:hover {
    background: #2f40e0;
}

.nm-secondary-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.nm-secondary-btn:hover {
    background: #F2F8F9;
}

/* Wrapper */
.nm-input-wrapper {
    position: relative;
    text-align: left;
    margin-bottom: 6px;
}

/* Input */
#nearmap-api-key {
    width: 86.5%;
    padding: 12px 14px;
    padding-right: 42px;
    /* space for icon on right */
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Icon on right */
.nm-input-icon {
    position: absolute;
    right: 18px;
    top: 18%;
    transform: translateY(-50%) scale(0.9);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    color: #D35520
}

/* Error message */
.nm-error-message {
    min-height: 18px;
    margin-top: 8px;
    font-size: 13px;
    color: #D35520;
    visibility: hidden;
}

/* Error state */
.nm-has-error #nearmap-api-key {
    border-color: #D35520;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.nm-has-error .nm-error-message {
    visibility: visible;
}

.nm-has-error .nm-input-icon {
    opacity: 1;
    transform: scale(1.5);
}

/* Shake animation */
@keyframes nmShake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

.nm-shake {
    animation: nmShake 0.35s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nearmap-toolbar,
#nearmap-close-btn-div,
#nearmap-setting-btn-div {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    border-radius: 12px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #111827;
    font-weight: 500;
    font-size: 20px;

    overflow: visible;
    position: relative;
}

#nearmap-container {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;

    flex-direction: row;
    align-items: center;
    gap: 30px;
    /* ← space between toolbar and close button */
}

.nearmap-toolbar-btn {
    background: transparent;
    border: none;
    height: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111827;
    font-size: 18px;

}

#nearmap-dates {
    background: transparent;
    border: none;
    flex: 1;
    /* fills middle space */
    height: 100%;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.nearmap-dates-wrap {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 200px;

}

/* dropdown panel */
.nearmap-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px);
    /* pops above toolbar */
    width: 300px;
    max-height: 420px;
    overflow: auto;

    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    /* border-radius: 12px; */
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding: 12px 0;
    z-index: 9999;
}

.nearmap-year {
    font-weight: 500;
    font-size: 20px;
    padding: 8px 16px;
    color: #111827;
}

/* list item row */
.nearmap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
}

.nearmap-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nearmap-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nearmap-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(17, 24, 39, 0.35);
}

.nearmap-item.is-selected .nearmap-dot {
    border-color: #2563eb;
    background: #2563eb;
}

.nearmap-label {
    font-size: 18px;
    color: #111827;
}

.nearmap-item.is-selected .nearmap-label {
    color: #2563eb;
}

.nearmap-check {
    opacity: 0;
    color: #2563eb;
    font-weight: 900;
}

.nearmap-item.is-selected .nearmap-check {
    opacity: 1;
}

.nearmap-setting-dropdown {

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px);
    /* pops above toolbar */
    width: 200px;
    max-height: 420px;
    overflow: auto;

    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    /* border-radius: 12px; */
    border-radius: 12px;
    padding: 0px;
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.nearmap-setting-dropdown.show {
    display: block;
}

.nm-setting-dd-btn {
    width: 100%;
    height: 30px;
    background-color: #fff;
    border: none;
    cursor: grab;
    display: block;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";


}

.nm-setting-dd-btn:hover {

    background-color: #F2F8F9;

}

#nearmap-setting-btn:hover,
#nearmap-close-btn:hover {
    border-radius: 12px;

}

.nearmap-setting-dropdown input[type="radio"] {
    display: none;
}

.nearmap-setting-dropdown input[type="radio"]:checked+span {
    background-color: #3448FF;
    color: #fff;
    width: 100%;
    display: block;
    height: 100%;
    text-align: center;

}

.nm-radio-btn-span {
    font-weight: 400;
    font-size: 13px;
    align-content: center;
    text-align: center;
    display: block;
    height: 100%;

}