/* MOW4U full-screen location selector — UPDATE test */

.el-dialog.mow-location-dialog {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.mow-location-dialog .el-dialog__header {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 20px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mow-location-dialog .el-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.mow-location-screen {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: #fff;
}

/* Top search and GPS controls */

.mow-location-top {
    flex: 0 0 auto;
    padding: 16px;
    background: #fff;
    z-index: 5;
}

.mow-location-top h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #222;
}

.mow-location-top .el-autocomplete {
    width: 100%;
}

.mow-use-location {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #fff3e8;
    border: 1px solid #f5bd8a;
    border-radius: 10px;
    color: #e87519;
    font-weight: 700;
    cursor: pointer;
}

.mow-use-location i {
    margin-right: 8px;
}

.mow-use-location:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Main interactive map */

.mow-location-map {
    position: relative;
    flex: 1 1 auto;
    min-height: 160px;
    width: 100%;
    overflow: hidden;
}

.mow-location-map .map-lg-large {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    border: none !important;
}

.mow-pin-instruction {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    max-width: 85%;
    padding: 9px 15px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

/* Bottom address preview and confirmation */

.mow-location-bottom {
    flex: 0 0 auto;
    padding: 16px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -3px 15px rgba(0,0,0,.06);
    z-index: 5;
}

.mow-location-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.mow-location-preview i {
    color: #e87519;
    font-size: 25px;
}

.mow-confirm-location {
    width: 100%;
    min-height: 54px;
    padding: 14px;
    background: #e87519;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.mow-confirm-location:disabled {
    background: #f3bd91;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .mow-location-top,
    .mow-location-bottom {
        padding-left: max(24px, calc((100% - 720px)/2));
        padding-right: max(24px, calc((100% - 720px)/2));
    }
}

@media (max-width: 575px) {
    .mow-location-top {
        padding: 12px;
    }

    .mow-location-top h4 {
        font-size: 18px;
    }

    .mow-location-bottom {
        padding: 12px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .mow-confirm-location {
        min-height: 52px;
    }
}
