/* ===== COMPONENTS: reusable UI blocks ===== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 34px;
  border: 0;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  filter: saturate(1.07) brightness(1.02);
}

.btn-primary {
  background: linear-gradient(180deg, #ffc77f, #f1ad63);
  color: #fff;
  box-shadow: 0 14px 28px rgba(244, 181, 110, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(244, 181, 110, 0.28);
}

.btn-outline {
  background: #fff;
  color: #f1ad63;
  border: 1px solid #efdac6;
  box-shadow: none;
}

.btn-outline:hover {
  background: #fff8ef;
  color: #d8944d;
}

.btn-gray {
  background: #dfdfdf;
  color: #424242;
  border: 0;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.btn-gray:hover {
  background: #d4d4d4;
  color: #2e2e2e;
  transform: none;
  box-shadow: none;
}

.btn-dark-gray {
  background: #5b5b5b;
  color: #fff;
  box-shadow: none;
}

.btn-dark-gray:hover {
  background: #4f4f4f;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.hero .btn-outline {
  background: rgba(80, 80, 80, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.hero .btn-outline:hover {
  background: rgba(80, 80, 80, 0.32);
  color: #fff;
}

.btn-dark {
  background: #1a1a1a;
  color: #fff;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #3a3a3a;
}

.card-text {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}

.meta-tooltip {
  border-bottom: 1px dashed rgba(201, 168, 76, 0.65);
  cursor: help;
}

.card-meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Aircraft mini card (header dropdown) --- */
.aircraft-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  padding-left: 16px;
  padding-right: 16px;
}

.aircraft-mini:last-child {
  border-bottom: none;
}

.aircraft-mini:hover {
  background: #fafafa;
}

.aircraft-mini-img {
  width: 80px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.aircraft-mini-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #3a3a3a;
}

.aircraft-mini-info p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* --- Explore cards --- */
.porthole-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.porthole-item {
  display: block;
  background: #141414;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.porthole-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.porthole-media {
  height: 280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.porthole-overlay {
  padding: 22px;
  background: rgba(66, 66, 66, 0.82);
}

.porthole-overlay h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.25;
  color: #fff;
}

.porthole-overlay p {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

/* --- Contact card --- */
.contact-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: #f1ad63;
}

.contact-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #3a3a3a;
}

.contact-info p {
  font-size: 15px;
  margin: 0;
  color: #555;
}

.contact-link-icon {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 18px;
  color: #f1ad63;
  opacity: 0.85;
}

/* --- Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.3s;
  background: #fff;
  color: #424242;
  font-family: inherit;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

.form-select::-ms-expand {
  display: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #f1ad63;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Booking modal --- */
.booking-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.booking-modal.active {
  display: block;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.booking-modal-dialog {
  position: relative;
  max-width: 460px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.booking-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #777;
  cursor: pointer;
}

.booking-modal-dialog h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  color: #3a3a3a;
}

.booking-modal-dialog > p {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
}

.booking-form-error {
  display: none;
  margin: -6px 0 12px;
  color: #d93025;
  font-size: 13px;
}

.booking-form-error.active {
  display: block;
}

.booking-form-success {
  display: none;
  margin: 12px 0 0;
  color: #1f7a1f;
  font-size: 14px;
}

.booking-form-success.active {
  display: block;
}

/* --- Search / Filter bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-bar .form-select,
.filter-bar .form-input {
  flex: 1;
  min-width: 160px;
}

/* --- Section title --- */
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px;
  color: #3a3a3a;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 17px;
  text-align: center;
  color: #666;
  margin: 0 0 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gold-line {
  width: 60px;
  height: 4px;
  background: #f1ad63;
  border-radius: 2px;
  margin: 16px auto 0;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 1px 25px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  min-width: 88px;
  text-align: center;
}

.badge-gold {
  background: #fdf6e3;
  color: #f1ad63;
}

.badge-dark {
  background: #1a1a1a;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .porthole-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .porthole-media {
    height: 150px;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar .form-select,
  .filter-bar .form-input {
    min-width: 100%;
  }
}

@media (max-width: 560px) {
  .porthole-grid {
    grid-template-columns: 1fr;
  }
}
