/* Basic styling for a full-screen map */
html, body, #map {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.info-panel {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(38, 38, 38, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-panel h1 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.info-panel p {
    margin: 0;
    font-size: 0.9em;
    color: #e0e0e0;
}

.satellite-selector {
    margin: 10px 0;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
}

.satellite-selector option {
    background: #262626;
    color: #fff;
}

.typeahead-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.satellite-search {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.satellite-search::placeholder {
    color: #bbb;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(48, 48, 48, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9em;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-item.active {
    background: rgba(0, 150, 255, 0.2);
}

.location-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(38, 38, 38, 0.85);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 250px;
    max-width: 300px;
}

.location-panel h2 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #4CAF50;
}

.location-panel h3 {
    margin: 15px 0 8px 0;
    font-size: 1em;
    color: #FFC107;
}

.location-panel p {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #e0e0e0;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .info-panel {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: none;
    }
    
    .location-panel {
        top: auto;
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        width: auto;
    }
    
    .info-panel h1 {
        font-size: 1.1em;
    }
    
    .location-panel h2 {
        font-size: 1em;
    }
    
    .location-panel h3 {
        font-size: 0.95em;
    }
    
    .info-panel p,
    .location-panel p {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .info-panel,
    .location-panel {
        padding: 12px 15px;
    }
    
    .info-panel h1 {
        font-size: 1em;
    }
    
    .location-panel h2 {
        font-size: 0.95em;
    }
    
    .location-panel h3 {
        font-size: 0.9em;
    }
    
    .info-panel p,
    .location-panel p {
        font-size: 0.8em;
    }
    
    .satellite-search {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}
