/* ============================================
   PROJECT LISTING  -  scoped .pjl-
   ============================================ */

.pjl-section {
    padding: 70px 0 80px;
    background: #f8faff;
}

.pjl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ------------------------------------------------
   HEADER
   ------------------------------------------------ */
.pjl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.pjl-badge {
    display: inline-block;
    background: rgba(236,169,13,.12);
    color: #ECA90D;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.pjl-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #01295E !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
}

.pjl-title span { color: #ECA90D !important; }

.pjl-subtitle {
    font-size: 15px !important;
    color: #6c757d !important;
    margin: 0 !important;
}

/* Search */
.pjl-search-wrap {
    position: relative;
    width: 280px;
}

.pjl-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
    font-size: 14px;
    pointer-events: none;
}

.pjl-search-wrap input {
    width: 100% !important;
    height: 46px !important;
    padding: 0 16px 0 40px !important;
    border: 1px solid #e0e6ef !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    color: #01295E !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .3s ease, box-shadow .3s ease !important;
}

.pjl-search-wrap input:focus {
    border-color: #ECA90D !important;
    box-shadow: 0 0 0 3px rgba(236,169,13,.1) !important;
}

.pjl-search-wrap input::placeholder { color: #b0b8c4 !important; }

/* ------------------------------------------------
   STATUS TABS
   ------------------------------------------------ */
.pjl-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.pjl-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: #fff;
    border: 2px solid #e0e6ef;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.pjl-tab:hover {
    border-color: #ECA90D;
    color: #01295E;
    transform: translateY(-2px);
}

.pjl-tab.active {
    background: #ECA90D;
    border-color: #ECA90D;
    color: #fff;
    box-shadow: 0 6px 20px rgba(236,169,13,.3);
}

.pjl-tab-count {
    background: rgba(0,0,0,.08);
    padding: 1px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.pjl-tab.active .pjl-tab-count {
    background: rgba(255,255,255,.25);
}

/* ------------------------------------------------
   GRID
   ------------------------------------------------ */
.pjl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ------------------------------------------------
   CARD
   ------------------------------------------------ */
.pjl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px rgba(1,41,94,.05);
    transition: all .4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pjl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(1,41,94,.1);
    border-color: rgba(236,169,13,.25);
}

/* Ribbon */
.pjl-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

.pjl-ribbon--ongoing  { background: #2e7d32; color: #fff; }
.pjl-ribbon--upcoming { background: #01295E; color: #fff; }
.pjl-ribbon--sold_out { background: #c62828; color: #fff; }

/* Image */
.pjl-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.pjl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    display: block;
}

.pjl-card:hover .pjl-card-image img { transform: scale(1.06); }

.pjl-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1,41,94,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.pjl-card:hover .pjl-image-overlay { opacity: 1; }

.pjl-image-overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,.6);
    padding: 8px 20px;
    border-radius: 50px;
}

/* Body */
.pjl-card-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pjl-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 9px;
}

.pjl-card-meta span {
    font-size: 12px !important;
    color: #888 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pjl-card-meta i { color: #ECA90D; font-size: 12px; }

.pjl-card-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #01295E !important;
    margin: 0 0 7px 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pjl-card-title a {
    color: #01295E !important;
    text-decoration: none;
    transition: color .3s ease;
}

.pjl-card-title a:hover { color: #ECA90D !important; }

.pjl-card-desc {
    font-size: 13px !important;
    color: #6c757d !important;
    line-height: 1.7 !important;
    flex: 1;
    margin: 0 0 14px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Buttons */
.pjl-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.pjl-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    padding: 7px 6px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

.pjl-price-btn   { background: #2e7d32; color: #fff; }
.pjl-sqft-btn    { background: #0d47a1; color: #fff; }
.pjl-brochure-btn{ background: #c62828; color: #fff; }

.pjl-price-btn:hover    { background: #e8f5e9; color: #2e7d32; transform: translateY(-2px); }
.pjl-sqft-btn:hover     { background: #e3f2fd; color: #0d47a1; transform: translateY(-2px); }
.pjl-brochure-btn:hover { background: #fce4ec; color: #c62828; transform: translateY(-2px); }

/* View Button */
.pjl-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    background: #ECA90D;
    color: #fff !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 14px rgba(236,169,13,.25);
}

.pjl-view-btn:hover {
    background: #d49a0c;
    transform: translateY(-2px);
    color: #fff !important;
}

.pjl-view-btn i { transition: transform .3s ease; }
.pjl-view-btn:hover i { transform: translateX(4px); }

/* ------------------------------------------------
   EMPTY / NO RESULTS
   ------------------------------------------------ */
.pjl-empty,
.pjl-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #eef2f7;
}

.pjl-empty i,
.pjl-no-results i {
    font-size: 50px;
    color: #eef2f7;
    display: block;
    margin-bottom: 14px;
}

.pjl-empty h4,
.pjl-no-results h4 {
    font-size: 20px !important;
    color: #01295E !important;
    margin: 0 0 6px 0 !important;
}

.pjl-empty p,
.pjl-no-results p {
    color: #888 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* ------------------------------------------------
   PAGINATION
   ------------------------------------------------ */
.pjl-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.pjl-pagination .pagination li a,
.pjl-pagination .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e0e6ef;
    color: #01295E;
    text-decoration: none;
    transition: all .3s ease;
    margin: 0 3px;
}

.pjl-pagination .pagination li a:hover,
.pjl-pagination .pagination li span.active,
.pjl-pagination .pagination li.active span {
    background: #ECA90D;
    border-color: #ECA90D;
    color: #fff;
}

/* ------------------------------------------------
   CTA BAR
   ------------------------------------------------ */
.pjl-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #01295E;
    border-radius: 16px;
    padding: 28px 36px;
    flex-wrap: wrap;
}

.pjl-cta-text h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 4px 0 !important;
}

.pjl-cta-text p {
    font-size: 14px !important;
    color: rgba(255,255,255,.7) !important;
    margin: 0 !important;
}

.pjl-cta-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.pjl-call-cta,
.pjl-wa-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}

.pjl-call-cta {
    background: rgba(255,255,255,.12);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.2);
}

.pjl-call-cta:hover { background: rgba(255,255,255,.22); color: #fff !important; }

.pjl-wa-cta {
    background: #ECA90D;
    color: #fff !important;
}

.pjl-wa-cta:hover { background: #d49a0c; transform: translateY(-2px); color: #fff !important; }

/* ------------------------------------------------
   FLOATING BUTTONS
   ------------------------------------------------ */
.pjl-float-btns {
    position: fixed;
    bottom: 30px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.pjl-float-call,
.pjl-float-wa {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    transition: all .3s ease;
}

.pjl-float-call { background: #01295E; }
.pjl-float-wa   { background: #25D366; }

.pjl-float-call:hover,
.pjl-float-wa:hover {
    transform: scale(1.1) translateY(-3px);
    color: #fff !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .pjl-section { padding: 55px 0 65px; }
    .pjl-title { font-size: 30px !important; }
    .pjl-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
    .pjl-search-wrap { width: 240px; }
}

@media (max-width: 768px) {
    .pjl-section { padding: 45px 0 55px; }
    .pjl-header { flex-direction: column; align-items: flex-start; }
    .pjl-search-wrap { width: 100%; }
    .pjl-title { font-size: 26px !important; }
    .pjl-tabs { gap: 8px; }
    .pjl-tab { padding: 8px 16px; font-size: 13px; }
    .pjl-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .pjl-card-body { padding: 14px 16px 18px; }
    .pjl-card-title { font-size: 15px !important; }
    .pjl-cta-bar { padding: 22px 24px; text-align: center; justify-content: center; }
    .pjl-cta-text { width: 100%; }
    .pjl-cta-btns { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    .pjl-section { padding: 35px 0 45px; }
    .pjl-title { font-size: 22px !important; }
    .pjl-tabs { flex-direction: column; }
    .pjl-tab { justify-content: center; border-radius: 10px; }
    .pjl-grid { grid-template-columns: 1fr; gap: 14px; }
    .pjl-act-btn { font-size: 10px; padding: 6px 4px; }
    .pjl-cta-bar { border-radius: 12px; padding: 20px 18px; }
    .pjl-call-cta, .pjl-wa-cta { flex: 1; justify-content: center; }
}

@media (max-width: 400px) {
    .pjl-tab { padding: 8px 12px; font-size: 12px; }
    .pjl-tab-count { display: none; }
    .pjl-float-call, .pjl-float-wa { width: 46px; height: 46px; font-size: 18px; }
}   