/* ============================================
   PREMIUM REAL ESTATE CARDS - PROFESSIONAL DESIGN
   ============================================ */

/* ===== CARD BASE - UNIFIED HEIGHT ===== */
.property-listing {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-listing:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ===== IMAGE - FIXED HEIGHT ===== */
.listing-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

.listing-img-wrapper img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-listing:hover .listing-img-wrapper img {
    transform: scale(1.06);
}

/* ===== BADGE - MINIMAL ===== */
.property-type {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(8px);
}

/* ===== CONTENT - OPTIMIZED PADDING ===== */
.listing-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-detail-wrapper {
    padding: 12px 10px !important;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.listing-short-detail {
    flex: 1;
    min-width: 0;
    min-height: 70px;
}

.listing-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.listing-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-name a:hover {
    color: #fd5332;
}

.listing-location {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.listing-location i {
    color: #fd5332;
    margin-right: 4px;
    font-size: 12px;
}

.list-author {
    flex-shrink: 0;
}

.list-author img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    aspect-ratio: 1 / 1 !important;
}

.property-listing:hover .list-author img {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Override img-circle class for avatars - STRONG OVERRIDE */
.list-author .img-circle,
.list-author .avater-30,
.list-author img.img-circle,
.list-author img.avater-30 {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

/* ===== FOOTER - COMPACT ===== */
.listing-footer-wrapper {
    padding: 0 0 0 10px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.listing-price {
    flex: 1;
    min-width: 0;
}

.listing-price h4.list-pr,
.fiyatrenk {
    color: #fd5332 !important;
    font-weight: 700;
    font-size: 18px !important;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.listing-detail-btn {
    flex-shrink: 0;
}

.more-btn {
    background: #fd5332;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.more-btn:hover {
    background: #e63946;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(253, 83, 50, 0.3);
}

/* ===== PROPERTY-2 (SLIDER CARDS) ===== */
.property-listing.property-2 {
    height: 100%;
}


.property-2 .listing-img-wrapper img {
    height: 100%;
    object-fit: cover;
}

.property-listing.property-2 .property-type {
    right: 12px !important;
    top: 12px !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.property-2 .listing-price {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.property-2 .listing-price h4 {
    font-size: 16px;
    color: #fd5332;
    margin: 0;
    font-weight: 700;
}

.property-2 .listing-detail-wrapper {
    padding: 8px !important;
}

.property-2 .listing-name {
    font-size: 17px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

.property-2 .listing-name a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

.property-2 .listing-location {
    font-size: 12px;
    margin: 0 0 6px 0;
}

.property-2 .listing-location i {
    font-size: 12px;
    margin-right: 4px;
}

.property-2 .price-features-wrapper {
    display: none;
}

.property-2 .listing-footer-wrapper {
    padding: 0 0 0 3px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.property-2 .listing-price-fx {
    width: 100%;
}

.property-2 .listing-card-info-price {
    color: #fd5332 !important;
    font-weight: 700;
    font-size: 18px !important;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.list-img-slide {
    height: 100%;
}

.list-img-slide .click {
    height: 100%;
}

.list-img-slide .click > div {
    height: 100%;
}

.list-img-slide .click > div img {
    height: 100%;
    object-fit: cover;
}

/* ===== AGENT CARDS ===== */
.agents-grid {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agents-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.agents-grid-wrap {
    padding: 14px;
    flex: 1;
}

.pr-grid-thumb {
    margin-bottom: 10px;
}

.pr-grid-thumb img {
    border-radius: 8px;
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
}

.agents-grid:hover .pr-grid-thumb img {
    transform: scale(1.03);
}

.fr-grid-deatil {
    margin-bottom: 8px;
}

.fr-grid-deatil h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
}

.fr-grid-deatil .fr-position {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
    display: block;
    margin-bottom: 6px;
}

.fr-can-rating {
    margin-top: 6px;
}

.fr-can-rating a {
    margin: 0 3px;
    font-size: 14px;
}

.fr-grid-info {
    padding: 0 14px 12px;
}

.fr-grid-info ul {
    margin: 0;
    padding: 0;
}

.fr-grid-info ul li {
    list-style: none;
    padding: 0.1rem 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    background: #fff;
}

.fr-grid-info ul li i {
    flex-shrink: 0;
    font-size: 16px;
}

.fr-grid-info ul li:nth-child(even) {
    background: #fff;
}

.fr-grid-info ul li span {
    float: none;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
    font-size: 13px;
    min-width: 0;
}

.fr-grid-info ul li span a {
    color: inherit;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}

.fr-grid-info ul li span a:hover {
    color: #007bff;
    text-decoration: underline;
}

.fr-grid-footer {
    padding: 0 14px 14px;
    margin-top: auto;
}

.fr-grid-footer .btn {
    padding: 8px 12px;
    font-size: 13px;
}

/* ===== BLOG CARDS ===== */
.blog-wrap-grid {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-wrap-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-thumb {
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.blog-thumb img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-wrap-grid:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-info {
    padding: 12px 18px 0;
}

.blog-body {
    padding: 12px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bl-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bl-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bl-title a:hover {
    color: #fd5332;
}

.blog-body p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.bl-continue {
    color: #fd5332;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.bl-continue:hover {
    color: #e63946;
}

.post-date {
    font-size: 12px;
    color: #6c757d;
}

/* ===== REFERENCE CARDS ===== */
.location-listing {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-listing:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.location-listing-thumb {
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}

.location-listing-thumb img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-listing:hover .location-listing-thumb img {
    transform: scale(1.06);
}

.location-listing-caption {
    padding: 14px 18px;
    flex: 1;
}

.location-listing-caption h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.location-listing-caption h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.location-listing-caption h4 a:hover {
    color: #fd5332;
}

/* ===== XL SCREEN (4 COLUMNS) - SMALLER TITLE BUT BOLD ===== */
@media (min-width: 1200px) {
    .col-xl-3 .listing-name {
        font-size: 14px;
        font-weight: 700;
    }
    
    .col-xl-3 .property-2 .listing-name {
        font-size: 14px;
        font-weight: 700;
    }
}

/* ===== TABLET AND DESKTOP - KEEP BOLD (MOBİL HARİÇ) ===== */
@media (min-width: 769px) {
    .col-xl-3 .listing-name,
    .col-lg-4 .listing-name,
    .col-md-4 .listing-name {
        font-weight: 700;
    }
    
    .col-xl-3 .property-2 .listing-name,
    .col-lg-4 .property-2 .listing-name,
    .col-md-4 .property-2 .listing-name {
        font-weight: 700;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .property-listing,
    .agents-grid,
    .blog-wrap-grid,
    .location-listing {
        border-radius: 10px;
        margin-bottom: 20px;
    }


    .listing-detail-wrapper {
        padding: 10px 12px !important;
    }

    .listing-name {
        font-weight: 400;
    }

    .listing-footer-wrapper {
        padding: 0 0 0  3px;
        flex-wrap: wrap;
    }

    .listing-name {
        font-size: 15px;
    }

    .listing-price h4.list-pr,
    .fiyatrenk {
        font-size: 16px !important;
    }

    .more-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .blog-thumb {
        height: 180px;
    }

    .location-listing-thumb {
        height: 160px;
    }
}

/* ===== UNIFIED CARD HEIGHT FIX ===== */
.col-lg-4 .property-listing,
.col-lg-4 .agents-grid,
.col-lg-4 .blog-wrap-grid,
.col-lg-4 .location-listing,
.col-md-6 .property-listing,
.col-md-6 .agents-grid,
.col-md-6 .blog-wrap-grid,
.col-md-6 .location-listing {
    height: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}
