/* Basic styling for the body, setting font family, margins, and background color */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
}

/* Header styling, including flex layout for spacing between elements */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

/* Removes margin from the heading */
h1 {
  margin: 0;
}

/* Switch button container with flex layout to align the label and switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hides the actual checkbox input for a custom slider appearance */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Styles the slider track including background color and rounded corners */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

/* Styles for the slider button, positioning it inside the track and making it circular */
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Label for the unit toggle button, adding space and setting font size */
.unit-label {
  margin-right: 8px;
  font-size: 1em;
  color: #333;
}

/* Changes the background of the slider when the checkbox is checked */
input:checked + .slider {
  background-color: #007AFF;
}

/* Moves the slider button to the right when the checkbox is checked */
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Grid layout for the aircraft cards, arranging them in three columns */
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px 20px;
}

/* Styling for each individual aircraft card with borders, padding, and center-aligned text */
.aircraft-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

/* Hover effect on the aircraft cards, enlarging them slightly for interaction */
.aircraft-card:hover {
  transform: scale(1.02);
}

/* Styling the images within the aircraft cards to be responsive */
.aircraft-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Styling for the heading inside each aircraft card, making it bold and larger */
.aircraft-card h2 {
  margin: 0 0 10px;
  font-size: 1.6em;
  color: #222;
  font-weight: 600;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
}

/* Styling for the paragraphs inside each card, adjusting font size and color */
.aircraft-card p {
  margin: 5px 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #555;
}

/* Italic style for the second paragraph, typically used for descriptions or additional info */
.aircraft-card p:nth-of-type(2) {
  font-style: italic;
  color: #777;
}

/* Flexbox layout for the property rows inside each card, aligning items properly */
.property-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
}

/* Styling the title inside each property row to make it bold */
.property-title {
  font-weight: 600;
}

/* Automatically aligns the value of each property row to the right */
.property-value {
  margin-left: auto;
}

/* Separator styling, creating a thin line between sections within the cards */
.separator {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 8px 0;
}

/* Styling the back button, including padding, color, background, and hover effect */
.back-button {
  padding: 10px 20px;
  background-color: #007AFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
  margin-right: 20px;
}

/* Hover effect for the back button, changing the background color */
.back-button:hover {
  background-color: #005BB5;
}
