/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; background-color: #f4f6f8; color: #333; line-height: 1.6; transition: background-color 0.3s ease; }
.container { width: 90%; margin: auto; padding: 20px 0; transition: width 0.5s ease, max-width 0.5s ease; }
.container.full-width { width: 95%; }

.hidden { display: none !important; }

/* Header */
header { background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%); padding: 15px 0; color: #fff; text-align: center; margin-bottom: 20px; }
header h1 { font-size: 1.8em; font-weight: 700; }

/* Main Content */
main { display: flex; flex-direction: column; gap: 20px; }
.main-container { display: flex; flex-direction: column; gap: 20px; transition: flex-direction 0s ease 0.5s; }
.left-panel { display: flex; flex-direction: column; gap: 20px; width: 100%; transition: all 0.5s ease; }
.right-panel { width: 100%; transition: all 0.5s ease; }
.sticky-wrapper { position: -webkit-sticky; position: sticky; top: 20px; z-index: 10; }

/* Search Section */
.search-section { background-color: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.5s ease; width: 100%; max-width: 100%; overflow: hidden; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; }
.form-group input[type="number"], .form-group input[type="date"], .form-group input[type="text"], .form-group select { width: 100%; padding: 10px; border: 1px solid #ccd0d5; border-radius: 4px; transition: border 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group input[type="text"]:focus { border-color: #6b73ff; outline: none; }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }

/* --- Nicer Range Slider Styles --- */
.form-row .stop-days-group { flex: 2; min-width: 280px; }
.stop-days-group .form-group-label { display: block; font-weight: 500; margin-bottom: 5px; }
.range-slider-wrapper { }
.range-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.range-header label { margin-bottom: 0; }
.range-inputs { display: flex; align-items: center; gap: 8px; }
.range-inputs input[type="number"] { width: 55px; padding: 6px 8px; text-align: center; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px; font-size: 0.9em; -moz-appearance: textfield; }
.range-inputs input[type="number"]::-webkit-outer-spin-button, .range-inputs input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range-inputs span { color: #888; font-weight: 500; }
.range-slider { position: relative; height: 20px; }
.range-slider .slider-track-background { position: absolute; width: 100%; height: 5px; background: #e9ecef; top: 50%; transform: translateY(-50%); border-radius: 3px; z-index: 1; }
.range-slider .slider-track-range { position: absolute; height: 5px; background: #6b73ff; top: 50%; transform: translateY(-50%); border-radius: 3px; z-index: 2; }
.range-slider input[type="range"] { position: absolute; top: 0; left: 0; width: 100%; -webkit-appearance: none; appearance: none; pointer-events: none; background: transparent; z-index: 3; height: 100%; margin: 0; }
.range-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: all; width: 18px; height: 18px; background: #6b73ff; border-radius: 50%; cursor: pointer; margin-top: -6.5px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.range-slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.range-slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(107, 115, 255, 0.3); }
.range-slider input[type="range"]::-moz-range-thumb { pointer-events: all; -moz-appearance: none; appearance: none; width: 14px; height: 14px; background: #6b73ff; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.range-slider input[type="range"]:hover::-moz-range-thumb { transform: scale(1.15); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.range-slider input[type="range"]:active::-moz-range-thumb { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(107, 115, 255, 0.3); }

/* Buttons */
.btn { position: relative; display: inline-block; background-color: #6b73ff; color: #fff; padding: 10px 20px; border: none; border-radius: 20px; cursor: pointer; font-size: 1em; transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; width: 100%; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn i { margin-right: 5px; }
.btn:hover { background-color: #575fcf; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-small { padding: 5px 10px; font-size: 0.8em; border-radius: 15px; width: auto; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; white-space: nowrap; }
.btn-small i { font-size: 0.85em; margin-right: 3px; }
.btn-book-flight { background-color: #28a745; color: #fff; }
.btn-book-flight:hover { background-color: #218838; color: #fff; }
.btn.btn-secondary { background-color: #6c757d; }
.btn.btn-secondary:hover { background-color: #5a6268; }

/* Spinner */
.spinner { display: inline-block; width: 16px; height: 16px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; margin-left: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { cursor: not-allowed; opacity: 0.7; }
.btn.loading .spinner { display: inline-block; }
.btn .spinner { display: none; }

/* Reset Button */
.reset-btn { margin-top: 15px; background-color: #ff6b6b; display: none; border-radius: 20px; }
.reset-btn:hover { background-color: #ff4c4c; }
.reset-btn.hidden { display: none; }

/* Map Section */
.map-section { background-color: #fff; padding: 15px; border-radius: 6px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.5s ease; opacity: 0; transform: translateY(20px); width: 100%; max-width: 100%; height: 350px; margin-bottom: 15px; }
.map-section.visible { opacity: 1; transform: translateY(0); }
.map-section.hidden { display: none; }
#map { width: 100%; height: 100%; }

/* --- Example Results Section --- */
.example-results-section { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.example-results-section h2 { font-size: 1.5em; color: #333; margin: 0 0 20px 0; font-weight: 700; text-align: center; }
.example-results-container { display: grid; grid-template-columns: 1fr; gap: 15px; }
.example-result-card { display: flex; flex-direction: column; background-color: #fff; border-radius: 8px; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; text-align: left; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-top: 4px solid; border-image: linear-gradient(135deg, #7b83ff 0%, #1a25ff 100%) 1; }
.example-result-card:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.example-result-card .card-header { padding: 12px 15px; border-bottom: 1px solid #f0f2f5; }
.example-result-card .card-header h3 { margin: 0; font-size: 1.1em; font-weight: 500; color: #2c3e50; }
.example-result-card .card-body { padding: 15px; flex-grow: 1; }
.example-result-card .card-body .route { margin: 0; font-size: 0.9em; color: #34495e; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.example-result-card .card-body .route i.fa-route { color: #6b73ff; font-size: 1.1em; margin-top: 3px; flex-shrink: 0; }
.example-result-card .card-body .route span { font-weight: 500; }
.example-result-card .card-body .route .route-arrow { font-size: 0.7em; color: #888; vertical-align: middle; margin: 0 4px; }
.example-result-card .card-footer { background-color: #f8f9fa; padding: 12px 15px; text-align: right; margin-top: auto; border-top: 1px solid #e9ecef; }
.example-result-card .price-info { line-height: 1.2; }
.example-result-card .price-amount { display: block; font-size: 1.3em; font-weight: 700; color: #28a745; }
.example-result-card .price-detail { display: block; font-size: 0.8em; color: #6c757d; font-weight: 500; }

/* Results Navigation (Tabs) */
.results-navigation { margin-bottom: 15px; border-bottom: 2px solid #dee2e6; padding-bottom: 5px; transition: opacity 0.3s ease; opacity: 1; }
.results-navigation .tab { display: inline-block; padding: 8px 15px; cursor: pointer; border: none; background-color: transparent; color: #495057; font-weight: 500; border-bottom: 3px solid transparent; transition: color 0.2s ease, border-bottom-color 0.2s ease; position: relative; }
.results-navigation .tab:hover { color: #007bff; }
.results-navigation .tab.active { color: #6b73ff; border-bottom-color: #6b73ff; }
.results-navigation .tab .badge { background-color: #dc3545; color: white; font-size: 0.7em; padding: 2px 5px; border-radius: 8px; position: absolute; top: 4px; right: 2px; line-height: 1; }

/* Airport Filter Section */
.airport-filter-section { background-color: #fff; padding: 12px 15px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 15px; }
.airport-filter-section .filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.airport-filter-section h4 { margin-top: 0; margin-bottom: 0; font-size: 1.05em; color: #333; font-weight: 500; }
#clear-airport-filters-btn { padding: 4px 8px; font-size: 0.75em; }
#clear-airport-filters-btn i { margin-right: 3px; font-size: 0.9em; }
.airport-filter-pills-container { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 3px; }
.airport-filter-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 14px; border: 1px solid #ccd0d5; cursor: pointer; font-size: 0.8em; transition: all 0.2s ease; background-color: #f0f2f5; color: #333; line-height: 1.3; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airport-filter-pill:hover { border-color: #6b73ff; background-color: #e6e9ff; }
.airport-filter-pill i { margin-left: 5px; font-size: 0.85em; flex-shrink: 0; }
.airport-filter-pill.include { background-color: #d1e7dd; border-color: #badbcc; color: #0f5132; }
.airport-filter-pill.include i { color: #198754; }
.airport-filter-pill.exclude { background-color: #f8d7da; border-color: #f5c2c7; color: #58151c; }
.airport-filter-pill.exclude i { color: #dc3545; }

/* Results Section */
.results-section { background-color: transparent; padding: 0; border-radius: 0; box-shadow: none; transition: all 0.5s ease; opacity: 0; transform: translateY(0); }
.results-section.visible { opacity: 1; transform: translateY(0); }
.results-section.hidden { display: none; }

/* Results Table Styling */
#results table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin-top: 0; }
#results table thead { background-color: #6b73ff; color: #fff; }
#results table thead th { padding: 10px 8px; text-align: center; font-weight: 500; position: sticky; top: 0; z-index: 5; font-size: 0.85em; white-space: nowrap; }
#results table thead th:first-child { border-top-left-radius: 6px; width: 40px; }
#results table thead th:nth-child(2) { text-align: left; }
#results table thead th:last-child { border-top-right-radius: 6px; }

#results table tbody tr.result-summary-row { background-color: #fff; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.07); transition: background-color 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease; cursor: pointer; overflow: hidden; }
#results table tbody tr.result-summary-row:hover { background-color: #f8f9fa; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
#results table tbody tr.result-summary-row.active-row { box-shadow: 0 4px 12px rgba(107, 115, 255, 0.25); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

#results table tbody td { padding: 8px; text-align: center; vertical-align: middle; font-size: 0.9em; }
#results table tbody td.star-cell { width: 40px; padding: 8px 0; }
#results table tbody td.flight-path-cell { text-align: left; }
#results table tbody td.date-cell { white-space: nowrap; font-size: 0.85em; }

/* Price Cell & Alternatives Prompt */
td[data-label="Total (€)"] .price-container { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.price-container .price-main { font-weight: 700; font-size: 1.1em; }
.price-container .price-prefix { font-size: 0.8em; font-weight: 400; color: #6c757d; }
.price-container .alternatives-prompt { font-size: 0.8em; color: #007bff; text-decoration: underline; font-weight: 500; cursor: pointer; }
.price-container .alternatives-prompt:hover { color: #0056b3; }

/* Save Star Icon */
.save-star-icon { font-size: 1.2em; color: #ffc107; cursor: pointer; transition: transform 0.2s ease, color 0.2s ease; }
.save-star-icon:hover { transform: scale(1.2); }
.save-star-icon.fas { color: #ffc107; }
.save-star-icon.far { color: #adb5bd; }
.save-star-icon.far:hover { color: #ffc107; }
.flight-path-icon { margin: 0 4px; color: #6b73ff; font-size: 0.85em; }

/* Integrated Details Styling */
.flight-details-row { background-color: #fdfdff; box-shadow: 0 4px 12px rgba(107, 115, 255, 0.25); border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; cursor: default; }
.flight-details-row td { padding: 0; border: none; }
.integrated-details-content { padding: 10px 15px 15px 40px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.integrated-details-content::before { content: ''; position: absolute; left: 20px; top: 15px; bottom: 15px; width: 2px; background-color: #e9ecef; z-index: 0; }

.flight-segment, .stay-info { position: relative; }
.flight-segment::before, .stay-info::before { font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: -31px; top: 12px; background-color: #fff; border: 2px solid #6b73ff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.8em; color: #6b73ff; z-index: 1; }
.flight-segment::before { content: '\f072'; }
.stay-info::before { content: '\f236'; }

.flight-segment { background-color: #f8f9fa; border-radius: 4px; padding: 6px 10px; border: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.segment-main { flex-grow: 1; }
.segment-action { flex-shrink: 0; }
.segment-airports { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.airport { flex: 1; }
.airport.from { text-align: left; }
.airport.to { text-align: right; }
.airport-code { display: block; font-size: 0.9em; font-weight: 700; }
.airport-name { display: block; font-size: 0.75em; color: #555; line-height: 1.2; }
.airport-time { display: block; font-size: 0.8em; color: #333; font-weight: 500; }
.segment-arrow { display: flex; flex-direction: column; align-items: center; text-align: center; color: #6b73ff; margin: 0 5px; }
.segment-arrow i { font-size: 1.1em; }
.segment-duration { font-size: 0.75em; color: #555; font-weight: 500; white-space: nowrap; }
.segment-price { color: #28a745; font-weight: 700; font-size: 1.1em; }

.stay-info { display: flex; align-items: center; gap: 10px; background-color: #e9f5ff; padding: 6px 10px; border-radius: 4px; border: 1px solid #cce5ff; font-size: 0.85em; }
.stay-details { flex-grow: 1; line-height: 1.2; }
.stay-location { display: block; font-weight: 500; color: #333; }
.stay-duration { display: inline-block; font-size: 0.9em; color: #555; }

/* MODAL STYLES */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal-container { background-color: #fff; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); width: 100%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column; }
.modal-header { padding: 12px 15px; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 1.2em; font-weight: 500; }
.modal-close-btn { background: none; border: none; font-size: 1.8em; line-height: 1; cursor: pointer; color: #6c757d; }
.modal-body { padding: 15px; overflow-y: auto; }
.alternatives-table { width: 100%; font-size: 0.9em; border-collapse: collapse; }
.alternatives-table thead { background-color: #f8f9fa; }
.alternatives-table th, .alternatives-table td { padding: 8px; text-align: left; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.alternatives-table th { font-weight: 500; white-space: nowrap; }
.alternatives-table td:last-child { font-weight: 700; text-align: right; color: #28a745; }
.alternatives-table tbody tr { cursor: pointer; transition: background-color 0.2s ease; }
.alternatives-table tbody tr:hover { background-color: #e9ecef; }
.alternatives-table tbody tr.is-active-selection { background-color: #d1e7dd; font-weight: 500; cursor: default; }
.alternatives-table tbody tr.is-active-selection:hover { background-color: #d1e7dd; }
.alternatives-table tbody tr.is-active-selection .price-col::after { content: " (Selected)"; font-weight: normal; font-size: 0.9em; color: #0f5132; }

/* Pagination Styles */
.pagination-container { display: flex; justify-content: center; padding: 20px 0; margin-top: 10px; }
.pagination { display: flex; padding-left: 0; list-style: none; border-radius: 0.25rem; }
.page-item { margin: 0 2px; }
.page-item .page-link, .page-item span.page-link { position: relative; display: block; padding: 0.5rem 0.75rem; line-height: 1.25; color: #6b73ff; background-color: #fff; border: 1px solid #dee2e6; text-decoration: none; transition: all 0.15s ease-in-out; cursor: pointer; }
.page-item:first-child .page-link, .page-item:first-child span.page-link { border-top-left-radius: 0.25rem; border-bottom-left-radius: 0.25rem; }
.page-item:last-child .page-link, .page-item:last-child span.page-link { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }
.page-item .page-link:hover { z-index: 2; color: #575fcf; background-color: #e9ecef; border-color: #ced4da; }
.page-item.active .page-link, .page-item.active span.page-link { z-index: 3; color: #fff; background-color: #6b73ff; border-color: #6b73ff; }
.page-item.disabled .page-link, .page-item.disabled span.page-link { color: #6c757d; pointer-events: none; cursor: auto; background-color: #fff; border-color: #dee2e6; }

/* Footer */
footer { background-color: #fff; padding: 15px 0; text-align: center; margin-top: 30px; border-top: 1px solid #e0e0e0; }
footer p { color: #777; font-size: 0.85em; }

/* --- Responsive Design --- */
@media (min-width: 769px) {
    .main-container { flex-direction: row; gap: 25px; align-items: flex-start; }
    .left-panel { width: 35%; flex-shrink: 0; }
    .right-panel { width: 65%; flex-grow: 1; }
    .main-container.search-active .left-panel { width: 35%; }
    .main-container.search-active .right-panel { width: 65%; }
    .example-results-container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 992px) {
    .segment-airports { flex-direction: column; align-items: stretch; gap: 5px; }
    .airport.from, .airport.to { text-align: center; }
    .segment-arrow i { transform: rotate(90deg); }
    .segment-arrow { margin: 5px 0; }
    .flight-segment { flex-direction: column; align-items: stretch; }
    .segment-action { margin-top: 8px; text-align: center; }
}
@media (max-width: 768px) {
    .main-container { flex-direction: column; }
    .left-panel, .right-panel { width: 100%; }
    .main-container.search-active .left-panel { position: static; width: 100%; order: 1; }
    .main-container.search-active .left-panel .sticky-wrapper { position: static; top: auto; bottom: auto; }
    .main-container.search-active .right-panel { width: 100%; order: 2; }

    .map-section { height: 280px; margin-top: 0; transform: translateY(0); margin-bottom: 15px; }
    .results-section { max-width: 100%; }
    .results-navigation { margin-bottom: 10px; }
    .results-navigation .tab { padding: 6px 10px; font-size: 0.9em; }
    .pagination-container { padding: 15px 5px; }
    .page-item .page-link, .page-item span.page-link { padding: 0.4rem 0.6rem; font-size: 0.9em; }

    .airport-filter-section .filter-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .airport-filter-section h4 { margin-bottom: 5px; font-size: 1em; }
    #clear-airport-filters-btn { align-self: flex-start; font-size: 0.7em; padding: 3px 6px; }
    .airport-filter-pill { font-size: 0.75em; padding: 3px 8px; max-width: 150px; }

    .select2-container--default .select2-selection--multiple { height: auto; min-height: 38px; }
    .select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; padding: 5px; }
    .select2-container--default .select2-selection--multiple .select2-selection__choice { margin: 2px 5px 2px 0; }
    .select2-container--default .select2-selection--multiple .select2-search--inline { width: auto; }
    .select2-container--default .select2-results__option { white-space: normal; }

    #results table { border-spacing: 0 5px; }
    #results table thead { display: none; }
    #results table tbody tr.result-summary-row { display: block; margin-bottom: 0; border-radius: 6px; }
    #results table tbody tr.result-summary-row.active-row { border-radius: 6px 6px 0 0; }
    #results table tbody tr.result-summary-row td { display: block; text-align: right; padding-left: 45%; position: relative; border: none; border-bottom: 1px dotted #eee; padding: 8px 10px; border-radius: 0 !important; font-size: 0.9em; }
    #results table tbody tr.result-summary-row td.star-cell { position: absolute; top: 0; left: 0; height: 100%; width: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border-bottom: none; background-color: #f9f9f9; border-right: 1px dotted #eee; border-radius: 6px 0 0 6px !important; }
    #results table tbody tr.result-summary-row.active-row td.star-cell { border-radius: 6px 0 0 0 !important; }
    #results table tbody tr.result-summary-row td.star-cell::before { display: none; }
    #results table tbody tr.result-summary-row td:not(.star-cell) { padding-left: calc(40% + 40px); }
    #results table tbody tr.result-summary-row td::before { content: attr(data-label); position: absolute; left: 48px; width: calc(40% - 16px); padding-right: 5px; white-space: nowrap; text-align: left; font-weight: bold; top: 50%; transform: translateY(-50%); font-size: 0.9em; }
    #results table tbody tr.result-summary-row td.flight-path-cell { text-align: left; padding-left: 48px; font-weight: normal; background-color: #f9f9f9; border-radius: 0 6px 0 0 !important; min-height: 40px; }
    #results table tbody tr.result-summary-row td.flight-path-cell::before { position: static; display: block; transform: none; width: auto; margin-bottom: 3px; font-weight: bold; padding-left: 0; }
    #results table tbody tr.result-summary-row td:last-child { border-bottom: none; }

    .flight-details-row { display: block; border-radius: 0 0 6px 6px; margin-bottom: 10px; border-top: none; }
    .flight-details-row td { display: block; width: 100%; }
    .integrated-details-content { padding: 10px 10px 10px 30px; }
    .integrated-details-content::before { left: 15px; }
    .flight-segment::before, .stay-info::before { left: -26px; width: 20px; height: 20px; font-size: 0.7em; }

    .alternatives-table thead { display: none; }
    .alternatives-table tr { display: block; margin-bottom: 8px; border: 1px solid #e9ecef; border-radius: 4px; padding: 5px; background-color: #fcfcfc; }
    .alternatives-table td { display: block; text-align: right !important; position: relative; padding-left: 50%; border-bottom: 1px dotted #eee; white-space: normal; padding-top: 6px; padding-bottom: 6px; }
    .alternatives-table tr td:last-child { border-bottom: none; }
    .alternatives-table td::before { content: attr(data-label); position: absolute; left: 8px; width: calc(50% - 16px); padding-right: 5px; white-space: nowrap; text-align: left !important; font-weight: bold; color: #333; }
}