.mh {
    --mh-navy: #0b1462;
    --mh-ink: #000339;
    --mh-text: #333333;
    --mh-muted: #5c5c5c;
    --mh-line: #c4c4c4;
    --mh-paper: #ededed;
    --mh-card: #ffffff;
    --mh-danger: #8d2f1b;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.5rem 0 1.5rem;
    color: var(--mh-text);
    background: transparent;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.5;
}

.mh *,
.mh *::before,
.mh *::after {
    box-sizing: border-box;
}

.mh-title {
    margin: 0 0 0.35rem;
    color: var(--mh-ink);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
}

.mh-lead,
.mh-hint,
.mh-place,
.mh-search-status {
    margin: 0 0 0.75rem;
    color: var(--mh-muted);
    font-size: 1rem;
}

.mh [hidden] {
    display: none !important;
}

.mh-form {
    display: grid;
    gap: 0.25rem 1.5rem;
}

.mh-field {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    min-inline-size: 0;
}

.mh-field legend,
.mh label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--mh-ink);
    font-weight: 700;
}

.mh input[type="email"],
.mh input[type="search"],
.mh input[type="text"],
.mh textarea,
.mh input[type="file"] {
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--mh-line);
    border-radius: 2px;
    background: var(--mh-card);
    color: var(--mh-text);
    font: inherit;
    line-height: 1.4;
}

.mh textarea {
    min-height: 9rem;
    resize: vertical;
}

.mh input:focus,
.mh textarea:focus,
.mh button:focus-visible,
.mh a:focus-visible {
    outline: 3px solid var(--mh-navy);
    outline-offset: 2px;
}

.mh-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
}

.mh-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mh-search input {
    flex: 1 1 auto;
    min-width: 0;
}

.mh-search .mh-secondary {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mh button {
    font: inherit;
    cursor: pointer;
}

.mh-secondary,
.mh-submit {
    min-height: 3rem;
    padding: 0.65rem 1rem;
    border-radius: 2px;
    border: 1px solid var(--mh-navy);
}

.mh-secondary {
    background: var(--mh-card);
    color: var(--mh-navy);
}

.mh-secondary:hover {
    background: var(--mh-paper);
}

.mh-submit {
    background: var(--mh-navy);
    color: #ffffff;
    font-weight: 700;
}

.mh-submit:hover {
    background: var(--mh-ink);
}

.mh-submit:disabled,
.mh-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mh-map {
    position: relative;
    height: 20rem;
    width: 100%;
    border: 1px solid var(--mh-line);
    background: var(--mh-paper);
}

.mh-aerial {
    position: absolute;
    z-index: 1100;
    top: 0.6rem;
    right: 0.6rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 1px solid var(--mh-navy);
    border-radius: 2px;
    background: #fff;
    color: var(--mh-navy);
    box-shadow: 0 1px 4px rgba(0, 3, 57, 0.25);
}

.mh-aerial svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.mh-aerial .mh-aerial-map,
.mh-aerial[aria-pressed="true"] .mh-aerial-sat {
    display: none;
}

.mh-aerial[aria-pressed="true"] .mh-aerial-map {
    display: block;
}

.mh .leaflet-container img,
.mh .leaflet-container .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

.mh-results {
    display: grid;
    gap: 0.35rem;
    margin: 0.5rem 0 0.75rem;
}

.mh-results button {
    width: 100%;
    min-height: 3rem;
    padding: 0.55rem 0.75rem;
    text-align: left;
    border: 1px solid var(--mh-line);
    border-radius: 2px;
    background: #fff;
    color: var(--mh-text);
}

.mh-results button:hover {
    border-color: var(--mh-navy);
}

.mh-files {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.6rem;
    margin: 0.7rem 0 0;
    padding: 0;
}

.mh-files li {
    position: relative;
    margin: 0;
    background: var(--mh-paper);
}

.mh-files img {
    display: block;
    width: 100%;
    height: 6.5rem;
    object-fit: cover;
}

.mh-files span {
    display: block;
    padding: 0.25rem 0.35rem 0.4rem;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-files button {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    min-height: 2.5rem;
    padding: 0 0.55rem;
    border: 0;
    background: #fff;
    color: var(--mh-danger);
    font-weight: 700;
}

.mh-consent {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin: 0.75rem 0 1rem;
}

.mh .mh-consent input[type="checkbox"] {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    margin: 0.15rem 0 0;
    flex: 0 0 1.75rem;
    accent-color: var(--mh-navy);
}

.mh-consent label {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
    padding-top: 0.2rem;
}

.mh-consent div {
    display: grid;
    gap: 0.2rem;
}

.mh-consent a {
    color: var(--mh-navy);
    font-weight: 700;
}

.mh-error {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #fde8e2;
    color: var(--mh-danger);
    font-weight: 700;
}

.mh-captcha {
    margin-bottom: 1rem;
}

.mh-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mh-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mh-foot .mh-submit {
    width: 100%;
}

@media (min-width: 900px) {
    .mh-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: start;
    }

    .mh-head,
    .mh-foot {
        grid-column: 1 / -1;
    }

    .mh-side {
        grid-column: 2;
        grid-row: 2;
        position: sticky;
        top: 1rem;
    }

    .mh-main {
        grid-column: 1;
        grid-row: 2;
    }

    .mh-map {
        height: min(70vh, 36rem);
    }

    .mh-foot .mh-submit {
        width: auto;
        min-width: 16rem;
    }
}

@media (max-width: 899px) {
    .mh-map-actions {
        flex-direction: column;
    }
}
