/* ============================================================
   UNIVERSITY INDOOR CAMPUS NAVIGATION - HOMEPAGE THEME
   ============================================================ */

:root {
    --primary: #1F4E79;
    --secondary: #F5F5F5;
    --accent: #2E7D32;
    --bg: #FFFFFF;
    --text: #333333;
    --border: #DDDDDD;
    --hover: #EAF2F8;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font);
    background-color: var(--secondary);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
    margin-top: 70px;
    background-color: var(--bg);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 30px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg);
}

.btn-primary:hover {
    background-color: #163a5a;
    color: var(--bg);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--bg);
}

.btn-secondary:hover {
    background-color: #1e5a23;
    color: var(--bg);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.map-preview {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.map-preview img {
    width: 100%;
    display: block;
}

/* ========== SEARCH SECTION ========== */
.search-section {
    padding: 60px 0 40px;
}

.search-container h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.search-box-wrapper {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 12px;
}

.search-box-wrapper input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease;
}

.search-box-wrapper input:focus {
    border-color: var(--primary);
}

/* ========== BUILDINGS SECTION ========== */
.buildings-section {
    padding: 20px 0 80px;
}

.buildings-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.building-card {
    background-color: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.building-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.building-img {
    height: 180px;
    background-color: var(--hover);
    position: relative;
}

.building-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.building-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.building-content h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.building-content p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 20px;
    flex: 1;
}

.building-content .btn {
    text-align: center;
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text);
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .search-box-wrapper {
        flex-direction: column;
    }
    
    .nav-menu {
        display: none; /* In a real app, implement a hamburger menu here */
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}
