.page-detail {
    background: var(--bg-gray);
}

.listing-detail {
    margin-top: var(--header-total);
    padding: 32px 0 64px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.listing-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.listing-title-line {
    width: 64px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 32px;
}

.listing-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
    margin-bottom: 28px;
}

/* Sağ bilgi çerçevesi */
.listing-info-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.info-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
}

.info-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.info-type-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    white-space: nowrap;
}

.info-type-badge.kiralik {
    background: #e8f4fd;
    color: #1a6fa8;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.info-list-extra {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed var(--border);
}

/* Danışman kutusu */
.listing-agent-box {
    margin-top: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.agent-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

.agent-brand {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.agent-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.agent-contact:hover {
    color: var(--primary);
}

.agent-whatsapp-btn {
    display: block;
    margin-top: 14px;
    padding: 12px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.agent-whatsapp-btn:hover {
    background: #20ba5a;
}

/* Sol galeri */
.listing-gallery-wrap {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-md);
}

.detail-gallery {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-gallery-main {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    aspect-ratio: 16 / 10;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.detail-gallery-nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.detail-gallery-nav:hover {
    background: var(--primary-dark);
}

.detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.detail-thumb {
    flex: 0 0 88px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-thumb.active,
.detail-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
}

/* Açıklama — galeri kutusunun altında, metin uzadıkça aşağı iner */
.listing-gallery-wrap .listing-description-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
    margin-bottom: 0;
}

.listing-gallery-wrap .listing-description-block {
    text-align: center;
}

.listing-gallery-wrap .listing-description-block h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary);
    letter-spacing: 0.03em;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.listing-gallery-wrap .listing-description-block h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, #c41e3a 100%);
}

.listing-description-text {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Biçimlendirilmiş ilan açıklaması — yeşil & kırmızı vurgular */
.listing-description-text .desc-formatted {
    text-align: center;
}

.desc-formatted .desc-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem auto 0.75rem;
    padding: 0 0 0.55rem;
    max-width: 28rem;
    line-height: 1.45;
    border-bottom: 2px solid var(--primary-light);
    background: linear-gradient(180deg, transparent 70%, rgba(0, 109, 68, 0.06) 100%);
}

.desc-formatted .desc-heading:first-child {
    margin-top: 0;
}

.desc-formatted .desc-heading--intro {
    font-size: 1.08rem;
    color: var(--primary-dark);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), #c41e3a) 1;
}

.desc-formatted .desc-heading--features {
    color: var(--primary);
    border-bottom: none;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--primary-light);
    border-radius: 8px;
    display: inline-block;
    border-left: 4px solid #c41e3a;
}

.desc-formatted .desc-heading--location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.5rem auto 0.65rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.28);
}

.desc-formatted .desc-heading--location::before {
    content: '';
    width: 15px;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.desc-formatted .desc-subheading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c41e3a;
    margin: 1.15rem auto 0.45rem;
    line-height: 1.4;
}

.desc-formatted .desc-paragraph {
    margin: 0 auto 1rem;
    max-width: 34rem;
    color: #374151;
    line-height: 1.85;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.15rem 0.25rem;
}

.desc-formatted .desc-paragraph:first-of-type {
    color: var(--text-dark);
}

.desc-formatted .desc-paragraph:last-child {
    margin-bottom: 0;
}

.desc-formatted .desc-strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.desc-formatted .desc-em {
    color: #c41e3a;
    font-style: italic;
    font-weight: 500;
}

.desc-formatted .desc-hl {
    font-weight: 700;
    padding: 0 0.12em;
    border-radius: 3px;
}

.desc-formatted .desc-hl--green {
    color: var(--primary);
    background: var(--primary-light);
}

.desc-formatted .desc-hl--red {
    color: #c41e3a;
    background: #fef2f2;
}

.desc-formatted .desc-list {
    list-style: none;
    margin: 0.35rem auto 1.1rem;
    padding: 0.5rem 0.75rem;
    max-width: 26rem;
    text-align: left;
    background: linear-gradient(135deg, #f8fdfb 0%, #fffbfb 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid #c41e3a;
}

.desc-formatted .desc-list-item {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.25rem;
    color: #374151;
    line-height: 1.65;
    font-size: 0.93rem;
    border-bottom: 1px dashed #e8ecea;
}

.desc-formatted .desc-list-item:last-child {
    border-bottom: none;
}

.desc-formatted .desc-list-item:nth-child(odd)::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.48rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
}

.desc-formatted .desc-list-item:nth-child(even)::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #c41e3a;
    font-size: 0.55rem;
}

.desc-formatted .desc-empty {
    color: var(--text-light);
    font-style: italic;
}

.listing-share-block {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.listing-share-block h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.share-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-copy { background: var(--primary); }

@media (max-width: 960px) {
    .listing-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .listing-detail {
        padding: 24px 0 48px;
    }
    .detail-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .listing-gallery-wrap .listing-description-block {
        margin-top: 16px;
        padding-top: 16px;
    }
    .listing-share-block {
        padding: 20px;
    }
    .share-buttons {
        flex-direction: column;
    }
    .share-btn {
        width: 100%;
    }
}
