.homeView { width: 100%; } .heroSection { text-align: center; margin-bottom: 1.5rem; padding-top: 2.5rem; } .heroEyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-teal, #2d7d7d); background: rgba(45, 125, 125, 0.1); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem; } .heroEyebrowDot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal, #2d7d7d); } .heroTitle { font-size: 3rem; font-weight: 700; color: var(--text-primary, #1a1612); margin-bottom: 0.85rem; line-height: 1.08; letter-spacing: -0.015em; font-family: var(--font-playfair), 'Playfair Display', serif; max-width: 840px; margin-left: auto; margin-right: auto; } .heroEmph { color: var(--accent-coral-dark, #c45a3f); font-style: italic; } .heroDescription { font-size: 1.05rem; color: var(--text-secondary, #5c564d); margin: 0 auto 0.5rem; max-width: 680px; line-height: 1.55; } .heroDescription strong { color: var(--text-primary, #1a1612); font-weight: 700; } /* Copy variants: full paragraph ≥641px, compact merged line on phones. */ .heroDescriptionCompact { display: none; } @media (max-width: 768px) { .heroSection { padding-top: 1.5rem; } .heroTitle { font-size: 2rem; } .heroDescription { font-size: 0.95rem; } } /* Above the fold on phones, every line costs. Drop the eyebrow tag and swap the long descriptive paragraph for one compact line that carries coverage ("24,000+ schools") and freshness ("updated for 2026/27") — a first-time visitor otherwise sees only a poetic h1 and a bare box, with no reason to trust the data (audit P1.7, feeds the 46% home exit rate). */ @media (max-width: 640px) { .heroSection { padding-top: 0.75rem; margin-bottom: 1rem; } .heroEyebrow, .heroDescriptionFull { display: none; } .heroDescriptionCompact { display: block; } .heroDescription { font-size: 0.85rem; line-height: 1.4; max-width: 320px; margin-bottom: 0.25rem; } .heroTitle { font-size: 1.65rem; } } /* View Toggle */ .viewToggle { display: flex; gap: 0.2rem; background: var(--bg-secondary, #f3ede4); padding: 0.2rem; border-radius: 6px; } .viewToggleBtn { display: flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0.625rem; font-size: 0.8125rem; font-weight: 500; background: transparent; border: none; border-radius: 5px; cursor: pointer; color: var(--text-secondary, #5c564d); transition: all 0.2s ease; } .viewToggleBtn:hover { color: var(--text-primary, #1a1612); } .viewToggleBtn.active { background: var(--bg-card, white); color: var(--accent-coral-dark, #b04a2e); box-shadow: 0 2px 4px rgba(26, 22, 18, 0.08); } .viewToggleBtn svg { flex-shrink: 0; } .results { margin-top: 1rem; } .mapViewResults { margin-top: 0; } /* Map View Layout */ .mapViewContainer { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; height: calc(100dvh - 280px); min-height: 520px; max-height: 800px; } .mapContainer { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color, #e5dfd5); height: 100%; } .compactList { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; height: 100%; padding-right: 0.375rem; } .compactList::-webkit-scrollbar { width: 6px; } .compactList::-webkit-scrollbar-track { background: var(--bg-secondary, #f3ede4); border-radius: 3px; } .compactList::-webkit-scrollbar-thumb { background: var(--border-color, #e5dfd5); border-radius: 3px; } .compactList::-webkit-scrollbar-thumb:hover { background: var(--text-muted, #8a847a); } /* Compact School Item */ .compactItem { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; background: var(--bg-card, white); border: 1px solid var(--border-color, #e5dfd5); border-radius: 8px; transition: all 0.2s ease; } .compactItem:hover { border-color: var(--accent-coral, #e07256); box-shadow: 0 2px 6px rgba(26, 22, 18, 0.05); } .compactItemContent { flex: 1; min-width: 0; } .compactItemHeader { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.125rem; } .compactItemName { font-weight: 600; font-size: 0.8125rem; color: var(--text-primary, #1a1612); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .compactItemName:hover { color: var(--accent-coral-dark, #b04a2e); } .distanceBadge { flex-shrink: 0; padding: 0.0625rem 0.375rem; font-size: 0.6875rem; font-weight: 600; background: var(--accent-teal, #2d7d7d); color: white; border-radius: 3px; } .compactItemMeta { display: flex; gap: 0.375rem; font-size: 0.6875rem; color: var(--text-secondary, #5c564d); margin-bottom: 0.25rem; } .compactItemMeta span:not(:last-child)::after { content: '·'; margin-left: 0.375rem; color: var(--text-muted, #8a847a); } .compactItemStats { display: flex; gap: 0.75rem; font-size: 0.6875rem; color: var(--text-secondary, #5c564d); } .compactStat strong { color: var(--text-primary, #1a1612); } .compactItemActions { display: flex; flex-direction: column; gap: 0.25rem; flex-shrink: 0; } .sectionHeader { margin-bottom: 1rem; } .sectionHeader h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary, #1a1612); font-family: var(--font-playfair), 'Playfair Display', serif; } /* Decorative coral bar under section headings */ .sectionHeader h2::after { content: ''; display: block; width: 50px; height: 2px; background: var(--accent-coral, #e07256); border-radius: 1px; margin-top: 0.5rem; } .sectionDescription { font-size: 0.9375rem; color: var(--text-secondary, #5c564d); margin: 0; line-height: 1.5; } .schoolList { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; } /* Staggered fade-in for rows */ .schoolList > *:nth-child(1) { animation-delay: 0ms; } .schoolList > *:nth-child(2) { animation-delay: 30ms; } .schoolList > *:nth-child(3) { animation-delay: 60ms; } .schoolList > *:nth-child(4) { animation-delay: 90ms; } .schoolList > *:nth-child(5) { animation-delay: 120ms; } .schoolList > *:nth-child(6) { animation-delay: 150ms; } .schoolList > *:nth-child(7) { animation-delay: 180ms; } .schoolList > *:nth-child(8) { animation-delay: 210ms; } .schoolList > *:nth-child(9) { animation-delay: 240ms; } .schoolList > *:nth-child(n+10) { animation-delay: 270ms; } .emptyState { text-align: center; padding: 2.5rem 1.5rem; background: var(--bg-card, white); border: 1px solid var(--border-color, #e5dfd5); border-radius: 10px; } .emptyStateTitle { font-size: 1.25rem; font-weight: 600; color: var(--text-primary, #1a1612); margin-bottom: 0.375rem; font-family: var(--font-playfair), 'Playfair Display', serif; } .emptyStateDescription { font-size: 0.9375rem; color: var(--text-secondary, #5c564d); max-width: 380px; margin: 0 auto; } @media (max-width: 768px) { .resultsHeader { flex-direction: column; align-items: flex-start; } .resultsHeaderActions { width: 100%; justify-content: space-between; } .viewToggle { justify-content: center; flex-shrink: 0; } /* The sort