/* ==============================
   Google Font & Reset
============================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f5f5;
    color:#111;
}

/* ==============================
   Navigation
============================== */

nav{
    background:#111;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 50px;
}

.logo{
    font-size:32px;
    font-weight:700;
}

nav ul{
    display:flex;
    list-style:none;
    gap:35px;
}

nav ul li a{
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:.3s;
}

nav ul li a:hover{
    color:#d9d9d9;
}

/* ==============================
   Header
============================== */

header{
    text-align:center;
    padding:50px 20px;
}

header h1{
    font-size:58px;
    margin-bottom:15px;
}

header p{
    font-size:22px;
    color:#555;
}

.live-status{
    width:340px;
    margin:25px auto;
    background:#111;
    color:white;
    padding:14px;
    border-radius:40px;
    font-weight:600;
    letter-spacing:.5px;
}

/* ==============================
   Main Layout
============================== */

.main-container{
    width:92%;
    margin:auto;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:35px;
    margin-bottom:50px;
}

/* ==============================
   Parking Cards
============================== */

.parking-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.parking-card{
    background:white;
    border-radius:20px;
    padding:25px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:.35s;
}

.parking-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.parking-card img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:20px;
}

.parking-card h2{
    margin-bottom:15px;
    font-size:30px;
}

.parking-card p{
    margin:10px 0;
    font-size:18px;
    color:#444;
}

/* ==============================
   Status Text
============================== */

.available{
    color:#1d8f3b;
    font-weight:700;
}

.limited{
    color:#ff9800;
    font-weight:700;
}

.full{
    color:#e53935;
    font-weight:700;
}

/* ==============================
   Progress Bars
============================== */

.progress{
    width:100%;
    height:12px;
    background:#ddd;
    border-radius:50px;
    overflow:hidden;
    margin:18px 0;
}

.progress-green{
    width:80%;
    height:100%;
    background:#1d8f3b;
}

.progress-orange{
    width:45%;
    height:100%;
    background:#ff9800;
}

.progress-red{
    width:100%;
    height:100%;
    background:#e53935;
}

/* ==============================
   Buttons
============================== */

.button-group{
    display:flex;
    gap:12px;
    justify-content:center;
    margin-top:18px;
}

button{
    flex:1;
    padding:13px;
    border:none;
    border-radius:12px;
    background:#111;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#333;
    transform:scale(1.04);
}

/* ==============================
   Information Box
============================== */

#infoBox{
    background:white;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    min-height:700px;
}

#infoBox h2{
    font-size:38px;
    margin-bottom:20px;
}

#infoBox p{
    font-size:20px;
    line-height:1.8;
    color:#444;
    margin-top:20px;
}

.info-image{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:20px;
}

#infoBox button{
    margin-top:25px;
    width:100%;
}

/* ==============================
   Footer
============================== */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:25px;
    font-size:18px;
}

/* ==============================
   Responsive
============================== */

@media(max-width:1100px){

.main-container{
    grid-template-columns:1fr;
}

#infoBox{
    min-height:auto;
}

}

@media(max-width:900px){

nav{
    flex-direction:column;
    gap:20px;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
}

header h1{
    font-size:42px;
}

.parking-container{
    grid-template-columns:1fr;
}

.button-group{
    flex-direction:column;
}

.live-status{
    width:90%;
}

}
/* Accessibility */

.skip-link{

position:absolute;
left:-9999px;
top:auto;
background:#000;
color:#fff;
padding:12px 18px;
z-index:1000;
text-decoration:none;
border-radius:8px;

}

.skip-link:focus{

left:20px;
top:20px;

}

.visually-hidden{

position:absolute;
width:1px;
height:1px;
padding:0;
margin:-1px;
overflow:hidden;
clip:rect(0,0,0,0);
border:0;

}

button:focus,
nav a:focus{

outline:3px solid #FFD54F;
outline-offset:3px;

}