.glad-osm-anchor {
    scroll-margin-top: 110px;
}

.glad-osm-locator {
    --glad-red: #e5172d;
    --glad-text: #32373c;
    --glad-muted: #6a6a6a;
    --glad-border: #d5d7db;
    --glad-panel: #ffffff;
    --glad-soft: #f7f7f7;
    color: var(--glad-text);
    font-size: 15px;
}

.glad-osm-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.55fr) auto;
    gap: 24px;
    align-items: end;
    padding: 18px 16px 28px;
    background: var(--glad-soft);
}

.glad-osm-field {
    display: grid;
    gap: 8px;
    margin: 0;
    font-weight: 400;
}

.glad-osm-field > span:first-child {
    color: var(--glad-red);
    font-weight: 700;
}

.glad-osm-field select,
.glad-osm-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--glad-border);
    border-radius: 4px;
    background: #fff;
    color: var(--glad-text);
    font: inherit;
}

.glad-osm-field select {
    padding: 0 12px;
}

.glad-osm-search {
    display: grid;
    grid-template-columns: 1fr auto;
}

.glad-osm-search input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0 13px;
}

.glad-osm-search button,
.glad-osm-locate {
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: var(--glad-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.glad-osm-search button {
    width: 48px;
    overflow: hidden;
    text-indent: -999px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    position: relative;
}

.glad-osm-search button::before {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    left: 15px;
    top: 12px;
}

.glad-osm-search button::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 3px;
    background: #fff;
    transform: rotate(45deg);
    left: 27px;
    top: 28px;
    border-radius: 3px;
}

.glad-osm-locate {
    padding: 0 16px;
    align-self: end;
}

.glad-osm-status {
    min-height: 0;
    padding: 0 16px;
    color: var(--glad-muted);
}

.glad-osm-status:not(:empty) {
    padding-top: 10px;
    padding-bottom: 10px;
}

.glad-osm-main {
    display: grid;
    grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
    min-height: 620px;
    border: 1px solid #ececec;
}

.glad-osm-panel {
    background: var(--glad-panel);
    border-right: 1px solid #ececec;
    min-width: 0;
}

.glad-osm-count {
    padding: 14px 18px;
    background: var(--glad-red);
    color: #fff;
    font-weight: 700;
}

.glad-osm-list {
    max-height: 580px;
    overflow: auto;
}

.glad-osm-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

.glad-osm-card.is-active {
    background: #fff7f8;
}

.glad-osm-card h3 {
    margin: 0;
    color: var(--glad-text);
    font-size: 17px;
    line-height: 1.3;
}

.glad-osm-meta {
    display: grid;
    gap: 6px;
    color: var(--glad-muted);
    font-size: 14px;
    line-height: 1.35;
}

.glad-osm-meta-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
}

.glad-osm-meta-row b {
    color: var(--glad-red);
    font-weight: 700;
}

.glad-osm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.glad-osm-actions a,
.glad-osm-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #bfc3c7;
    border-radius: 4px;
    background: #fff;
    color: var(--glad-red);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.glad-osm-actions a:first-child {
    border-color: var(--glad-red);
    background: var(--glad-red);
    color: #fff;
}

.glad-osm-map {
    min-height: 620px;
    background: #eef0f2;
}

.glad-osm-empty {
    padding: 22px 20px;
    color: var(--glad-muted);
}

.glad-osm-popup strong {
    display: block;
    margin-bottom: 5px;
    color: var(--glad-text);
}

.glad-osm-popup a {
    color: var(--glad-red);
}

@media (max-width: 900px) {
    .glad-osm-toolbar {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .glad-osm-main {
        grid-template-columns: 1fr;
    }

    .glad-osm-panel {
        border-right: 0;
        border-bottom: 1px solid #ececec;
    }

    .glad-osm-list {
        max-height: 380px;
    }

    .glad-osm-map {
        min-height: 460px;
    }
}

@media (max-width: 520px) {
    .glad-osm-toolbar {
        padding: 16px 0 22px;
    }

    .glad-osm-main {
        border-left: 0;
        border-right: 0;
    }

    .glad-osm-actions {
        grid-template-columns: 1fr;
    }
}
