
/* =====================================================
   AREA LAYOUT
===================================================== */

#google-map > .area-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 4px;
    background: #f1f4f8;
    color: #17283c;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

    #google-map > .area-layout *,
    #google-map > .area-layout *::before,
    #google-map > .area-layout *::after {
        box-sizing: border-box;
    }


/* =====================================================
   LEFT PANEL - AREA LIST
===================================================== */

#google-map .area-sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 20px;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

#google-map .area-panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    font-size: 21px;
    font-weight: 700;
    flex-shrink: 0;
}

#google-map .area-heading-icon {
    font-size: 26px;
}

#google-map .area-collapse {
    margin-left: auto;
    color: #64748b;
    cursor: pointer;
    font-size: 22px;
}


/* =====================================================
   SEARCH
===================================================== */

#google-map .area-search {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 13px;
    margin: 0 0 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #17283c;
    font-size: 14px;
    outline: none;
    flex-shrink: 0;
}

    #google-map .area-search:focus {
        border-color: #0756d8;
        box-shadow: 0 0 0 2px #0756d822;
    }


/* =====================================================
   CREATE AREA BUTTON
===================================================== */

#google-map .area-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    background: #0756d8;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    #google-map .area-btn-primary:hover {
        background: #0649b8;
    }

#google-map .area-create-button {
    width: 100%;
    margin: 0 0 28px;
    flex-shrink: 0;
}


/* =====================================================
   AREA LIST
===================================================== */

#google-map .area-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
    flex-shrink: 0;
}

#google-map .area-list {
    display: flex;
    flex-direction: column;
}

#google-map .area-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 70px;
    padding: 12px 4px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

    #google-map .area-list-item:hover {
        background: #f5f8fc;
    }

#google-map .area-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    color: var(--area-color);
    font-size: 30px;
}

#google-map .area-list-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 5px;
}

    #google-map .area-list-info strong {
        font-size: 15px;
        font-weight: 600;
    }

    #google-map .area-list-info small {
        color: #64748b;
        font-size: 14px;
    }

#google-map .area-menu {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 17px;
    cursor: pointer;
}


/* =====================================================
   CENTER PANEL - MAP
===================================================== */

#google-map .area-map-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #dbeafe;
}

    #google-map .area-map-panel gmp-map-3d {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }


/* =====================================================
   MAP ACTION BAR
===================================================== */

#google-map .area-map-actions {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px #0003;
    white-space: nowrap;
    max-width: calc(100% - 30px);
}

#google-map .area-map-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 13px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #17283c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    #google-map .area-map-action:hover {
        background: #f1f5f9;
    }

    #google-map .area-map-action.area-active {
        background: #0756d8;
        color: #fff;
    }

    #google-map .area-map-action.area-finish {
        background: #0756d8;
        color: #fff;
    }


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 850px) {

    #google-map > .area-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    #google-map .area-sidebar {
        padding: 16px;
    }

    #google-map .area-map-action {
        padding: 10px 8px;
        font-size: 12px;
    }
}


/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */

@media (max-width: 600px) {

    #google-map > .area-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #google-map .area-sidebar {
        display: none;
    }

    #google-map .area-map-panel {
        width: 100%;
        height: 100%;
    }

    #google-map .area-map-actions {
        bottom: 10px;
        gap: 2px;
        padding: 6px;
    }

    #google-map .area-map-action {
        padding: 9px 7px;
        font-size: 11px;
    }
}
