body{margin:0;font-family:Arial,sans-serif;background:#f4f4f4}
.header{background:#111827;color:#fff;padding:15px 20px}
.header a{color:#fff;text-decoration:none}
.info,.filters{background:#fff;margin:20px;padding:20px;border-radius:10px}

.project-hero{margin:20px}
.project-hero .cover{
width:100%;
max-height:650px;
object-fit:cover;
border-radius:16px;
display:block;
}

.project-description{
max-width:1200px;
margin:0 auto;
line-height:1.7;
}

.project-description .lead{
font-size:1.2rem;
font-weight:600;
}

.project-meta{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:15px;
margin-top:20px;
}

.project-meta div{
background:#f5f5f5;
padding:15px;
border-radius:12px;
}

#timeline{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    padding:20px;
}

.timeline-year{
    border:none;
    background:#fff;
    border-radius:12px;
    padding:15px;
    min-width:90px;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,.1);
}

.timeline-year:hover{
    transform:translateY(-2px);
}

.timeline-year .year{
    display:block;
    font-weight:bold;
    font-size:1rem;
}

.timeline-year .count{
    display:block;
    margin-top:5px;
    color:white;
}
.timeline-year.active{
    background:#111827;
    color:white;
}

.year-btn{
padding:10px 15px;
margin-right:10px;
margin-bottom:10px;
border:none;
border-radius:8px;
cursor:pointer;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
gap:20px;
padding:20px;
}

.card{
background:#fff;
border-radius:12px;
overflow:hidden;
box-shadow:0 2px 8px rgba(0,0,0,.1);
}

.card img{
width:100%;
height:220px;
object-fit:cover;
display:block;
}

.card .content{padding:12px}

#mapSection{
    margin:20px;
}

#projectMap{
    height:500px;
    border-radius:16px;
    overflow:hidden;
    background:#ddd;
}

#mapSection h2{
    margin-bottom:15px;
}
.project-gallery{
   display:grid;
}

/* Filmy YouTube na podstronie inwestycji */
.project-videos { margin: 36px 20px; }
.project-videos-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.project-videos-heading h2 { margin:0; }
.project-videos-heading a { color:inherit; text-decoration:none; font-weight:600; }
.video-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.video-card { min-width:0; overflow:hidden; background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.video-thumb { position:relative; display:block; width:100%; padding:0; border:0; background:#111; cursor:pointer; aspect-ratio:16/9; overflow:hidden; }
.video-thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.video-thumb:hover img { transform:scale(1.04); }
.video-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:58px; height:42px; border-radius:12px; background:rgba(220,0,0,.92); color:#fff; font-size:22px; }
.video-card iframe { display:block; width:100%; aspect-ratio:16/9; border:0; }
.video-card-content { padding:14px; }
.video-card-content h3 { margin:0 0 8px; font-size:1rem; }
.video-card-content time { color:#666; font-size:.85rem; }
.video-card-content p { margin:8px 0 0; line-height:1.5; color:#555; }
@media(max-width:600px) { .project-videos-heading { align-items:flex-start; flex-direction:column; } }
