/* ============================================
   FIND COLLEGES - COMPLETE STYLES
   Unified CSS with all map/marker functionality
   ============================================ */

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Hide old navigation in AI mode */
.horizontal-nav {
    display: none !important;
}

/* ============================================
   MAIN CONTAINER LAYOUT
   ============================================ */

.ai-map-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* ============================================
   LEFT PANEL - CHAT (FIXED LAYOUT)
   ============================================ */

.ai-chat-panel {
    width: 400px;
    min-width: 350px;
    max-width: 500px;
    background: #ffffff;
    border-right: 2px solid #e5e7eb;
    display: flex !important;
    flex-direction: column !important;
    z-index: 100;
    height: 100vh !important;
    flex-shrink: 0;
    overflow: hidden !important;
}

/* Scrollable top section (hero + quick search) */
.chat-panel-scrollable {
    flex: 0 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 60vh;
}

.chat-panel-scrollable::-webkit-scrollbar {
    width: 6px;
}

.chat-panel-scrollable::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.chat-panel-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Chat messages - grows to fill space */
.chat-messages {
    flex: 1 1 auto !important;
    overflow-y: auto;
    padding: 15px;
    min-height: 80px;
    background: #f9fafb;
    position: relative;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* EMPTY CHAT PROMPT - ROBOT */
.empty-chat-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

.empty-chat-prompt.hidden {
    display: none !important;
}

.empty-chat-robot {
    font-size: 72px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.empty-chat-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.empty-chat-subtext {
    font-size: 14px;
    color: #9ca3af;
    max-width: 250px;
    line-height: 1.5;
}

/* Chat input area - ALWAYS at bottom - CLEAN DESIGN */
.chat-input-area {
    flex: 0 0 auto !important;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    resize: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s;
    min-height: 50px;
}

#chatInput:focus {
    outline: none;
    border-color: #667eea;
}

#sendBtn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    align-self: stretch;
}

#sendBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#sendBtn:active {
    transform: translateY(0);
}

/* NO chat-header inside input area */
.chat-input-area .chat-header {
    display: none !important;
}

/* ============================================
   COLLEGE HERO SECTION
   ============================================ */

.college-hero {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    padding: 20px;
    margin: 15px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.college-hero-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.college-hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.college-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-stat-number {
    font-size: 24px;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 4px;
}

/* ============================================
   QUICK SEARCH CARDS
   ============================================ */

.quick-search-section {
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    margin: 15px;
}

.quick-search-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-search-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-search-card {
    background: white;
    border: 2px solid #dbeafe;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-search-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.quick-search-card-title {
    font-weight: 600;
    color: #1e40af;
    font-size: 13px;
    margin-bottom: 4px;
}

.quick-search-card-query {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

/* ============================================
   HIDE OLD TOP20 ELEMENTS - AGGRESSIVE
   ============================================ */

/* Hide by class */
.chat-greeting,
.status-badge,
.connection-status,
.edition-badge,
.ai-greeting,
[class*="greeting"],
.demo-query-btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

/* Hide first child in chat messages (usually the greeting) */
.chat-messages > div:first-child,
.chat-messages > .message:first-child {
    display: none !important;
}

/* Hide by text content if it contains old Top20 phrases */
.message:contains("Hi! I'm your AI assistant"),
.message:contains("Ask me anything about Top 20"),
.message:contains("Live AI Backend"),
.message:contains("USA Edition") {
    display: none !important;
}

/* ============================================
   RIGHT PANEL - MAP & RANKINGS
   ============================================ */

.map-panel {
    flex: 1;
    position: relative;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Map takes full space */
.map-panel .map-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.map-panel #map {
    width: 100%;
    height: 100%;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* ============================================
   RANKING SECTION (Right Overlay)
   ============================================ */

.map-panel .ranking-section {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 350px;
    background: white;
    overflow-y: auto;
    border-left: 2px solid #e5e7eb;
    z-index: 10;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.ranking-header {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.ranking-header h2 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 20px;
}

.ranking-subtitle {
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-size: 14px;
    color: white;
}

.current-bundle-display {
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
}

.ranking-tiles {
    padding: 15px;
}

/* ============================================
   RANKING TILES
   ============================================ */

.ranking-tile {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ranking-tile:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rank-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.location-info {
    flex: 1;
}

.location-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #1f2937;
}

.location-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   MAPBOX MARKERS
   ============================================ */

.mapboxgl-marker {
    z-index: 1000 !important;
}

.ranking-marker {
    cursor: pointer !important;
}

/* ============================================
   ABOUT BUTTON & MODAL
   ============================================ */

.ranking-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #f9fafb;
}

.about-button,
.floating-about-btn {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.about-button:hover,
.floating-about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.floating-about-btn {
    position: absolute;
    bottom: 90px;
    right: 20px;
    border-radius: 12px;
    padding: 12px 20px;
    z-index: 1000;
}

.about-icon {
    font-size: 16px;
}

/* About Modal */
.about-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-modal-overlay.show {
    display: flex !important;
    opacity: 1;
}

.about-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 100000;
    pointer-events: auto;
}

.about-modal-overlay.show .about-modal-content {
    transform: scale(1);
}

.about-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
}

.about-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.about-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.about-modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.about-modal-body::-webkit-scrollbar {
    width: 8px;
}

.about-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.about-modal-body::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.about-tagline {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.about-tagline h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.tagline-sub {
    font-size: 16px;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.about-section {
    margin-bottom: 24px;
}

.about-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.about-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 12px 0;
}

.about-section ul {
    margin: 12px 0;
    padding-left: 20px;
}

.about-section li {
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 8px;
}

.about-section li strong {
    color: #1f2937;
    font-weight: 600;
}

.data-note,
.vision-note {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
}

.feedback-email {
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
}

.feedback-email a {
    color: #3b82f6;
    text-decoration: none;
}

.feedback-email a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.about-section a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.about-legal {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    margin-top: 28px;
}

.about-legal a {
    font-size: 13px;
    margin: 0 8px;
}

.copyright {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
}

/* FAQ Item Styling */
.faq-item {
    background: #F8FAFC;
    border-left: 3px solid #3B82F6;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    background: #EFF6FF;
    border-left-color: #2563EB;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.faq-item strong {
    color: #1E40AF;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.faq-item p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.faq-item a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Future List Styling */
.future-list {
    margin: 12px 0;
    padding-left: 20px;
    line-height: 1.8;
}

.future-list li {
    margin-bottom: 8px;
    color: #475569;
}

.future-list strong {
    color: #1E40AF;
}

/* Data Sources List */
.data-sources-list {
    margin: 12px 0;
    padding-left: 20px;
    line-height: 1.8;
}

.data-sources-list li {
    margin-bottom: 8px;
    color: #475569;
}

.data-sources-list strong {
    color: #1E40AF;
}

/* About Section Spacing */
.about-section {
    margin-bottom: 24px;
}

.about-section h4 {
    color: #1E293B;
    margin-bottom: 12px;
    font-size: 16px;
}

.about-section p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Tagline Styling */
.about-tagline {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 12px;
    border: 1px solid #93C5FD;
}

.about-tagline h3 {
    color: #1E40AF;
    margin: 0 0 8px 0;
    font-size: 20px;
}

.tagline-sub {
    color: #64748B;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Data Note */
.data-note {
    font-size: 12px;
    color: #64748B;
    font-style: italic;
    margin-top: 12px;
}

/* Legal Section */
.about-legal {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.about-legal a {
    color: #3B82F6;
    text-decoration: none;
    font-size: 13px;
}

.about-legal a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 12px;
    font-size: 12px;
    color: #94A3B8;
}
/* ============================================
   DATA SOURCE BADGES (Updated for Colleges)
   ============================================ */

/* US Department of Education badge */
span[title*="Department of Education"],
span[title*="College Scorecard"],
span[title*="DOE"] {
    display: inline-block !important;
    background: #1e40af !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* US Census badge */
span[title*="US Census"],
span[title*="Census Bureau"] {
    display: inline-block !important;
    background: #059669 !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* Fallback official badge */
.official-badge {
    display: inline-block !important;
    background: #3b82f6 !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* AI badge */
.ai-badge {
    display: inline-block !important;
    background: #f59e0b !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* ============================================
   FLOATING COPYRIGHT
   ============================================ */

.floating-copyright {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 500;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.error-toast,
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.error-toast.show,
.success-toast.show {
    display: block;
}

.error-toast {
    border-left: 4px solid #ef4444;
}

.success-toast {
    border-left: 4px solid #10b981;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon,
.success-icon {
    font-size: 24px;
}

.error-message,
.success-message {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
}

.error-close,
.success-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 24px;
    height: 24px;
}

.error-close:hover,
.success-close:hover {
    color: #1f2937;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   MESSAGE ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}
/* ====================================================================
   SORTING CONTROLS STYLES
   Horizontal radio button layout with hover effects
   ==================================================================== */
/* ====================================================================
   CUTE PILL-STYLE SORTING CONTROLS
   Compact, colorful, modern design
   ==================================================================== */

.ranking-header {
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sort-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-pill {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hide the actual radio button */
.sort-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style the pill content */
.sort-pill .pill-content {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Hover effect */
.sort-pill:hover .pill-content {
    border-color: #c7d2fe;
    background: #f5f8ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

/* Active/Checked state */
.sort-pill input[type="radio"]:checked ~ .pill-content {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-color: #6366f1;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

/* Emoji gets slightly bigger when active */
.sort-pill input[type="radio"]:checked ~ .pill-content {
    font-size: 14px;
}

/* Focus state for accessibility */
.sort-pill input[type="radio"]:focus ~ .pill-content {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}






/* ============================================
   MOBILE RESPONSIVE FIXES - SIMPLIFIED & AGGRESSIVE
   Replace the previous mobile section with this
   ============================================ */

/* ============================================
   MOBILE: PHONES & TABLETS (< 768px)
   ============================================ */

@media screen and (max-width: 768px) {
    
    /* ====================
       FORCE HEIGHT RESET
       ==================== */
    
    html, body {
        height: 100% !important;
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* ====================
       CONTAINER: Vertical Stack
       ==================== */
    
    .ai-map-container {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        width: 100vw !important;
        overflow: hidden !important;
    }
    
    /* ====================
       CHAT PANEL: Top 60%
       ==================== */
    
    .ai-chat-panel {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 60vh !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
        flex: 0 0 60vh !important;
        border-right: none !important;
        border-bottom: 2px solid #e5e7eb !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Scrollable section */
    .chat-panel-scrollable {
        flex: 0 0 auto !important;
        max-height: 25vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    /* Chat messages */
    .chat-messages {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        min-height: 100px !important;
    }
    
    /* Chat input */
    .chat-input-area {
        flex: 0 0 auto !important;
        padding: 10px !important;
    }
    
    /* ====================
       MAP PANEL: Bottom 40%
       ==================== */
    
    .map-panel {
        width: 100% !important;
        height: 40vh !important;
        min-height: 40vh !important;
        max-height: 40vh !important;
        flex: 0 0 40vh !important;
        position: relative !important;
        display: block !important;
        overflow: hidden !important;
    }
    
    /* Map section */
    .map-panel .map-section {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
    
    /* Map itself */
    .map-panel #map,
    #map {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 40vh !important;
    }
    
    /* ====================
       RANKING SECTION: Hidden by Default, Toggle to Show
       ==================== */
    
    .map-panel .ranking-section {
        display: none !important; /* Hide by default on mobile */
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 50vh !important;
        max-height: 50vh !important;
        background: white !important;
        border-top: 2px solid #e5e7eb !important;
        border-radius: 16px 16px 0 0 !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15) !important;
        z-index: 2000 !important;
        overflow-y: auto !important;
    }
    
    /* Show ranking section when it has content */
    .map-panel .ranking-section:not(:empty) {
        display: block !important;
    }
    
    /* ====================
       HERO SECTION: Compact
       ==================== */
    
    .college-hero {
        padding: 12px 15px !important;
    }
    
    .college-hero-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    .college-hero-subtitle {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    
    .college-hero-stats {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    
    .hero-stat {
        flex: 1 1 30% !important;
        min-width: 100px !important;
        padding: 8px !important;
    }
    
    .hero-stat-number {
        font-size: 20px !important;
    }
    
    .hero-stat-label {
        font-size: 11px !important;
    }
    
    /* ====================
       QUICK SEARCH: Compact
       ==================== */
    
    .quick-search-section {
        padding: 10px 15px !important;
    }
    
    .quick-search-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    
    .quick-search-card {
        padding: 10px !important;
    }
    
    .quick-search-card-title {
        font-size: 12px !important;
    }
    
    .quick-search-card-query {
        font-size: 11px !important;
    }
    
    /* ====================
       CHAT INPUT: Touch-Friendly
       ==================== */
    
    .chat-input-area textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 10px !important;
        min-height: 44px !important;
    }
    
    .chat-input-area button {
        min-width: 60px !important;
        min-height: 44px !important;
        font-size: 15px !important;
    }
    
    /* ====================
       EMPTY CHAT PROMPT
       ==================== */
    
    .empty-chat-robot {
        font-size: 50px !important;
        margin-bottom: 12px !important;
    }
    
    .empty-chat-text {
        font-size: 18px !important;
    }
    
    .empty-chat-subtext {
        font-size: 13px !important;
        max-width: 220px !important;
    }
    
    /* ====================
       BETA BADGE: Smaller
       ==================== */
    
    .beta-badge {
        top: 8px !important;
        right: 8px !important;
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
    
    /* ====================
       RANKING TILES: Compact
       ==================== */
    
    .ranking-header {
        padding: 12px 15px !important;
    }
    
    .ranking-header h2 {
        font-size: 16px !important;
    }
    
    .ranking-tiles {
        padding: 10px !important;
    }
    
    .ranking-tile {
        padding: 10px !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .rank-number {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .location-info h3 {
        font-size: 14px !important;
    }
    
    .location-info p {
        font-size: 11px !important;
    }
    
    /* ====================
       ABOUT BUTTON: Bottom Left
       ==================== */
    
    /* If there's an about button floating, fix it */
    button:contains("About"),
    [id*="about"],
    [class*="about-btn"] {
        position: fixed !important;
        bottom: 10px !important;
        left: 10px !important;
        z-index: 100 !important;
    }
    
    /* ====================
       COPYRIGHT: Bottom Center
       ==================== */
    
    .floating-copyright {
        position: fixed !important;
        bottom: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 10px !important;
        z-index: 50 !important;
    }
}

/* ============================================
   SMALL PHONES (< 480px)
   ============================================ */

@media screen and (max-width: 480px) {
    
    .college-hero-title {
        font-size: 16px !important;
    }
    
    .college-hero-subtitle {
        font-size: 11px !important;
    }
    
    .hero-stat {
        min-width: 90px !important;
    }
    
    .hero-stat-number {
        font-size: 18px !important;
    }
}

/* ============================================
   LANDSCAPE MODE
   ============================================ */

@media screen and (max-width: 768px) and (orientation: landscape) {
    
    .ai-chat-panel {
        width: 45% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-right: 2px solid #e5e7eb !important;
        border-bottom: none !important;
    }
    
    .ai-map-container {
        flex-direction: row !important;
    }
    
    .map-panel {
        width: 55% !important;
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .map-panel .ranking-section {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 300px !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border-left: 2px solid #e5e7eb !important;
        border-top: none !important;
    }
}