/*  Flights Page */

* { box-sizing: border-box; }

body{
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;


  background: url("R.jfif") center/cover no-repeat fixed;
}

/*  Overlay */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);  
  z-index: 0;
}

/*   overlay */
body > *{
  position: relative;
  z-index: 1;
}

/* Header */
header{
  text-align: center;
  margin-top: 0px;
  padding: 16px 12px;
}

header h1{
  margin: 0;
  color: #040404;
  font-size: 25px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.40);
  z-index: 5;
}
.back-btn{
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
}

.back-btn:hover{
  text-decoration: underline;
}

/* Flights cards  */
.flights-list{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 20px auto 60px;
  padding: 0 15px;
}

.flight-card{
  width: min(720px, 95%);
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.20);
  transition: 0.25s;
  text-align: center;
  backdrop-filter: blur(6px);
}

.flight-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.flight-card h2{
  margin: 0 0 8px;
  color: #2b2d42;
}

.flight-card h6{
  margin: 6px 0;
  color: #444;
  font-weight: 600;
}

.flight-card .price{
  font-size: 22px;
  font-weight: 800;
  margin: 10px 0 12px;
  color: #1a1c2b;
}

.flight-card button{
  background: linear-gradient(to right, #ff7e5f, #838ae8);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s;
}

.flight-card button:hover{
  transform: scale(1.04);
}

/*  Footer  */
footer{
  text-align: center;
  padding: 25px 15px;
  color: #fff;
}

.footer-links a{
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  opacity: 0.9;
}
.footer-links a:hover{
  text-decoration: underline;
}

.page-header{
  margin-top: 0;
}

body{
  margin: 0;
}



.search-summary{
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  margin: 10px 0 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.no-results{
  display: none;
  text-align: center;
  color: #fff;
  font-weight: 800;
  margin: 18px 0 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}






/*  Responsive  */
@media (max-width: 600px){
  header h1{ font-size: 26px; }
}
