:root {
    --bg: #f0f2f5;
    --card: #ffffff;
    --text: #1c1e21;
    --sub-text: #606770;
    --border: #dddfe2;
    --accent: #d32f2f;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg: #18191a;
    --card: #242526;
    --text: #e4e6eb;
    --sub-text: #b0b3b8;
    --border: #3e4042;
    --accent: #ff5252;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    /* FIX: Perfect vertical and horizontal centering */
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100vh; /* Ensures body takes full screen height */
    padding: 20px;
    box-sizing: border-box;
    background-image: url('public/airport.jpg'); /* Add your airport image here */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    background: var(--card);
    width: 100%;
    max-width: 500px;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
    /* Ensure container stays centered */
    margin: auto; 
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.header { text-align: center; margin-bottom: 25px; }
.header h1 { color: var(--accent); margin: 0; font-size: 26px; }
.header p { color: var(--sub-text); margin-top: 5px; font-weight: bold; }
.header .contact-email { font-size: 14px; color: var(--sub-text); margin-top: 5px; font-weight: bold; }

/* Grid Styling */
.restaurant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.res-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.res-card img {
    width: 100%;
    height: auto; /* Allow natural height to show full image */
    object-fit: contain; /* Shows full image without cropping */
    display: block; /* Removes tiny white space under image */
}

.res-card span {
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    color: var(--text);
    text-align: center;
}

.res-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-3px); /* Nicer hover effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form Elements */
.back-btn {
    background: none; 
    border: none; 
    color: var(--accent);
    cursor: pointer; 
    font-weight: bold; 
    margin-bottom: 15px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }

input, select, textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border);
    border-radius: 8px; 
    background: var(--card); 
    color: var(--text);
    box-sizing: border-box; 
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea { height: 100px; resize: none; }

.submit-btn {
    width: 100%; 
    padding: 16px; 
    background: var(--accent);
    color: white; 
    border: none; 
    border-radius: 8px;
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

#theme-toggle {
    position: fixed; 
    top: 15px; 
    right: 15px; 
    width: 40px; 
    height: 40px;
    border-radius: 50%; 
    border: none; 
    background: var(--card);
    color: var(--text); 
    box-shadow: var(--shadow); 
    cursor: pointer;
    z-index: 100; /* Ensure it stays on top */
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .restaurant-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
    }
    .container {
        padding: 15px;
    }
}

/* Tablet and Desktop Responsiveness */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 30px;
    }
    .res-card img {
        max-height: 300px; /* Limit height on larger screens */
    }
}

/* Footer Styles */
/* .footer {
    margin-top: 30px;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    color: var(--sub-text);
    font-size: 14px;
}

.footer p {
    margin: 0;
    font-weight: 500;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.footer-link:hover {
    text-decoration: underline;
}
 */
.footer{

margin-top:35px;
padding-top:18px;

border-top:1px solid var(--border);

text-align:center;

font-size:14px;

color:var(--sub-text);

}

.footer-content{

display:flex;
justify-content:center;
align-items:center;
gap:6px;

font-weight:500;

}

.footer i{

color:var(--accent);
margin-right:4px;

}

.footer-link{

text-decoration:none;

font-weight:600;

color:var(--accent);

position:relative;

transition:all .3s ease;

}

/* underline animation */

.footer-link::after{

content:"";

position:absolute;

left:0;
bottom:-2px;

width:0;
height:2px;

background:var(--accent);

transition:.3s;

}

.footer-link:hover::after{

width:100%;

}

.footer-link:hover{

transform:translateY(-1px);

}


