:root {
    --card-border-radius: 6px;
    --button-hover-color: #246193;
    --button-hover-bg-color: #fff;
}
div.filter_options_group label{
    font-size:1rem;
    margin-bottom:5px;
}

.location_card_grid_view {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    /* justify-content: space-between; */
}
.location_card {
    display: flex;
    flex: 1 0 100%; /* Default to 100% width (1 column) on small screens */
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: var(--card-border-radius);
    margin: 1em;
    position: relative;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.location_card:hover {
    transform: scale(1.01);
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.1);
}

.location_image {
    width: 100%;
    aspect-ratio: 16 / 9;  /* adjust this for your preferred aspect ratio */
    overflow: hidden;
}

.location_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.location_info a, .location_address {
    margin: 0.5rem 1rem;
}

.location_info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.5rem 1rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.location_links {
    display: flex;
    margin-top: auto;
    padding: 0rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.location_links a {
    text-decoration: none;
    flex-grow: 1;
    text-align: center;
    padding: 0.8rem 0.5rem;
    background-color: transparent;
    color: #246193;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    position: relative;
}
.location_links a:first-child {
    border-bottom-left-radius: var(--card-border-radius);
}

.location_links a:last-child {
    border-bottom-right-radius: var(--card-border-radius);
}
.separator {
    flex-shrink: 0;
    height: 30px;
    width: 1px;
    background-color: #e0e0e0; /* Change this to match the color of your divider */
    margin: 0 8px; /* adjust this to change the spacing */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: center;
    align-items: flex-end;
}

.location_links a:hover,.location_links a:focus {
    background-color: var(--button-hover-color);
    color: var(--button-hover-bg-color);
}

.location_links .view_details {
    margin-right: 0.5rem;
}

.location_links .get_directions {
    margin-left: 0.5rem;
}
a.location_name {
    font-size: 1.4rem;
    font-weight: 600;
}
/*Location Filtering*/
.location_filter_controls {
    display: flex;
    flex-direction: column;
    /* margin-bottom: 1em; */
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: space-evenly;
    align-items: stretch;
    background: #f4f4f4;
    padding: 13px;
    border-radius: 6px;
    margin: 0.2em 1em;
}
select#view_as {
    margin-right: 1em;
}

.sort_container select {
    border: 1px solid #cbcbcb;
    font-size: 1rem;
    color: #4c4c4c;
    min-width: fit-content;
}
.outer_filter_container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1em;
}

.filter_container, .sort_container {
    display: flex;
    align-items: center;
}

#filter_button {
    padding: 0.5em 1em;
    background-color: var(--button-hover-color);
    color: var(--button-hover-bg-color);
    border: none;
    border-radius: var(--card-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#filter_button:hover {
    background-color: var(--button-hover-bg-color);
    color: var(--button-hover-color);
}

.filter_options_container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
}

.filter_options_group {
    display: none;
    align-self: flex-start;
    padding: 5px;
    width: 50%;
}
.filter_group_item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;
    align-items: stretch;
    margin: 10px auto;
}
select#sort_by option:checked {
    background-color: #abcdef; /* Replace with the desired color */
}
/*Map View*/
#map button:disabled,
#map button[disabled]{
  cursor:default !important;
  border-color: #72727200 !important;
  background-color: #ffffff87 !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
#map button:disabled div,#map button[disabled] div{
      color: #727272 !important;
}
.location_card_map_view {
    width: 100%;
  }
.grid_map_and_filter {
    display: flex;
    flex-direction: column;
}
.map_pin_location_name {
    font-size:1rem;
}
a.map_pin_link {
    font-weight: 500;
    font-size: 1rem;
}
.custom-info-window {
    padding: 3px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: stretch;
    margin-top: -55px !important;
}

h4.map_pin_heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.custom-info-window address {
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    font-style: normal !important;
    color: #666666;
}
.gm-style-iw.gm-style-iw-c,.gm-style-iw.gm-style-iw-c {
    background: #ffffffc7 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.gm-style-iw-d {
    overflow: visible !important;
    padding: 10px !important;
}

.gm-style-iw.gm-style-iw-c {
    padding: 10px !important;
}
button.gm-ui-hover-effect {
    top: 0px !important;
    right: 0px !important;
}
button.gm-ui-hover-effect span {
    width: 18px !important;
    height: 18px !important;
}
/* search bar */
.input_clear_container {
    position: relative;
    display: inline-block;
}

.clear_input_btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    background: #fff;
    border: none;
    padding: 5px;
    border-radius: 50%;
}

#search_term {
    padding-right: 30px; /* make sure text doesn't overlap the (x) button */
}
.no_results_found_msg {
    margin: 20px auto;
    font-size: 1.3rem;
    font-weight: 500;
}
.filter_group_item input {
    font-family: inherit;
    font-size: 1rem !important;
    line-height: 1.5;
}
/*Media Queries*/
@media screen and (max-width:1140px){
    .location_card {
        flex: 0 0 calc((100% - 6em)/2) !important;
    }
}
@media screen and (max-width:791px){
    .location_card {
        flex: 0 0 calc((100% - 6em)/1) !important;
    }
    .location_card_grid_view{
    flex-direction: column;
    }
    .location_card .location_image {
        order: 1;
    }
    .location_card .location_info {
        order: 2;
    }
    .location_card .location_links {
        order: 3;
    }
}

@media screen and (max-width: 768px) {
    .location_card {
        flex: 1 0 50%; /* 50% width (2 columns) on medium screens and up */
        max-width: 100%;
    }
    .filter_options_container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: stretch;
        justify-content: space-evenly;
        align-items: stretch;
        gap: 0px !important;
        padding: 0px !important;
    }
    .filter_group_item {
        width: 100% !important;
    }
    .filter_options_group {
        width: 100%;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: stretch;
        justify-content: space-evenly;
        align-items: stretch;
    }
}

@media screen and (max-width: 600px) {
    .location_card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0.5em;
    }
}

@media screen and (max-width: 480px) {
    .location_card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0.25em;
        flex-direction: column;
    }
    .location_card .location_links {
        flex-direction: column;
    }
    .location_card .location_links a {
        flex-grow: 1;
        text-align: center;
        padding: 0.4rem 0.25rem;
        font-size: 1rem;
    }
    .location_card .location_links a:not(:last-child)::after {
        display: none;
    }
}
