@charset "UTF-8";
/* Styles for the search components */
.flight-search-bar-container {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 25px;
  padding: 12px 16px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  margin-bottom: 20px;
  width: 100%;
}

.flight-search-bar-container:hover {
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.flight-search-bar-route {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ddd;
  font-family: sans-serif;
  font-size: 12px;
  pointer-events: none;
  width: 100%;
}

.flight-search-bar-location {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.flight-search-bar-label {
  color: #fff;
  font-weight: 500;
}

.flight-search-bar-code {
  color: #aaa;
  font-weight: 400;
}

.flight-search-bar-arrow {
  color: #aaa;
  font-size: 18px; /* Behält die erste Definition, da die zweite sehr ähnlich war */
  pointer-events: none;
}

.flight-search-bar-button {
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  width: 36px;
  height: 36px;
  margin-left: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  pointer-events: none;
}

.flight-search {
  color: white;
  padding: 20px;
  position: relative;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.flight-search.hidden {
  display: none;
}

.flight-search-topbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.flight-search-dropdown {
  background: transparent;
  border: 1px solid #555;
  border-radius: 6px;
  color: #ccc;
  cursor: pointer;
  padding: 8px 12px;
  flex-grow: 1;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.flight-search-dropdown:hover {
  background-color: #2a2a2a;
  border-color: #777;
}

.flight-search-field {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.flight-search-field input[type=text] {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 16px;
  outline: none;
  flex-grow: 1;
  padding-left: 5px;
}

.flight-search-field input[type=text]::placeholder {
  color: #777;
}

.flight-search-label {
  display: block;
  color: #888;
  font-size: 12px;
  margin-bottom: 4px;
}

.flight-search-icon {
  color: #aaa;
  font-size: 20px;
}

.flight-search-button {
  margin-top: 16px;
  width: 100%;
  background-color: #007bff;
  border: none;
  border-radius: 25px;
  color: white;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.flight-search-button:hover {
  background-color: #0056b3;
}

.flight-search-popup {
  display: none;
  position: absolute;
  background-color: #282828;
  color: white;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flight-search-popup div {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.flight-search-popup div:hover {
  background-color: #3f51b5;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #2a2a2a;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 999;
  color: #eee;
  text-align: left;
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: #3f51b5;
  color: white;
}

.autocomplete-item small {
  display: block;
  color: #aaa;
  font-size: 12px;
}

.autocomplete-item:hover small {
  color: #ddd;
}

/* Styles for the flight result cards */
.flight-card {
  background-color: #2c2c2c;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 16px;
  color: white;
  font-family: sans-serif;
  margin-bottom: 20px;
}

.flight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flight-card-logo {
  padding: 3px;
  width: 50px;
  height: 50px; /* Höhe von 'auto' auf festen Wert geändert, um Konsistenz zu gewährleisten */
  object-fit: contain;
  margin-right: 12px;
  border-radius: 8px;
}

.flight-card-logo-text {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px white;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  overflow: hidden;
  text-transform: uppercase;
}

.flight-card-times {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flight-price-info {
  max-width: 100px;
}

.flight-card-time {
  font-size: 16px; /* Behält die größere Schriftgröße für bessere Lesbarkeit */
  font-weight: 500;
}

.flight-card-arrow {
  font-size: 26px; /* Behält die größere Schriftgröße */
  margin: 0 6px;
  color: #ccc;
}

.flight-card-airports {
  font-size: 14px;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  max-width: 130px;
}

.flight-card-miles {
  font-size: 10pt;
  font-weight: bold;
  text-align: right;
}

.flight-card-tax-container {
  font-size: 12px;
  font-weight: 400;
  color: #bbb;
  text-align: right;
}

.flight-card-details {
  display: flex;
  align-items: center;
  gap: 10px; /* Behält den größeren Abstand */
  margin-top: 12px;
  font-size: 14px;
  color: #bbb;
}

.flight-card-warning {
  color: #f66;
}

.flight-transition-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 10pt;
  font-weight: bold;
}

.class-name {
  font-size: 8pt;
}

.flight-transfer-button {
  margin-left: auto;
  background-color: #007bff;
  border-color: #007bff;
  text-decoration: none;
  width: 75px;
  color: white;
  padding: 4px 10px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.flight-transfer-button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.flight-book-button {
  margin-left: auto;
  color: white;
  width: 75px;
  padding: 4px 10px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

#flight-results-container .flight-alert {
  background-color: #2a2a2a;
  border: 1px solid #444;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* Hinzugefügte Klassen aus dem zweiten (redundanten) Block */
.flight-card-price {
  font-size: 18px;
  font-weight: bold;
}

.flight-card-currency {
  font-size: 12px;
  font-weight: lighter;
  text-align: right;
}

.flight-card-tax {
  font-size: 8px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-icon {
  font-size: 14px;
  color: #aaa;
}

/* Grundlegendes Styling für den Kalender-Wrapper */
.calendar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.calendar-content {
  background: white;
  color: #000000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px;
  width: 100%;
  max-width: 400px;
  min-height: 500px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #e31bd4;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.calendar-day, .calendar-weekday {
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.calendar-weekday {
  font-weight: bold;
  aspect-ratio: auto;
}

.calendar-day {
  cursor: pointer;
  border-radius: 50%;
}

.calendar-day:not(.empty):not(.disabled):hover {
  background-color: #f0f0f0;
}

.calendar-day.selected {
  background-color: #e31bd4;
  color: white;
}

.calendar-day.disabled {
  cursor: default;
  color: #ccc;
  text-decoration: line-through;
}

.calendar-day.empty {
  cursor: default;
  background-color: transparent;
}

/* Hauptcontainer für die Routen-Info-Karte */
.route-info-card {
  padding: 20px;
}

/* Header-Bereich mit dem Titel */
.route-info-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.route-info-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  margin: 0;
  color: #cfcfcf;
}

/* Beschreibungstext */
.route-info-description {
  font-size: 0.9rem; /* 14px */
  color: #6c757d;
  margin-bottom: 20px;
}

/* Container für die verschiedenen Klassen-Boxen */
.route-info-classes-container {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  text-align: center;
  flex-wrap: wrap; /* Wichtig für mobile Ansichten */
}

/* Styling für eine einzelne Meilen-Box (Economy, Business, etc.) */
.route-info-class-item {
  border-radius: 8px;
  padding: 15px;
  flex: 1; /* Sorgt dafür, dass die Boxen den Platz gleichmäßig aufteilen */
  min-width: 150px; /* Mindestbreite für kleinere Bildschirme */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.route-info-class-name {
  font-weight: 500;
  font-size: 1rem; /* 16px */
  color: #495057;
}

.route-info-miles {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #ffffff; /* Eine Akzentfarbe */
  margin: 4px 0;
}

.route-info-label {
  font-size: 0.8rem; /* 12px */
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer-Bereich für den Hinweis */
.route-info-footer {
  margin-top: 16px;
  padding-top: 12px;
  text-align: center;
  font-size: 0.8rem; /* 12px */
  color: #6c757d;
}

.hidden-by-script {
  display: none !important;
}

.flight-search-inputs-wrapper {
  position: relative;
}

.flight-search-inputs-wrapper .flight-search-field {
  margin-bottom: 1rem;
}

.swap-airports-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f0f2f5;
  border: 1px solid #dcdfe3;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: none; /* Hide by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.2s, transform 0.2s;
}

.swap-airports-button:hover {
  background-color: #e4e6e9;
}

.swap-airports-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.swap-airports-button .material-icons {
  font-size: 20px;
  color: #606770;
}

/* === GRUNDGERÜST UND HINTERGRUND === */
#flight-loading-animation {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin: 20px auto;
  border: 1px solid #b0bec5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Container for all stacked map images */
.flight-stacked-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#world-map-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* Base map layer */
}

/* Styles for individual continent overlays */
.flight-continent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* <-- Set to 1 to make all visible for testing */
  /* Removed transition as we're not animating opacity yet */
  z-index: 2; /* Above the base map, below the plane */
}

/* === FLUGZEUG UND BEWEGUNG === */
.flight-animation-plane-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  animation: flight-animation-fly-over-map 45s linear infinite;
}

.flight-animation-flight-svg {
  width: 40px;
  height: auto;
  transform: rotate(0deg);
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

@keyframes flight-animation-fly-over-map {
  0% {
    transform: translate(-50%, 0%) rotate(-45deg);
  }
  25% {
    transform: translate(-20%, -20%) rotate(-20deg);
  }
  50% {
    transform: translate(0%, -30%) rotate(0deg);
  }
  75% {
    transform: translate(20%, -20%) rotate(20deg);
  }
  100% {
    transform: translate(50%, 0%) rotate(45deg);
  }
}
/* === TEXT === */
.flight-animation-loading-text {
  position: absolute;
  top: 15px;
  width: 100%;
  text-align: center;
  font-family: sans-serif;
  color: #37474f;
  font-size: 1.1em;
  font-weight: bold;
  animation: flight-animation-fadeInOut 3s infinite;
  z-index: 20;
  text-shadow: #000 3px 3px 3px;
}

@keyframes flight-animation-fadeInOut {
  0%, 100% {
    opacity: 1;
    color: rgba(255, 255, 255, 0.7);
  }
  50% {
    opacity: 1;
    color: #ffffff;
  }
}
/* =============================================== */
/* ==           ANIMATION KEYFRAMES             == */
/* =============================================== */
/* Eine simple "Fade-In-Up"-Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Eine simple "Fade-Out"-Animation */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* =============================================== */
/* ==      ANIMATIONEN FÜR DIE FLIGHT-CARDS     == */
/* =============================================== */
/* Jede neue flight-card, die im DOM erscheint,
  bekommt automatisch diese Animation.
*/
.flight-card, .flight-search-bar-container, .flight-loading-animation {
  /* Wir starten unsichtbar, damit die Animation sauber beginnt */
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Bonus: Staffelung der Animation für einen eleganteren Effekt.
  Jede nachfolgende Karte erscheint mit einer leichten Verzögerung.
*/
.flight-card:nth-child(1) {
  animation-delay: 0.05s;
}

.flight-card:nth-child(2) {
  animation-delay: 0.1s;
}

.flight-card:nth-child(3) {
  animation-delay: 0.15s;
}

.flight-card:nth-child(4) {
  animation-delay: 0.2s;
}

.flight-card:nth-child(5) {
  animation-delay: 0.25s;
}

/* ...kann bei Bedarf erweitert werden */
/* =============================================== */
/* ==      ANIMATIONEN FÜR DIE SUCHE            == */
/* =============================================== */
/* Diese Klasse wird per JavaScript hinzugefügt,
  um die Ausblend-Animation zu starten.
*/
.is-hiding {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Diese Klasse wird per JavaScript entfernt,
  um die Einblend-Animation zu starten.
*/
#flight-search {
  animation: fadeOut 0.3s ease-out forwards;
  animation-direction: reverse; /* Spielt die Animation rückwärts ab (Fade-In) */
}

.back-to-results-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-weight: 500;
  color: #75e5ff; /* Blau, passend zum Design */
  background-color: #333333; /* Helles Blau als Hintergrund */
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.back-to-results-button:hover {
  background-color: #000000;
}

/* Deaktiviert Klick-Events und ändert das Aussehen für die
   einzeln dargestellte, aktive flight-card */
.flight-card.is-disabled {
  cursor: default;
  /* Optional: leichte Transparenz, um den inaktiven Zustand zu zeigen */
  /* opacity: 0.8; */
}

/*# sourceMappingURL=search.css.map */
