/* İlan Detay Sayfası CSS */

/* Global font */
body, * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin: 16px 0 20px 0; /* Top margin to clear fixed navbar */
    padding: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 8px;
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item a {
    color: #10b981;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #059669;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #374151;
    font-weight: 500;
}

.breadcrumb-item svg {
    width: 16px;
    height: 16px;
}

/* Navbar Styles */
.navbar {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 2px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #419F4B;
}

.ilan-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-left: 8px;
}

.beta-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* Mobil responsive navbar */
@media (max-width: 768px) {
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .ilan-text {
        font-size: 16px;
        margin-left: 6px;
    }
    
    .beta-badge {
        font-size: 8px;
        padding: 1px 4px;
        margin-left: 4px;
    }
}

/* Prevent double-tap zoom but allow text selection */
* {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

/* SVG elementlerini seçilemez yap */
svg, svg * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: none;
}

/* Prevent text selection only on interactive elements */
.media-container,
.slider-nav,
.slider-dots,
.dot,
.media-item,
button,
.agent-call-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Explicitly allow text selection for all text content */
.detail-title,
.detail-location,
.description-text,
.info-label,
.info-value,
.info-title,
.agent-name,
.agent-company,
.agent-contact-item span,
p,
h1, h2, h3, h4, h5, h6,
span:not(.media-label):not(.dot) {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 20px 10px;
}

.detail-header {
    position: sticky;
    top: 53px;
    background: white;
    z-index: 100;
    padding: 20px 0;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-button {
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.back-button:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.back-button svg {
    color: #333;
}

.header-content {
    flex: 1;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    margin-top: 0;
}

.detail-location {
    color: #666;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}


.detail-layout {
    display: grid;
    grid-template-columns: 400px 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

/* Media Slider Container */
.media-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9/16;
    margin: 0 auto 40px auto;
    border-radius: 16px;
    overflow: visible;
    background: #000;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.media-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.media-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.media-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 16px;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.play-btn:hover {
    transform: scale(1.15);
}

.play-btn svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.video-info {
    color: rgb(255, 255, 255);
    text-align: center;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.video-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin: 16px 0 15px 0; /* Smaller margin on mobile */
    }
    
    .breadcrumb {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 6px;
    }
    
    .breadcrumb-item svg {
        width: 14px;
        height: 14px;
    }
    
    .play-btn svg {
        width: 48px;
        height: 48px;
    }
    
    .video-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        margin: 16px 0 10px 0; /* Even smaller margin on very small screens */
    }
    
    .play-btn svg {
        width: 40px;
        height: 40px;
    }
    
    .video-info p {
        font-size: 0.75rem;
    }
}

.video-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    width: 100%;
    border-radius: 16px;
}

.media-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 12px;
}

.slider-nav.next {
    right: 12px;
}

.slider-nav svg {
    color: #333;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: none;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.dot.active {
    background: #007bff;
    transform: scale(1.2);
}

.dot:hover {
    background: #007bff;
    opacity: 0.8;
}

.detail-info {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: fit-content;
}

.info-section {
    margin-bottom: 30px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.price-value {
    color: #2E7D32 !important;
    font-weight: 700 !important;
    font-size: 1.15em !important;
}


/* Emlakçı Paneli */
.agent-panel {
    position: sticky;
    top: 210px;
}

.agent-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: #6b7280;
    overflow: hidden;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-bottom: 8px;
}

.agent-company {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 16px;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-size: 14px;
}

.agent-contact-item svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.agent-call-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
    width: 100%;
}

.agent-call-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Butonlar */
.btn-large {
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}


/* Açıklama Bölümü */
.description-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.description-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.description-text {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    white-space: pre-line;
    word-wrap: break-word;
}

/* Yükleme ve Hata Durumları */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.error {
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
}


/* 3D Harita Stilleri */
#map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control-btn {
    background: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.map-control-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .media-container {
        max-width: 280px;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    .detail-location {
        font-size: 14px;
    }
    
    .detail-location svg {
        width: 16px;
        height: 16px;
    }
    
    .detail-container {
        padding: 36px 15px 10px;
    }
    
    .detail-header {
        padding: 10px 0;
        padding-bottom: 0px;
        gap: 12px;
        top: 40px;
    }
    
    .back-button {
        width: 40px;
        height: 40px;
    }

    .agent-panel {
        position: static;
        order: 3;
    }

    .agent-card {
        padding: 20px;
    }
}
