/**
 * Theme Name:     WpResidence Child
 * Author:         wpestate
 * Template:       wpresidence
 * Text Domain:	   wpresidence-child
 * Description:    WP Residence is a premium &amp; responsive WordPress theme designed for Real Estate companies and independent agents.
 */

/* ===== Lood / Team stories ===== */

.stories-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 0 50px;
}

.story-card{
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.story-card-image{
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #eef1f6;
}

.story-card-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.story-card-image:hover img{
    transform: scale(1.04);
}

.story-card-body{
    padding: 24px 26px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.story-card-title{
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #012169;
    line-height: 1.25;
    margin: 0 0 8px;
    text-transform: none;
}

.story-card-title a{
    color: #012169;
    text-decoration: none;
}

.story-card-title a:hover{
    color: #FACC00;
}

.story-card-author{
    font-style: italic;
    color: #4d5b7a;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.story-card-intro{
    color: #4d5b7a;
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 22px;
    flex: 1;
}

.story-card-link.ctaBtn{
    align-self: flex-start;
    margin-top: auto;
}

/* ===== Single story full view ===== */

.story-hero-image{
    margin-bottom: 28px;
}

.story-hero-img{
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.single-story-content .story-title{
    margin-bottom: 6px;
}

.single-story-content .story-author-line{
    font-style: italic;
    color: #4d5b7a;
    font-size: 16px;
    margin: 0 0 24px;
}

.story-text{
    color: #4d5b7a;
    font-size: 16px;
    line-height: 2em;
}

.story-text h2{
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #012169;
    text-transform: none;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FACC00;
}

.story-text h3{
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #012169;
    margin: 30px 0 12px;
}

.story-text strong{
    color: #012169;
}

.story-text img{
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.story-text blockquote{
    border-left: 4px solid #FACC00;
    background: #f6f7fb;
    padding: 18px 22px;
    margin: 22px 0;
    font-style: italic;
    color: #012169;
}

.story-back-link{
    margin-top: 36px;
}

.story-back-link .ctaBtn{
    margin: 0;
}

/* ===== Latest news on single story ===== */

.latest-news-section{
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #FACC00;
}

.latest-news-title{
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #012169;
    text-transform: uppercase;
    margin: 0 0 28px;
}

.latest-news-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.news-card{
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e9f2;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.news-card:hover{
    box-shadow: 0 6px 18px rgba(1, 33, 105, 0.12);
}

.news-card-image{
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef1f6;
}

.news-card-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img{
    transform: scale(1.04);
}

.news-card-body{
    padding: 20px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card-date{
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4d5b7a;
    margin: 0;
}

.news-card-title{
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #012169;
    line-height: 1.3;
    margin: 0;
}

.news-card-title a{
    color: #012169;
    text-decoration: none;
}

.news-card-title a:hover{
    color: #FACC00;
}

.latest-news-more{
    margin: 36px 0 0;
}

.latest-news-more .ctaBtn{
    margin: 0;
}

/* Hide responsive menu trigger on desktop */
@media (min-width: 1025px){
    #rmp_menu_trigger-74412,
    .rmp_menu_trigger{
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 767px){
    .stories-grid{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-card-title{
        font-size: 21px;
    }

    .latest-news-grid{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .latest-news-title{
        font-size: 24px;
    }
}

/* ===== Single property classic slider fixes ===== */

/* Mixed landscape/portrait MLS photos made the owl carousel (autoHeight)
   stretch to the tallest image, leaving a huge empty area under the
   visible photo. Normalize the slide area and crop images to fit. */
#carousel-listing.classic-carousel .owl-carousel .owl-item .item {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef1f6;
}

#carousel-listing.classic-carousel .owl-carousel .owl-item .item a {
    display: block;
    width: 100%;
    height: 100%;
}

#carousel-listing.classic-carousel .owl-carousel .owl-item .item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* Thumbnail strip: keep the thumbnails in one scrollable row inside the
   content column instead of overflowing the page horizontally. */
#carousel-listing.classic-carousel .carousel-indicators.carousel-indicators-classic {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c6cdd8 transparent;
    height: auto;
    padding: 12px 0 8px;
    margin: 0;
}

#carousel-listing.classic-carousel .carousel-indicators.carousel-indicators-classic::-webkit-scrollbar {
    height: 6px;
}

#carousel-listing.classic-carousel .carousel-indicators.carousel-indicators-classic::-webkit-scrollbar-thumb {
    background: #c6cdd8;
    border-radius: 3px;
}

#carousel-listing.classic-carousel .carousel-indicators-classic li {
    margin-right: 9px;
    cursor: pointer;
}

/* ===== Uus Maa RSS news ([uusmaa_news]) ===== */
.latest-news-grid.news-columns-3{
    grid-template-columns: repeat(3, 1fr);
}

.latest-news-grid.news-columns-4{
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px){
    .latest-news-grid.news-columns-3,
    .latest-news-grid.news-columns-4{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px){
    .latest-news-grid.news-columns-3,
    .latest-news-grid.news-columns-4{
        grid-template-columns: 1fr;
    }
}
