/* Contractor Locator Frontend Styles */

.locator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-row input,
.form-row select,
.form-row button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    flex: 1 1 150px;
    outline: none;
    max-height: 45px;
    box-sizing: border-box;
}

.form-row button {
    background-color: #21ADEA;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.form-row button:hover {
    background-color: #00183C;
    color: #fff;
}

.map-list-wrapper {
    display: flex;
    gap: 20px;
}

#cl-map {
    flex: 2 1 600px;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#cl-contractor-list {
    flex: 1 1 300px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
}

#cl-category-filter {
    width: 100%;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 13px;
    outline: none;
    margin-bottom: 10px;
    max-height: 45px;
    box-sizing: border-box;
}

.contractor-item {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contractor-item:hover {
    background: #eef6ff;
}

.contractor-item strong.contractor-name {
    display: block;
    color: #161925;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.contractor-item span.address {
    display: block;
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 5px;
}

.contractor-item span.service-area {
    display: block;
    font-size: 13px;
    font-weight: normal;
    color: #666;
    margin-bottom: 5px;
}

.contractor-item a.phone {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #161925;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contractor-item a.phone:hover {
    color: #BC1515;
}

.cl-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.cl-notice {
    padding: 15px;
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    margin: 20px 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-row input,
    .form-row select,
    .form-row button {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .form-row button {
        width: 100%; /* Make the button full width on mobile */
    }
    
    .map-list-wrapper {
        flex-direction: column;
    }
    
    #cl-map {
        width: 100%;
        height: 400px;
    }
    
    #cl-contractor-list {
        max-height: 400px;
    }
}