/*
Theme Name: Avada Child
Theme URI: https://avada.com/
Description: Child theme for Avada
Author: Your Name
Author URI: https://yourwebsite.com/
Template: Avada
Version: 1.0.0
*/

/* Contractor Map Styles */
#swd-map-section {
    background: #003f77;
    padding: 40px 0;
    color: #fff;
}

.swd-map-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#swd-map {
    width: 100%;
    max-width: 65%;
    height: 500px;
}

.swd-map-sidebar {
    margin-left: 40px;
    max-width: 400px;
}

.swd-map-heading {
    color: #fff;
    margin-bottom: 15px;
}

#swd-map-search {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    background: #003f77;
    color: #fff;
    border: 1px solid #fff;
}

#swd-map-search::placeholder {
    color: #ccc;
}

.swd-map-radius-label {
    margin-top: 10px;
    display: block;
}

#swd-map-radius {
    width: 100%;
    padding: 8px;
    background: #174a7c;
    color: #fff;
    border: 1px solid #fff;
}

.swd-reset-btn {
    margin: 16px 0;
    padding: 8px 18px;
    background: #e88432;
    color: #003f77;
    border: none;
    font-weight: bold;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swd-reset-btn:hover {
    background: #fff !important;
}

.swd-reset-btn:hover {
    background: #d35400;
}

#swd-map-results {
    margin-top: 20px;
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: scroll;
}

#swd-map-results li {
    margin-bottom: 18px;
    cursor: pointer;
}

#swd-map-results li:hover {
    opacity: 0.8;
}

#swd-map-results a {
    color: #e67e22;
}

#swd-map-results .distance {
    color: #fff;
}

#swd-map-results li.highlighted {
    background-color: rgba(230, 126, 34, 0.2);
    border-left: 4px solid #e67e22;
    padding-left: 12px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .swd-map-container {
        flex-direction: column;
        align-items: center;
    }

    .swd-map-sidebar {
        margin-left: 0;
        margin-top: 20px;
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
    }

    #swd-map {
        width: 100%;
        margin-bottom: 20px;
        max-width: 100%;
    }
}

.gm-style .gm-style-iw-c {
    padding-left: 0 !important;
}

.gm-style .gm-style-iw-chr {
    position: absolute;
    right: 0;
}

.gm-style .gm-style-iw-d > div > div {
    padding-right: 40px !important;
}

.gm-style .gm-style-iw-d > div > div > div:last-of-type > a:hover {
    text-decoration: underline !important;
}
