.airlineCard {
  background: #fff;
  border-radius: 18px;
  box-shadow: rgba(0, 0, 0, 0.08) 0 2px 8px;
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  height: fit-content;
  position: relative; 
  padding: 10px;
}

.flightContent {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding: 0; 
  width: 100%;
}

.flightImage {
  position: relative;
  overflow: hidden;
  display: flex; 
  align-items: center; 
  justify-content: space-evenly; 
  gap: 10px; 
  height: 75px; 
  width: 30%;
}

.mainFlightImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.airlineCard:hover .mainFlightImage {
  transform: scale(1.05);
}

.imageOverlay {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
}

.flightLogo{
    width: 125px;
    height: 125px;
    position: absolute;
    top: 50%;
    right: 35%;
    transform: translate(50%, -50%);
    border-radius: 15px;
    /* background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3); */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.flightLogo img , .flightLogoTest img{
    width: 100%;
}

.flightLogoTest{
  width: 75px;
  height: 75px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imageBadge {
  background: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: rgba(0,0,0,0.2) 0 3px 8px;
  text-align: center;
}

.airlineHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 15px;
}

.airlineLogo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: row-reverse;
}

.airlineLogo img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  padding: 5px;
  background: #f8f9fa;
  border: 1px solid #eaeaea;
}

.airlineInfo {
  display: flex;
  gap: 7px;
  text-align: right;
}

.airlineName {
  font-size: 18px;
  font-weight: bold;
  color: #111;
}

.airlineCodes {
  display: flex;
  gap: 10px;
  align-items: center;
}

.flightNumber {
  font-size: 14px;
  color: #666;
  background: #f0f2f5;
  padding: 4px 12px;
  border-radius: 8px;
}

.airlineBadges {
  display: flex;
  gap: 10px;
}

.badge.directFlight {
  background: rgba(162, 162, 162, 0.1);
  color: var(--primary-color);
  padding: 6px 15px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(40, 167, 69, 0.2);
  margin-left: 55px;
}

.routeInfo {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.routeSegment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.cityInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 80px;
}

.cityName {
  font-size: 18px;
  font-weight: bold;
  color: #111;
}

.airportCode {
  font-size: 14px;
  color: #666;
  background: #fff;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.flightPathContainer {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 60px;
  min-width: 80px;
}

.pathLine {
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, #1e4db7, #d17a00);
  position: relative;
}

.flightDurationShort {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #666;
  z-index: 1;
}

.flightDurationShort i {
  color: var(--primary-color);
  font-size: 14px;
}

.routePrice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 120px;
  padding-right: 15px;
  border-right: 1px dashed #ccc;
  margin-left: 15px;
}

.routePrice .priceMain {
  display: flex;
  align-items: baseline;
  gap: 5px;
  direction: ltr;
  text-align: left;
}

.routePrice .finalPrice {
  font-size: 22px;
  font-weight: bold;
  color: #111;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.routePrice .currency {
  font-size: 14px;
  color: #666;
}

.routePrice .pricePerPerson {
  font-size: 12px;
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
}

.actionSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  display: none;
}

.proceedBtn {
  background: linear-gradient(135deg, #287194, #28948d);
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: rgba(40, 113, 148, 0.3) 0 4px 12px;
  flex: 1;
  justify-content: center;
}

.proceedBtn:hover {
  transform: translateY(-2px);
  box-shadow: rgba(40, 113, 148, 0.4) 0 8px 20px;
}

.resFlightButton{
  background: linear-gradient(135deg, #287194, #28948d);
  color: white;
  border-radius: 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: rgba(40, 113, 148, 0.3) 0 4px 12px;
  width: 40px;
  height: 100%;
}

.resFlightButton:hover {
  box-shadow: rgba(40, 113, 148, 0.4) 0 8px 20px;
}

@keyframes flyAcross {
  0% { left: 10%; }
  100% { left: 90%; }
}

@media (max-width: 1200px) {
  .airlineCard {
    height: auto;
  }

  .flightLogoTest{
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 1100px) {
  .routePrice .finalPrice{
    font-size: 16px;
  }
}

@media (max-width: 992px) {

  .airlineCard{
    flex-direction: column;
  }

  .flightContent {
    width: 100%;
  }

  .routeSegment {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cityInfo {
    min-width: 70px;
  }
  
  .flightPathContainer {
    order: 3;
    width: 100%;
    min-width: 100%;
  }
  
  .routePrice {
    order: 4;
    border-right: none;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    padding-right: 0;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .flightImage{
    width: 100%;
    justify-content: start;
  }

  .airlineHeader {
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
  }
  
  .airlineLogo {
    width: 100%;
    justify-content: flex-end;
  }
  
  .actionSection {
    flex-direction: column;
    gap: 15px;
    display: flex;
  }

  .resFlightButton{
    display: none;
  }
  
  .proceedBtn {
    width: 100%;
    margin: 0;
  }
  
  .routePrice {
    flex-direction: column;
    gap: 8px;
  }

  .badge.directFlight{
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .airlineCard {
    height: auto;
  }
  
  .routeSegment {
    flex-direction: column;
    gap: 15px;
  }
  
  .cityInfo {
    min-width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}