/* =========================================================
   LOCATION FILTER
========================================================= */
#locFilterTable {
    background: var(--white);
    box-shadow: 0 0 10px rgb(194 210 233);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 60px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

#locFilterTable select,
#locFilterTable input[type="text"] {
    border-radius: 4px;
    border: 1px #DDD solid; 
    height: 40px; 
    padding: 0 20px; 
    font-size: 14px; 
    outline: none;
}
    
#locFilterTable select:focus,
#locFilterTable input:focus {
    outline: none;
}
    
#state-filter-table,
#city-filter-table,
#search-filter-table {
    flex: 1 1 200px;
}

/* =========================================================
   LOCATION CENTRE TABLE
========================================================= */
#location-filter-table {
    width: 100%;
}

/* =========================================================
   TABLE WRAPPER
========================================================= */
.location-table {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--greyColor);
    border-radius: 14px;
    overflow: hidden;
}

/* =========================================================
   TABLE HEADER
========================================================= */
.location-table-header {
    display: grid;
    grid-template-columns: 40% 30% 15% 15%;
    background: var(--lightBgBlue);
    border-bottom: 1px solid var(--greyColor);
}

.location-table-heading {
    padding: 15px 20px;
    color: var(--darkBrand);
    font-family: var(--mainFont);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* =========================================================
   TABLE BODY
========================================================= */
.location-table-body {
    width: 100%;
}

/* =========================================================
   TABLE ROW
========================================================= */
.location-table-row {
    display: grid;
    grid-template-columns: 40% 30% 15% 15%;
    width: 100%;
    border-bottom: 1px solid var(--greyColor);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}
.location-table-row:nth-child(even) {
    background-color: var(--lightBgBlue);
}

.location-table-row:last-child {
    border-bottom: 0;
}

.location-table-row:hover {
    background-color: rgba(0, 170, 227, 0.06);
    box-shadow: inset 0 0 0 1px rgba(0, 170, 227, 0.18);
}

/* =========================================================
   CELLS
========================================================= */
.location-table-cell {
    min-width: 0;
    padding: 21px 20px;
}

/* =========================================================
   CENTRE
========================================================= */
.location-table-centre-name {
    color: var(--darkBrand);
    font-family: var(--mainFont);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.location-table-centre-area {
    margin-top: 5px;
    font-family: var(--mainFont);
    font-size: 13px;
    line-height: 1.4;
}

.location-table-centre-area a {
    color: var(--brandColor);
    text-decoration: none;
    transition: color 0.2s ease;
}

.location-table-centre-area a:hover {
    color: var(--darkBrand);
}

.location-table-separator {
    color: var(--thirdColor);
    margin: 0 3px;
}

/* =========================================================
   PHONE
========================================================= */
.location-table-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--thirdColor);
    font-family: var(--mainFont);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.location-table-phone i {
    font-size: 13px;
}

.location-table-phone:hover {
    color: var(--darkBrand);
}

/* =========================================================
   LOCATION
========================================================= */
.location-table-address {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #555;
    font-family: var(--mainFont);
    font-size: 14px;
    line-height: 1.55;
}

.location-table-address i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--thirdColor);
    font-size: 15px;
}

/* =========================================================
   HOURS
========================================================= */
.location-table-hours-inner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.location-table-hours-inner > i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--thirdColor);
    font-size: 15px;
}

.location-table-hours-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--darkBrand);
    font-family: var(--mainFont);
    font-size: 14px;
    line-height: 1.45;
}

.location-table-hours-days {
    font-weight: 500;
}

.location-table-hours-time {
    font-weight: 400;
}

/* =========================================================
   CONTACT
========================================================= */
.location-table-contact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

.location-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 35px;
    padding: 7px 12px;
    border-radius: 5px;
    font-family: var(--mainFont);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

/* Email */
.location-table-email {
    color: var(--darkBrand);
    background: var(--white);
    border: 1px solid var(--brandColor);
    flex: 1;
}

.location-table-email:hover {
    color: var(--darkBrand);
    background: var(--lightBgBlue);
}

/* Map */
.location-table-map {
    color: var(--white);
    background: var(--brandColor);
    border: 1px solid var(--brandColor);
    flex: 1;
}

.location-table-map:hover {
    color: var(--white);
    background: var(--darkBrand);
    border-color: var(--darkBrand);
}

/* =========================================================
   NO RESULTS
========================================================= */
.location-table-not-found {
    width: 100%;
    padding: 30px 20px;
    color: var(--darkBrand);
    background: var(--white);
    border: 1px solid var(--greyColor);
    border-radius: 14px;
    font-family: var(--mainFont);
    font-size: 15px;
    text-align: center;
}

/* =========================================================
   LOADING STATE
========================================================= */
#filtered-posts-table {
    position: relative;
    transition: opacity 0.2s ease;
}

#filtered-posts-table.location-table-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1100px) {

    .location-table-header,
    .location-table-row {
        grid-template-columns:
            36%
            29%
            17%
            18%;
    }

    .location-table-cell {
        padding: 19px 16px;
    }

    .location-table-heading {
        padding: 14px 16px;
    }

    .location-table-centre-name {
        font-size: 15px;
    }

    .location-table-address,
    .location-table-hours-content {
        font-size: 13px;
    }

    .location-table-action {
        padding: 7px 9px;

        font-size: 12px;
    }
}


/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 767px) {

    /*
     * Remove table border because each row
     * becomes its own card.
     */
    .location-table {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    /*
     * Hide desktop headings
     */
    .location-table-header {
        display: none;
    }

    /*
     * Separate cards
     */
    .location-table-body {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    /*
     * Row becomes card
     */
    .location-table-row {
        display: block;
        background: var(--white);
        border: 1px solid var(--greyColor);
        border-radius: 12px;
        overflow: hidden;
    }

    .location-table-row:hover {
        background: var(--white);
    }

    /*
     * Cells
     */

    .location-table-cell {
        padding: 0 16px;
    }

    /* -----------------------------------------
       CENTRE
    ----------------------------------------- */
    .location-table-centre {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .location-table-centre-name {
        font-size: 16px;
        line-height: 1.4;
    }


    .location-table-centre-area {
        margin-top: 5px;
        font-size: 13px;
    }

    .location-table-phone {
        margin-top: 9px;
        font-size: 14px;
    }

    /* -----------------------------------------
       LOCATION
    ----------------------------------------- */
    .location-table-location {
        padding-top: 15px;
        padding-bottom: 15px;
        border-top: 1px solid var(--greyColor);
    }

    .location-table-address {
        font-size: 13.5px;
        line-height: 1.55;
    }

    /* -----------------------------------------
       HOURS
    ----------------------------------------- */
    .location-table-hours {
        padding-top: 14px;
        padding-bottom: 14px;
        border-top: 1px solid var(--greyColor);
    }

    .location-table-hours-content {
        font-size: 13.5px;
    }

    /* -----------------------------------------
       CONTACT
    ----------------------------------------- */
    .location-table-contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-top: 14px;
        padding-bottom: 16px;
        border-top: 1px solid var(--greyColor);
    }

    .location-table-action {
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 400px) {

    .location-table-cell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .location-table-centre-name {
        font-size: 15px;
    }

    .location-table-address {
        font-size: 13px;
    }

}