*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: montserrat;
}
.hero{
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),url(images/Places-to-visit-in-DOha.png);
    background-size: cover;
    background-position: center;

    position: relative;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: 100px;
}
#logo_image{
    width: 200px;
}
nav ul li{
    list-style-type: none;
    display: inline-block;
    padding: 10px 20px;
}
nav ul li a{
    color: rgb(193, 193, 193);
    text-decoration: none;
    font-size: 20px;
}
nav ul li a:hover{
    color: rgb(142, 142, 142);
    transition: .2s;
}
.flightform {
  background: white;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 95%;
  max-width: 1225px;
  overflow: hidden;
  padding: 0;
}
.flightform input{
    size: 100px;
}
.bookflightform{
    font-size: 20px;
    margin-left: 15px;
    margin-right: 15px;
}
.bookflight{
    border: none;
    border-radius: 30px;
    font-size: 25px;
    margin-top: 15px;
    margin-left: 83%;
    margin-bottom: 10px;
    background-color: #4b002eff;
    width: 200px;
    height: 50px;
    color: white;
}
.bookflight:hover{
    background-color: #3d0026ff;
    transition: .3s;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
main h1{
    margin-left: 100px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 35px;
    line-height: 25px;
    color: white;
}
.h1disneyland{
    margin-bottom: 280px;
    font-size: 15px;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.date-box {
    display: flex;
    border: 2px solid #aaa;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    width: 100%;
    background: white;
}

.date-field {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
}

.date-field label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.booking-bar {
    display: flex;
    border: 2px solid #aaa;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    width: 100%;
}

.booking-field {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.booking-field label {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.booking-field input,
.booking-field select {
    border: none;
    font-size: 13px;
    outline: none;
    background: transparent;
}

.booking-divider {
    width: 1px;
    background-color: #dbdbdbff;
}

#successPopup {
    position: fixed;
    right: -300px;
    top: 100px;
    background: #4b002eff;
    color: white;
    padding: 20px 30px;
    border-radius: 12px 0 0 12px;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: right 0.5s ease;
    z-index: 9999;
    color: white;
}

#successPopup.show {
    right: 0;
}

.go-back {
    background-color: #4b002eff !important;
    color: white;
}
.go-back:hover {
    background-color: #3d0026ff !important;
    transition: .3s;
}
.booking-tabs {
    display: flex;
    background: #f5f6f9;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 18px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.tab.active {
    background: white;
    color: #7b003b;
    font-weight: bold;
}

/* TRIP TYPE */
.trip-type {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.trip-type label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
}

.trip-type input {
    display: none;
}

.trip-type span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #777;
    margin-right: 10px;
    position: relative;
}

.trip-type input:checked + span {
    border-color: #4b002e;
}

.trip-type input:checked + span::after {
    content: "";
    width: 12px;
    height: 12px;
    background: #4b002e;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.autoShow {
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 40vh;
}
@keyframes text-appear {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.promo-section {
    padding: 70px 4%;
    background: white;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ force 4 on large screens */
    gap: 24px;
}

/* Card */
.promo-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

/* Image */
.promo-card img {
    width: 100%;
    height: 220px;   /* ✅ slightly shorter */
    object-fit: cover;
}

/* Content */
.promo-content {
    padding: 22px;
}

.promo-content h3 {
    font-size: 20px; /* ✅ reduced font */
    font-weight: 500;
    margin-bottom: 18px;
    color: #111;
}

.promo-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px; /* ✅ tighter text */
    color: #4b002e;
    font-weight: 500;
}

.promo-link .arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

/* Hover arrow */
.promo-card:hover .arrow {
    transform: translateX(5px);
}

.fares-section {
    padding: 80px 6%;
    background: #ffffff;
}

/* Header */
.fares-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 10px;
}

.fares-header h2 {
    font-size: 30px;
    font-weight: 500;
}

.fares-from {
    font-size: 25px;
    color: #555;
    margin-right: 10px;
}

/* Grid */
.fares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 18px;
}

/* Cards */
.fare-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}

.fare-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Image */
.fare-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.fare-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    color: white;
}

.fare-overlay h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.fare-overlay p {
    font-size: 13px;
    opacity: 0.9;
}

.fare-overlay span {
    font-size: 13px;
    font-weight: 500;
}

/* Hover effect */
.fare-card:hover img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

@media (max-width: 1100px) {
    .fares-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fare-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .fares-grid {
        grid-template-columns: 1fr;
    }

    .fare-card.large {
        grid-column: span 1;
    }
}
@media (max-width: 768px) {

  /* ===== Navigation ===== */
  nav {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-bottom: 40px;
  }

  nav ul li {
    display: block;
    padding: 10px 0;
    text-align: center;
  }

  #logo_image {
    width: 160px;
  }

  /* ===== Hero Section ===== */
  .hero {
    min-height: auto;       /* allow hero to grow with content */
    height: auto;           /* override 100vh */
    padding-bottom: 40px;   /* space below hero for the form */
  }

  main h1 {
    margin-left: 20px;
    font-size: 26px;
    line-height: 1.3;
  }

  .h1disneyland {
    font-size: 14px;
    margin-bottom: 20px;    /* reduced so it doesn’t push too far */
  }

  /* ===== Flight Form ===== */
  .flightform {
    margin-top: 20px;       /* space between hero content and form */
    margin-bottom: 20px;
    width: 95%;
    max-width: 1225px;
  }

  .booking-bar {
    flex-direction: column;
    border-radius: 12px;
  }

  .booking-divider {
    display: none;
  }

  .booking-field {
    border-bottom: 1px solid #ddd;
  }

  .booking-field:last-child {
    border-bottom: none;
  }

  .bookflight {
    width: 100%;
    margin-left: 0;
    font-size: 20px;
    margin-bottom: 5px;
  }

  .trip-type {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 16px;
  }

  /* ===== Promo Section ===== */
  .promo-grid {
    grid-template-columns: 1fr;
  }

  /* ===== Fares Section ===== */
  .fares-grid {
    grid-template-columns: 1fr;
  }

  .fare-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .fares-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* ===== “Start planning your next trip” spacing ===== */
  h1.autoShow {
    margin-top: 40px !important;
  }

  p.autoShow {
    margin-top: 12px;
    margin-bottom: 40px;
  }

  /* ===== Form inputs font-size ===== */
  input, select {
    font-size: 16px; /* prevents iOS zoom */
  }
  br.mobile-hide {
    display: none;
  }
}