/**
 * Hangar Map Picker (Phase 3)
 */

.av8-hmp-wrap {
    position: relative;
    margin-bottom: 20px;
}

.av8-hmp-host {
    position: relative;
    width: 100%;
    height: 420px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #f5f7fa;
    overflow: hidden;
}

.av8-hmp-help {
    margin: 0 0 8px;
    color: #5a6776;
    font-size: 13px;
}

.av8-hmp-place-btn {
    position: absolute;
    z-index: 500;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    background: #1B449D;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.av8-hmp-place-btn:hover {
    background: #143578;
}

/* Door visualization */
.leaflet-overlay-pane .av8-hmp-door-face {
    stroke: #FFD400;
    stroke-width: 4;
}

.leaflet-overlay-pane .av8-hmp-door-opening {
    stroke: #ffffff;
    stroke-width: 8;
    paint-order: stroke;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
}

.leaflet-overlay-pane .av8-hmp-door-clipped {
    stroke: #ec407a;
    stroke-dasharray: 6, 4;
}

/* Transform handles (from Leaflet.Path.Transform) */
.leaflet-path-transform-handler {
    cursor: pointer;
}

/* Admin metabox spacing */
#av8_hangar_map_picker .inside {
    padding-top: 12px;
}

/* Floating parameter island */
.av8-hmp-island {
    position: absolute;
    z-index: 600;
    top: 12px;
    right: 12px;
    width: 280px;
    padding: 12px 12px 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #222;
}

.av8-hmp-island-title {
    font-family: B612, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1B449D;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.av8-hmp-island-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
}

.av8-hmp-field {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    color: #5a6776;
}

.av8-hmp-field--wide {
    grid-column: 1 / -1;
}

.av8-hmp-field > span {
    margin-bottom: 2px;
    font-weight: 600;
}

.av8-hmp-field input {
    width: 100%;
    padding: 5px 7px;
    border: 1px solid #c9d0d8;
    border-radius: 3px;
    font-size: 12px;
    font-family: inherit;
    color: #222;
    background: #fff;
    box-sizing: border-box;
}

.av8-hmp-field input:focus {
    outline: none;
    border-color: #1B449D;
    box-shadow: 0 0 0 2px rgba(27, 68, 157, 0.15);
}

.av8-hmp-island-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
}

.av8-hmp-island-status {
    font-size: 11px;
    color: #71B63B;
    font-weight: 600;
    min-height: 14px;
    flex: 1;
}

.av8-hmp-confirm-btn {
    padding: 6px 14px;
    background: #71B63B;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.av8-hmp-confirm-btn:hover:not(:disabled) {
    background: #5a9b2c;
}

.av8-hmp-confirm-btn:disabled {
    background: #c0c0c0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .av8-hmp-host {
        height: 320px;
    }
    .av8-hmp-island {
        width: calc(100% - 24px);
        right: 12px;
        left: 12px;
    }
}
