/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.0
*/

.single-listing .listing-hero {
    position: relative;
    margin-bottom: 40px;
}

.single-listing .hero-image img {
    width: 100%;
    height: 95vh;
    object-fit: cover;
}

.single-listing .hero-overlay {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: linear-gradient(270deg, var(--global-palette9) 48%, rgba(36, 45, 45, 0.7) 48%);
    color: white;
    height: 100%;
}

.single-listing .hero-content {
    display: grid;
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0px, calc(55% - 40px)) minmax(0px, calc(45% - 40px));
    column-gap: 80px;
    row-gap: var(--global-kb-gap-none, 0rem);
    max-width: var(--global-content-width, 1290px);
    padding-left: var(--global-content-edge-padding);
    padding-right: var(--global-content-edge-padding);
    padding-top: 20px;
    padding-bottom: 20px;
    align-content: center;
    margin-left: auto;
    margin-right: auto;
    & .col {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    & .container {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

.single-listing .hero-content-wrapper {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
}

.single-listing .entry-title {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 0px;
    line-height: 1;
}

.single-listing .listing-location {
    color: rgb(205, 170, 57);
    font-size: 1.35rem;
    margin: 0px;
}

.listing-price-bar {
}

.listing-price {
    color: rgb(205, 170, 57);
    font-size: 3rem;
    font-weight: 700;
    margin: 0px;
}

.single-listing .container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 20px;
}

.single-listing .rowlayout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .single-listing .rowlayout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.listing-sidebar {
    background: rgb(248, 249, 250);
    padding: 35px 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.listing-sidebar h3 {
    color: rgb(13, 78, 146);
    margin-top: 0px;
    border-bottom: 2px solid rgb(205, 170, 57);
    padding-bottom: 12px;
}

.listing-details {
    list-style: none;
    padding: 0px;
    margin: 0px 0px 30px;
}

.listing-details li {
    padding: 12px 0px;
    border-bottom: 1px solid rgb(224, 224, 224);
    font-size: 1.05rem;
}

.listing-details li:last-child {
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
}

.listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 40px 0px;
}

.listing-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.featured-listings-grid,
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin: 40px 0px;
}

.listing-card {
    background: rgb(255, 255, 255);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 15px;
    transition: 0.3s;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 12px 25px;
}

.listing-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.listing-card-content {
    padding: 22px;
}

.listing-card-content h3 {
    font-size: 1.35rem;
    margin: 0px 0px 12px;
    line-height: 1.3;
}

.listing-card-content h3 a {
    color: rgb(13, 78, 146);
    text-decoration: none;
}

.listing-card-content h3 a:hover {
    color: rgb(137, 27, 43);
}

.listing-card-content p {
    margin: 8px 0px;
    color: rgb(85, 85, 85);
    font-size: 1.02rem;
}

.listing-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(13, 78, 146);
    margin: 12px 0px 18px;
}

.listing-card .button {
    display: inline-block;
    background: rgb(13, 78, 146);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.listing-card .button:hover {
    background: rgb(137, 27, 43);
    color: white;
}

@media (max-width: 768px) {
	.featured-listings-grid,
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .listing-card img {
        height: 200px;
    }
}

.taxonomy-hero {
    position: relative;
    background-image: url('/wp-content/uploads/2020/10/brokerage-dane-deaner-_-KLkj7on_c-unsplash.jpg');
    background-size: cover;
    background-position: right bottom;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.taxonomy-hero .hero-overlay {
    position: relative;
    width: 100%;
    background: rgba(36, 45, 45, 0.55);
}

.taxonomy-hero .container {
    position: relative;
    z-index: 2;
    max-width: var(--global-content-width, 1290px);
    margin-left: auto;
    margin-right: auto;
    padding: 225px var(--global-content-edge-padding) 25px;
}

.post-type-archive-listing .container, .tax-listing_type .content-area .container {
    max-width: var(--global-content-width, 1290px);
    margin-left: auto;
    margin-right: auto;
}

.taxonomy-hero .page-title {
    color: white;
    font-size: 65px;
    margin: 0px;
    font-family: var(--global-heading-font-family);
}

.taxonomy-description {
    color: rgb(205, 170, 57);
    font-size: 1.25rem;
    max-width: 700px;
}


/* Gallery Styles */
.single-listing .main-content {
    max-width: 100%;
    overflow: hidden;
}


.listing-gallery-wrapper {
    /* margin: 40px 0; */
    max-width: 100%;
}

.main-gallery {
    margin-bottom: 20px;
}

.main-gallery img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-gallery {
    margin-top: 15px;
}

.thumbnail-gallery img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-gallery .swiper-slide-active img {
    opacity: 1;
    border: 3px solid #cdaa39;
}

/* Lightbox */
.lightbox-enabled img {
    cursor: zoom-in;
}
