/*STYLESHEET FOR SEARCH AND LISTINGS*/

:root {
    --clear-color: white;
    --less-clear-color: #e4cfe9;
    --hard-color: #740293;
    --blue: #6535c3;
    --bg-color: #00000065;
    --bg-clear:#ffffff62;
    --bg-clearer: #ffffff23;    
    --h-pad: 10rem;
}

/*search results styling*/

.results_bar {
    padding: 0.5rem;
    background-color: var(--bg-clear);
    margin: 1rem auto;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;    
}

.results_bar h5 {
    font-size: 1rem;
}

.page_num {
    padding-left: 0.5rem;
    transition: font_size 0.3s;
    line-height: 1.3;
}

.current_page,
.page_num:hover {
    font-size: 1.2rem;
    text-decoration: underline;
    padding-top: 0rem;
    padding-left: 0.4rem;
    line-height: 1;
}

.display_listing,
.listings_wraper {
    width: 100%;
    margin: 0 auto;
    padding: 1rem var(--h-pad);
    padding-bottom: 5rem;
    margin-top: 2rem;
}

.results_flex {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
}

.list_result_wraper {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgb(240, 240, 240);
    transition: 0.4s;
}

.list_result_wraper p {
    text-align: center;
}

.list_result_wraper:hover {
    background-color: var(--bg-color);
    color: white;
    cursor: pointer;
}


.list_result_wraper h4 {
    padding: 1rem 0;
}

.cats_location {
    position: relative;
    top: -1rem;
    left: -1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
}

.cats {
    padding: 0.22rem;
    padding-left: 1rem;    
    position: relative;
}

.sub_cat {
    background-color: var(--blue);
    color: white;
}

.main_cat {        
    background-color: var(--hard-color);
    color: white;
}

.list_result_wraper .main_cat {
    border-top-left-radius: 0.5rem;
}

.main_cat::after,
.sub_cat::before,
.sub_cat::after {
    content: "";
    position: absolute;
    top: 0;
    border-color:transparent;
    border-style: solid;
    border-width: 0.62rem 0.5rem;
}

.sub_cat::after {
    left: 100%;
    border-top-color: var(--blue);
    border-left-color:var(--blue);
}

.main_cat::after {
    left: 100%;
    border-top-color: transparent;
    border-left-color:var(--hard-color);
}

.sub_cat::before {
    left: -1rem;
    border-right-color:var(--blue);
    border-bottom-color: var(--blue);
    border-top-color: var(--blue);
}


/* DISPLAY LISTING */

.listcat {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background-color: rgb(240, 240, 240); 
}

.listcat h6 {
    font-size: 0.65rem;
}

.title_container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 0rem;
    gap: 1rem;
}

.title_container .logo {
    background-color: transparent;
}

.title_container img {
    max-height: 3rem;
    border-radius: 0.25rem;
}

.title_container h1 {
    width: fit-content;
    font-size: 2.5rem;
    color: black;
}

.presentation {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgb(240, 240, 240);  
    border-radius: 0.5rem;
}

.details_container{
    --cols: 2;
    --gap: 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;    
    gap: var(--gap);
    background-color: rgb(240, 240, 240);  
    border-radius: 0.5rem;
    padding: 1rem;
}

.details_columns {
    flex-basis: calc(100% / var(--cols) - var(--gap) / var(--cols) * (var(--cols) - 1));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;    
    gap: 1rem;
}

.details {    
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    position: relative;
    min-height: 4rem;
}

.details .material-symbols-outlined {
    font-size: 2rem;
}

.info {
    font-size: 0.7rem;
}

.details img {
    width: 10%;
    padding-top: 0.25rem;
}

.text {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    text-align: justify;
    text-wrap: pretty;
    word-break: break-word;
}

.text a {
    text-decoration: underline;
}

.text a:hover {
    text-decoration: none;
}

.map_container {
    width: 100%;
    height: 25rem;
}

/*from bing maps documentation*/
#myMap {
    position:relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.content,
.image_wrapper {
    width: 100%;
}

/*listings image gallery*/

.image_gallery {
    width: 100%;
}

.image_gallery h5 {
    margin-bottom: 1rem;
}

.image_container {
    --img_cols: 5;
    --img_gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;    
    gap: var(--img_gap);
    width: 100%;
}

.image_container a {
    flex-basis: calc(100% / var(--img_cols) - var(--img_gap) / var(--img_cols) * (var(--img_cols) - 1));
}


.image_wrapper {    
    transition: 0.15s ease-in-out;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
}

.image_wrapper:hover {
    transform: scale(1.01);
    cursor: pointer;
    opacity: 0.8;
}




