/* Global background and font */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  /* Soft sky gradient background */
  background: linear-gradient(to bottom right, #cce0ff, #f7fbff);
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: #004080;
}

header p {
  margin-top: 5px;
  font-size: 1.1em;
  color: #333;
}

/* Flex layout: search left, map right */
.main-layout {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

/* Search panel */
.search-panel {
  flex: 1;          /* ~30% width */
  max-width: 30%;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Map panel */
.map-panel {
  flex: 2;          /* ~70% width */
}

#map {
  height: 500px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Tabs */
.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-button {
  flex: 1;
  padding: 10px;
  background: #eee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tab-button:hover {
  background: #ddd;
}

.tab-button.active {
  background: #004080;
  color: white;
}

/* Forms */
.search-form {
  display: none;
}

.search-form.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #004080;
}

input, select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #004080;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background: #0066cc;
}

/* Results section */
.results-section {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.flights-table {
  width: 100%;
  border-collapse: collapse;
}

.flights-table th,
.flights-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.flights-table th {
  background: #f0f0f0;
}

.status-active {
  color: green;
  font-weight: bold;
}

.status-cancelled {
  color: red;
  font-weight: bold;
}

.status-delayed {
  color: orange;
  font-weight: bold;
}

.loading {
  text-align: center;
}

.hidden {
  display: none;
}
