/* ***********************************************************************
    Filename: find_nearby_locations.css
    Description: CSS for the Find Nearby Locations section of SACFinance
   
    Related Files: 
        -find_nearby_locations.cfm
    
************************************************************************ */

/* --------------------------------------------------
   OVERALL PAGE WRAPPER
-------------------------------------------------- */
.overall_div {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
}

/* --------------------------------------------------
   PAYMENT OPTIONS SECTION
-------------------------------------------------- */
.other-payment-options {
    background: #ffffff;
    border-radius: 10px;
    
}

.other-payment-options h3 {
    margin-bottom: 18px;
    font-size: 20px;
    color: #043e6c;
    font-weight: 700;
    border-bottom: 2px solid #d4dce4;
    padding-bottom: 8px;
}

.other-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}


.payment-option-card {
    background: #f7f9fc;
    border: 1px solid #d4dce4;
    padding: 18px;
    border-radius: 10px;
    text-align: left;
  
}

.payment-option-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #004a77;
}

.payment-option-card p {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
}

/* --------------------------------------------------
   MAP + LIST CONTAINER
-------------------------------------------------- */
.map-list-container {
    display: flex;
    gap: 0;
    width: 100%;
    align-items: stretch;
}

/* ----- Google Map area ----- */
.location-map {
    flex: 1;
    min-height: 480px;
    background: #e5e5e5;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top: 1px solid #d4dce4;
    border-bottom: 1px solid #d4dce4;
    border-left: 1px solid #d4dce4;

    
}
.location-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
}


/* ----- Location List (right side) ----- */
.location-list {
    width: 360px;
    background: #ffffff;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top: 1px solid #d4dce4;
    border-bottom: 1px solid #d4dce4;
    border-right: 1px solid #d4dce4;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.location-list h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #043e6c;
    font-weight: 700;
}

/* --------------------------------------------------
   ZIPCODE SEARCH BAR
-------------------------------------------------- */
.zipcode-search {
    position: relative;
    margin-bottom: 15px;
}

.zipcode-search input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    font-size: 15px;
    border: 1px solid #c2cedb;
    border-radius: 8px;
}

.zipcode-search .search-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 18px;
    color: #004a77;
}

/* --------------------------------------------------
   SCROLLABLE LIST
-------------------------------------------------- */
.location-list-scroll {
    height: 400px;
    overflow-y: auto;
    border-top: 1px solid #d4dce4;
    padding-top: 15px;
}

.location-list-scroll ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.location-list-scroll li {
    padding: 12px;
    border-bottom: 1px solid #e6edf5;
    cursor: pointer;
    transition: background 0.2s ease;
}

.location-list-scroll li:hover {
    background-color: #f1f5fa;
}

.location-list-scroll li strong {
    font-size: 15px;
    color: #004a77;
}

.location-list-scroll li i {
    color: #004a77;
    margin-right: 5px;
}

/* --------------------------------------------------
   MOBILE RESPONSIVE
-------------------------------------------------- */
@media (max-width: 900px) {

    /* Payment cards stack into 1 per row */
    .other-options-grid {
        grid-template-columns: 1fr;
    }

    /* Stack map above list */
    .map-list-container {
        flex-direction: column;
        gap: 0px;
    }

    /* Map full width */
    .location-map {
        width: 100%;
        min-height: 350px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px; 
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    /* List full width */
    .location-list {
        width: 100%;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px; 
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-top: none;
    }

    .location-list-scroll {
        height: 350px;
    }
}

@media (max-width: 600px) {

    .overall_div {
        padding: 15px;
    }

    .payment-option-card {
        padding: 15px;
    }

    .location-map {
        min-height: 300px;
    }

    .zipcode-search input {
        font-size: 14px;
    }

    .location-list-scroll li {
        font-size: 14px;
    }
}
