/*
    Path in theme: platform/themes/real-scout/public/css/home-page-new/projects-grid.css
    Loaded via:    config.php's beforeRenderTheme, gated on route name "public.projects".

    Card skeleton is a deliberate copy of properties-highlights.css's
    .properties-highlights__card (radius/shadow/colors), kept under its own
    class name - same reasoning as that file: a future change to one
    listing's cards shouldn't silently ripple into the other.
*/

:root {
    --header-navy: #1a1d24;
    --header-gold: #e0a63e;
    --header-white: #ffffff;
    --header-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-max-width: 1320px;
}

.projects-grid-section {
    background: var(--header-white);
    padding: 56px 0 72px;
    font-family: var(--header-font-body);
}

.projects-grid-section * {
    box-sizing: border-box;
}

.projects-grid-section__inner {
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.projects-grid-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.projects-grid-section__eyebrow {
    display: block;
    color: var(--header-gold);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.projects-grid-section__heading {
    font-family: var(--header-font-heading);
    font-weight: 700;
    color: var(--header-navy);
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.projects-grid-section__text {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

.projects-grid-section__clear {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--header-white);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--header-navy);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.projects-grid-section__clear:hover {
    border-color: var(--header-gold);
    color: #cf9530;
}

.projects-grid-section__clear i {
    color: var(--header-gold);
}

.projects-grid-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.projects-grid-section__card {
    display: flex;
    flex-direction: column;
    background: var(--header-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(26, 29, 36, 0.08);
    border: 1px solid #ececec;
    text-decoration: none;
}

.projects-grid-section__card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f3f3f3;
}

.projects-grid-section__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-grid-section__card-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--header-gold);
    color: var(--header-white);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
}

.projects-grid-section__card-status {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: var(--header-white);
    color: var(--header-navy);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 6px;
}

.projects-grid-section__card-status.is-selling {
    color: #15803d;
}

.projects-grid-section__card-status.is-sold {
    color: #6b7280;
}

.projects-grid-section__card-status.is-pre_sale {
    color: #b45309;
}

.projects-grid-section__card-status.is-building {
    color: #1d5f6f;
}

.projects-grid-section__card-status.is-not_available {
    color: #6b7280;
}

.projects-grid-section__card-status.is-upcoming {
    color: #b45309;
}

.projects-grid-section__card-status.is-under_construction {
    color: #1d5f6f;
}

.projects-grid-section__card-status.is-completed {
    color: #15803d;
}

.projects-grid-section__card-verified {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #15803d;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 6px;
}

.projects-grid-section__card-body {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.projects-grid-section__card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--header-gold);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 8px;
}

.projects-grid-section__card-title {
    font-weight: 600;
    color: var(--header-navy);
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 8px;
}

.projects-grid-section__card-developer {
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 500;
    margin: -4px 0 8px;
}

.projects-grid-section__card-desc {
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.projects-grid-section__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #ececec;
    padding-top: 14px;
    margin-top: auto;
}

.projects-grid-section__card-price {
    color: var(--header-navy);
    font-weight: 700;
    font-size: 14.5px;
}

.projects-grid-section__card-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--header-gold);
    font-weight: 600;
    font-size: 13px;
}

.projects-grid-section__empty {
    color: #9ca3af;
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .projects-grid-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid-section {
        padding: 40px 0 56px;
    }

    .projects-grid-section__grid {
        grid-template-columns: 1fr;
    }

    .projects-grid-section__clear {
        width: 100%;
        justify-content: center;
    }
}
