* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.navbar-brand-item {
  width: 210px;
  height: auto;  /* Adjust height to maintain aspect ratio */
}

.logo img {
  max-width: 170px; /* Adjust the width to your preferred size */
  height: auto; /* Maintains aspect ratio */
}

body {
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #154c79;
  color: white;
  padding: 1em 0;
}

.header-container {
  display: flex;
  padding-right: 3em;
  justify-content: space-between;
  padding-left: 2em;

}

h1 {
  font-size: 2.0em;
  letter-spacing: 1px;
}

h3 {
  font-size: 1.0em;
  letter-spacing: 0.80px;
  color: #000000;
}

h4 {
  font-size: 0.7em;
  letter-spacing: 0.80px;
  color: #2a2a2a;
}

h6 {
  font-size: 0.7em;
  letter-spacing: 0.80px;
  color: #ffffff;
}

h7 {
  font-size: 0.7em;
  letter-spacing: 0.80px;
  color: #ffffff;
}

/* Pill Container Styling */
.pill-container {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 1em 0;
  margin-bottom: 1.5em;
  color: #ffffff00;
}

.pill {
  background-color: #000000;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 50px;
  padding: 0.5em 1.5em;
  cursor: pointer;
  font-size: 1em;
  display: flex; /* Aligns icon and text horizontally */
  align-items: center; /* Vertically centers icon and text */
  gap: 0.5em; /* Adds space between icon and text */
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.pill.active {
  background-color: #154c79;
  color: white;
}

.pill-icon {
  width: 25px; /* Adjust the size of the icon */
  height: 25px;
  fill: #ffffff; /* Ensures the icon color matches the text */
}

.pill:hover {
  background-color: #154c79;
  color: white;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4em 2em;
  background-color: #154c79;
  color: white;
}

.search-container {
  width: 100%;
  max-width: 1200px;
  padding: 2em;
  background-color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  text-align: center;
  margin: 0 auto;
  
  
}

.search-container h2 {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 1.5em;
  color: #000000;
}

.search-container h3 {
  font-size: 1.3em;
  margin-bottom: 1.5em;
  color: #000000;
}

.search-form {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
  
}

.input-group {
  flex: 1;
  min-width: 220px;
  border-radius: 25px;
}

.input-field {
  width: 100%;
  padding: 0.75em;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
  border-radius: 25px
}

.input-field:focus {
  border-color: #154c79;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(21, 76, 121, 0.2);
}

.search-btn {
  flex: 1;
  display: inline-block;
  padding: 0.75em;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  display: flex; /* Aligns icon and text horizontally */
  align-items: center; /* Vertically centers icon and text */
  gap: 0.5em; /* Adds space between icon and text */
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.search-btn i {
  margin-right: 0.5em;
}

.search-btn:hover {
  background-color: #51585e;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Promo Section */
.promo-section {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}

.promo-image-container {
  position: relative;
  width: 75%; /* Control the width of the image container */
  height: 60vh; /* Set a height for the container to display 60% of the image */
  border-radius: 25px; /* Rounded corners */
  overflow: hidden; /* Ensure the image is cropped */
  box-shadow: 0 0 0px rgba(0, 0, 0, 0.15); /* A prominent shadow for a modern look */
}

.promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container while maintaining its aspect ratio */
  object-position: top; /* Crop the bottom part, showing the top 60% */
  border-radius: 25px; /* Ensures the image itself has rounded corners */
}

.promo-text-overlay {
  position: absolute;
  top: 75%;
  left: 75%;
  transform: translate(-50%, -50%);
  color: #000000;
  background-color: rgba(0, 0, 0, 0);
  padding: 1em 2em;
  border-radius: 10px;
  font-size: 1.8em; /* Slightly larger text for more prominence */
  text-align: center;
  width: 80%; /* Ensure the text doesn't stretch too wide */
}

/* Destination Section */
.destination-highlights {
  padding: 2em;
  text-align: center;
}

.destination img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin: 1em;
}

.destination p {
  margin-top: 0.5em;
  font-size: 1.1em;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em 0;
}

/* FAQ Section */
.faq-section {
  width: 75%;
  margin: 3em auto;
  background-color: #f4f4f4;
  padding: 2em;
  border-radius: 10px;
}

.faq-section h3 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1.5em;
  color: #333;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.faq-item {
  cursor: pointer;
  padding: 1em;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #f9f9f9;
}

.faq-question {
  font-size: 1.3em;
  font-weight: 500;
  color: #000000;
  display: flex;
  justify-content: space-between;
}

.faq-answer {
  display: none;
  font-size: 1em;
  margin-top: 0.5em;
  color: #000000;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ddd;
}

* General Layout Adjustments */
/* General Layout Adjustments */
.hero-section {
  text-align: center;
  padding: 4em 2em;
  background-color: #154c79;
  color: white;
}


/* Search Form Styling */
.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1em;
}

.input-group {
  display: flex;
  align-items: center;
  width: 48%; /* Adjusts the width for two per row */
  background-color: #f9f9f9;
  padding: 0.5em;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.input-group.less-per {
  width: 23%; /* For the smaller date fields */
}

.input-group.less-btn {
  width: 100%; /* Full width for the search button */
  justify-content: center;
}

.input-group i {
  margin-right: 0.5em;
  color: #154c79;
}

.textboxstyle {
  flex: 1;
  border: none;
  background-color: transparent;
  padding: 0.5em;
  font-size: 1em;
  outline: none;
  color: #333;
}

.btn.btn-black.cst-btn {
  background-color: #000; /* Black button */
  border: none;
  color: white;
  padding: 0.75em 2em;
  font-size: 1.0em;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
}

.btn.btn-black.cst-btn:hover {
  background-color: #333; /* Darker black for hover effect */
}

.input-group.less-btn input {
  width: 100%;
  cursor: pointer;
}

/* Style for date input fields */
input[type="date"] {
  font-family: 'Poppins', sans-serif;
  padding: 0.5em;
  border: none;
  background-color: transparent;
  outline: none;
  color: #333;
}

.search-icon {
  width: 30px; /* Adjust the size of the icon */
  height: 30px;
  fill: #00000000; /* Ensures the icon color matches the text */
}

/* Main container for the results and filters */
.results-container {
  display: flex;
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

/* Filter Section */
.filter-section {
  width: 25%;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-right: 2em;
}

.filter-section h3 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.filter-group {
  margin-bottom: 1.5em;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#price-value {
  display: inline-block;
  margin-top: 0.5em;
  font-weight: bold;
}

/* Flight Results Section */
.flight-results {
  width: 75%;
}

.flight-results h3 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.flight-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f4f4f4;
  padding: 1.5em;
  border-radius: 10px;
  margin-bottom: 1em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.flight-details {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.flight-info {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.flight-info span {
  font-size: 1em;
  font-weight: 500;
}

.btn.btn-black {
  background-color: #000;
  border: none;
  color: white;
  padding: 0.75em 2em;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
}

.btn.btn-black:hover {
  background-color: #333;
}

hr {
  border: none;
  height: 1px;
  background-color: #ddd;
}

/* Score Summary */
.score-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 25%;
}

.score-circle {
  width: 40px;  /* Smaller size */
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px; /* Smaller font for smaller circle */
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}
.score-label {
  margin-top: 0.5em;
  font-size: 1.2em;
  font-weight: 700;
}

.score-summary-text {
  margin-top: 0.5em;
  font-size: 0.9em;
  text-align: center;
  color: #555;
}

/* Container for both score and insights explanation */
.explanation-container {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  margin-bottom: 2em;
}

/* Score Explanation Section */
.score-explanation {
  background-color: #f4f4f4;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  width: 50%; /* Takes up half of the container */
}

.score-explanation h3 {
  font-size: 0.9em;
  margin-bottom: 0.5em;
}

.score-explanation p {
  font-size: 0.7em;
  margin-bottom: 1em;
}

.score-legend {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.score-legend li {
  display: flex;
  align-items: center;
  font-size: 0.7em;
}

.score-color {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  border-radius: 50%;
}

/* Flight Insights Section */
.insights-explanation {
  background-color: #56667408;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 40%; /* Slightly less than the score explanation */
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.insights-explanation h3 {
  font-size: 1.3em;
  margin-bottom: 0.5em;
  color: #003832;
}

.insights-explanation p {
  font-size: 0.7em;
  margin-bottom: 1em;
  color: #02004aa7;
}

.insights-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1em;
}

.insights-list li {
  margin-bottom: 0.5em;
  font-size: 0.7em;
  color: #000000;
}

.insights-icons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1em;
  padding: 1em;
}

.insight-item {
  text-align: center;
  fill: #000000; 
}

.insight-item img {
  width: 90px;
  height: 90px;
  margin-bottom: 0.5em;
  fill: #000000; 
}

.insight-item p {
  font-size: 1em;
  color: #00182b;
}

/* Explanation Section */
.chart-explanation {
  padding: 2em;
  text-align: center;
  background-color: #fff;
  margin: 1em auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  max-width: 900px;
}

.chart-explanation h2 {
  margin-bottom: 1em;
  font-size: 1.8em;
}

.chart-explanation ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.chart-explanation ul li {
  margin: 0.5em 0;
}

/* Analytics Container */
.analytics-container {
  max-width: 1200px;
  margin: 2em auto;
  padding: 1.5em;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Chart Cards */
.chart-card {
  margin-bottom: 2em;
  background-color: #ffffff;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
  margin-bottom: 1em;
  font-size: 1.5em;
  text-align: center;
}

.chart-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.summary-section {
  margin-top: 2em;
  background-color: #f0f0f0;
  padding: 1.5em;
  border-radius: 8px;
  text-align: center;
}

.summary-section h3 {
  margin-bottom: 1em;
}

.summary-section ul {
  list-style: none;
  padding: 0;
}

.summary-section ul li {
  margin: 0.5em 0;
  font-size: 1.1em;
}

/* Flight Details Section */
.flight-details {
  background-color: #ffffff;
  padding: 2em;
  margin: 1.5em auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  max-width: 900px;
}

.details-container {
  text-align: center;
}

.details-header h2 {
  font-size: 2em;
  color: #154c79;
  margin-bottom: 1.5em;
}



.details-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5em;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  flex-basis: 100%; /* Make items stack on smaller screens */
}

.detail-icon {
  width: 25px;
  height: 25px;
  margin-right: 1em;
}

.detail-item p {
  font-size: 1.1em;
  color: #333;
  margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
  .detail-item {
      flex-basis: 30%;
  }
}

/* Insights Section */
.insights-section {
  padding: 2.5em;
  background-color: #f9f9f9;
  max-width: 1200px;
  margin: 2em auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
}

.insight-card {
  background-color: #ffffff;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover and Active Styles */
.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Color Palettes for Each Card (with 20% opacity) */
.card-1 { background-color: rgba(21, 76, 121, 0.2); }  /* Subtle blue */
.card-2 { background-color: rgba(30, 129, 176, 0.2); } /* Lighter blue */
.card-3 { background-color: rgba(106, 176, 76, 0.2); } /* Soft green */
.card-4 { background-color: rgba(243, 156, 18, 0.2); } /* Light orange */
.card-5 { background-color: rgba(231, 76, 60, 0.2); }  /* Soft red */
.card-6 { background-color: rgba(241, 196, 15, 0.2); } /* Yellow */
.card-7 { background-color: rgba(142, 68, 173, 0.2); } /* Light purple */
.card-8 { background-color: rgba(46, 204, 113, 0.2); } /* Mint green */
.card-9 { background-color: rgba(52, 152, 219, 0.2); } /* Sky blue */

/* Icon Styling */
.insight-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1em;
  filter: grayscale(50%);
  transition: filter 0.3s ease;
}

.insight-card:hover .insight-icon {
  filter: grayscale(0%);
}

.insight-card p {
  font-size: 1.1em;
  color: #333;
}


/* Chart Styles */
.insight-chart {
  margin-top: 1.5em;
  height: 150px;
  display: none;
}

.insight-card.active .insight-chart {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .insight-cards {
      grid-template-columns: 1fr;
  }
}

/* Explore Deals Section */
.explore-deals {
  padding: 2.5em;
  background-color: #f9f9f9;
  text-align: center;
}

.deals-cards {
  display: flex;
  justify-content: space-around;
  gap: 1.5em;
  flex-wrap: wrap;
}

.deal-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 250px;
  padding: 1.5em;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.deal-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.deal-info h3 {
  font-size: 1.5em;
  margin-top: 1em;
  color: #154c79;
}

.deal-info p {
  font-size: 1.1em;
  color: #333;
}

/* Inspiration Section */
.inspiration-section {
  padding: 3em 2.5em;
  background-color: #fff;
  text-align: center;
}

.category-cards {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 300px;
  padding: 1.5em;
  text-align: left

}

.category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 300px;
  padding: 1.5em;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.category-info h3 {
  font-size: 1.5em;
  margin-top: 1em;
  color: #154c79;
}

.category-info p {
  font-size: 1.1em;
  color: #333;
}

@media (max-width: 768px) {
  .category-cards, .deals-cards {
      flex-direction: column;
      align-items: center;
  }

  .deal-card, .category-card {
      width: 100%;
      max-width: 400px;
  }
}


.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.carousel-container {
  display: flex;
  overflow-x: hidden; /* Ensures no scrollbar is shown */
  scroll-behavior: smooth;
}

.carousel {
  display: flex;
  gap: 15px; /* Space between cards */
  transition: transform 0.5s ease;
}

.deal-card {
  flex: 0 0 auto; /* Prevents the cards from shrinking or growing */
  width: 250px; /* Adjust the card width as needed */
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel {
      gap: 10px; /* Smaller gap on mobile */
  }

  .deal-card {
      width: 200px; /* Smaller card width on mobile */
  }

  .carousel-control {
      font-size: 18px; /* Smaller control buttons */
  }
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1.5em;
  will-change: transform;
}

.deal-card {
  min-width: 250px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5em;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.deal-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.deal-info h3 {
  font-size: 1.5em;
  margin-top: 1em;
  color: #154c79;
}

.deal-info p {
  font-size: 1.1em;
  color: #333;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em 0;
  display: flex;
  align-items: center;
}

.carousel-container {
  overflow-x: hidden;
  flex-grow: 1;
}

.carousel {
  display: flex;
  gap: 1.5em;
  transition: transform 0.5s ease-in-out;
}

/* Carousel Control Buttons */
.carousel-control {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2em;
  padding: 0.5em 1em;
  cursor: pointer;
  z-index: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

/* Deal Cards */
.deal-card {
  min-width: 250px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5em;
  text-align: left;
  flex-shrink: 0;
}

.deal-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.deal-info h3 {
  font-size: 1.5em;
  color: #154c79;
}

.deal-info p {
  font-size: 1.1em;
  color: #333;
}



/* Flexbox Layout for Input Fields */
.search-form {
  display: flex;
  flex-wrap: nowrap; /* Keep everything on one line */
  justify-content: space-between;
  gap: 1em; /* Space between input groups */
  align-items: center;
}

/* Input Group Styling */
.input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #f9f9f9; /* Light background for sleekness */
  border-radius: 8px;
  padding: 0.5em 1em;
  border: 1px solid #ddd;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle inner shadow */
  transition: box-shadow 0.3s ease-in-out;
}

.input-group:hover {
  box-shadow: 0 0 10px rgba(21, 76, 121, 0.15); /* Hover shadow for sleekness */
}

/* Style for Input Fields */
.textboxstyle {
  width: 100%;
  padding: 0.75em;
  border: none;
  font-size: 1.1em;
  background-color: transparent;
  color: #333;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.textboxstyle:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(21, 76, 121, 0.2); /* Focus shadow */
}

/* Search Icon */
.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Submit Button */
.btn {
  padding: 0.75em 2em;
  background-color: #154c79;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #12395d;
}

/* Small Input Group Styling */
.less-per {
  flex: 1;
  min-width: 150px;
}

/* Button Group Styling */
.less-btn {
  flex: 1;
  display: flex;
  justify-content: center;
}

.suggestions {
  display: none;
  position: absolute;
  background-color: white;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

.suggestions.show {
  display: block;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: black;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* General container for filter and results */
.results-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  /* Make sure the container can adjust to screen size */
  flex-wrap: wrap;
}

/* Ensure the filter section takes up 25% of the container's width */
.filter-section {
  width: 25%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Flight results should take the remaining 75% of the width */
.flight-results {
  width: 70%;
  background-color: transparent;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
  .results-container {
      flex-direction: column;
  }

  .filter-section, .flight-results {
      width: 100%;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 15px;
  gap: 20px;
}

/* Styling for the filter section */
.filter-section {
  flex: 1;
  max-width: 280px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
}

.filter-section h5 {
  margin-bottom: 20px;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 20px;
}

.form-check-input {
  margin-right: 10px;
}

/* Styling for flight results */
.flight-results {
  flex: 3;
}

.flight-results h3 {
  margin-bottom: 20px;
}

.flight-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.flight-card .card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.flight-card .divider {
  border-bottom: 1px solid #e0e0e0;
  margin: 15px 0;
}

.flight-card img {
  max-height: auto;
  max-width: 150px;
  margin-bottom: 10px;
}

.flight-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  gap: 20px;
}

.flight-time {
  text-align: center;
  flex: 1;
}

.flight-summary {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flight-summary .price {
  font-size: 1.5em;
  font-weight: bold;
  color: #007bff;
  margin: 10px 0;
}

.flight-summary .score-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#28a745 calc(var(--score) * 1%), #ddd 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

.btn-select {
  display: inline-block;
  padding: 8px 20px;
  background-color: #154c79;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.btn-select:hover {
  background-color: #ffffff;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
      flex-direction: column;
  }

  .filter-section {
      margin-bottom: 20px;
  }

  .flight-card {
      text-align: center;
  }

  .flight-summary {
      margin-bottom: 15px;
  }
}

.filter-section {
  flex: 1;
  max-width: 300px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  max-height: 400px; /* Set a maximum height */
  overflow-y: auto; /* Add scroll if content overflows */
}

/* Insight card style to position the tooltip */
.insight-card {
  position: relative;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 10px;
  overflow: hidden;
}

/* Container for the tooltip */
.tooltip-container {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Style for the question mark icon */
.tooltip-icon {
  width: 16px;
  height: 16px;
}

/* Tooltip text */
.tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1000; /* Make sure it is above other content */
  top: -5px;
  left: 25px;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Tooltip arrow */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #555 transparent transparent;
}

/* Show tooltip on hover */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Change background color on hover */
.insight-card:hover {
  background-color: #cfeafa; /* Light blue color (adjust to match your theme) */
  cursor: pointer; /* Changes cursor to pointer to indicate interactivity */
}


/* Header styling for the section */
.details-header {
  width: 90%; /* Match header width */
  max-width: 1200px; /* Consistent max width with insights section */
  margin-bottom: 20px; /* Space between header and cards */
  text-align: center;
}

/* Container for detail cards */
.detail-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Center all cards */
  width: 90%; /* Consistent width */
  max-width: 1200px; /* Same as insights max width */
}

/* Individual detail card style */
.detail-card {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Card shadow */
  transition: background-color 0.3s ease;
  width: 250px; /* Same width as insight cards */
  text-align: center;
}

/* Hover effect for detail card */
.detail-card:hover {
  background-color: #ffdfdc; /* Light blue hover effect */
  cursor: pointer;
}

/* Style for the detail icons */
.detail-icon {
  width: 32px; /* Same size as icons in insights */
  height: 32px;
  margin-bottom: 10px;
}

/* For larger screens */
@media (min-width: 768px) {
  .item {
      flex: 1 1 45%; /* Two columns on tablets and larger devices */
  }
}

/* For desktops */
@media (min-width: 992px) {
  .item {
      flex: 1 1 30%; /* Three columns on desktops */
  }
}

/* Back Button Styles */
.back-pill {
  display: inline-block;
  background-color: #ffffff; /* Dark color for the background */
  color: #000000; /* White text color */
  padding: 5px 10px; /* Smaller padding to reduce the size */
  font-size: 14px; /* Smaller font size */
  border-radius: 30px; /* Rounded corners */
  text-decoration: none;
  margin-bottom: 15px;
  transition: background-color 0.3s ease; /* Smooth hover transition */
  vertical-align: middle; /* Vertically center the text */
}

.back-pill:hover {
  background-color: #555; /* Darker background on hover */
}

.back-pill-icon {
  width: 15px; /* Adjust icon size to be smaller */
  margin-right: 5px;
  vertical-align: middle; /* Center the icon vertically with the text */
}

/* Main Section Styling */
.login-hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: linear-gradient(120deg, #ffffff, #e8e8e8);
  padding: 20px;
  text-align: center;
  color: #fff;
}

.login-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-container h2 {
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 2em;
  color: #000000;
}

.login-container p {
  font-size: 1.1em;
  color: #000000;
  margin-bottom: 30px;
}

/* Form Styling */
.login-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-form .form-control {
  border-radius: 5px;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #000000;
  width: 100%;
}

.login-input {
  margin-bottom: 15px;
}

.login-btn {
  background-color: #1a497a;
  color: #000000;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #a7bbd0;
}

/* Promo Section */
.login-promo {
  margin-top: 30px;
  text-align: left;
  color: #333;
}

.login-promo h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #053466;
  font-weight: 500;
}

.login-promo ul {
  list-style-type: none;
  padding: 0;
}

.login-promo li {
  font-size: 1.1em;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.login-promo li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #000000;
  font-weight: 600;
}

/* Footer Styling */
footer {
  background-color: #1c1c1c;
  color: #080808;
  text-align: center;
  padding: 15px 0;
}

footer .footer-container .logo img {
  height: 40px;
}

footer p {
  margin: 10px 0 0;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
      padding: 20px;
  }

  .login-btn {
      font-size: 1em;
      padding: 10px 15px;
  }
}


/* Sign-Up CTA Section */
.signup-cta {
  background: #e3e2e2;
  padding: 20px;
  text-align: center;
  color: #092549;
  margin-bottom: 30px;
}

.signup-cta h2 {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 10px;
}

.signup-cta p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.signup-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.signup-input {
  padding: 10px;
  border-radius: 25px;
  border: none;
  font-size: 1em;
  width: 250px;
  max-width: 100%;
}

.signup-btn {
  background-color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.signup-btn:hover {
  background-color: #00aaff;
  color: #fff;
}

/* Thank You Section */
.thankyou-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
  background: linear-gradient(120deg, #ffffff, #ffffff);
  text-align: center;
  color: #fff;
}

.thankyou-container {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.thankyou-container h1 {
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 2.5em;
  color: #0e2e51;
}

.thankyou-container p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
}

.thankyou-cta {
  margin-top: 20px;
}

.thankyou-cta .btn {
  background-color: #00d4ff;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1.1em;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.thankyou-cta .btn:hover {
  background-color: #d1e7fea9;
}

.thankyou-image {
  margin-top: 30px;
}

.thankyou-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Thank You Page */
@media (max-width: 768px) {
  .thankyou-container {
      padding: 20px;
  }

  .thankyou-container h1 {
      font-size: 2em;
  }

  .thankyou-container p {
      font-size: 1.1em;
  }

  .thankyou-cta .btn {
      font-size: 1em;
      padding: 10px 20px;
  }
}

.flight-results {
  font-family: 'Arial', sans-serif;
  max-width: 900px;
  margin: 20px auto;
}

.flight-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* Score Section */
.score-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.score-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  background-color: #f0f0f0;
  color: #000;
  text-align: center;
}

.score-text {
  font-size: 14px;
  font-weight: bold;
}

/* Main Flight Information */
.flight-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* Allows wrap for mobile */
}

/* Flight Rows and Info */
.flight-info {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 300px; /* Ensures good spacing on mobile */
}

.flight-row {
  display: grid;
  grid-template-columns: 30px 50px 1fr 80px 70px;
  align-items: center;
  gap: 10px;
}

.airline-logo {
  width: 40px;
  height: auto;
}

.flight-times {
  display: flex;
  flex-direction: column;
}

.time {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.route {
  font-size: 14px;
  font-weight: lighter;
  color: #888;
  margin: 0;
}

.flight-stops {
  text-align: center;
  font-size: 14px;
  color: #555;
}

.duration {
  font-size: 14px;
  color: #555;
  text-align: center; /* Center duration as well */
}

/* Price and Icons Section */
.price-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-left: 15px;
  flex: 1;
  min-width: 120px; /* Ensures good spacing on mobile */
}

.icons {
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

.icon {
  font-size: 18px;
  color: #007bff;
}

.price-section {
  text-align: center;
}

.price-section h3 {
  margin: 0;
  font-size: 20px;
  color: #154c79;
  font-weight: bold;
}

.price-section p {
  margin: 0;
  font-size: 14px;
  color: #888;
}

.btn-select {
  background-color: #000000;
  color: #fff;
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  margin-top: 5px;
  transition: background-color 0.3s ease;
}

.btn-select:hover {
  background-color: #2b2f33;
}

/* Checkbox */
.select-flight {
  margin: 0;
  width: 20px;
  height: 20px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .flight-main {
      flex-direction: column;
      align-items: stretch;
  }

  .flight-info, .price-icons {
      width: 100%; /* Full width on mobile */
      margin: 10px 0;
  }

  .flight-row {
      grid-template-columns: 30px 50px 1fr; /* Simplifies layout on mobile */
      text-align: left;
      gap: 5px;
  }

  .duration, .flight-stops {
      margin: 5px 0;
  }

  .icons {
      justify-content: center;
  }

  .btn-select {
      width: 100%; /* Full width button on mobile */
      padding: 10px;
  }
}

.header-icons {
  display: flex;
  gap: 15px;
  margin-left: auto; /* Pushes icons to the right */
}

.header-icons img {
  width: 25px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.header-icons img:hover {
  transform: scale(1.1);
}

/* Background for CTA */
.signup-cta {
  position: relative;
  background: url('{{ url_for('static', filename='photos/maldives.jpg') }}') center/cover no-repeat;
  padding: 50px 20px;
  color: white;
  text-align: center;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px; /* Ensures sufficient height */
}

/* Dark overlay for better text contrast */
.signup-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
  z-index: -1;
}

/* CTA container adjustments */
.cta-container {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: auto;
}

.signup-form {
  display: flex;
  align-items: center; /* Aligns input and button vertically */
  justify-content: center;
  gap: 10px; /* Adds spacing between input and button */
  margin-top: 15px; /* Aligns button with email input */
}

.signup-input {
  padding: 10px;
  border-radius: 5px;
  border: none;
  width: 70%; /* Ensures consistent input size */
}

.signup-btn {
  background-color: #154c79;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

.signup-btn:hover {
  background-color: #ff6600; /* Highlight the button on hover */
  transform: scale(1.05); /* Slight bounce effect */
}

/* New Section Styling for 'Why Join FareGenius?' */
.promo-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.promo-section h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.promo-section p {
  font-weight: bold;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.promo-cards-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.promo-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .promo-cards {
      flex-direction: row;
  }
}

.promo-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  max-width: 250px;
  width: 100%; /* Ensures consistent width */
  min-height: 220px; /* Ensures consistent height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-card:hover {
  transform: translateY(-5px);
}

.promo-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

/* Score Circle Styling */
.score-circle {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff6600;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.score-circle:hover {
    transform: scale(1.1);  /* Slightly enlarge on hover */
}

/* Tooltip Styling */
.score-circle[title] {
    position: relative;
    cursor: pointer;
}

.score-circle[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 60px;  /* Position below the score circle */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 1000;
}

.score-circle[title]:hover::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    z-index: 1000;
}

/* Title for score section */
.score-section-title {
  text-align: center;
  margin-bottom: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  margin: auto;
  border-radius: 10px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease;
  align-items: center
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Modal Title */
.modal-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Score Breakdown */
.modal-score-breakdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  text-align: center;
  flex-wrap: wrap;
}

.modal-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.score-description {
  font-size: 14px;
  color: #555;
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

.pill-button {
  display: inline-block;
  padding: 8px 14px; /* Make the pill smaller */
  font-size: 12px; /* Slightly smaller text */
  background-color: black; /* Black background */
  color: white; /* White text */
  border-radius: 25px; /* Rounded pill shape */
  text-align: center;
  cursor: pointer;
  margin-left: 10px; /* Add some space next to the score circle */
  margin-top: auto;
  margin-bottom: auto;
  vertical-align: middle; /* Vertically center */
  line-height: 1;
}

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

@media (max-width: 768px) {
  .score-container {
      flex-direction: column;
      align-items: center; /* Center the elements */
  }

  .score-circle {
      width: 50px; /* Slightly larger for touch-friendly size */
      height: 50px;
      font-size: 16px; /* Adjust font size */
      margin-bottom: 10px;
  }

  .pill-button {
      padding: 10px 16px; /* Slightly larger padding for touchability */
      font-size: 14px; /* Larger font size for readability */
      margin-top: 10px; /* Add margin to separate from the circle */
      margin-left: 0; /* Remove left margin to center the pill */
  }

  .flight-main {
      flex-direction: column;
      align-items: center; /* Center flight information */
  }

  .flight-info, .flight-row, .price-icons {
      width: 100%; /* Make full-width to use screen space efficiently */
      text-align: center; /* Center-align the content */
  }

  .flight-info .flight-times, .flight-stops, .price-section {
      padding: 10px 0; /* Add more padding to make it touch-friendly */
  }

  /* Ensure footer and container elements are mobile responsive */
  .container, footer {
      padding: 0 15px;
  }

  .flight-results .flight-card {
      margin-bottom: 20px; /* Add some spacing between results */
  }
}

/* Center the logo in the modal */
.modal-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.modal-logo {
  max-width: 150px; /* Adjust size as needed */
  height: auto;
}

/* Tooltip Styling */
.stops-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.stops-tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  height: 75px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap; /* Ensure it stays in one line */
}

.stops-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
