.ilan-detay-page {
    padding-top: 160px;
    padding-bottom: 60px;
    background: #f5f5f5;
    min-height: 100vh;
}

.ilan-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.ilan-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ilan-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-areas: 
        "gallery sidebar"
        "tabs sidebar";
    gap: 20px;
    align-items: start;
}

.ilan-gallery {
    grid-area: gallery;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
}

.ilan-tabs-wrapper {
    grid-area: tabs;
    background: #fff;
    border: 1px solid #ddd;
}

.ilan-right {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ilan-price-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

.ilan-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-renk);
}

.ilan-location {
    font-size: 13px;
    color: var(--accent-renk);
    margin-top: 6px;
}

.gallery-main {
    position: relative;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f8f8f8;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.7);
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-thumbs-wrapper {
    border: 1px solid #ddd;
    background: #fafafa;
}

.gallery-thumbs-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    color: #666;
}

.gallery-thumbs-header span:first-child {
    color: #0066cc;
}

.gallery-thumbs-header i {
    margin-right: 5px;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    max-height: 180px;
    overflow-y: auto;
}

.gallery-thumb {
    flex: 0 0 70px;
    height: 52px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-thumb.active {
    border-color: #0066cc;
}

.gallery-thumb:hover {
    border-color: #999;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs-nav {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.ilan-tabs {
    display: flex;
    border-bottom: 3px solid var(--accent-renk);
    background: #fff;
}

.tab-btn {
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    margin-right: -1px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent-renk);
    color: #fff;
    border-color: var(--accent-renk);
}

.tab-btn:hover:not(.active) {
    background: #eee;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.ilan-section {
    margin-bottom: 25px;
}

.ilan-section:last-child {
    margin-bottom: 0;
}

.ilan-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ilan-description {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.ozellikler-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ozellik-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s;
}

.ozellik-item:hover {
    background: #e9f5e9;
}

.ozellik-item i {
    color: #27ae60;
    font-size: 14px;
    flex-shrink: 0;
}

.ilan-map {
    height: 350px;
    border: 1px solid #ddd;
}

.ilan-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ilan-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ilan-info-table {
    background: #fff;
    border: 1px solid #ddd;
}

.ilan-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.ilan-info-table tr {
    border-bottom: 1px solid #eee;
}

.ilan-info-table tr:last-child {
    border-bottom: none;
}

.ilan-info-table td {
    padding: 10px 12px;
    font-size: 13px;
}

.ilan-info-table td:first-child {
    color: #666;
    width: 45%;
    background: #fafafa;
}

.ilan-info-table td:last-child {
    color: #333;
    font-weight: 500;
}

.ilan-contact-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}

.contact-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.contact-phone {
    margin-bottom: 15px;
}

.contact-phone span {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.contact-phone a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-call {
    background: var(--gradient-2);
    color: #fff;
}

.btn-call:hover {
    filter: brightness(1.1);
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.ilan-stats {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.stat-item i {
    color: #999;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.lightbox-content {
    max-width: 90%;
    max-height: 75vh;
    text-align: center;
}

.lightbox-image-wrapper {
    position: relative;
    display: inline-block;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-counter {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    color: #fff;
    font-size: 16px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.lightbox-thumbs.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.lightbox-thumbs.dragging img {
    pointer-events: none;
}

.lightbox-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.lightbox-thumbs img:hover {
    opacity: 0.8;
}

@media (max-width: 992px) {
    .ilan-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "gallery"
            "sidebar"
            "tabs";
    }
}

@media (max-width: 992px) {
    .ozellikler-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ilan-detay-page {
        padding-top: 130px;
        padding-bottom: 40px;
    }
    
    .ilan-header h1 {
        font-size: 18px;
    }
    
    .ilan-price {
        font-size: 22px;
    }
    
    .gallery-main img {
        height: 280px;
    }
    
    .ozellikler-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}

@media (max-width: 576px) {
    .ilan-detay-page {
        padding-top: 120px;
    }
    
    .ozellikler-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumb {
        flex: 0 0 60px;
        height: 45px;
    }
}


.detail-content {
    padding: 60px 0;
    background: #f8fafc;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

.detail-main {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.detail-gallery {
    margin-bottom: 30px;
}

.detail-gallery .gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.detail-gallery .gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    cursor: pointer;
}

.proje-gallery .gallery-main img {
    object-fit: contain;
    background: #f8f8f8;
}

.gallery-zoom {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-zoom:hover {
    background: rgba(0,0,0,0.8);
}

.detail-gallery .gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.detail-gallery .gallery-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.detail-gallery .gallery-thumb.active {
    border-color: var(--accent-renk);
}

.detail-gallery .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--yazi-renk);
    margin-bottom: 10px;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--acik-yazi);
    margin-bottom: 30px;
}

.detail-location i {
    color: var(--accent-renk);
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--yazi-renk);
    margin-bottom: 20px;
}

.detail-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--acik-yazi);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.feature-box i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-renk);
    color: #fff;
    border-radius: 12px;
    font-size: 20px;
}

.feature-info span {
    display: block;
    font-size: 13px;
    color: var(--acik-yazi);
    margin-bottom: 4px;
}

.feature-info strong {
    font-size: 16px;
    color: var(--yazi-renk);
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--yazi-renk);
    padding: 10px 0;
}

.amenity-item i {
    color: #22c55e;
    font-size: 14px;
}

.detail-map {
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
}

.detail-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.price-card .price {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-renk);
    margin-bottom: 5px;
}

.price-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.price-card .btn:last-child {
    margin-bottom: 0;
}

.price-card .btn-primary {
    background: var(--ana-renk);
    color: #fff;
}

.price-card .btn-primary:hover {
    background: var(--ikincil-renk);
}

.price-card .btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.price-card .btn-whatsapp:hover {
    background: #1da851;
}

.price-card .btn-outline {
    background: transparent;
    color: var(--yazi-renk);
    border: 2px solid #e2e8f0;
}

.price-card .btn-outline:hover {
    border-color: var(--accent-renk);
    color: var(--accent-renk);
}

.agent-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.agent-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-renk);
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--yazi-renk);
    margin-bottom: 5px;
}

.agent-card span {
    font-size: 14px;
    color: var(--acik-yazi);
}

.agent-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.agent-contact a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--yazi-renk);
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s;
}

.agent-contact a:hover {
    background: var(--accent-renk);
    color: #fff;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .price-card,
    .agent-card {
        flex: 1;
        min-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-content {
        padding: 40px 0;
    }
    
    .detail-main {
        padding: 20px;
    }
    
    .detail-gallery .gallery-main img {
        height: 300px;
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-sidebar {
        flex-direction: column;
    }
    
    .price-card,
    .agent-card {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .amenities-list {
        grid-template-columns: 1fr;
    }
    
    .price-card .price {
        font-size: 26px;
    }
}


.btn-whatsapp-share {
    background: #128c7e;
    color: #fff;
}

.btn-whatsapp-share:hover {
    background: #075e54;
}

.ilan-share-box {
    margin-top: 15px;
}

.ilan-share-box .btn-whatsapp-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

@media (max-width: 992px) {
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none !important;
    }
}


.ilan-description h1,
.ilan-description h2,
.ilan-description h3,
.ilan-description h4 {
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.ilan-description h1 { font-size: 24px; }
.ilan-description h2 { font-size: 20px; }
.ilan-description h3 { font-size: 18px; }
.ilan-description h4 { font-size: 16px; }

.ilan-description p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.ilan-description ul,
.ilan-description ol {
    margin: 15px 0;
    padding-left: 25px;
}

.ilan-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.ilan-description ul li {
    list-style-type: disc;
}

.ilan-description ol li {
    list-style-type: decimal;
}

.ilan-description blockquote {
    border-left: 4px solid var(--accent-renk, #ed8936);
    padding: 15px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.ilan-description a {
    color: var(--ana-renk, #1a365d);
    text-decoration: underline;
}

.ilan-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ilan-description table th,
.ilan-description table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.ilan-description table th {
    background: #f5f5f5;
    font-weight: 600;
}

.ilan-description strong {
    font-weight: 600;
}

.ilan-description em {
    font-style: italic;
}


.btn-instagram-share {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.btn-instagram-share:hover {
    filter: brightness(1.1);
}

.ilan-share-box {
    display: flex;
    gap: 10px;
}

.ilan-share-box .btn-whatsapp-share,
.ilan-share-box .btn-instagram-share {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.ilan-share-box.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .ilan-share-box.mobile-only {
        display: flex;
    }
}

.instagram-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.instagram-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    text-align: center;
}

.instagram-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.instagram-modal-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.instagram-modal-content h3 i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 8px;
}

.instagram-modal-content p {
    color: #666;
    margin-bottom: 15px;
}

.instagram-modal-content ol {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
}

.instagram-modal-content ol li {
    margin-bottom: 8px;
}

.instagram-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instagram-modal-buttons .btn-download {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.instagram-modal-buttons .btn-copy {
    background: #f5f5f5;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.instagram-modal-buttons .btn-copy:hover {
    background: #eee;
}
