/*
Theme Name: ClassiPress Child
Theme URI: https://auroradivaescort.com/
Description: Optimization layer for ClassiPress 3.5.7 — head/CWV/schema/a11y. Inherits parent templates; overrides only what's needed.
Author: Aurora team
Template: classipress
Version: 1.0.1
*/

/* Expand layout containers wider than the parent's fixed 960px. */
.content_res,
.header_top_res,
.header_main_res,
.header_menu_res {
    width: 100% !important;
    max-width: 1400px !important;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
}

/* Stretch ad listings full-width when sidebar is hidden.
   ClassiPress fixes .content_left at 590px; when child's sidebar.php emits no
   .content_right container we expand the left column to fill .content_res. */
.home .content_left,
.archive .content_left,
.category .content_left,
.tax-ad_cat .content_left,
.search .content_left,
.blog .content_left {
    float: none !important;
    width: 100% !important;
}

/* Cards and post blocks adapt naturally because their width is %-based */

/* Make sure responsive media queries still kick in below 960px */
@media screen and (max-width: 960px) {
    .home .content_left,
    .archive .content_left,
    .category .content_left,
    .tax-ad_cat .content_left,
    .search .content_left,
    .blog .content_left {
        width: 100% !important;
    }
}

/* ---------- Wide horizontal card layout for ad listings ---------- */

/* Card spacing and depth */
.post-block-out {
    margin: 0 0 16px 0 !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow .15s ease;
}
.post-block-out:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
}
.post-block {
    display: flex !important;
    align-items: stretch;
    padding: 16px !important;
    width: auto !important;
    background: transparent !important;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Left image — wide, fills its column */
.post-block .post-left {
    flex: 0 0 180px;
    max-width: 180px !important;
    padding: 0 !important;
    margin-right: 18px;
    overflow: hidden;
    border-radius: 6px;
    align-self: flex-start;
}
.post-block .post-left a {
    display: block;
    width: 100%;
}
.post-block .post-left img,
.content_res img.attachment-ad-medium {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Right text — flex grows, no min/max */
.post-block .post-right {
    flex: 1 1 auto;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-top: 4px;
}
.post-block .post-right h3 {
    float: none !important;
    max-width: none !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px 0 !important;
    color: #1a1a1a !important;
}
.post-block .post-right h3 a {
    color: #1a1a1a !important;
    text-decoration: none;
}
.post-block .post-right h3 a:hover {
    color: #186c95 !important;
}
.post-block .post-right p.post-meta {
    font-size: 12px !important;
    color: #777 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}
.post-block .post-right p.post-meta a {
    color: #555 !important;
}
.post-block .post-right p.post-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #444 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.post-block .post-right p.post-desc a.moretag {
    color: #186c95 !important;
    font-weight: 600;
    margin-left: 4px;
}

/* Clear any leftover floats from parent CSS */
.post-block::after {
    content: "";
    display: block;
    clear: both;
}

/* Tablet — narrower image */
@media screen and (max-width: 900px) {
    .post-block .post-left {
        flex: 0 0 140px;
        max-width: 140px !important;
        margin-right: 14px;
    }
    .post-block .post-right h3 {
        font-size: 19px !important;
    }
}

/* Mobile — vertical (photo on top, text below) */
@media screen and (max-width: 600px) {
    .post-block {
        flex-direction: column;
        padding: 12px !important;
    }
    .post-block .post-left {
        flex: 0 0 auto;
        max-width: 100% !important;
        width: 100%;
        margin: 0 0 12px 0;
    }
    .post-block .post-left img,
    .content_res img.attachment-ad-medium {
        aspect-ratio: 16 / 9;
    }
    .post-block .post-right h3 {
        font-size: 18px !important;
    }
}
