/* --- BREADCRUMB — Premium Navigation --- */
.breadcrumb-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-bottom: 1px solid #E5E7EB;
    padding: 0;
}

.breadcrumb-section .container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-section nav {
    padding: 0;
}

.breadcrumb-section .breadcrumb {
    margin: 0;
    padding: 12px 0;
    background: transparent;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.breadcrumb-section .breadcrumb-item {
    font-size: 13px;
    font-weight: 500;
}

.breadcrumb-section .breadcrumb-item a {
    color: #6B7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumb-section .breadcrumb-item a:hover {
    color: #E31E24;
    background: rgba(227, 30, 36, 0.06);
    text-decoration: none;
}

.breadcrumb-section .breadcrumb-item a i {
    font-size: 14px;
}

.breadcrumb-section .breadcrumb-item + .breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    vertical-align: middle;
    padding: 0;
    margin: 0 2px;
    float: none;
    color: transparent;
}

.breadcrumb-section .breadcrumb-item.active {
    color: #111827;
    font-weight: 700;
    font-size: 13px;
}

@media (max-width: 767px) {
    .breadcrumb-section .container {
        padding: 0 1rem;
    }
    
    .breadcrumb-section .breadcrumb {
        padding: 10px 0;
        gap: 0;
    }
    
    .breadcrumb-section .breadcrumb-item {
        font-size: 12px;
    }
    
    .breadcrumb-section .breadcrumb-item a {
        font-size: 12px;
        padding: 3px 6px;
        gap: 4px;
    }
    
    .breadcrumb-section .breadcrumb-item a i {
        font-size: 13px;
    }
    
    .breadcrumb-section .breadcrumb-item + .breadcrumb-item::before {
        width: 14px;
        height: 14px;
        background-size: 8px;
        margin: 0 1px;
    }
    
    .breadcrumb-section .breadcrumb-item.active {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section .breadcrumb-item {
        font-size: 11px;
    }
    
    .breadcrumb-section .breadcrumb-item a {
        font-size: 11px;
        padding: 2px 5px;
    }
    
    .breadcrumb-section .breadcrumb-item.active {
        font-size: 11px;
    }
}

/* --- AD DETAIL PAGE --- */
.ad-detail-section {
    padding: 2rem 0 4rem 0;
    background-color: #ffffff;
}

.ad-detail-section .container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Desktop: Left-Right Split Layout */
.ad-detail-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Category Sidebar */
.ad-category-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.25rem;
    position: sticky;
    top: 100px;
}

.ad-category-sidebar .sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
}

.ad-category-sidebar .category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ad-category-sidebar .category-item {
    margin-bottom: 0.25rem;
}

.ad-category-sidebar .category-item a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ad-category-sidebar .category-item a:hover {
    background: #E5E7EB;
    color: #111827;
}

.ad-category-sidebar .category-item.active a {
    background: #E31E24;
    color: #fff;
    font-weight: 500;
}

.ad-category-sidebar .category-item.active a i {
    color: #fff;
}

.ad-category-sidebar .loading {
    color: #9CA3AF;
    font-size: 13px;
    padding: 0.5rem;
}

.ad-category-sidebar .loading .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Left Column - Gallery + Description + Related Ads */
.ad-left-column {
    flex: 1;
    min-width: 0;
}

/* Right Column - Details Panel */
.ad-right-column {
    width: 380px;
    flex-shrink: 0;
}

/* Mobile Detail Header */
.mobile-detail-header {
    display: none;
}

.btn-back-detail {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-back-detail i {
    font-size: 18px;
    color: #111;
}

.mobile-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* --- LEFT SIDE - GALLERY --- */
.ad-gallery {
    flex: 1;
}

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    background: linear-gradient(110deg, #F3F4F6 30%, #E5E7EB 50%, #F3F4F6 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 1.25rem;
}

.main-image.loaded {
    background: #F3F4F6;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.main-image img {
    width: auto;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image img.visible {
    opacity: 1;
}

.badge-instagram-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #E31E24;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #FFE5E7;
}

.badge-instagram-detail i {
    font-size: 16px;
}

/* Main Image Wrapper */
.main-image-wrapper {
    position: relative;
}

/* Slider Arrows (Mobile) */
.slider-arrow {
    display: none;
}

/* Thumbnail Navigation */
.thumbnail-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1.5px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-btn:hover {
    background-color: #000;
}

.nav-btn:hover i {
    color: white;
}

.nav-btn i {
    font-size: 16px;
    color: #000;
    transition: color 0.2s;
}

.thumbnail-container {
    flex: 1;
    overflow: hidden;
}

.thumbnail-wrapper {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
}

.thumbnail {
    width: 90px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #D1D5DB;
    opacity: 0.9;
}

.thumbnail.active {
    border-color: #E31E24;
}

/* Mobile Actions */
.ad-actions-mobile {
    display: flex;
    gap: 8px;
    margin-top: 1.25rem;
}

.ad-actions-mobile .btn-favorite {
    width: 48px;
    height: 48px;
    padding: 0;
}

.ad-actions-mobile .btn-message {
    flex: 1;
    padding: 12px 16px;
}

.ad-actions-mobile .btn-whatsapp,
.ad-actions-mobile .btn-share {
    width: 48px;
    height: 48px;
}

/* --- RIGHT SIDE - DETAILS PANEL --- */
.ad-details-panel {
    width: 420px;
    flex-shrink: 0;
    border-radius: 16px;
}

/* Ad Header */
.ad-header {
    margin-bottom: 1.25rem;
}

.ad-id {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.ad-title {
    font-size: 26px;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ad-price {
    font-size: 28px;
    font-weight: 800;
    color: #E31E24;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

/* Seller Info */
.seller-info {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.seller-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.seller-header {
    margin-bottom: 10px;
}

.seller-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.3px;
}

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.seller-name {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.verified-badge i {
    font-size: 14px;
}

.seller-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    padding: 8px 12px;
    background-color: #F3F4F6;
    border-radius: 8px;
    margin-top: 4px;
}

.seller-phone:hover {
    color: #E31E24;
    background-color: #FEE2E2;
}

.seller-phone i {
    font-size: 15px;
}

/* Tab Navigation */
.tab-navigation {
    display: none;
}

/* Tab Content - Desktop'ta her zaman göster, mobilde tab ile kontrol et */
.tab-content {
    display: block;
}

@media (max-width: 768px) {
    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
    }
}

/* Info Grid */
.ad-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-label {
    color: #6B7280;
    font-weight: 500;
}

.info-value {
    color: #000;
    font-weight: 700;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.spec-item {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s;
}

.spec-item:hover {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
}

.spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon i {
    font-size: 18px;
}

/* Spec Icon Colors */
.spec-item:nth-child(1) .spec-icon {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.spec-item:nth-child(2) .spec-icon {
    background-color: #FEF3C7;
    color: #F59E0B;
}

.spec-item:nth-child(3) .spec-icon {
    background-color: #DBEAFE;
    color: #0EA5E9;
}

.spec-item:nth-child(4) .spec-icon {
    background-color: #FEE2E2;
    color: #EF4444;
}

.spec-item:nth-child(5) .spec-icon {
    background-color: #E0E7FF;
    color: #6366F1;
}

.spec-item:nth-child(6) .spec-icon {
    background-color: #D1FAE5;
    color: #10B981;
}

.spec-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 600;
    line-height: 1.3;
}

.spec-value {
    font-size: 15px;
    color: #000;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ad Actions */
.ad-actions {
    display: flex;
    gap: 8px;
}

.btn-favorite {
    width: 48px;
    height: 48px;
    background-color: #3B82F6;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-favorite:hover {
    background-color: #2563EB;
}

.btn-favorite i {
    font-size: 20px;
    color: white;
}

.btn-favorite span {
    display: none;
}

.btn-favorite.is-favorite {
    background-color: #1D4ED8;
}

.btn-favorite.is-favorite:hover {
    background-color: #1E40AF;
}

.btn-favorite.is-favorite i {
    color: #fff;
}

.btn-whatsapp {
    width: 48px;
    height: 48px;
    background-color: #25D366;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-whatsapp i {
    font-size: 20px;
    color: white;
}

.btn-share {
    width: 48px;
    height: 48px;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-share:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.btn-share i {
    font-size: 18px;
    color: #374151;
}

/* --- DESCRIPTION SECTION --- */
.ad-description {
    margin-top: 2.5rem;
    max-width: 100%;
}

.description-title {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin-bottom: 1.25rem;
}

.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    max-height: 180px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.description-content.expanded {
    max-height: none;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Mobile Description (Inside Tab) */
.description-content-mobile {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    max-height: 160px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
    padding-top: 0.5rem;
}

.description-content-mobile.expanded {
    max-height: none;
}

.description-content-mobile p {
    margin-bottom: 1rem;
}

.description-content-mobile p:last-child {
    margin-bottom: 0;
}

/* Hide mobile tab description content on desktop */
@media (min-width: 769px) {
    .tab-content[data-content="description"] {
        display: none !important;
    }
}

.btn-show-more,
.btn-show-more-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    padding: 0;
    background-color: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #E31E24;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-show-more:hover,
.btn-show-more-mobile:hover {
    opacity: 0.8;
}

.btn-show-more i,
.btn-show-more-mobile i {
    font-size: 14px;
}

/* Desktop Description in Left Column */
.ad-description-desktop {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E5E7EB;
}

/* --- RELATED ADS SECTION --- */
/* Desktop - In Left Column */
.related-ads-section-desktop {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E5E7EB;
}

/* Mobile - Full Width Below */
.related-ads-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E5E7EB;
}

.related-ads-title {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    margin-bottom: 1.75rem;
    letter-spacing: -0.5px;
}

/* Desktop Grid View (3 columns in left column) */
.related-ads-grid-desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.related-ad-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #D1D5DB;
}

.related-ad-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-ad-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    background-color: #F3F4F6;
    overflow: hidden;
}

.related-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-ad-card:hover .related-ad-image img {
    transform: scale(1.05);
}

.related-ad-badge-instagram {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.related-ad-badge-instagram i {
    font-size: 14px;
}

.related-ad-badge-instagram i:last-child {
    font-size: 12px;
    margin-left: 2px;
}

.related-ad-content {
    padding: 18px 20px 20px 20px;
}

.related-ad-id {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.related-ad-title {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-ad-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.related-ad-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.related-ad-label {
    color: #6B7280;
    font-weight: 500;
}

.related-ad-value {
    color: #374151;
    font-weight: 700;
}

.related-ad-price {
    font-size: 22px;
    font-weight: 800;
    color: #E31E24;
    letter-spacing: -0.5px;
}

/* Mobile List View */
.related-ads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-ad-item {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.related-ad-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    position: relative;
}

.related-ad-item-image {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F3F4F6;
}

.related-ad-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-ad-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-ad-item-id {
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.3px;
}

.related-ad-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-ad-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
    margin-top: 2px;
}

.related-ad-item-date,
.related-ad-item-location {
    white-space: nowrap;
}

.related-ad-item-price {
    font-size: 16px;
    font-weight: 800;
    color: #E31E24;
    margin-top: 4px;
    letter-spacing: -0.3px;
}

.related-ad-item-instagram {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #E31E24 0%, #C91B21 100%);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.3);
    white-space: nowrap;
}

.related-ad-item-instagram i {
    font-size: 11px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1400px) and (min-width: 1200px) {
    .ad-detail-layout {
        gap: 2rem;
    }

    .ad-left-column {
        max-width: calc(100% - 400px);
    }

    .ad-right-column {
        width: 380px;
    }

    .related-ads-grid-desktop {
        gap: 1rem;
    }

    .related-ad-title {
        font-size: 16px;
    }

    .related-ad-price {
        font-size: 20px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .ad-detail-layout {
        gap: 1.75rem;
    }

    .ad-left-column {
        max-width: calc(100% - 360px);
    }

    .ad-right-column {
        width: 340px;
    }

    .related-ads-grid-desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .ad-detail-layout {
        flex-direction: column;
    }

    .ad-left-column {
        max-width: 100%;
    }

    .ad-right-column {
        width: 100%;
    }

    .ad-details-panel {
        width: 100%;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ad-detail-section {
        padding: 1rem 0 2rem 0;
    }

    .ad-detail-section .container {
        padding: 0 1rem;
    }

    /* Mobile Page Header */
    .mobile-detail-header {
        display: flex !important;
        align-items: center;
        gap: 12px;
        margin-bottom: 1rem;
    }

    /* Tab Navigation */
    .tab-navigation {
        display: flex !important;
    }

    /* Main Image Mobile */
    .main-image {
        border-radius: 16px;
        margin-bottom: 1rem;
        aspect-ratio: 4/3;
    }

    .badge-instagram-detail {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 8px;
    }

    /* Slider Arrows Inside Image */
    .slider-arrow {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .slider-arrow.prev {
        left: 12px;
    }

    .slider-arrow.next {
        right: 12px;
    }

    .slider-arrow i {
        font-size: 16px;
        color: #374151;
    }

    /* Thumbnails Mobile */
    .thumbnail-navigation {
        gap: 0;
        justify-content: flex-start;
    }

    .thumbnail-navigation .nav-btn {
        display: none;
    }

    .thumbnail-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .thumbnail-wrapper {
        gap: 8px;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
        border-radius: 10px;
        border-width: 2px;
    }

    /* Mobile Actions Row */
    .ad-actions-mobile {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .ad-actions-mobile .btn-favorite {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 8px;
    }

    .ad-actions-mobile .btn-message {
        flex: 1;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    .ad-actions-mobile .btn-whatsapp,
    .ad-actions-mobile .btn-share {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    /* Ad Header Mobile */
    .ad-header {
        margin-bottom: 1rem;
    }

    .ad-id {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .ad-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .ad-price {
        font-size: 26px;
        margin-bottom: 1rem;
    }

    /* Seller Info Mobile */
    .seller-info {
        padding: 14px 16px;
        border-radius: 10px;
        margin-bottom: 1.25rem;
    }

    .seller-info::before {
        width: 50px;
        height: 50px;
    }

    .seller-label {
        font-size: 11px;
    }

    .seller-name {
        font-size: 15px;
    }

    .seller-phone {
        font-size: 13px;
        padding: 7px 10px;
    }

    .verified-badge {
        width: 22px;
        height: 22px;
    }

    .verified-badge i {
        font-size: 13px;
    }

    /* Tab Navigation Mobile */
    .tab-navigation {
        display: flex;
        border-bottom: 1px solid #E5E7EB;
        margin-bottom: 1rem;
    }

    .tab-btn {
        flex: 1;
        padding: 12px 16px;
        background: none;
        border: none;
        font-size: 14px;
        font-weight: 600;
        color: #6B7280;
        cursor: pointer;
        position: relative;
        transition: all 0.2s;
    }

    .tab-btn.active {
        color: #000;
    }

    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: #000;
    }

    /* Info Grid Mobile */
    .ad-info-grid {
        gap: 10px;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .info-row {
        font-size: 13px;
    }

    /* Specs Grid Mobile */
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .spec-item {
        padding: 12px 14px;
        border-radius: 10px;
        gap: 10px;
    }

    .spec-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .spec-icon i {
        font-size: 16px;
    }

    .spec-label {
        font-size: 11px;
    }

    .spec-value {
        font-size: 13px;
    }

    /* Description Mobile */
    .ad-description {
        margin-top: 1.5rem;
    }

    .description-title {
        font-size: 18px;
        margin-bottom: 1rem;
    }

    .description-content {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 576px) {
    .ad-detail-section .container {
        padding: 0 16px;
    }

    .main-image {
        border-radius: 14px;
        text-align: center;
    }

    .thumbnail {
        width: 72px;
        height: 54px;
    }

    .ad-title {
        font-size: 20px;
    }

    .ad-price {
        font-size: 24px;
    }

    .specs-grid {
        gap: 8px;
    }

    .spec-item {
        padding: 10px 12px;
    }

    /* Related Ads Mobile */
    .related-ads-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .related-ads-title {
        font-size: 18px;
        margin-bottom: 1rem;
    }

    .related-ads-list {
        gap: 12px;
    }

    /* Mobile: Make card items look like horizontal list items */
    .related-ads-list .related-ad-card {
        background-color: #FFFFFF;
        border: 1px solid #E5E7EB;
        border-radius: 12px;
        overflow: hidden;
    }

    .related-ads-list .related-ad-link {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
        position: relative;
    }

    .related-ads-list .related-ad-image {
        width: 80px;
        height: 80px;
        aspect-ratio: 1/1;
        flex-shrink: 0;
        border-radius: 6px;
    }

    .related-ads-list .related-ad-badge-instagram {
        display: none;
    }

    .related-ads-list .related-ad-content {
        flex: 1;
        padding: 0;
        min-width: 0;
    }

    .related-ads-list .related-ad-id {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .related-ads-list .related-ad-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .related-ads-list .related-ad-info {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 4px;
    }

    .related-ads-list .related-ad-info-row {
        font-size: 10px;
    }

    .related-ads-list .related-ad-label {
        display: none;
    }

    .related-ads-list .related-ad-value {
        font-weight: 500;
        color: #6B7280;
    }

    .related-ads-list .related-ad-price {
        font-size: 15px;
        margin-top: 0;
    }

    /* Keep existing Instagram item button for item structure */
    .related-ad-item-instagram {
        font-size: 8px;
        padding: 5px 8px;
        gap: 3px;
    }

    .related-ad-item-instagram i {
        font-size: 10px;
    }

    .related-ad-item-link {
        padding: 10px;
        gap: 10px;
    }

    .related-ad-item-image {
        width: 80px;
        height: 80px;
        border-radius: 6px;
    }

    .related-ad-item-content {
        gap: 3px;
    }

    .related-ad-item-id {
        font-size: 9px;
    }

    .related-ad-item-title {
        font-size: 13px;
    }

    .related-ad-item-meta {
        font-size: 10px;
        gap: 6px;
    }

    .related-ad-item-price {
        font-size: 15px;
        margin-top: 3px;
    }

    .related-ad-item-instagram {
        top: 10px;
        right: 10px;
        padding: 5px 8px;
        font-size: 8px;
        gap: 3px;
    }

    .related-ad-item-instagram i {
        font-size: 10px;
    }
}

/* ==================== MESAJ GÖNDER BUTONU ==================== */

.btn-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: white;
    border: 1.5px solid #E31E24;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #E31E24;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-message:hover {
    background-color: #FFF1F2;
}

.btn-message i {
    font-size: 16px;
}

.btn-message span {
    display: inline;
}

/* ==================== MESAJ MODAL STİLLERİ ==================== */

.message-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.message-modal-header {
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}

.message-modal-header .modal-title {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.message-modal-header .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.message-modal-header .btn-close-white:hover {
    opacity: 1;
}

.message-modal-body {
    padding: 1.5rem;
}

.message-receiver-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #F9FAFB;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.receiver-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.receiver-avatar i {
    font-size: 32px;
    color: #9CA3AF;
}

.receiver-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.receiver-name {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.receiver-ad-info {
    font-size: 13px;
    color: #6B7280;
}

.message-form .form-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.message-textarea {
    resize: none;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1rem;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.message-textarea:focus {
    border-color: #E31E24;
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
    outline: none;
}

.message-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border: none;
    gap: 0.75rem;
}

.message-modal-footer .btn-secondary {
    background-color: #F3F4F6;
    border: none;
    color: #4B5563;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.message-modal-footer .btn-secondary:hover {
    background-color: #E5E7EB;
}

.btn-send-message-modal {
    background: linear-gradient(135deg, #E31E24 0%, #C91B21 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-send-message-modal:hover {
    background: linear-gradient(135deg, #C91B21 0%, #B01820 100%);
    transform: translateY(-1px);
}

.btn-send-message-modal:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}




/* ==================== PAYLAŞIM MODAL STİLLERİ ==================== */

.share-modal-popup {
    border-radius: 16px !important;
    padding: 0 !important;
}

.share-modal-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #eee !important;
    margin: 0 !important;
}

.share-modal-content {
    padding: 1.5rem !important;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
}

.share-option i {
    font-size: 1.75rem;
}

.share-option span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
}

.share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* WhatsApp */
.share-whatsapp {
    border-color: #25D366;
}

.share-whatsapp i {
    color: #25D366;
}

.share-whatsapp:hover {
    background: #25D366;
}

.share-whatsapp:hover i,
.share-whatsapp:hover span {
    color: #fff;
}

/* Telegram */
.share-telegram {
    border-color: #0088cc;
}

.share-telegram i {
    color: #0088cc;
}

.share-telegram:hover {
    background: #0088cc;
}

.share-telegram:hover i,
.share-telegram:hover span {
    color: #fff;
}

/* Facebook */
.share-facebook {
    border-color: #1877F2;
}

.share-facebook i {
    color: #1877F2;
}

.share-facebook:hover {
    background: #1877F2;
}

.share-facebook:hover i,
.share-facebook:hover span {
    color: #fff;
}

/* Twitter/X */
.share-twitter {
    border-color: #000;
}

.share-twitter i {
    color: #000;
}

.share-twitter:hover {
    background: #000;
}

.share-twitter:hover i,
.share-twitter:hover span {
    color: #fff;
}

/* E-posta */
.share-email {
    border-color: #EA4335;
}

.share-email i {
    color: #EA4335;
}

.share-email:hover {
    background: #EA4335;
}

.share-email:hover i,
.share-email:hover span {
    color: #fff;
}

/* Linki Kopyala */
.share-copy {
    border-color: #6c757d;
}

.share-copy i {
    color: #6c757d;
}

.share-copy:hover {
    background: #6c757d;
}

.share-copy:hover i,
.share-copy:hover span {
    color: #fff;
}

/* Mobil için 2 sütun */
@media (max-width: 480px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .share-option {
        padding: 0.875rem 0.5rem;
    }

    .share-option i {
        font-size: 1.5rem;
    }
}

/* ==========================================================
   FULLSCREEN LIGHTBOX
   ========================================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.lightbox-counter {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.lightbox-close {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 60px 80px;
    overflow: hidden;
}

.lightbox-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.2s ease;
    touch-action: pan-y pinch-zoom;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-thumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 10;
}

.lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    border-color: #E31E24;
    opacity: 1;
}

@media (max-width: 767px) {
    .lightbox-body {
        padding: 56px 8px 72px;
    }
    
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 8px;
    }
    
    .lightbox-next {
        right: 8px;
    }
    
    .lightbox-header {
        padding: 12px 14px;
    }
    
    .lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .lightbox-counter {
        font-size: 13px;
    }
    
    .lightbox-thumb {
        width: 48px;
        height: 36px;
        border-radius: 4px;
    }
    
    .lightbox-thumbs {
        gap: 6px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .lightbox-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
    
    .lightbox-thumb {
        width: 42px;
        height: 32px;
    }
}

/* Cursor pointer on main gallery image */
.main-image {
    cursor: pointer;
}

.main-image img {
    cursor: pointer;
}