.dfm-wrap {
    margin: 1.5rem 0 2rem;
}

.dfm-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
}

.dfm-controls label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.dfm-controls select,
.dfm-reset-button {
    min-height: 44px;
    font-size: 16px;
}

.dfm-controls select {
    width: 100%;
    padding: 8px 36px 8px 10px;
}

.dfm-reset-button {
    padding: 8px 16px;
    cursor: pointer;
}

.dfm-status {
    margin: 0 0 8px;
    font-weight: 700;
}

.dfm-map {
    width: 100%;
    height: var(--dfm-map-height, 680px);
    min-height: 480px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f1;
}

.dfm-info-window {
    width: min(300px, 72vw);
    line-height: 1.55;
}

.dfm-info-item h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.dfm-info-item p {
    margin: 4px 0;
}

.dfm-info-types {
    font-size: 13px;
    font-weight: 700;
}

.dfm-detail-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
}

.dfm-info-window hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.dfm-notice,
.dfm-has-error .dfm-status {
    padding: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 767px) {
    .dfm-controls {
        grid-template-columns: 1fr;
    }

    .dfm-map {
        height: min(70vh, 620px);
        min-height: 480px;
    }
}
