/* =============================================
   Editable Map Boxes — Frontend (v2.2)
   ============================================= */

.emb-container {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 4px;
    overflow: hidden;
}

.emb-map-inner {
    position: absolute;
    inset: 0;
}

.emb-box {
    position: absolute;
    /* border: 2.5px solid #e8670a; */
    border: none;
    /* background: rgba(232, 103, 10, 0.18); */
    background: rgb(238 238 238 / 52%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 8px;
    gap: 4px;
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s;
}

/* .emb-box:hover {
    background: rgba(232, 103, 10, 0.30);
    border-color: #c44d00;
} */

/* Title — base styles; per-box overrides come via inline style */
.emb-box-label {
    display: inline-block;
    /* border-radius: 4px; */
    /* padding: 3px 8px; */
    font-weight: 700;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
    /* backdrop-filter: blur(2px); */
    flex-shrink: 0;
    /* defaults (overridden inline) */
    font-size: 13px;
    color: #7a3200;
    /* background-color: rgba(255, 255, 255, 0.85); */
}

/* Body text — base styles; per-box overrides come via inline style */
.emb-box-text {
    display: block;
    font-weight: 400;
    line-height: 1.5;
    word-break: break-word;
    overflow: hidden;
    max-width: 100%;
    /* text-shadow: 0 1px 3px rgba(0,0,0,0.5); */
    /* defaults (overridden inline) */
    font-size: 12px;
    color: #fff;

    & span:first-child {
        font-weight: 600;
    }
}

@media (max-width: 600px) {
    .emb-box-label { font-size: 11px !important; padding: 2px 5px; }
    .emb-box-text  { font-size: 10px !important; }
}
