/**
 * Gate 1 Travel Style Search & Tabular Results CSS
 * Designed for Sun Travel USA
 * Highly optimized for Seniors (50-70yo): Large fonts, high contrast, clean tabular layout
 */

/* Hide default TravelTour theme title bar on Search Page */
.page-template-page-tim-kiem-tour .traveltour-page-title-wrap,
.page-id-6532 .traveltour-page-title-wrap,
.page-template-page-tim-kiem-tour .traveltour-breadcrumbs,
.page-id-6532 .traveltour-breadcrumbs,
.page-template-page-tim-kiem-tour .traveltour-header-background,
.page-id-6532 .traveltour-header-background,
.page-template-page-tim-kiem-tour .st-subpage-hero,
.page-id-6532 .st-subpage-hero,
.page-template-page-tim-kiem-tour .st-subpage-categories-bar,
.page-id-6532 .st-subpage-categories-bar {
    display: none !important;
}

.st-mobile-cell-lbl {
    display: none !important;
}

/* ==========================================================================
   1. HERO WIDGET: FIND A VACATION (GATE 1 STYLE)
   ========================================================================== */
.st-search-inputs-row.st-gate1-row {
    display: grid !important;
    grid-template-columns: 1fr 1.25fr 1.15fr 1.15fr auto !important;
    gap: 12px !important;
    align-items: center !important;
}

.st-search-submit-btn.st-gate1-search-btn {
    background: #1e40af !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 0 24px !important;
    height: 52px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.st-search-submit-btn.st-gate1-search-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.45) !important;
}

.traveltour-body .st-gate1-row .st-search-input-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    transition: border-color 0.2s ease !important;
}

.traveltour-body .st-gate1-row .st-search-input-box:focus-within {
    border-color: #1e40af !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15) !important;
}

.traveltour-body .st-gate1-row .st-search-input-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
    display: block !important;
}

.traveltour-body .st-gate1-row select.st-search-input-control {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    height: 26px !important;
    cursor: pointer !important;
    width: 100% !important;
}

@media (max-width: 1199px) {
    .st-search-inputs-row.st-gate1-row {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
    .st-search-submit-btn.st-gate1-search-btn {
        grid-column: span 3 !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .st-search-inputs-row.st-gate1-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .st-search-submit-btn.st-gate1-search-btn {
        grid-column: span 1 !important;
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important;
    }
}

/* ==========================================================================
   2. SEARCH RESULTS PAGE: TABLE LAYOUT (GATE 1 STYLE)
   ========================================================================== */
.st-search-page-wrapper {
    background-color: #f8fafc;
    padding-bottom: 80px;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
}

/* Hero bar */
.st-search-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 40px 0 36px;
    border-bottom: 3px solid #f37021;
}

.st-search-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.st-search-breadcrumb {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.st-search-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
}

.st-search-breadcrumb a:hover {
    color: #f37021;
}

.st-search-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.st-search-hero-desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0;
    line-height: 1.5;
}

/* Secondary Filter Bar on Top of Results */
.st-filter-bar-card {
    max-width: 1240px;
    margin: -24px auto 30px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.st-filter-bar-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr auto;
    gap: 14px;
    align-items: flex-end;
}

.st-filter-col label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.st-filter-col select,
.st-filter-col input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.st-filter-btn {
    height: 44px;
    padding: 0 24px;
    background: #ea580c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.st-filter-btn:hover {
    background: #c2410c;
}

/* Results Meta & View Toggle */
.st-results-header-row {
    max-width: 1240px;
    margin: 0 auto 16px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.st-results-counter-text {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.st-results-counter-text strong {
    color: #ea580c;
    font-size: 19px;
}

.st-results-phone-note {
    font-size: 15px;
    color: #475569;
}

.st-results-phone-note a {
    color: #ea580c;
    font-weight: 800;
    text-decoration: none;
}

/* ==========================================================================
   3. THE TABULAR RESULTS TABLE (1:1 GATE 1 REPLICA - 100% FULL WIDTH)
   ========================================================================== */
.st-table-container {
    max-width: 1420px;
    width: 96%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.st-table-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    overflow: hidden !important; /* Zero horizontal scrollbar */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.st-gate1-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

/* Header Columns totaling exactly 100% */
.st-gate1-table thead th {
    background: #475569;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid #334155;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.st-gate1-table thead th.th-package { width: 22%; }
.st-gate1-table thead th.th-desc    { width: 28%; }
.st-gate1-table thead th.th-date    { width: 13%; }
.st-gate1-table thead th.th-season  { width: 9%; }
.st-gate1-table thead th.th-style   { width: 9%; }
.st-gate1-table thead th.th-land    { width: 6.5%; text-align: right; }
.st-gate1-table thead th.th-air     { width: 6.5%; text-align: right; }
.st-gate1-table thead th.th-action  { width: 6%; text-align: center; }

/* Table Body Rows */
.st-gate1-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.15s ease;
}

.st-gate1-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.st-gate1-table tbody tr:hover {
    background-color: #eff6ff;
}

.st-gate1-table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    line-height: 1.4;
    word-break: break-word;
    box-sizing: border-box;
}

/* Package Name Column */
.td-package-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.td-package-title a {
    color: #0369a1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.td-package-title a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.td-package-duration {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Description / Route Column */
.td-desc-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

/* Date Column */
.td-date-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

/* Season Column */
.td-season-text {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
}

/* Travel Style Column */
.td-style-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 6px;
    border-radius: 12px;
    text-align: center;
    line-height: 1.3;
}

/* Price Columns */
.td-price-land {
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: #b91c1c;
    white-space: nowrap;
}

.td-price-air {
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: #b91c1c;
    white-space: nowrap;
}

.td-price-empty {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

/* Action Button */
.td-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    background: #ea580c;
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.td-action-btn:hover {
    background: #c2410c;
}

/* ==========================================================================
   4. EMPTY & ERROR STATES
   ========================================================================== */
.st-empty-state-card {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    max-width: 680px;
    margin: 40px auto;
}

.st-empty-state-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    font-size: 32px;
    color: #ea580c;
    background: #fff7ed;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.st-empty-state-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.st-empty-state-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

.st-empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.st-empty-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ea580c;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.st-empty-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   5. MOBILE & TABLET RESPONSIVE (BREAKPOINT: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .st-filter-bar-form {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .st-filter-bar-form .st-filter-btn {
        grid-column: span 2;
    }

    .st-mobile-cell-lbl {
        display: inline-block !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        width: 105px !important;
    }

    .st-search-hero-title {
        font-size: 24px;
    }

    .st-filter-bar-card {
        padding: 16px;
        margin-top: 10px;
    }

    /* Transform Table to Clean Vertical Cards for Seniors */
    .st-table-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .st-gate1-table thead {
        display: none !important; /* Hide table headers on mobile */
    }

    .st-gate1-table {
        min-width: 100% !important;
        table-layout: auto !important;
    }

    .st-gate1-table,
    .st-gate1-table tbody,
    .st-gate1-table tr,
    .st-gate1-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .st-gate1-table tbody tr {
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1.5px solid #e2e8f0 !important;
        margin-bottom: 16px !important;
        padding: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .st-gate1-table tbody td {
        padding: 6px 0 !important;
        border: none !important;
        text-align: left !important;
    }

    .st-gate1-table tbody td.td-package {
        border-bottom: 1px solid #f1f5f9 !important;
        padding-bottom: 10px !important;
        margin-bottom: 8px !important;
    }

    .td-package-title {
        font-size: 18px !important;
    }

    .st-gate1-table tbody td.td-desc {
        color: #475569 !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
        line-height: 1.5 !important;
    }

    .td-price-land,
    .td-price-air {
        text-align: left !important;
        font-size: 18px !important;
        display: inline-block !important;
    }

    .st-gate1-table tbody td.td-action {
        margin-top: 12px !important;
        padding-top: 10px !important;
        border-top: 1px dashed #e2e8f0 !important;
    }

    .st-gate1-table tbody td.td-action .td-action-btn {
        width: 100% !important;
        height: 48px !important;
        justify-content: center !important;
        font-size: 15px !important;
    }
}

@media (max-width: 576px) {
    .st-filter-bar-form {
        grid-template-columns: 1fr;
    }
    .st-filter-bar-form .st-filter-btn {
        grid-column: span 1;
        width: 100%;
    }
}
