:root {
    --brand-navy: #0F2042;
    --brand-blue: #1E3D73;
    --brand-electric: #007BFF;
    --surface-light: #F4F7FC;
    --border-color: #E2E8F0;
    --text-primary: #1A202C;
    --text-muted: #4A5568;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--surface-light);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.app-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.app-header {
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
    border-top: 5px solid var(--brand-blue);
}

.brand-badge {
    display: inline-block;
    background-color: #EBF8FF;
    color: #2B6CB0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.app-header h1 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 2.2rem;
}

.tagline {
    color: var(--text-muted);
    margin: 5px 0 25px 0;
    font-size: 1.05rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#mapSearch {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    transition: border-color 0.2s;
}

#mapSearch:focus {
    border-color: var(--brand-electric);
}

.search-counter {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #EDF2F7;
    padding: 2px 10px;
    border-radius: 12px;
}

.map-section {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.map-section h2 {
    margin-top: 0;
    color: var(--brand-blue);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--surface-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.nav-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.nav-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: var(--brand-navy);
}

.nav-card p {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.nav-btn {
    display: block;
    text-align: center;
    background-color: var(--brand-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: var(--brand-electric);
}

.app-footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media(max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}