/* ═══════════════════════════════════════════════════════════════
   Amadeus Widgets — Enrichment data rendered from all Amadeus APIs
   Brand: #038a52 (primary)  |  #f47c04 (secondary/accent)
   ═══════════════════════════════════════════════════════════════ */

/* ── Trip Purpose Banner ── */
.aw-trip-purpose {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #e8f5ee 0%, #f0faf5 100%);
    border: 1px solid #c3e6d3; border-radius: 10px;
    padding: 12px 18px; margin-bottom: 14px;
    font-size: 13px; color: #1a1a1a;
}
.aw-trip-purpose i { font-size: 18px; color: #038a52; flex-shrink: 0; }
.aw-trip-purpose .aw-tp-label { font-weight: 600; }
.aw-trip-purpose .aw-tp-confidence { color: #666; margin-left: auto; font-size: 12px; }

/* ── Check-In Links ── */
.aw-checkin-links {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 16px 18px; margin-top: 16px;
}
.aw-checkin-links h4 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin: 0 0 10px; }
.aw-checkin-links .aw-cl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.aw-checkin-links .aw-cl-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 6px;
    background: #f8f9fa; border: 1px solid #e0e0e0;
    font-size: 13px; color: #333; text-decoration: none;
    transition: all .2s;
}
.aw-checkin-links .aw-cl-item:hover {
    background: #038a52; color: #fff; border-color: #038a52; text-decoration: none;
}
.aw-checkin-links .aw-cl-item img { width: 20px; height: 20px; border-radius: 3px; }

/* ── Delay Prediction Badge (on flight card) ── */
.aw-delay-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 600; margin-top: 4px;
}
.aw-delay-badge.low { background: #e8f5ee; color: #038a52; }
.aw-delay-badge.medium { background: #fff3e0; color: #e67700; }
.aw-delay-badge.high { background: #fce4e4; color: #c0392b; }
.aw-delay-badge i { font-size: 10px; }

/* ── Price Analysis Badge (on flight card) ── */
.aw-price-value {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 600; margin-top: 4px;
}
.aw-price-value.great-deal { background: #e8f5ee; color: #038a52; }
.aw-price-value.good-deal { background: #eaf4fc; color: #2e86c1; }
.aw-price-value.fair-price { background: #fff3e0; color: #e67700; }
.aw-price-value.high-price { background: #fce4e4; color: #c0392b; }

/* ── Enrichment Widgets Container ── */
.aw-enrichments { margin-top: 24px; }
.aw-enrichments .aw-widget {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 16px; overflow: hidden;
}
.aw-widget-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; cursor: pointer; user-select: none;
    border-bottom: 1px solid #f0f0f0;
}
.aw-widget-header h4 {
    font-size: 15px; font-weight: 600; color: #1a1a1a; margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.aw-widget-header h4 i { color: #038a52; }
.aw-widget-header .aw-toggle { color: #888; transition: transform .2s; }
.aw-widget.collapsed .aw-toggle { transform: rotate(180deg); }
.aw-widget.collapsed .aw-widget-body { display: none; }
.aw-widget-body { padding: 16px 18px; }

/* ── Inspiration Destinations ── */
.aw-inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.aw-insp-card {
    background: #f8f9fa; border-radius: 8px; padding: 14px;
    text-align: center; border: 1px solid #eee;
    transition: all .2s; text-decoration: none; color: inherit;
    display: block;
}
.aw-insp-card:hover { border-color: #038a52; box-shadow: 0 2px 8px rgba(3,138,82,.12); text-decoration: none; color: inherit; }
.aw-insp-card .aw-insp-dest { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.aw-insp-card .aw-insp-price { font-size: 13px; color: #038a52; margin-top: 4px; font-weight: 600; }
.aw-insp-card .aw-insp-dates { font-size: 11px; color: #888; margin-top: 2px; }

/* ── Cheapest Dates ── */
.aw-cheapest-dates-list {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.aw-cheapdate {
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 14px; border-radius: 8px;
    background: #f8f9fa; border: 1px solid #eee;
    min-width: 90px; text-align: center;
    transition: all .2s;
}
.aw-cheapdate:hover { border-color: #038a52; }
.aw-cheapdate .aw-cd-date { font-size: 12px; color: #666; }
.aw-cheapdate .aw-cd-price { font-size: 14px; font-weight: 700; color: #038a52; margin-top: 2px; }
.aw-cheapdate.is-lowest { background: #e8f5ee; border-color: #038a52; }

/* ── Travel Recommendations ── */
.aw-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.aw-rec-card {
    background: #f8f9fa; border-radius: 8px; padding: 14px;
    border: 1px solid #eee; transition: all .2s;
}
.aw-rec-card:hover { border-color: #038a52; }
.aw-rec-card .aw-rec-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.aw-rec-card .aw-rec-sub { font-size: 12px; color: #888; margin-top: 2px; }
.aw-rec-card .aw-rec-score { font-size: 12px; color: #038a52; margin-top: 4px; font-weight: 500; }

/* ── Airport Direct Routes ── */
.aw-routes-list { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-route-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 16px;
    background: #f8f9fa; border: 1px solid #eee;
    font-size: 12px; color: #333; transition: all .2s;
}
.aw-route-tag:hover { background: #038a52; color: #fff; border-color: #038a52; }
.aw-route-tag i { font-size: 10px; }

/* ── Flight Status Widget ── */
.aw-flight-status {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 16px 18px; margin-top: 16px;
}
.aw-flight-status h4 { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.aw-fs-form { display: flex; gap: 8px; flex-wrap: wrap; }
.aw-fs-form input {
    flex: 1; min-width: 100px; padding: 8px 12px;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 13px;
}
.aw-fs-form button {
    padding: 8px 16px; background: #038a52; color: #fff;
    border: none; border-radius: 6px; font-size: 13px;
    font-weight: 600; cursor: pointer; white-space: nowrap;
}
.aw-fs-form button:hover { background: #026b3f; }
.aw-fs-result { margin-top: 12px; }
.aw-fs-result .aw-fs-info {
    display: flex; flex-wrap: wrap; gap: 12px;
    padding: 12px; background: #f8f9fa; border-radius: 8px;
    font-size: 13px;
}
.aw-fs-result .aw-fs-field { display: flex; flex-direction: column; }
.aw-fs-result .aw-fs-label { font-size: 11px; color: #888; text-transform: uppercase; }
.aw-fs-result .aw-fs-value { font-weight: 600; color: #1a1a1a; }

/* ── Hotel Amadeus Ratings ── */
.aw-hotel-ratings {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 20px; margin-bottom: 20px;
}
.aw-hotel-ratings h3 { font-size: 16px; font-weight: 600; color: #1a1a1a; margin: 0 0 16px; }
.aw-hr-overall {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
    padding-bottom: 16px; border-bottom: 1px solid #f0f0f0;
}
.aw-hr-score {
    width: 56px; height: 56px; border-radius: 12px;
    background: #038a52; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.aw-hr-label { font-size: 14px; color: #1a1a1a; }
.aw-hr-label .aw-hr-count { font-size: 12px; color: #888; display: block; margin-top: 2px; }
.aw-hr-bars { display: flex; flex-direction: column; gap: 10px; }
.aw-hr-bar { display: flex; align-items: center; gap: 10px; }
.aw-hr-bar-label { font-size: 13px; color: #555; min-width: 110px; }
.aw-hr-bar-track {
    flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px;
    overflow: hidden;
}
.aw-hr-bar-fill { height: 100%; border-radius: 4px; background: #038a52; transition: width .6s ease; }
.aw-hr-bar-fill.medium { background: #f47c04; }
.aw-hr-bar-fill.low { background: #c0392b; }
.aw-hr-bar-value { font-size: 13px; font-weight: 600; color: #1a1a1a; min-width: 30px; text-align: right; }

/* ── Tour Amadeus Activity Details ── */
.aw-tour-activity {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 20px; margin-bottom: 20px;
}
.aw-tour-activity h3 { font-size: 16px; font-weight: 600; color: #1a1a1a; margin: 0 0 16px; }
.aw-ta-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.aw-ta-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.aw-ta-item:last-child { border-bottom: none; }
.aw-ta-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.aw-ta-value { font-size: 14px; color: #1a1a1a; font-weight: 500; margin-top: 2px; }
.aw-ta-pictures { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aw-ta-pictures img {
    width: 120px; height: 80px; object-fit: cover;
    border-radius: 8px; border: 1px solid #eee;
}

/* ── Flight Detail / Checkout Page ── */
.aw-flight-detail { background: #f1f2f3; min-height: 100vh; padding: 24px 0; }
.aw-fd-header { margin-bottom: 20px; }
.aw-fd-header h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.aw-fd-header .aw-fd-route { font-size: 14px; color: #666; }

.aw-fd-card {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 20px; margin-bottom: 16px;
}
.aw-fd-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }

/* Itinerary detail */
.aw-fd-itinerary { margin-bottom: 12px; }
.aw-fd-itin-label { font-size: 12px; font-weight: 600; color: #038a52; text-transform: uppercase; margin-bottom: 8px; }
.aw-fd-segment {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.aw-fd-segment:last-child { border-bottom: none; }
.aw-fd-seg-airline {
    width: 40px; height: 40px; border-radius: 8px;
    background: #f8f9fa; border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.aw-fd-seg-airline img { width: 30px; height: 30px; object-fit: contain; }
.aw-fd-seg-times { flex: 1; }
.aw-fd-seg-time { font-size: 15px; font-weight: 700; }
.aw-fd-seg-city { font-size: 12px; color: #888; }
.aw-fd-seg-meta { font-size: 12px; color: #666; text-align: right; }
.aw-fd-seg-flight { font-weight: 600; }

/* Seat Map */
.aw-seatmap-container { overflow-x: auto; }
.aw-seatmap-cabin { margin-bottom: 16px; }
.aw-seatmap-cabin h4 { font-size: 14px; color: #038a52; margin-bottom: 8px; }
.aw-seatmap-grid { display: inline-flex; flex-direction: column; gap: 4px; }
.aw-seatmap-row { display: flex; gap: 4px; align-items: center; }
.aw-seatmap-row-num { width: 24px; font-size: 11px; color: #888; text-align: center; }
.aw-seat {
    width: 28px; height: 28px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; cursor: default; transition: all .15s;
    border: 1px solid #ddd;
}
.aw-seat.available { background: #e8f5ee; border-color: #038a52; color: #038a52; cursor: pointer; }
.aw-seat.available:hover { background: #038a52; color: #fff; }
.aw-seat.occupied { background: #f0f0f0; color: #ccc; }
.aw-seat.aisle { width: 20px; border: none; background: transparent; }
.aw-seat.extra-legroom { background: #eaf4fc; border-color: #2e86c1; color: #2e86c1; cursor: pointer; }
.aw-seatmap-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; }
.aw-seatmap-legend span { display: flex; align-items: center; gap: 4px; }
.aw-seatmap-legend .aw-legend-box { width: 16px; height: 16px; border-radius: 3px; border: 1px solid #ddd; }

/* Upsell / Branded Fares */
.aw-upsell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.aw-upsell-card {
    border: 2px solid #eee; border-radius: 10px; padding: 16px;
    text-align: center; transition: all .2s; cursor: pointer;
}
.aw-upsell-card:hover { border-color: #038a52; }
.aw-upsell-card.selected { border-color: #038a52; background: #f0faf5; }
.aw-upsell-card .aw-us-class { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.aw-upsell-card .aw-us-price { font-size: 20px; font-weight: 700; color: #038a52; margin: 8px 0; }
.aw-upsell-card .aw-us-features { font-size: 12px; color: #666; text-align: left; }
.aw-upsell-card .aw-us-features li { padding: 2px 0; list-style: none; }
.aw-upsell-card .aw-us-features li i { color: #038a52; margin-right: 4px; }

/* Pricing Summary */
.aw-pricing-summary {
    background: #f8f9fa; border-radius: 10px; padding: 20px;
    border: 2px solid #038a52;
}
.aw-pricing-summary .aw-ps-row {
    display: flex; justify-content: space-between; padding: 6px 0;
    font-size: 14px;
}
.aw-pricing-summary .aw-ps-total {
    display: flex; justify-content: space-between;
    padding: 12px 0 0; margin-top: 8px;
    border-top: 2px solid #038a52;
    font-size: 18px; font-weight: 700;
}
.aw-book-btn {
    display: block; width: 100%; padding: 14px;
    background: #f47c04; color: #fff; border: none; border-radius: 8px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    margin-top: 16px; transition: background .2s;
    text-align: center; text-decoration: none;
}
.aw-book-btn:hover { background: #d96c00; color: #fff; text-decoration: none; }
.aw-book-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ── Booking Management ── */
.aw-booking-mgmt {
    background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 20px; margin-bottom: 20px;
}
.aw-booking-mgmt h4 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.aw-bm-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.aw-bm-form input {
    flex: 1; min-width: 120px; padding: 8px 12px;
    border: 1px solid #ddd; border-radius: 6px; font-size: 13px;
}
.aw-bm-form button {
    padding: 8px 16px; background: #038a52; color: #fff;
    border: none; border-radius: 6px; font-size: 13px;
    font-weight: 600; cursor: pointer;
}
.aw-bm-result {
    background: #f8f9fa; border-radius: 8px; padding: 14px; margin-top: 12px;
}

/* ── Hotel Autocomplete ── */
.aw-hotel-autocomplete {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #ddd;
    border-radius: 0 0 8px 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
    max-height: 260px; overflow-y: auto; z-index: 999;
    display: none;
}
.aw-hotel-autocomplete.show { display: block; }
.aw-hotel-ac-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; cursor: pointer;
    font-size: 13px; color: #333; border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.aw-hotel-ac-item:hover { background: #f0faf5; }
.aw-hotel-ac-item:last-child { border-bottom: none; }
.aw-hotel-ac-item i { color: #038a52; flex-shrink: 0; }
.aw-hotel-ac-item .aw-hac-name { font-weight: 500; }
.aw-hotel-ac-item .aw-hac-sub { font-size: 11px; color: #888; margin-left: auto; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .aw-trip-purpose { flex-wrap: wrap; }
    .aw-inspiration-grid { grid-template-columns: repeat(2, 1fr); }
    .aw-recommendations-grid { grid-template-columns: 1fr; }
    .aw-upsell-grid { grid-template-columns: 1fr; }
    .aw-cheapest-dates-list { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .aw-cheapdate { min-width: 80px; flex-shrink: 0; }
    .aw-fd-segment { flex-wrap: wrap; }
    .aw-hr-bars { gap: 8px; }
}
