/* =========================================================
   REAL ESTATE PAGE
========================================================= */

.real-estate-page {
    min-height: 100vh;

    background: #0c0c0c;
    color: #fff;
}


.real-estate-container {
    width: min(1400px, calc(100% - 80px));

    margin: 0 auto;
}



/* =========================================================
   HERO
========================================================= */

.real-estate-hero {
    padding:
        165px 0
        90px;

    background:
        linear-gradient(
            180deg,
            #090909 0%,
            #0d0d0d 100%
        );

    border-bottom:
        1px solid rgba(255,255,255,.07);
}


.real-estate-hero-content {
    max-width: 1050px;
}


.real-estate-eyebrow {
    display: inline-block;

    margin-bottom: 20px;

    color: #c9a84c;

    font-size: .68rem;
    font-weight: 800;

    letter-spacing: .24em;

    text-transform: uppercase;
}


.real-estate-hero h1 {
    margin: 0;

    color: #fff;

    font-size:
        clamp(3rem, 6vw, 6.5rem);

    font-weight: 600;

    line-height: .96;

    letter-spacing: -.045em;
}


.real-estate-hero h1 strong {
    display: block;

    color: #c9a84c;

    font-weight: inherit;
}


.real-estate-description {
    max-width: 700px;

    margin-top: 28px;

    color:
        rgba(255,255,255,.52);

    font-size: .90rem;

    line-height: 1.85;
}



/* =========================================================
   LIST SECTION
========================================================= */

.real-estate-list-section {
    padding:
        75px 0
        130px;
}



/* =========================================================
   FILTERS
========================================================= */

.real-estate-filters {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 20px;

    margin-bottom: 38px;

    padding-bottom: 22px;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}


.real-estate-type-filter,
.real-estate-status-filter {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}


.real-estate-filter-btn,
.real-estate-status-btn {
    padding: 9px 14px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 999px;

    background: transparent;

    color:
        rgba(255,255,255,.58);

    font-family: inherit;

    font-size: .70rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}


.real-estate-filter-btn:hover,
.real-estate-status-btn:hover {
    color: #fff;

    border-color:
        rgba(201,168,76,.35);
}


.real-estate-filter-btn.active,
.real-estate-status-btn.active {
    background: #c9a84c;

    border-color: #c9a84c;

    color: #111;
}



/* =========================================================
   LIST
========================================================= */

.real-estate-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}



/* =========================================================
   HORIZONTAL CARD
========================================================= */

.real-estate-card {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(330px, .85fr)
        minmax(220px, .42fr);

    gap: 32px;

    align-items: stretch;

    padding: 30px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    overflow: hidden;

    transition:
        transform .30s ease,
        border-color .30s ease,
        background .30s ease,
        box-shadow .30s ease;
}


.real-estate-card::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -130px;
    right: -130px;

    border-radius: 50%;

    background:
        rgba(201,168,76,.055);

    pointer-events: none;

    transition:
        transform .40s ease,
        background .40s ease;
}


.real-estate-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(201,168,76,.30);

    background:
        linear-gradient(
            145deg,
            rgba(201,168,76,.045),
            rgba(255,255,255,.015)
        );

    box-shadow:
        0 22px 55px
        rgba(0,0,0,.20);
}


.real-estate-card:hover::before {
    transform: scale(1.25);

    background:
        rgba(201,168,76,.08);
}


.real-estate-card[hidden] {
    display: none !important;
}



/* =========================================================
   LEFT / MAIN
========================================================= */

.real-estate-card-main {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    justify-content: center;
}


.real-estate-card-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 16px;
}


.real-estate-type {
    padding: 6px 10px;

    border:
        1px solid rgba(201,168,76,.28);

    border-radius: 999px;

    background:
        rgba(201,168,76,.055);

    color: #c9a84c;

    font-size: .60rem;
    font-weight: 800;

    letter-spacing: .10em;

    text-transform: uppercase;
}


.real-estate-status {
    padding: 6px 10px;

    border-radius: 999px;

    background:
        rgba(48,129,74,.15);

    color: #88d8a1;

    font-size: .60rem;
    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;
}


.real-estate-status.reserved {
    background:
        rgba(177,127,35,.16);

    color: #dcb661;
}


.real-estate-status.sold {
    background:
        rgba(132,47,47,.18);

    color: #e39494;
}


.real-estate-card-main h2 {
    max-width: 680px;

    margin: 0;

    color: #fff;

    font-size:
        clamp(1.55rem, 2.4vw, 2.55rem);

    font-weight: 600;

    line-height: 1.15;

    letter-spacing: -.025em;
}


.real-estate-address {
    margin-top: 12px;

    color:
        rgba(255,255,255,.50);

    font-size: .80rem;

    line-height: 1.6;
}


.real-estate-card-main p {
    max-width: 660px;

    margin:
        15px 0
        0;

    color:
        rgba(255,255,255,.44);

    font-size: .78rem;

    line-height: 1.7;
}



/* =========================================================
   MIDDLE / DETAILS
========================================================= */

.real-estate-card-details {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0;

    align-content: center;

    border-left:
        1px solid rgba(255,255,255,.08);

    border-right:
        1px solid rgba(255,255,255,.08);
}


.real-estate-detail {
    min-height: 72px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 12px 22px;

    border-bottom:
        1px solid rgba(255,255,255,.07);
}


.real-estate-detail:nth-last-child(-n+2) {
    border-bottom: 0;
}


.real-estate-detail span {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(255,255,255,.28);

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.real-estate-detail strong {
    color:
        rgba(255,255,255,.86);

    font-size: .90rem;

    font-weight: 600;
}



/* =========================================================
   RIGHT / PRICE
========================================================= */

.real-estate-card-price {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    align-items: flex-end;
    justify-content: center;

    text-align: right;
}


.real-estate-card-price > span {
    margin-bottom: 8px;

    color:
        rgba(255,255,255,.28);

    font-size: .58rem;
    font-weight: 800;

    letter-spacing: .12em;
}


.real-estate-card-price strong {
    color: #c9a84c;

    font-size:
        clamp(1.35rem, 2vw, 2rem);

    font-weight: 700;

    line-height: 1.2;
}


.real-estate-card-price small {
    margin-top: 6px;

    color:
        rgba(255,255,255,.30);

    font-size: .55rem;

    letter-spacing: .08em;
}



/* =========================================================
   EMPTY
========================================================= */

.real-estate-empty,
.real-estate-filter-empty {
    padding: 55px 25px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 16px;

    background:
        rgba(255,255,255,.02);

    color:
        rgba(255,255,255,.45);

    text-align: center;

    font-size: .88rem;
}



/* =========================================================
   LIGHT MODE
========================================================= */

body.light-mode .real-estate-page {
    background: #f4f4f2;

    color: #161616;
}


body.light-mode .real-estate-hero {
    background:
        linear-gradient(
            180deg,
            #f4f4f2,
            #ececea
        );

    border-bottom-color:
        rgba(0,0,0,.07);
}


body.light-mode .real-estate-hero h1 {
    color: #161616;
}


body.light-mode
.real-estate-hero h1 strong,
body.light-mode
.real-estate-eyebrow {
    color: #9d7c22;
}


body.light-mode
.real-estate-description {
    color: #666;
}


body.light-mode
.real-estate-filters {
    border-bottom-color:
        rgba(0,0,0,.08);
}


body.light-mode
.real-estate-filter-btn,
body.light-mode
.real-estate-status-btn {
    border-color:
        rgba(0,0,0,.09);

    color: #666;
}


body.light-mode
.real-estate-filter-btn:hover,
body.light-mode
.real-estate-status-btn:hover {
    border-color:
        rgba(157,124,34,.35);

    color: #222;
}


body.light-mode
.real-estate-filter-btn.active,
body.light-mode
.real-estate-status-btn.active {
    background: #9d7c22;

    border-color: #9d7c22;

    color: #fff;
}


body.light-mode
.real-estate-card {
    background: #fff;

    border-color:
        rgba(0,0,0,.08);

    box-shadow:
        0 14px 35px
        rgba(0,0,0,.035);
}


body.light-mode
.real-estate-card:hover {
    border-color:
        rgba(157,124,34,.28);

    background: #fff;

    box-shadow:
        0 20px 45px
        rgba(0,0,0,.07);
}


body.light-mode
.real-estate-type {
    color: #9d7c22;

    border-color:
        rgba(157,124,34,.25);

    background:
        rgba(157,124,34,.045);
}


body.light-mode
.real-estate-card-main h2 {
    color: #161616;
}


body.light-mode
.real-estate-address {
    color: #666;
}


body.light-mode
.real-estate-card-main p {
    color: #777;
}


body.light-mode
.real-estate-card-details {
    border-color:
        rgba(0,0,0,.08);
}


body.light-mode
.real-estate-detail {
    border-bottom-color:
        rgba(0,0,0,.07);
}


body.light-mode
.real-estate-detail span {
    color:
        rgba(0,0,0,.38);
}


body.light-mode
.real-estate-detail strong {
    color: #333;
}


body.light-mode
.real-estate-card-price > span {
    color:
        rgba(0,0,0,.38);
}


body.light-mode
.real-estate-card-price strong {
    color: #9d7c22;
}


body.light-mode
.real-estate-card-price small {
    color: #777;
}


body.light-mode
.real-estate-empty,
body.light-mode
.real-estate-filter-empty {
    background: #fff;

    border-color:
        rgba(0,0,0,.08);

    color: #666;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .real-estate-container {
        width:
            calc(100% - 50px);
    }


    .real-estate-card {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(290px, .8fr);

        gap: 26px;
    }


    .real-estate-card-price {
        grid-column:
            1 / -1;

        align-items: flex-start;

        padding-top: 20px;

        border-top:
            1px solid rgba(255,255,255,.08);

        text-align: left;
    }


    body.light-mode
    .real-estate-card-price {
        border-top-color:
            rgba(0,0,0,.08);
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .real-estate-container {
        width:
            calc(100% - 32px);
    }


    .real-estate-hero {
        padding:
            125px 0
            65px;
    }


    .real-estate-list-section {
        padding:
            55px 0
            85px;
    }


    .real-estate-filters {
        align-items: flex-start;

        flex-direction: column;
    }


    .real-estate-card {
        grid-template-columns: 1fr;

        gap: 24px;

        padding: 22px;
    }


    .real-estate-card-details {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        border-left: 0;
        border-right: 0;

        border-top:
            1px solid rgba(255,255,255,.08);

        border-bottom:
            1px solid rgba(255,255,255,.08);
    }


    body.light-mode
    .real-estate-card-details {
        border-color:
            rgba(0,0,0,.08);
    }


    .real-estate-detail {
        padding:
            12px 10px;
    }


    .real-estate-card-price {
        grid-column: auto;

        padding-top: 0;

        border-top: 0;
    }

}

/* =========================================================
   FILTER RIGHT
========================================================= */

.real-estate-filter-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;
}


/* =========================================================
   VIEW SWITCH
========================================================= */

.real-estate-view-switch {
    display: flex;
    align-items: center;

    gap: 5px;

    padding: 4px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 999px;

    background:
        rgba(255,255,255,.025);
}


.real-estate-view-btn {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color:
        rgba(255,255,255,.45);

    font-size: 1rem;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


.real-estate-view-btn:hover {
    color: #fff;

    transform: scale(1.05);
}


.real-estate-view-btn.active {
    background: #c9a84c;

    color: #111;
}


/* =========================================================
   VIEW TRANSITION
========================================================= */

.real-estate-list {
    transition:
        opacity .22s ease,
        transform .22s ease;
}


.real-estate-list.is-switching {
    opacity: 0;

    transform:
        translateY(8px)
        scale(.985);
}



/* =========================================================
   GRID / KART GÖRÜNÜMÜ
========================================================= */

.real-estate-list.grid-view {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.real-estate-list.grid-view
.real-estate-card {
    display: flex;
    flex-direction: column;

    min-height: 470px;

    padding: 26px;

    gap: 24px;
}


.real-estate-list.grid-view
.real-estate-card-main {
    flex: 0 0 auto;
}


.real-estate-list.grid-view
.real-estate-card-main h2 {
    font-size:
        clamp(1.35rem, 2vw, 2rem);
}


.real-estate-list.grid-view
.real-estate-card-details {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    margin-top: auto;

    border-left: 0;
    border-right: 0;

    border-top:
        1px solid rgba(255,255,255,.08);

    border-bottom:
        1px solid rgba(255,255,255,.08);
}


.real-estate-list.grid-view
.real-estate-detail {
    min-height: 66px;

    padding: 12px 8px;
}


.real-estate-list.grid-view
.real-estate-card-price {
    align-items: flex-start;

    padding-top: 0;

    border-top: 0;

    text-align: left;
}


body.light-mode
.real-estate-view-switch {
    border-color:
        rgba(0,0,0,.09);

    background:
        rgba(0,0,0,.025);
}


body.light-mode
.real-estate-view-btn {
    color:
        rgba(0,0,0,.45);
}


body.light-mode
.real-estate-view-btn:hover {
    color: #111;
}


body.light-mode
.real-estate-view-btn.active {
    background: #9d7c22;

    color: #fff;
}


body.light-mode
.real-estate-list.grid-view
.real-estate-card-details {
    border-color:
        rgba(0,0,0,.08);
}


@media (max-width: 1100px) {

    .real-estate-list.grid-view {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 760px) {

    .real-estate-filter-right {
        width: 100%;

        justify-content: space-between;
    }


    .real-estate-list.grid-view {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   KART BOYUTLARINI KOMPAKTLAŞTIR
   YAZI BOYUTLARINA DOKUNMAZ
========================================================= */


/* Ana içerik alanını biraz daralt */
.real-estate-container {
    width: min(1250px, calc(100% - 80px));
}


/* =========================================================
   YATAY GÖRÜNÜM
========================================================= */

.real-estate-card {
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(300px, .80fr)
        minmax(200px, .42fr);

    gap: 22px;

    /* Eski 30px yerine */
    padding: 20px 24px;

    border-radius: 14px;
}


/* Teknik alanların yüksekliğini azalt */
.real-estate-detail {
    min-height: 56px;

    padding: 8px 18px;
}


/* Ana bölümdeki boşlukları azalt */
.real-estate-card-meta {
    margin-bottom: 10px;
}


.real-estate-address {
    margin-top: 8px;
}


.real-estate-card-main p {
    margin-top: 10px;
}


/* =========================================================
   KART / GRID GÖRÜNÜMÜ
========================================================= */

.real-estate-list.grid-view {
    gap: 16px;
}


.real-estate-list.grid-view .real-estate-card {

    /*
     * BURASI ÖNEMLİ
     * Önceden 470px idi.
     */
    min-height: 330px;

    padding: 20px;

    gap: 14px;
}


/* Grid görünümündeki teknik bilgiler */
.real-estate-list.grid-view
.real-estate-card-details {
    margin-top: 8px;
}


.real-estate-list.grid-view
.real-estate-detail {
    min-height: 48px;

    padding: 7px 9px;
}


/* Fiyat alanındaki gereksiz boşluğu kaldır */
.real-estate-list.grid-view
.real-estate-card-price {
    margin-top: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .real-estate-container {
        width: calc(100% - 40px);
    }

}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 760px) {

    .real-estate-container {
        width: calc(100% - 28px);
    }


    .real-estate-card {
        padding: 18px;
    }


    .real-estate-list.grid-view
    .real-estate-card {
        min-height: auto;

        padding: 18px;
    }

}