/* ==========================================================
   BHOOMIYUG | Premium Project Results
   Compact editorial listing — not a floating dashboard card.
   ========================================================== */

.by-project-list--premium {
    --by-gold: #9b712f;
    --by-ink: #201e1a;
    --by-muted: #77736d;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.by-project-list--premium *,
.by-project-list--premium *::before,
.by-project-list--premium *::after { box-sizing: border-box; }

.by-project-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    padding: 20px 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid #e9e3d9;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background .22s ease;
}

.by-project-card:first-child { padding-top: 4px; }
.by-project-card:hover {
    transform: none;
    border-color: #e9e3d9;
    background: linear-gradient(90deg, rgba(250,247,241,.72), rgba(255,255,255,0));
    box-shadow: none;
}

.by-project-card__main {
    display: contents;
    color: inherit;
    text-decoration: none !important;
}
.by-project-card__main:hover,
.by-project-card__main:focus { color: inherit; text-decoration: none !important; }

.by-project-card__visual {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 205px;
    height: 205px;
    overflow: hidden;
    border-radius: 13px;
    background: #eee8de;
}
.by-project-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.by-project-card:hover .by-project-card__image { transform: scale(1.035); }
.by-project-card__visual-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,17,15,.30), transparent 36%, rgba(18,17,15,.68));
    pointer-events: none;
}
.by-project-card__topline {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.by-project-card__verified,
.by-project-card__rera {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 5px;
    background: rgba(255,255,255,.94);
    color: #75521e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
}
.by-project-card__rera {
    color: #1d6846;
    background: rgba(245,255,249,.96);
    border-color: rgba(255,255,255,.8);
}
.by-project-card__rera--registered { text-transform: none; letter-spacing: 0; }
.by-project-card__rera-number {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #53675b;
    font-size: 8px;
    font-weight: 700;
}
.by-project-card__visual-caption {
    position: absolute;
    z-index: 2;
    left: 15px;
    right: 15px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
}
.by-project-card__visual-kicker {
    color: #f0d59e;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
}
.by-project-card__visual-caption strong {
    max-width: 95%;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.by-project-card__visual-caption > span:last-child {
    color: rgba(255,255,255,.9);
    font-size: 10px;
    line-height: 1.35;
}

.by-project-card__content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 3px 22px 3px 23px;
}
.by-project-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.by-project-card__heading-copy { min-width: 0; }
.by-project-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #9a752f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
}
.by-project-card__eyebrow span { width: 19px; height: 1px; background: #c6a66b; }
.by-project-card__heading h3 {
    margin: 0;
    color: var(--by-ink);
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.by-project-card__location {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 6px 0 0;
    color: var(--by-muted);
    font-size: 11px;
    line-height: 1.4;
}
.by-project-card__location i { margin-top: 2px; color: var(--by-gold); }
.by-project-card__arrow {
    display: grid;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid #eae3d8;
    border-radius: 50%;
    background: #fff;
    color: #8d682c;
    transition: .2s ease;
}
.by-project-card:hover .by-project-card__arrow {
    color: #fff;
    border-color: var(--by-gold);
    background: var(--by-gold);
    transform: translate(2px,-2px);
}

.by-project-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.by-project-card__type,
.by-project-card__status,
.by-project-card__prelaunch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
}
.by-project-card__type { color: #70552a; background: #f6f0e5; }
.by-type--commercial { color: #3c5b72; background: #edf4f8; }
.by-project-card__status { color: #68645d; background: #f2f1ee; }
.by-status--ready { color: #26714c; background: #edf7f0; }
.by-status--construction { color: #946018; background: #fff5e6; }
.by-status--unknown { color: #6e6a64; }
.by-status-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.by-project-card__prelaunch { color: #875d1d; background: #fff8e9; }

.by-project-card__unitmix {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    padding-top: 2px;
}
.by-project-card__unitmix-label {
    color: #999187;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
}
.by-project-card__unitmix-values {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #292722;
}
.by-project-card__unitmix-values > i { color: #a27a38; font-size: 12px; }
.by-project-card__unitmix-values strong {
    color: #292722;
    font-size: 12px;
    font-weight: 800;
}
.by-project-card__unitmix-values > span {
    color: #99938a;
    font-size: 10px;
}

.by-project-card__timeline {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid #f0ece6;
}
.by-project-card__timeline-icon {
    display: grid;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 7px;
    background: #f6f0e5;
    color: #98702d;
    font-size: 11px;
}
.by-project-card__timeline-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.by-project-card__timeline-copy small {
    color: #999187;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .10em;
}
.by-project-card__timeline-copy strong { color: #282621; font-size: 11px; font-weight: 800; }

.by-project-card__actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 9px;
    min-width: 142px;
    padding: 5px 0 5px 12px;
}
.by-project-card__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 39px;
    padding: 9px 13px;
    border: 1px solid #98702d;
    border-radius: 6px;
    background: #98702d;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.by-project-card__contact:hover { color: #fff; background: #76531f; transform: translateY(-1px); }
.by-project-card__action-hint { color: #99938a; font-size: 8px; line-height: 1.35; text-align: center; }
.by-project-card__action-hint i { margin-right: 3px; color: #a98243; }

.by-project-card__favorite {
    position: absolute;
    z-index: 5;
    top: 31px;
    left: calc(30% - 48px);
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #655b4d;
    box-shadow: 0 3px 11px rgba(0,0,0,.13);
    transition: transform .2s ease, color .2s ease;
}
.by-project-card__favorite:hover { transform: scale(1.07); }
.by-project-card__favorite.active-fav { color: #d84b55; }
.by-project-card__hidden-trigger { display: none !important; }

.by-project-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 30px 18px;
    border: 1px dashed #dfd3c1;
    background: rgba(255,255,255,.6);
    text-align: center;
}
.by-project-empty__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 13px;
    place-items: center;
    background: #f5efe4;
    color: #9a752f;
    font-size: 20px;
}
.by-project-empty h3 { margin: 0 0 6px; color: #26231e; font-size: 19px; font-weight: 800; }
.by-project-empty p { margin: 0; color: #827b70; font-size: 12px; }

@media (max-width: 1100px) {
    .by-project-card { grid-template-columns: minmax(190px, 28%) minmax(0,1fr) 126px; }
    .by-project-card__visual { height: 190px; min-height: 190px; }
    .by-project-card__content { padding-left: 16px; padding-right: 13px; gap: 10px; }
    .by-project-card__actions { min-width: 126px; padding-left: 8px; }
    .by-project-card__favorite { left: calc(28% - 45px); }
}

@media (max-width: 767px) {
    .by-project-list--premium { gap: 0; }
    .by-project-card {
        grid-template-columns: minmax(0,1fr);
        gap: 0;
        padding: 17px 0;
    }
    .by-project-card:first-child { padding-top: 2px; }
    .by-project-card__main { display: flex; flex-direction: column; }
    .by-project-card__visual {
        height: clamp(175px, 54vw, 235px);
        min-height: 175px;
        border-radius: 9px;
    }
    .by-project-card__topline { top: 10px; left: 10px; right: 52px; }
    .by-project-card__visual-caption { left: 13px; right: 13px; bottom: 12px; }
    .by-project-card__visual-caption strong { font-size: 18px; }
    .by-project-card__content { padding: 14px 1px 8px; gap: 10px; }
    .by-project-card__heading h3 { font-size: 20px; }
    .by-project-card__arrow { flex-basis: 29px; width: 29px; height: 29px; }
    .by-project-card__badges { gap: 5px; }
    .by-project-card__type,
    .by-project-card__status,
    .by-project-card__prelaunch { min-height: 24px; padding: 5px 7px; font-size: 8px; }
    .by-project-card__unitmix { gap: 8px; }
    .by-project-card__unitmix-values strong { font-size: 11px; }
    .by-project-card__timeline { padding-top: 8px; }
    .by-project-card__actions {
        grid-column: 1;
        grid-row: auto;
        min-width: 0;
        padding: 10px 0 0;
    }
    .by-project-card__contact { min-height: 41px; }
    .by-project-card__action-hint { display: none; }
    .by-project-card__favorite { top: 27px; left: auto; right: 11px; width: 34px; height: 34px; }
}

@media (max-width: 360px) {
    .by-project-card__badges { align-items: flex-start; }
    .by-project-card__rera-number { max-width: 95px; }
}


/* Saved-project action now uses a refined bookmark/collection mark. */
.by-project-card__favorite {
    border-radius: 10px;
    color: #725a35;
}
.by-project-card__favorite i { font-size: 14px; }
.by-project-card__favorite.active-fav {
    color: #98702d;
    background: #fff8e9;
    border-color: rgba(164,122,53,.42);
}
.by-project-card__favorite.active-fav i { color: #98702d; }
