/* ========== LISTING DETAIL PAGE ========== */

.listing-detail {
    padding: 30px 0 60px;
    background: #f8fafc;
}

.listing-detail .container {
    max-width: 1400px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 14px;
    color: #64748b;
    flex-wrap: wrap;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb span:last-child {
    color: #1e293b;
    font-weight: 500;
}

/* Detail Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Main Content */
.detail-main {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Gallery */
.gallery {
    background: #000;
}

.main-image {
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 20px;
    background: white;
}

.thumbnail-gallery img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail-gallery img:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

/* Detail Header */
.detail-header {
    padding: 30px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.detail-header > div:first-child {
    flex: 1;
}

.detail-header h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1e293b;
    font-weight: 800;
    line-height: 1.3;
}

.location {
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.location i {
    color: #2563eb;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.price {
    font-size: 36px;
    font-weight: 900;
    color: #2563eb;
    line-height: 1;
}

.badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-satilik {
    background: #d1fae5;
    color: #065f46;
}

.badge-kiralik {
    background: #fef3c7;
    color: #92400e;
}

/* Features Box */
.features-box,
.description-box,
.amenities-box {
    padding: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.features-box:last-child,
.description-box:last-child,
.amenities-box:last-child {
    border-bottom: none;
}

.features-box h2,
.description-box h2,
.amenities-box h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-box h2::before {
    content: '📊';
}

.description-box h2::before {
    content: '📝';
}

.amenities-box h2::before {
    content: '✨';
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 32px;
    color: #2563eb;
    margin-bottom: 10px;
    display: block;
}

.feature-item span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.feature-item strong {
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}

/* Description */
.description-content {
    line-height: 1.8;
    color: #475569;
    font-size: 16px;
}

/* Amenities */
.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 2px solid #bbf7d0;
    font-weight: 600;
    color: #166534;
}

.amenity i {
    color: #10b981;
    font-size: 18px;
}

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-box,
.info-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-box h3,
.info-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 700;
}

/* Contact Form */
.contact-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 15px;
    transition: all 0.3s;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Info Box */
.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box ul li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}

.info-box ul li:last-child {
    border-bottom: none;
}

.info-box ul li strong {
    color: #1e293b;
    font-weight: 600;
}

/* Similar Listings */
.similar-listings {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #e2e8f0;
}

.similar-listings h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1e293b;
    font-weight: 800;
}

.similar-listings .listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.similar-listings .listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.similar-listings .listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.similar-listings .listing-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.similar-listings .listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.similar-listings .listing-card:hover .listing-image img {
    transform: scale(1.1);
}

.similar-listings .listing-content {
    padding: 20px;
}

.similar-listings .listing-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.similar-listings .listing-content h3 a {
    color: #1e293b;
    text-decoration: none;
}

.similar-listings .listing-content h3 a:hover {
    color: #2563eb;
}

.similar-listings .listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: 15px;
}

.similar-listings .price {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

/* Responsive */
@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-image {
        height: 350px;
    }
    
    .detail-header {
        flex-direction: column;
        padding: 20px;
    }
    
    .price-box {
        align-items: flex-start;
        width: 100%;
    }
    
    .detail-header h1 {
        font-size: 22px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .breadcrumb {
        font-size: 12px;
        gap: 6px;
        padding: 12px 15px;
    }
    
    .features-box,
    .description-box,
    .amenities-box {
        padding: 20px;
    }
}
