.legacy-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(30rem, 1.08fr);
    gap: 1rem;
    align-items: start;
}

.legacy-create-map-shell,
#legacy-area-map {
    min-height: calc(100vh - 18rem);
}

#legacy-area-map {
    width: 100%;
    border-radius: 0.9rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.legacy-create-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.legacy-create-form-card {
    min-width: 0;
}

.legacy-create-form-card .fi-section-content {
    padding: 1.25rem !important;
}

.legacy-create-form .fi-section {
    background: transparent;
    box-shadow: none;
    width: 100%;
    min-width: 0;
}

.legacy-create-form .fi-section-header {
    display: none;
}

.legacy-create-form .fi-section-content-ctn {
    border-top: 0;
}

.legacy-create-form .fi-section-content {
    padding: 0;
}

.legacy-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.legacy-create-form .fi-fo-component-ctn,
.legacy-create-form .fi-fo-field-wrp,
.legacy-create-form .fi-fo-grid,
.legacy-create-form .fi-fo-repeater,
.legacy-create-form .fi-input-wrp {
    min-width: 0;
    width: 100%;
}

.legacy-create-form .fi-fo-repeater,
.legacy-create-form .fi-fo-builder,
.legacy-create-form .fi-tabs {
    overflow: visible;
}

.legacy-create-form .fi-btn,
.legacy-create-primary-button {
    max-width: 100%;
}

.legacy-create-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 0;
    background: rgb(22 163 74);
    color: white;
}

.legacy-create-primary-button:hover {
    background: rgb(21 128 61);
}

.leaflet-locate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.leaflet-locate-control.leaflet-bar {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.leaflet-locate-control .leaflet-locate-btn {
    border: 0 !important;
    outline: none;
}

.leaflet-locate-btn:hover {
    background: #f8fafc;
}

.leaflet-locate-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.leaflet-locate-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.leaflet-locate-status {
    display: none;
    margin: 0 0 0.7rem 0.7rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
}

.leaflet-locate-status.is-visible {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .legacy-create-grid {
        grid-template-columns: 1fr;
    }

    .legacy-create-map-shell,
    #legacy-area-map {
        min-height: 22rem;
    }

    .leaflet-locate-status {
        display: none !important;
    }
}
