.wordmappit-map-container {
    margin: 24px 0;
}

.wordmappit-map {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.wordmappit-marker {
    background: none;
    border: none;
}

.wordmappit-marker__wrapper {
    width: 34px;
    height: 46px;
    background: linear-gradient(180deg, var(--marker-color, #2563eb) 0%, #1d4ed8 100%);
    border-radius: 16px 16px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}

.wordmappit-marker__wrapper::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(180deg, var(--marker-color, #2563eb), #1d4ed8);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.wordmappit-marker__glyph svg {
    width: 18px;
    height: 18px;
    display: block;
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    border: none;
}

.leaflet-popup-tip {
    background: #ffffff;
}

.leaflet-popup-content {
    margin: 0;
}

.wordmappit-popup {
    min-width: 240px;
    font-family: inherit;
    color: #0f172a;
}

.wordmappit-popup__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(37, 99, 235, 0.08) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.wordmappit-popup__header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 100%);
    pointer-events: none;
}

.wordmappit-popup__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--accent, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.wordmappit-popup__icon svg {
    width: 22px;
    height: 22px;
}

.wordmappit-popup__header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: #0f172a;
}

.wordmappit-popup__category {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wordmappit-popup__badge {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(250, 204, 21, 0.2);
    color: #b45309;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wordmappit-popup__body {
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.wordmappit-popup__body p {
    margin: 0;
}

.wordmappit-popup__body + .wordmappit-popup__cta {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.wordmappit-popup__cta {
    display: block;
    padding: 14px 20px;
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 16px 16px;
    transition: filter 0.2s, transform 0.2s;
}

.wordmappit-popup__cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .wordmappit-map {
        height: 420px !important;
    }
}
