/* =========================================
   PROJELER SAYFASI (projects.css)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    background-color: #f8f9fb;
    font-family: 'Inter', sans-serif;
    color: #111;
}

/* --- 1. SAYFA BAŞLIĞI --- */
.projects-page-header {
    background: #fff;
    padding: 140px 0 40px;
    text-align: left;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px; /* Reduced from 42px */
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.breadcrumb {
    color: #999;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PREMIUM PROJECT GRID --- */
.premium-projects-section {
    padding: 80px 20px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.premium-project-card {
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pp-image-wrapper {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.pp-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.pp-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: 0.4s ease;
}

.pp-category {
    color: #bfa15f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pp-btn {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-info {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.pp-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Hover States */
.premium-project-card:hover {
    transform: translateY(-10px);
}

.premium-project-card:hover .pp-image-wrapper img {
    transform: scale(1.1);
}

.premium-project-card:hover .pp-overlay {
    opacity: 1;
}

.premium-project-card:hover .pp-info {
    border-color: #0a2540;
}



/* --- 2. İNTERAKTİF HARİTA BÖLÜMÜ (DÜZELTİLDİ) --- */
.interactive-map-section {
    position: relative;
    height: 85vh; /* Yükseklik garantisi */
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    background: #e6e6e6; /* Harita yüklenmezse gri fon */
}

/* Harita Alanı - ARKA PLAN OLARAK AYARLANDI */
.map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* En altta */
}

/* Sol Taraf: Yüzen Sidebar */
.map-sidebar {
    position: absolute; /* Harita üzerine bindir */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Tıklamalar haritaya geçsin */
    display: flex;
    align-items: center;
}

/* Sidebar İçeriği (Sınırlayıcı) */
.map-sidebar .container {
    width: 100%;
    pointer-events: none;
}

/* Kartın Kendisi */
.active-project-card {
    pointer-events: auto; /* Kart tıklanabilir olsun */
    width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Buzlu cam efekti */
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.8);
    overflow: hidden;
    margin-left: 20px; /* Soldan boşluk */
    animation: slideInLeft 0.8s ease;
}

/* Kart Görseli */
.ap-image {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.ap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.active-project-card:hover .ap-image img { transform: scale(1.05); }

.ap-badges {
    position: absolute; top: 15px; left: 15px; display: flex; gap: 8px; z-index: 2;
}
.ap-badges span {
    background: #fff; color: #0a2540; padding: 5px 10px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#apStatus { background: #0a2540; color: #fff; }

/* Kart İçeriği */
.ap-details { padding: 30px; }

.ap-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 26px; font-weight: 700; margin-bottom: 10px;
    color: #111; line-height: 1.2;
}

.ap-content p {
    color: #555; font-size: 14px; line-height: 1.6; margin-bottom: 25px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ap-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px 0;
    background: #0a2540; color: #fff;
    font-size: 12px; font-weight: 600; letter-spacing: 1px;
    border-radius: 8px; text-transform: uppercase; transition: 0.3s;
}
.ap-btn:hover { background: #153b61; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(10,37,64,0.3); }
.ap-btn i { margin-left: 8px; }

/* Oklar */
.map-controls {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee;
}
.map-controls button {
    width: 40px; height: 40px; border: 1px solid #ddd; background: #fff;
    border-radius: 50%; cursor: pointer; transition: 0.3s; color: #333;
    display: flex; align-items: center; justify-content: center;
}
.map-controls button:hover { border-color: #0a2540; color: #0a2540; }
#projCounter { font-size: 13px; font-weight: 600; color: #999; }

/* --- HARİTA STİLİ --- */
.leaflet-tile-pane { filter: grayscale(100%) contrast(1.1); } /* Siyah Beyaz Harita */

.custom-map-pin .pin-inner {
    width: 44px; height: 44px; background: #0a2540; color: #fff;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    border: 3px solid #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    font-size: 16px; transition: 0.3s;
}
.custom-map-pin:hover .pin-inner { transform: scale(1.2); background: #bfa15f; }

@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

/* RESPONSIVE */
@media (max-width: 992px) {
    .active-project-card { margin: 20px auto; width: 90%; pointer-events: auto; }
    .map-sidebar { position: relative; height: auto; background: transparent; pointer-events: none; padding-bottom: 20px; }
    .interactive-map-section { height: auto; display: flex; flex-direction: column-reverse; }
    .map-wrapper { position: relative; height: 400px; width: 100%; }
}
@media (max-width: 768px) {
    .active-project-card { width: 95%; }
}
