/* Reset & base layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}

header {
  background: #f8f8f8;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

header .main-nav {
  margin-top: 10px;
  text-align: center;
}
header .main-nav a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 18px;
  color: #1976d2;
  background: #e3f2fd;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}
header .main-nav a:hover, header .main-nav a.active {
  background: #1976d2;
  color: #fff;
}

/* Hero Section */
.hero {
  max-width: 800px;
  margin: 30px auto;
  text-align: center;
  line-height: 1.5;
}

.hero h2 {
  font-size: 2rem;
  color: #1e88e5;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #444;
}

/* Selector (One Way / Round Trip) */
.selector {
  text-align: center;
  margin: 20px 0;
}

.sel {
  padding: 10px 20px;
  margin: 0 5px;
  border: 1px solid #888;
  background: none;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 600;
}

.sel.active {
  background: #ff5c5c;
  color: #fff;
  border-color: #ff5c5c;
}

/* Form Container */
.search-form {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
}

/* Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Form Fields */
.field {
  display: flex;
  flex-direction: column;
}

.field label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.field select,
.field input[type="text"],
.field input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fefefe;
  transition: border 0.3s;
}



input:focus {
  border-color: #1e88e5;
  outline: none;
}

/* Hidden layout spacer */
.invisible-field {
  visibility: hidden;
}
/*Price Slach*/
  .price-display {
    margin-top: 10px;
    font-size: 1.1rem;
  }

  .old-price {
    color: red;
    text-decoration: line-through;
    font-weight: 500;
  }

  .new-price {
    color: green;
    font-weight: bold;
  }
/*ends*/

  .flight-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background-color: #fff;
  will-change: transform, box-shadow;
}

.flight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}


/* Submit Button */
.go-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #ff5c5c;
  color: #fff;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

.go-btn:hover {
  background: #e04e4e;
}
/* Full-width submit button */
.full-width {
  grid-column: 1 / -1;
  text-align: center;
}

.full-width .go-btn {
  width: 50%;
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .full-width {
    grid-column: span 1;
  }
}


/* Footer */
footer {
  margin: 40px 0;
  text-align: center;
  font-size: 0.85em;
  color: #777;
}

.footer-nav a {
  color: #777;
  text-decoration: none;
  margin: 0 5px;
}

.footer-nav a:hover {
  text-decoration: underline;
}
/*  */

/* Fix Select2 width & alignment issues */
.select2-container {
  width: 100% !important;
}

.select2-selection--single {
  height: 42px !important;
  padding: 5px 10px;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fefefe;
  display: flex;
  align-items: center;
}

.select2-selection__rendered {
  line-height: normal !important;
  padding-left: 0 !important;
}

.select2-selection__arrow {
  height: 100% !important;
}
