/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header h1 i {
    margin-right: 1rem;
}

/* Search Results Layout */
.search-results {
    padding: 3rem 0;
    background: var(--light);
}

.results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.filter-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Results Content */
.results-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
}

.results-header select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--light);
    border-radius: 6px;
}

/* Flight Card */
.flight-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.flight-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.flight-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.airline-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.flight-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.flight-time {
    text-align: center;
}

.flight-time h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.flight-duration {
    text-align: center;
    flex: 1;
}

.flight-line {
    height: 2px;
    background: var(--gray);
    margin: 0.5rem 0;
    position: relative;
}

.flight-line::after {
    content: '✈';
    position: absolute;
    right: 0;
    top: -8px;
    color: var(--primary);
}

.flight-price {
    text-align: center;
}

.flight-price h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.btn-book {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-book:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hotel Card */
.hotel-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.hotel-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.hotel-card img {
    width: 250px;
    height: 200px;
    object-fit: cover;
}

.hotel-info {
    flex: 1;
    padding: 1.5rem;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.hotel-header h3 {
    font-size: 1.3rem;
}

.rating {
    color: var(--secondary);
}

.hotel-amenities {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hotel-amenities span {
    padding: 0.3rem 0.8rem;
    background: var(--light);
    border-radius: 20px;
    font-size: 0.9rem;
}

.hotel-price {
    padding: 1.5rem;
    text-align: center;
    border-left: 1px solid var(--light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hotel-price h2 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* Car Card */
.car-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.car-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.car-card img {
    width: 250px;
    height: 180px;
    object-fit: cover;
}

.car-info {
    flex: 1;
    padding: 1.5rem;
}

.car-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.car-category {
    color: var(--gray);
    margin-bottom: 1rem;
}

.car-features {
    display: flex;
    gap: 1.5rem;
}

.car-features span {
    color: var(--gray);
}

.car-price {
    padding: 1.5rem;
    text-align: center;
    border-left: 1px solid var(--light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.car-price h2 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* AI Planner */
.ai-planner-section {
    padding: 3rem 0;
    background: var(--light);
}

.planner-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.planner-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
}

.planner-form h2 {
    margin-bottom: 2rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.interest-tag {
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.interest-tag:hover {
    background: var(--primary);
    color: var(--white);
}

.interest-tag input {
    margin-right: 0.5rem;
}

.planner-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
}

.preview-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.preview-card h3 {
    margin-bottom: 1rem;
}

.preview-card ol,
.preview-card ul {
    padding-left: 1.5rem;
}

.preview-card li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
    .results-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .planner-layout {
        grid-template-columns: 1fr;
    }

    .flight-card,
    .hotel-card,
    .car-card {
        flex-direction: column;
    }

    .hotel-card img,
    .car-card img {
        width: 100%;
    }

    .hotel-price,
    .car-price {
        border-left: none;
        border-top: 1px solid var(--light);
    }
}

/* Sharp page-wide visual refresh */
.page-header {
    padding: 118px 0 46px;
    background:
        linear-gradient(135deg, rgba(15, 107, 255, 0.92), rgba(17, 24, 39, 0.88)),
        url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: #fff;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
}

.page-header p {
    color: rgba(255,255,255,0.84);
}

.search-results,
.ai-planner-section,
.results-section {
    background: #f6f8fb;
}

.filters,
.results-header,
.flight-card,
.hotel-card,
.car-card,
.planner-form,
.preview-card,
.search-box,
.checkout-section,
.table-card,
.filters-card {
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filters h3,
.results-header,
.flight-time h3,
.hotel-header h3,
.car-info h3 {
    color: #111827;
    font-weight: 900;
}

.filter-group {
    border-bottom-color: #e5e7eb;
}

.flight-card,
.hotel-card,
.car-card {
    padding: 20px;
}

.flight-card:hover,
.hotel-card:hover,
.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.flight-price h2,
.hotel-price h2,
.car-price h2 {
    color: #0f6bff;
    font-weight: 900;
}

.btn-book {
    border-radius: 7px;
    background: #0f6bff;
    font-weight: 850;
}

.btn-book:hover {
    background: #084ec0;
}

.hotel-amenities span {
    border: 1px solid #dfe6ef;
    background: #f6f8fb;
    border-radius: 999px;
    font-weight: 750;
}

.planner-layout {
    gap: 28px;
}

.planner-form,
.preview-card {
    padding: 28px;
}

.interest-tag {
    border: 1px solid #dfe6ef;
    border-radius: 7px;
    background: #fff;
    font-weight: 750;
}

.interest-tag:hover {
    background: #eef4ff;
    color: #0f6bff;
}

/* Premium service search pages */
.booking-search-page {
    min-height: 100vh;
    background: #f6f8fb;
}

.service-hero {
    padding: 124px 0 76px;
    background:
        linear-gradient(135deg, rgba(9, 36, 75, 0.9), rgba(15, 107, 255, 0.78)),
        url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: #fff;
}

.hotel-search-page .service-hero {
    background:
        linear-gradient(135deg, rgba(9, 36, 75, 0.88), rgba(15, 107, 255, 0.74)),
        url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.car-search-page .service-hero {
    background:
        linear-gradient(135deg, rgba(9, 36, 75, 0.9), rgba(15, 107, 255, 0.72)),
        url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.tour-search-page .service-hero {
    background:
        linear-gradient(135deg, rgba(9, 36, 75, 0.9), rgba(15, 107, 255, 0.72)),
        url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.insurance-search-page .service-hero {
    background:
        linear-gradient(135deg, rgba(9, 36, 75, 0.9), rgba(15, 107, 255, 0.72)),
        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.planner-search-page .service-hero {
    background:
        linear-gradient(135deg, rgba(9, 36, 75, 0.9), rgba(15, 107, 255, 0.72)),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.service-hero.compact-hero {
    padding-bottom: 104px;
}

.service-hero-content {
    max-width: 760px;
}

.service-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.service-hero h1 {
    max-width: 760px;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.35rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}

.service-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.7;
}

.service-search-section {
    margin-top: -64px;
    padding-bottom: 32px;
}

.service-search-panel {
    border: 1px solid rgba(223, 230, 239, 0.95);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
    padding: 24px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-heading h2 {
    margin-bottom: 4px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
}

.panel-heading p {
    color: #5f6b7a;
    font-size: 0.94rem;
}

.mock-badge {
    align-self: flex-start;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    padding: 7px 11px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.service-form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    align-items: end;
}

.flight-form-grid .form-group {
    grid-column: span 2;
}

.flight-form-grid .form-group:first-child,
.flight-form-grid .form-group:nth-child(3) {
    grid-column: span 3;
}

.hotel-form-grid .form-group,
.car-form-grid .form-group,
.tour-form-grid .form-group,
.insurance-form-grid .form-group {
    grid-column: span 3;
}

.planner-form-grid .form-group {
    grid-column: span 6;
}

.planner-form-grid .form-group.wide-field,
.hotel-form-grid .form-group.wide-field,
.car-form-grid .form-group.wide-field,
.tour-form-grid .form-group.wide-field,
.insurance-form-grid .form-group.wide-field {
    grid-column: span 6;
}

.planner-form-grid .form-group.full-field,
.hotel-form-grid .form-group.full-field,
.car-form-grid .form-group.full-field,
.tour-form-grid .form-group.full-field,
.insurance-form-grid .form-group.full-field {
    grid-column: 1 / -1;
}

.service-search-form .form-group label {
    display: block;
    margin-bottom: 7px;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.field-shell {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    padding: 0 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-shell:focus-within {
    border-color: #0f6bff;
    box-shadow: 0 0 0 4px rgba(15, 107, 255, 0.1);
}

.field-shell i {
    color: #0f6bff;
    font-size: 0.95rem;
}

.field-shell input,
.field-shell select,
.field-shell textarea {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: none !important;
}

.textarea-shell {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
}

.textarea-shell textarea {
    resize: vertical;
    min-height: 112px;
    line-height: 1.55;
}

.route-swap {
    width: 42px;
    height: 42px;
    align-self: end;
    justify-self: center;
    border: 1px solid #cfe0fb;
    border-radius: 50%;
    background: #eef4ff;
    color: #0f6bff;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.route-swap:hover {
    transform: translateY(-1px);
    background: #0f6bff;
    color: #fff;
}

.primary-search-button {
    width: 100%;
    min-height: 54px;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    font-size: 1rem;
}

.service-results-section {
    padding: 28px 0 64px;
}

.service-loading {
    margin-bottom: 18px;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    background: #fff;
    color: #5f6b7a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.service-loading i {
    color: #0f6bff !important;
}

.service-results {
    display: grid;
    gap: 16px;
}

.service-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.empty-results-state {
    min-height: 260px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed #c9d5e4;
    border-radius: 12px;
    background: #fff;
    padding: 36px;
}

.empty-results-state i {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #eef4ff;
    color: #0f6bff;
    font-size: 1.3rem;
}

.empty-results-state h2 {
    margin-bottom: 6px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
}

.empty-results-state p {
    max-width: 460px;
    color: #5f6b7a;
}

.empty-results-state.error-state i {
    background: #fef2f2;
    color: #dc2626;
}

.premium-flight-result {
    display: grid;
    grid-template-columns: 1fr 1.3fr auto;
    gap: 24px;
    align-items: center;
}

.flight-result-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.airline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    border-radius: 999px;
    background: #eef4ff;
    color: #0f6bff;
    padding: 8px 11px;
    font-size: 0.88rem;
    font-weight: 900;
}

.muted-meta,
.seat-count,
.flight-price .currency {
    color: #5f6b7a;
    font-size: 0.86rem;
    font-weight: 750;
}

.premium-flight-result .flight-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.premium-flight-result .flight-time .time {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 900;
}

.premium-flight-result .flight-time .airport {
    color: #5f6b7a;
    font-size: 0.85rem;
    font-weight: 800;
}

.premium-flight-result .flight-duration {
    min-width: 108px;
    color: #5f6b7a;
    font-weight: 800;
}

.premium-flight-result .flight-duration i {
    color: #0f6bff;
}

.flight-result-footer {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.flight-price .amount {
    color: #0f6bff;
    font-size: 1.8rem;
    font-weight: 950;
    line-height: 1;
}

.service-result-card {
    display: grid;
    gap: 18px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.service-result-media {
    min-height: 180px;
    border-radius: 9px;
    background: #eef4ff center/cover;
    overflow: hidden;
}

.service-result-media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.service-result-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.service-result-header h3 {
    margin: 0;
    color: #111827;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.25;
}

.service-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff8a00;
    font-weight: 900;
    white-space: nowrap;
}

.service-meta-list,
.coverage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-meta-list span,
.coverage-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    background: #f6f8fb;
    color: #4b5563;
    padding: 7px 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.service-result-description {
    color: #5f6b7a;
    line-height: 1.6;
}

.service-result-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.service-price .from {
    display: block;
    margin-bottom: 3px;
    color: #5f6b7a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.service-price .amount {
    color: #0f6bff;
    font-size: 1.8rem;
    font-weight: 950;
    line-height: 1;
}

.service-price small {
    color: #5f6b7a;
    font-weight: 750;
}

.insurance-plan-card {
    grid-column: span 1;
}

.planner-service-section {
    margin-top: -64px;
    padding: 0 0 64px;
}

.planner-service-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.planner-service-panel .service-search-panel {
    margin: 0;
}

.planner-side-stack {
    display: grid;
    gap: 16px;
}

.planner-side-stack .preview-card {
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* Static internal content pages */
.content-page {
    background: #f6f8fb;
    min-height: 100vh;
}

.content-hero {
    padding: 126px 0 70px;
    background:
        linear-gradient(135deg, rgba(9, 36, 75, 0.92), rgba(15, 107, 255, 0.78)),
        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: #fff;
}

.content-hero .eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.content-hero h1 {
    max-width: 780px;
    color: #fff;
    font-size: clamp(2.15rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 900;
}

.content-hero p {
    max-width: 680px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-section {
    margin-top: -38px;
    padding-bottom: 70px;
}

.content-card {
    max-width: 960px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #fff;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.1);
}

.content-block + .content-block {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.content-block h2,
.content-cta h2 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
}

.content-block p,
.content-block li,
.content-cta p {
    color: #5f6b7a;
    line-height: 1.75;
}

.content-block ul {
    margin: 14px 0 0 20px;
}

.content-block li + li {
    margin-top: 8px;
}

.content-cta {
    margin-top: 34px;
    border-radius: 10px;
    background: #eef4ff;
    padding: 24px;
}

.content-cta .btn-primary {
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .service-form-grid,
    .premium-flight-result,
    .service-results-grid,
    .planner-service-panel {
        grid-template-columns: 1fr 1fr;
    }

    .flight-form-grid .form-group,
    .flight-form-grid .form-group:first-child,
    .flight-form-grid .form-group:nth-child(3),
    .hotel-form-grid .form-group,
    .hotel-form-grid .form-group.wide-field,
    .car-form-grid .form-group,
    .car-form-grid .form-group.wide-field,
    .tour-form-grid .form-group,
    .tour-form-grid .form-group.wide-field,
    .insurance-form-grid .form-group,
    .insurance-form-grid .form-group.wide-field,
    .planner-form-grid .form-group,
    .planner-form-grid .form-group.wide-field {
        grid-column: span 1;
    }

    .route-swap {
        display: none;
    }

    .premium-flight-result .flight-route {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 640px) {
    .service-hero {
        padding-top: 104px;
    }

    .service-search-panel {
        padding: 18px;
    }

    .panel-heading,
    .service-form-grid,
    .premium-flight-result,
    .premium-flight-result .flight-route,
    .service-results-grid,
    .planner-service-panel {
        grid-template-columns: 1fr;
    }

    .panel-heading {
        display: grid;
    }

    .flight-result-footer {
        justify-items: stretch;
    }

    .service-result-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Premium page balance pass */
.booking-search-page .container,
.content-page .container {
    max-width: 1180px;
}

.service-search-panel,
.service-result-card,
.empty-results-state,
.content-card,
.planner-side-stack .preview-card {
    border-radius: 14px;
}

.service-search-panel,
.content-card,
.planner-side-stack .preview-card {
    min-width: 0;
}

.service-search-form,
.service-form-grid,
.service-results,
.service-results-grid,
.planner-service-panel,
.service-result-card,
.service-result-footer,
.panel-heading {
    min-width: 0;
}

.service-search-section {
    padding-bottom: 36px;
}

.service-results-section {
    padding-top: 30px;
    padding-bottom: 76px;
}

.service-form-grid {
    gap: 16px;
}

.field-shell {
    min-width: 0;
    min-height: 58px;
}

.field-shell input,
.field-shell select,
.field-shell textarea {
    min-width: 0;
}

.primary-search-button {
    min-height: 56px;
}

.service-results,
.service-results-grid {
    gap: 20px;
}

.service-result-card {
    min-width: 0;
    overflow: hidden;
}

.service-result-header,
.service-meta-list,
.coverage-grid {
    min-width: 0;
}

.service-result-header h3,
.service-result-description,
.service-meta-list span,
.coverage-pill {
    overflow-wrap: anywhere;
}

.service-result-footer {
    flex-wrap: wrap;
}

.service-result-footer .btn-book,
.service-result-footer button,
.service-result-footer a {
    min-width: 132px;
    justify-content: center;
    white-space: normal;
}

.premium-flight-result {
    border-radius: 14px;
    min-width: 0;
}

.premium-flight-result .flight-route,
.flight-result-main,
.flight-result-footer {
    min-width: 0;
}

.premium-flight-result .flight-time,
.premium-flight-result .flight-duration,
.airline-pill {
    min-width: 0;
    overflow-wrap: anywhere;
}

.content-card {
    margin-inline: auto;
}

.content-block,
.content-cta {
    min-width: 0;
}

@media (max-width: 1024px) {
    .service-result-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .service-result-footer .btn-book,
    .service-result-footer button,
    .service-result-footer a {
        width: 100%;
    }
}

.profile-body {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Hotel result cards with images */
.hotel-results-grid {
    grid-template-columns: 1fr 1fr;
}
.hotel-result-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.hotel-result-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
}
.hotel-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hotel-result-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hotel-amenities {
    margin: 0;
    color: #16a34a;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hotel-amenities i {
    font-size: 0.75rem;
}
@media (max-width: 900px) {
    .hotel-results-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .hotel-result-card {
        grid-template-columns: 1fr;
    }
    .hotel-result-img {
        height: 180px;
    }
}

/* Upgraded flight result cards */
.flt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s;
    margin-bottom: 14px;
}
.flt-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.flt-main {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding: 20px 24px;
    align-items: center;
}
.flt-airline {
    display: flex;
    align-items: center;
    gap: 12px;
}
.flt-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    padding: 2px;
}
.flt-logo-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0ea5e9;
    font-size: 1rem;
}
.flt-airline strong {
    display: block;
    font-size: .95rem;
    color: #0f172a;
}
.flt-meta {
    display: block;
    font-size: .78rem;
    color: #64748b;
}
.flt-route {
    display: flex;
    align-items: center;
    gap: 16px;
}
.flt-point {
    text-align: left;
    min-width: 60px;
}
.flt-point-end {
    text-align: right;
}
.flt-time {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.flt-code {
    font-size: .82rem;
    color: #64748b;
    font-weight: 600;
}
.flt-path {
    flex: 1;
    text-align: center;
}
.flt-dur {
    font-size: .78rem;
    color: #475569;
    font-weight: 600;
}
.flt-line {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 6px 0 4px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    position: relative;
}
.flt-line span:first-child,
.flt-line span:last-child {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0ea5e9;
    flex-shrink: 0;
}
.flt-stop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #fff;
    flex-shrink: 0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.flt-stops {
    font-size: .75rem;
    color: #64748b;
}

.flt-details {
    padding: 0 24px 16px;
}
.flt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.flt-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: .76rem;
    font-weight: 600;
}
.flt-tag i {
    font-size: .7rem;
}
.flt-tag.cabin {
    background: #eff6ff;
    color: #1d4ed8;
}
.flt-tag.good {
    background: #f0fdf4;
    color: #16a34a;
}
.flt-tag.warn {
    background: #fef3c7;
    color: #92400e;
}

.flt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}
.flt-price-block {
    text-align: left;
}
.flt-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
}
.flt-per {
    font-size: .78rem;
    color: #64748b;
}
.flt-book {
    padding: 12px 28px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.flt-book:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

@media (max-width: 768px) {
    .flt-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .flt-route {
        gap: 10px;
    }
    .flt-time {
        font-size: 1.1rem;
    }
    .flt-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .flt-price-block {
        text-align: center;
    }
    .flt-book {
        width: 100%;
        justify-content: center;
    }
}
