@import "general.css";
@import "nav.css";
@import "form.css";
@import "search.css";

/* ---- Flights List Page Layout ---- */
.flights-list-page {
  max-width: 1400px;
  margin: 4rem auto 0 auto;
  padding: 2rem;
}

.flights-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.flights-list-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #1e1e1e;
}

.filters-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #1e1e1e;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #1e1e1e;
}

.filters-btn:hover {
  background: #1e1e1e;
  color: white;
}

.filters-btn:hover svg path {
  stroke: white;
}

.filters-panel {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e1e1e;
}

.filter-group input,
.filter-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: #1e1e1e;
  background: white;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #7e6d5e;
  box-shadow: 0 0 0 3px rgba(126, 109, 94, 0.1);
}

.filters-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.apply-filters-btn,
.clear-filters-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.apply-filters-btn {
  background: #7e6d5e;
  color: white;
}

.apply-filters-btn:hover {
  background: #6a5d4f;
}

.clear-filters-btn {
  background: white;
  color: #1e1e1e;
  border: 2px solid #e5e5e5;
}

.clear-filters-btn:hover {
  background: #f5f5f5;
}

.flights-list-columns {
  display: grid;
  grid-template-columns: 150px 1fr 1fr 1fr 100px 200px 150px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f5f5f5;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1e1e1e;
}

.flights-list-columns .column {
  font-size: 1rem;
}

.flights-list-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flight-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr 1fr 100px 200px 150px;
  gap: 1rem;
  padding: 1.5rem;
  align-items: center;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s;
}

.flight-row:hover {
  background: #fafafa;
}

.flight-row-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aircraft-cell img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.origin-cell .message,
.destination-cell .message {
  color: #7e6d5e;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.location-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1e1e1e;
}

.departure-cell span {
  color: #1e1e1e;
  font-size: 0.95rem;
}

.seats-cell {
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e1e1e;
}

.prices-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e1e1e;
  font-size: 0.95rem;
}

.price-item svg {
  flex-shrink: 0;
}

.action-cell {
  display: flex;
  justify-content: center;
}

.book-btn {
  padding: 0.75rem 1.5rem;
  background: #7e6d5e;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.book-btn:hover {
  background: #6a5d4f;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .flights-list-columns,
  .flight-row {
    grid-template-columns: 120px 1fr 1fr 1fr 80px 180px 120px;
    gap: 0.75rem;
    font-size: 0.9rem;
  }
  
  .aircraft-cell img {
    width: 100px;
    height: 65px;
  }
}

@media (max-width: 900px) {
  .flights-list-columns {
    display: none;
  }
  
  .flight-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .flight-row-cell {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
  }
  
  .flight-row-cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
  }
  
  .aircraft-cell,
  .action-cell {
    grid-column: 1 / -1;
  }
  
  .aircraft-cell img {
    width: 100%;
    height: auto;
  }
}

/* ---- Quote dialog styles (inlined from former quote.css) ---- */
.quote-modal {
  overflow: visible;
}

/* Booking flight header - only for book.html */
.booking-flight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}

.flight-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.city-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.plane-icon {
  color: #333;
  flex-shrink: 0;
}

.departure-info {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #666;
}

.flight-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.price-item {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price-value {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

.price-desc {
  font-size: 0.7rem;
  color: #666;
}

@media (max-width: 768px) {
  .booking-flight-header {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.8rem;
  }
  
  .city-code {
    font-size: 1.2rem;
  }
  
  .plane-icon {
    width: 20px;
    height: 20px;
  }
  
  .departure-info {
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .flight-pricing {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .seats-section h3 {
    text-align: left;
  }
  
  .seats-control {
    justify-content: flex-start;
  }
  
  .contact-section .field-group,
  .special-requests-section textarea {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .booking-flight-header {
    padding: 0.6rem;
  }
  
  .city-code {
    font-size: 1rem;
  }
  
  .departure-info {
    font-size: 0.7rem;
  }
  
  .plane-icon {
    width: 18px;
    height: 18px;
  }
  
  .flight-pricing {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .price-value {
    font-size: 0.9rem;
  }
  
  .contact-section h3,
  .seats-section h3,
  .additional-services h3,
  .special-requests-section h3 {
    font-size: 0.85rem;
  }
  
  .field-group input,
  .field-group textarea,
  .special-requests-section textarea {
    font-size: 14px;
  }
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0;
}

.quote-form h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  text-align: left;
}

/* Row layout for grouped fields */
.quote-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

/* For the second row (Date/Time/Passengers) */
.quote-row:nth-of-type(2) {
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0.7rem;
}

/* For the third row (Services/Special Requests) */
.quote-row:nth-of-type(3) {
  grid-template-columns: 1fr 1.5fr;
  gap: 0.7rem;
}

@media (max-width: 1024px) {
  .quote-row:nth-of-type(2) {
    grid-template-columns: 1fr 1fr;
  }
  
  .quote-row:nth-of-type(3) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .quote-row,
  .quote-row:nth-of-type(2),
  .quote-row:nth-of-type(3) {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .quote-form {
    gap: 0.7rem;
    padding-right: .1rem;
  }
  
  .quote-form h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .quote-form {
    gap: 0.7rem;
  }
  
  .quote-form h2 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  
  .field-group label {
    font-size: 0.8rem;
  }
  
  .field-group input,
  .field-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.45rem 0.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.field-group label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #222;
}

.field-group input,
.field-group textarea {
  padding: 0.4rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.85rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: #111a27;
  box-shadow: 0 0 0 2px rgba(17, 26, 39, 0.1);
}

/* Passenger counter styling */
.passenger-counter {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
}

.counter-btn {
  background: #f5f5f5;
  border: none;
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  flex: 0 0 auto;
  transition: background 0.2s;
}

.counter-btn:hover {
  background: #e0e0e0;
}

.passenger-counter input[type="number"] {
  flex: 1;
  border: none;
  text-align: center;
  padding: 0.5rem 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.passenger-counter input[type="number"]::-webkit-outer-spin-button,
.passenger-counter input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Services group styling */
.field-group.services-group {
  gap: 0.3rem;
}

.field-group.services-group h3 {
  margin: 0 0 0.4rem 0;
  font-size: 0.9rem;
  color: #222;
}

.inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.contact-section {
  padding-top: .4rem;
  border-top: none;
}

.contact-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #222;
}

.contact-section .field-group {
  margin-bottom: 0.5rem;
}

.seats-section {
  padding-top: 0.4rem;
}

.seats-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  color: #222;
  text-align: right;
}

.seats-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.seat-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.seat-btn:hover {
  background: #e0e0e0;
}

.seats-control input[type="number"] {
  width: 50px;
  text-align: center;
  padding: 0.4rem 0.3rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  background: white;
}

.seats-control input[type="number"]::-webkit-outer-spin-button,
.seats-control input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.max-seats {
  font-size: 0.75rem;
  color: #666;
}

.additional-services {
  padding-top: 0.4rem;
}

.additional-services h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  color: #222;
}

.service-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
}

.service-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.special-requests-section {
  padding-top: 0.4rem;
}

.special-requests-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  color: #222;
}

.special-requests-section textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  box-sizing: border-box;
}

.special-requests-section textarea:focus {
  outline: none;
  border-color: #111a27;
  box-shadow: 0 0 0 2px rgba(17, 26, 39, 0.1);
}

.contact-grid {
  display: grid;
  gap: 0.3rem 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.field-group.subscribe {
  grid-column: 1 / -1;
}

.what-next {
  padding-top: 0.3rem;
  border-top: 1px solid #e0e0e0;
}

.what-next h3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  text-align: center;
  color: #222;
}

.next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.next-steps li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.next-steps li .step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.secure-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 0.3rem;
  color: #666;
}

.actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.actions button[type=submit] {
  flex: 1;
  background: #111a27;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.actions button[type=submit]:hover {
  background: #1a2635;
}

.actions button.closer {
  background: #e8e8e8;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.actions button.closer:hover {
  background: #d0d0d0;
}

.quote-form>.actions {
  border-top: none !important;
  margin-top: 0.3rem;
  padding-top: 0;
}

/* ---- End quote dialog styles ---- */