/* * Professional Real Estate Portal - Master Stylesheet V5.5
 * Tüm görsel bozulmalar ve genişlik sorunları giderilmiştir.
 */

/* 1. GENEL KAPSAYICI VE TASARIM */
.re-portal-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    clear: both;
}

/* 2. PROFESYONEL NAVİGASYON (ÜST MENÜ) */
.re-portal-nav {
    background: #C62828 !important;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.2);
}

.re-nav-btn {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 6px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.re-nav-btn:hover,
.re-nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.re-btn-red {
    background: #212121 !important;
    margin-left: auto;
}

/* 3. MODERN SLIDER (RESİM BOZULMASINI ÖNLEYEN YAPI) */
.re-modern-gallery-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.re-main-view-container {
    position: relative;
    width: 100%;
    height: 500px;
    /* Sabit yükseklik alanı */
    background: #f7f7f7;
    /* Boşluklar için nötr arka plan */
    display: flex;
    align-items: center;
    justify-content: center;
}

.re-main-view-container img {
    /* RESİM BOZULMASINI ENGELLEYEN KRİTİK AYARLAR */
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    /* Resim oranını korur, yaymaz */
}

.re-slider-arrows button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 20px;
}

.re-slider-arrows button:hover {
    background: #C62828;
    color: #fff;
}

.re-thumb-nav-container {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #fff;
    overflow-x: auto;
    border-top: 1px solid #eee;
}

.re-thumb-box {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    opacity: 0.6;
}

.re-thumb-box.active {
    border-color: #C62828;
    opacity: 1;
    transform: scale(1.05);
}

.re-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. SAĞ PANEL (STICKY SIDEBAR) */
.re-sticky-info {
    position: sticky;
    top: 20px;
}

.re-price-big {
    background: #C62828;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.re-spec-table-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.re-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.re-spec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
}

.re-spec-table td:first-child {
    color: #666;
    font-weight: 500;
}

.re-spec-table td:last-child {
    text-align: right;
    font-weight: 700;
}

.re-user-info-card {
    background: #263238;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

/* 5. İLAN LİSTELEME KARTLARI (GRID) */
.re-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.re-item-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: 0.3s;
}

.re-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.re-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.re-card-body {
    padding: 15px;
}

.re-card-price {
    color: #C62828;
    font-weight: 800;
    font-size: 18px;
}

/* 6. FORM ELEMANLARI */
.re-submission-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.re-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.re-control:focus {
    border-color: #C62828;
    outline: none;
    box-shadow: 0 0 5px rgba(198, 40, 40, 0.2);
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .re-detail-grid {
        flex-direction: column;
    }

    .re-main-view-container {
        height: 300px;
    }

    .re-detail-right {
        flex: 1 1 100%;
    }
}