/* trip_planner_autocomplete.css
   Styles for the airport autocomplete dropdown.
   Append to the main stylesheet or include as a separate file.
*/

.tp-autocomplete-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(15, 47, 82, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.tp-autocomplete-item {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(33, 37, 41, 0.88);
  line-height: 1.4;
  transition: background-color 0.1s ease;
}

.tp-autocomplete-item:hover,
.tp-autocomplete-item.is-active {
  background: rgba(27, 77, 122, 0.08);
  color: var(--primary);
}


/* Tab button states */

[data-tp-tab] {
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

[data-tp-tab].is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  cursor: default;
  pointer-events: none;
}

[data-tp-tab]:not(.is-active):hover {
  background: rgba(27, 77, 122, 0.12);
  border-color: rgba(27, 77, 122, 0.25);
}


/* ACA membership badge */

.tp-badge-aca {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(13, 127, 184, 0.12);
  color: #0b3a63;
  border: 1px solid rgba(13, 127, 184, 0.18);
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
  font-style: normal;
  text-decoration: none;
}


/* Safety approvals line */

.tp-approvals {
  font-size: 11px;
  color: rgba(33, 37, 41, 0.48);
  font-weight: 600;
  margin-top: 1px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
/* ============================================================ */
/* 3-TIER ADVERTISING — Trip Planner Listing Cards              */
/* Add to trip_planner_autocomplete.css or charterbroker.css     */
/* ============================================================ */

/* Base listing card */
.listing-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #fff;
}

/* Premium tier — gold accent */
.listing-card--premium {
  border-left: 4px solid #c8a415;
  background: #fdfbf3;
}

/* Enhanced tier — teal accent (CB brand) */
.listing-card--enhanced {
  border-left: 4px solid #146674;
  background: #f4fafb;
}

/* Logo column (Premium + Enhanced only) */
.listing-card__logo {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.listing-card__logo img {
  max-width: 100%;
  height: auto;
}

/* Body column */
.listing-card__body {
  flex: 1;
  min-width: 0;
}

.listing-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.listing-card__name a {
  color: #146674;
  text-decoration: none;
}

.listing-card__name a:hover {
  text-decoration: underline;
}

.listing-card__description {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0.25rem 0;
  line-height: 1.4;
}

.listing-card__aircraft {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

.listing-card__types {
  font-size: 0.85rem;
  color: #146674;
  font-weight: 500;
  margin: 0.25rem 0;
}

.listing-card__tel {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

/* Responsive: stack logo above body on small screens */
@media (max-width: 576px) {
  .listing-card {
    flex-direction: column;
  }
  .listing-card__logo {
    width: 80px;
  }
}
/* Premium tier — gold left border accent */
.tp-operator--premium {
  border-left: 4px solid #c8a415;
  background: rgba(200, 164, 21, .04);
}

/* Enhanced tier — teal accent (CB brand colour) */
.tp-operator--enhanced {
  border-left: 4px solid #146674;
  background: rgba(20, 102, 116, .04);
}

/* Regular tier — subtle border to distinguish from plain */
.tp-operator--regular {
  border-left: 3px solid rgba(27, 77, 122, .2);
}

@media print {
  /* Hide non-content */
 .directory-hero, #tp-empty, 
  [data-tp-tab], .tp-icon-list,
  .col-lg-4 > .tp-card,
  button, .btn, footer, nav, header,
  .tp-inline-link, #tpReturnOptions { display: none !important; }
  
  /* Show all tab panels */
  [data-tp-panel] { display: block !important; }
  
  /* Full width — no sidebar column */
  .col-lg-8 { width: 100% !important; max-width: 100% !important; }
  .col-lg-4 { display: none !important; }
  
  /* Let content flow naturally — no forced breaks */
  .tp-group { margin-top: 16px; }
  
  /* Only avoid breaks inside individual operator/handler cards */
  .tp-operator { page-break-inside: avoid; border: 1px solid #ccc; }
  
  /* Clean backgrounds */
  .tp-group-head { background: none; border-bottom: 2px solid #333; }
}

.tp-badge-type {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(33, 37, 41, 0.08);
  color: rgba(33, 37, 41, 0.6);
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 576px) {
  [data-tp-panel="services"] > div > div:not(:first-child) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  [data-tp-panel="services"] > div > div:not(:first-child) a[style*="margin-left: auto"] {
    margin-left: 0 !important;
  }
}