/* ===================== SEARCH SECTION (SCOPED) ===================== */
.invest-page .search-section {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
}

/* ===================== HEADER ===================== */
.invest-page .search-section .section-header {
    margin-bottom: 40px;
    display: grid;
    justify-content: unset;
}

/* TOP ROW (H2 center + fav right) */
.invest-page .search-section .header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* TITLE CENTER */
.invest-page .search-section .browse-title {
    grid-column: 2;
    text-align: center;
    font-size: 1.6em;
    font-weight: 600;
    margin: 0;
    color: #000;
}

/* FAVORITES RIGHT */
.invest-page .search-section .fav-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FAVORITE TEXT */
.invest-page .search-section .fav-text {
    font-size: 14px;
    color: #444;
}

/* ICONS */
.invest-page .search-section .send-fav-icon,
.invest-page .search-section .wa-fav-icon {
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.invest-page .search-section .send-fav-icon:hover {
    color: #0073e6;
}

.invest-page .search-section .wa-fav-icon:hover {
    color: #25D366;
}

.invest-page .search-section .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* DESCRIPTION BELOW TITLE */
.invest-page .search-section .header-desc {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 16px;
}

/* ===================== GRID ===================== */
.invest-page .search-section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ===================== CARD ===================== */
.invest-page .search-section .card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.invest-page .search-section .action-icons {
    position: absolute;
    top: 35px;
    right: 35px;
    display: flex;
    gap: 10px;
}

.invest-page .search-section .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.invest-page .search-section .icon-btn:hover {
    background: #000;
}

.invest-page .search-section .like-btn.active i {
    color: red;
}

.invest-page .search-section .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ===================== IMAGE ===================== */
.invest-page .search-section .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ===================== BODY ===================== */
.invest-page .search-section .card-body {
    padding: 18px;
}

.invest-page .search-section .card-body h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.invest-page .search-section .card-body p {
    margin: 6px 0;
    color: #555;
}

/* ===================== STATUS ===================== */
.invest-page .search-section .status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.invest-page .search-section .status.Open {
    background: #e6f9ed;
    color: #1a7f37;
}

.invest-page .search-section .status.Closing-Soon {
    background: #fff4e5;
    color: #cc7a00;
}

.invest-page .search-section .status.Closed {
    background: #fdecea;
    color: #b02a37;
}

/* ===================== BUTTON ===================== */
.invest-page .search-section .btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 15px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.invest-page .search-section .btn:hover {
    background: #333;
}

.badge {
    position: absolute;
    top: 15px;
    left: -10px;
    background: #f59e0b;
    color: #fff;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(-20deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Status colors */
.badge.Open {
    background: #16a34a;
    /* green */
}

.badge.Closed {
    background: #dc2626;
    /* red */
}

.badge.Sold {
    background: #2563eb;
    /* blue */
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {

    .invest-page .search-section .header-top {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .invest-page .search-section .browse-title {
        grid-column: auto;
        font-size: 26px;
    }

    .invest-page .search-section .fav-actions {
        grid-column: auto;
        justify-self: center;
    }

    .invest-page .search-section .card img {
        height: 180px;
    }
}