/* website/static/website/css/real_estate.css */

/* ============= PAGE WRAPPER ============= */

.re-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* ============= HERO CANVAS ============= */

.re-hero {
    position: relative;
    width: 100%;
    min-height: 776px; /* spec */
    background-image: url("../images/real-estate-hero.png"); /* update filename if needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Shared rail so title + filters align */
.re-hero-inner {
    position: relative;
    width: 100%;
    max-width: 1440px;
    padding: 220px 160px 80px; /* top, sides, bottom */
    box-sizing: border-box;
}

/* Title like Projects, but white */
.re-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px;
}

.re-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: #ffffff;
    max-width: 540px;
    margin: 0 0 40px;
}

/* ========== TABS ABOVE FILTER CARD ========== */

.re-tabs-container {
    display: flex;
    gap: 12px;
    margin-bottom: -1px; /* sits flush on top of white card */
}

/* Tabs */
.re-tab {
    padding: 8px 24px;
    border-radius: 16px 16px 0 0;
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.re-tab.is-active {
    background-color: #ffffff;
    color: #111111;
    border-color: #c7dceb;
    border-bottom-color: #ffffff; /* merges with filter box */
    position: relative;
    z-index: 5;
}

.re-tab:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

/* ============= FILTER CARD ============= */

.re-filter-block {
    width: 100%;        /* respects hero-inner padding */
    margin-top: 120px;  /* PUSH IT DOWN */
    position: relative; /* no absolute */
}

.re-filters {
    background-color: #ffffff;
    border-radius: 0 24px 0 0;  /* top-left 0, top-right 24, bottom corners 0 */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 24px 32px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

/* Shared row layout */
.re-filters-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Dropdowns row */
.re-filters-row-dropdowns {
    margin-bottom: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.re-select-group {
    flex: 1;
    min-width: 180px;
}

/* Pills dropdowns with black border */
.re-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #000000;   /* black border */
    background-color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #333333;
    outline: none;
    appearance: none;
    box-sizing: border-box;

    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

/* Actions row */
.re-filters-row-actions {
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
.re-btn {
    height: 40px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
}

/* White with black border/text */
.re-btn-outline {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
}

.re-btn-outline:hover {
    background-color: #f2f2f2;
    transform: translateY(-1px);
}

/* Blue primary */
.re-btn-primary {
    background-color: #6090B5;
    color: #ffffff;
}

.re-btn-primary:hover {
    background-color: #527ca0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ============= RESULTS CANVAS ============= */

.re-results-canvas {
    width: 100%;
    min-height: 600px;
    background-image: url("../images/real-estate-results-bg.png"); /* second image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 160px;
    box-sizing: border-box;
}

.re-results-inner {
    background: none;
    padding: 0;
}

/* Cards grid */
.re-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Single card */
.re-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Card image */
.re-card-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.re-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.re-card-image-placeholder {
    background-color: #e3e3e3;
}

/* Card info row: left name, right "size | price" */
.re-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}

.re-card-name {
    font-weight: 500;
    color: #111111;
    margin-right: 8px;
}

.re-card-meta {
    font-weight: 400;
    color: #555555;
    white-space: nowrap;
}

/* No results text */
.re-no-results {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #333333;
    margin: 0;
}

/* ============= RESPONSIVE ============= */

@media (max-width: 1200px) {
    .re-hero-inner {
        padding: 220px 80px 60px; /* title AND filters shrink together */
    }

    .re-filter-block {
        left: 0;          /* spans full width of .re-hero-inner */
        right: 0;
    }

    .re-results-canvas {
        padding: 60px 80px;
    }

    .re-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .re-hero-inner {
        padding: 200px 60px 60px;
    }

    .re-title {
        font-size: 48px;
    }

    .re-filters {
        padding: 20px 20px 18px;
    }

    .re-filters-row-dropdowns {
        gap: 12px;
    }

    .re-results-canvas {
        padding: 48px 40px;
    }

    .re-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .re-hero-inner {
        padding: 200px 24px 40px;
    }

    .re-title {
        font-size: 40px;
    }

    .re-subtitle {
        font-size: 15px;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .re-filters {
        padding: 18px 16px 16px;
    }

    .re-filters-row-dropdowns {
        flex-direction: column;
    }

    .re-select-group {
        width: 100%;
    }

    .re-filters-row-actions {
        justify-content: flex-start;
    }

    .re-results-canvas {
        padding: 40px 24px;
    }

    .re-results-inner {
        padding: 24px 16px;
    }

    .re-results-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .re-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .re-title {
        font-size: 32px;
    }

    .re-subtitle {
        font-size: 14px;
    }

    .re-filters-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .re-btn {
        width: 100%;
    }
}


/* ... existing code ... */

.re-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* new: footer + button */
.re-card-footer {
    padding: 0 16px 16px;
    margin-top: auto;
}

.re-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 999px;
    background-color: #6090B5;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease,
                box-shadow 0.15s ease;
}

.re-card-button:hover {
    background-color: #527ca0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* ============================
   PAGINATION
============================ */
.re-pagination {
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-family: "Outfit", sans-serif;
}

.re-page-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.re-page-link-prev,
.re-page-link-next {
    background: #6090B5;         /* your blue */
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.re-page-link-prev:hover,
.re-page-link-next:hover {
    background: #4f7ba0;
    transform: translateY(-2px);
}

/* Page counter in the middle */
.re-page-status {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f0f4f7;
}