/* =============================
   GENERAL
============================= */
body {
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    margin: 0;
}

.container {
    width: 90%;
    margin: auto;
}

/* =============================
   LAYOUT
============================= */
.category-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

.posts-area {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* =============================
   POSTS LIST
============================= */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-row-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-row-thumb {
    width: 280px;
    min-width: 280px;
    position: relative;
    background: #f3f3f3;
}

.post-row-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-row-content {
    flex: 1;
    padding: 20px;
}

.post-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.post-row-price {
    font-size: 16px;
    font-weight: 700;
    color: #163333;
}

.post-row-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
}

.post-row-title a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.post-row-title a:hover {
    color: inherit;
    text-decoration: none;
}
.post-row-location {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.post-row-time {
    font-size: 14px;
    color: #8a8a8a;
}

.favorite-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    color: #0f3d3e;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}
.favorite-btn.active {
    color: #dc3545;
    border-color: #dc3545;
}

/* ===============================
   CATEGORY FAVORITE BUTTON
================================ */

.post-row-top {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding-right: 52px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.category-favorite-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid #d9dfe8;
    border-radius: 50%;
    background: #fff;
    color: #8b95a7;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 2;
}

.category-favorite-btn:hover {
    border-color: #0a58ca;
    color: #0a58ca;
    transform: translateY(-50%);
}

.category-favorite-btn.active {
    color: #0a58ca;           /* 🔵 blue heart */
    border-color: #0a58ca;    /* 🔵 blue border */
    background: #eef4ff;      /* light blue background */
}

.category-favorite-btn .heart-icon {
    line-height: 1;
    font-size: 18px;
}



/* ===============================
   PAGINATION
================================ */

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 35px 0 45px;
    width: 100%;
}

.custom-pagination .page-btn,
.custom-pagination .dots {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.custom-pagination .page-btn {
    background: #0057d9;
    color: #fff;
    border: 1px solid #0057d9;
}

.custom-pagination .page-btn:hover {
    background: #003ea6;
    border-color: #003ea6;
}

.custom-pagination .page-btn.active {
    background: #fff;
    color: #0057d9;
    border: 1px solid #0057d9;
}

.custom-pagination .dots {
    min-width: auto;
    padding: 0 4px;
    background: transparent;
    color: #666;
    border: none;
}

.custom-pagination .nav-btn {
    padding: 0 20px;
}

@media (max-width: 768px) {

    .custom-pagination {
        gap: 4px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .custom-pagination .page-btn {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 11px;
        border-radius: 6px;
    }

    .custom-pagination .nav-btn {
        min-width: 52px;
        padding: 0 8px;
        font-size: 11px;
    }

    .custom-pagination .dots {
        display: none;
    }
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 900px) {
    .category-layout {
        flex-direction: column;
    }

    .post-row-card {
        flex-direction: column;
    }

    .post-row-thumb {
        width: 100%;
        min-width: 100%;
    }

    .post-row-thumb img {
        height: 220px;
    }
}

.post-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.post-action-btn,
.post-action-btn:visited,
.post-action-btn:focus,
.post-action-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #0a58ca;
    background: #ffffff;
    color: #0a58ca !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* EMAIL */
a.post-action-btn.email-btn,
a.post-action-btn.email-btn:visited,
a.post-action-btn.email-btn:focus,
a.post-action-btn.email-btn:active {
    background: #ffffff;
    color: #0a58ca !important;
    border: 1px solid #0a58ca;
    text-decoration: none;
}

a.post-action-btn.email-btn:hover {
    background: #0a58ca;
    color: #ffffff !important;
    border: 1px solid #0a58ca;
    text-decoration: none;
}

/* WHATSAPP */
a.post-action-btn.whatsapp-btn,
a.post-action-btn.whatsapp-btn:visited,
a.post-action-btn.whatsapp-btn:focus,
a.post-action-btn.whatsapp-btn:active {
    background: #ffffff;
    color: #0a58ca !important;
    border: 1px solid #0a58ca;
    text-decoration: none;
}

a.post-action-btn.whatsapp-btn:hover {
    background: #0a58ca;
    color: #ffffff !important;
    border: 1px solid #0a58ca;
    text-decoration: none;
}

/* CALL */

button.post-action-btn.call-btn,
button.post-action-btn.call-btn:visited,
button.post-action-btn.call-btn:focus,
button.post-action-btn.call-btn:active {
    background: #ffffff;
    color: #0a58ca !important;
    border: 1px solid #0a58ca;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

button.post-action-btn.call-btn:hover {
    background: #0a58ca;
    color: #ffffff !important;
    border: 1px solid #0a58ca;
    text-decoration: none;
}

.post-action-btn:active {
    transform: scale(0.97);
}

.post-action-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.post-user-logo {
    margin-left: auto;
    width: 42px;              /* make width = height */
    height: 42px;
    border-radius: 50%;       /* 🔥 makes circle */
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-user-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* fills circle nicely */
    border-radius: 50%;       /* ensures image is round */
}

.post-action-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.post-row-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.post-row-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-row-actions-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.post-row-package {
    margin: 0;
}

.post-row-location-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.post-row-location {
    font-size: 14px;
    color: #555;
}

.post-row-package-inline {
    flex-shrink: 0;
}

.post-row-time-wrapper {
    display: flex;
    justify-content: space-between; /* pushes left & right */
    align-items: center;
    width: 100%; /* VERY IMPORTANT */
}

.post-row-time {
    font-size: 13px;
    color: #777;
}

.post-row-content {
    width: 100%;
}

.ads-top,
.ads-mid {
    margin: 20px 0;
    text-align: center;
}

.ads-bottom {
    margin: 25px 0;
    text-align: center;
}

/* =========================================
   CATEGORY ADSENSE ADS
========================================= */

/* Top / middle / bottom ads inside posts area */
.ads-top,
.ads-mid,
.ads-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Desktop 728x90 style ad area */
.ads-top ins.adsbygoogle,
.ads-mid ins.adsbygoogle,
.ads-bottom ins.adsbygoogle {
    display: block;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}


/* Optional clean box look for ad spaces before live ads */
.ads-top,
.ads-mid,
.ads-bottom,
.sidebar-ad {
    background: #fff;
}

/* Give more space between ads and cards */
.ads-top + .post-row-card,
.ads-mid + .post-row-card {
    margin-top: 16px;
}

.post-row-card + .ads-mid {
    margin-top: 16px;
}

/* Bottom ad after pagination */
.pagination + .ads-bottom {
    margin-top: 24px;
}


/* =========================================
   RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 991px) {
    .ads-top ins.adsbygoogle,
    .ads-mid ins.adsbygoogle,
    .ads-bottom ins.adsbygoogle {
        max-width: 100%;
        min-height: 90px;
    }

    
}

/* Mobile */
@media (max-width: 767px) {
    .ads-top,
    .ads-mid,
    .ads-bottom {
        margin: 14px 0;
    }

    .ads-top ins.adsbygoogle,
    .ads-mid ins.adsbygoogle,
    .ads-bottom ins.adsbygoogle {
        max-width: 100%;
        min-height: 100px;
    }

    

    .sidebar-ad ins.adsbygoogle {
        max-width: 100%;
        min-height: 100px;
    }
}

/* =========================
   CATEGORY PAGE ADS
========================= */
.category-ad-wrap,
.category-sidebar-ad-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 18px auto;
    padding: 0;
    line-height: 0;
    clear: both;
}

.category-ad,
.category-sidebar-ad {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
}

/* =========================
   DESKTOP MAIN ADS = 728x90
========================= */
.category-ad.desktop-ad {
    display: flex;
}

.category-ad.desktop-ad .adsbygoogle {
    display: inline-block !important;
    width: 728px !important;
    height: 90px !important;
    margin: 0 auto !important;
    max-width: 100%;
}

/* =========================
   MOBILE MAIN ADS HIDDEN ON DESKTOP
========================= */
.category-ad.mobile-ad {
    display: none;
}

/* =========================
   SIDEBAR ADS = 300x250
========================= */
.category-sidebar-ad .adsbygoogle {
    display: inline-block !important;
    width: 300px !important;
    height: 250px !important;
    margin: 0 auto !important;
    max-width: 100%;
}

@media (max-width: 991px) {
    .category-ad.desktop-ad .adsbygoogle {
        transform: scale(0.92);
        transform-origin: center top;
    }

    .category-ad-wrap,
    .category-sidebar-ad-wrap {
        margin: 14px auto;
    }
}

@media (max-width: 768px) {
    .category-ad.desktop-ad {
        display: none !important;
    }

    .category-ad.mobile-ad {
        display: flex !important;
    }

    .category-ad.mobile-ad .adsbygoogle {
        display: inline-block !important;
        width: 300px !important;
        height: 250px !important;
        margin: 0 auto !important;
        max-width: 100%;
    }

    .category-ad-wrap,
    .category-sidebar-ad-wrap {
        margin: 14px auto;
        padding: 0 8px;
    }

    .category-sidebar-ad-wrap {
        padding: 0;
    }
}

@media (max-width: 340px) {
    .category-ad.mobile-ad .adsbygoogle,
    .category-sidebar-ad .adsbygoogle {
        transform: scale(0.92);
        transform-origin: center top;
    }
}

/* =========================
   CATEGORY FAQ SECTION
========================= */

.category-faq-section{
    margin-top:40px;
    padding:25px;
    background:#fff;
    border-radius:12px;
    border:1px solid #e5e5e5;
}

.category-faq-section h2{
    font-size:28px;
    margin-bottom:25px;
    font-weight:700;
    color:#111;
}

.category-faq-section h3{
    font-size:20px;
    margin-top:25px;
    margin-bottom:10px;
    font-weight:600;
    color:#222;
}

.category-faq-section p{
    font-size:16px;
    line-height:1.8;
    color:#444;
    margin-bottom:18px;
}

/* =========================================
   CATEGORY SEO / FAQ SPACING
========================================= */

.category-seo-details {
    margin-bottom: 18px;
}

.category-seo-details summary {
    cursor: pointer;
    font-weight: 600;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: inline-block;
}

.category-seo-content {
    margin-top: 12px;
    line-height: 1.7;
}

.category-posts-spacing {
    margin-top: 18px;
}

/* =========================================
   CATEGORY FAQ SPACING
========================================= */

.category-faqs {
    margin-top: 35px;
}

.category-faqs h2 {
    margin-bottom: 20px;
}

.category-faq-item {
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
}

.category-faq-item summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
}

.category-faq-answer {
    padding: 0 16px 16px;
    line-height: 1.7;
}

/* =========================================
   CALL PHONE OVERLAY
========================================= */

.phone-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-call-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.phone-call-modal {
    position: relative;
    z-index: 2;
    width: min(92%, 380px);
    padding: 30px 25px;
    background: #ffffff;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.30);
    box-sizing: border-box;
}

.phone-call-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}

.phone-call-close:hover {
    color: #000;
}

.phone-call-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 12px;
}

.phone-call-modal h3 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #222;
}

.phone-call-label {
    margin: 0 0 8px;
    font-size: 14px;
    color: #777;
}

.phone-call-number {
    margin-bottom: 22px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #111;
    word-break: break-word;
}

.phone-call-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 42px;
    padding: 0 22px;
    border-radius: 7px;
    background: #0a58ca;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-sizing: border-box;
}

.phone-call-now-btn:hover {
    background: #084298;
    color: #ffffff !important;
    text-decoration: none;
}

body.phone-overlay-open {
    overflow: hidden;
}


/* =========================================
   CALL OVERLAY MOBILE
========================================= */

@media (max-width: 480px) {

    .phone-call-modal {
        width: calc(100% - 30px);
        padding: 28px 20px;
    }

    .phone-call-number {
        font-size: 21px;
    }

}