/* ============================================
   bydhi — Premium Light Form / Dark Results
   ============================================ */

:root {
    --gold: #C9A84C;
    --gold-hover: #E5C266;
    --primary: var(--gold);
    --bg-light: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-dark: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.bydhi-exceljet-plugin {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

/* --- Form Header --- */
.bydhi-exceljet-plugin .bydhi-form-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bydhi-exceljet-plugin .bydhi-form-title {
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    line-height: 1.2;
}

.bydhi-exceljet-plugin .bydhi-form-desc {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Booking Card --- */
.bydhi-exceljet-plugin .bydhi-booking-card {
    background: var(--bg-light);
/*     border-radius: var(--radius); */
/*     box-shadow: var(--shadow); */
/*     border: 1px solid var(--border); */
    overflow: visible; /* Crucial for dropdowns */
    max-width: 1200px;
    margin: 0 auto 40px;
}

.bydhi-exceljet-plugin .bydhi-booking-card__header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.bydhi-exceljet-plugin .bydhi-booking-card__tabs {
    display: flex; gap: 10px;
}

.bydhi-exceljet-plugin .bydhi-tab-btn {
    padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border);
    background: #FFF; color: var(--text-muted); font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}

.bydhi-exceljet-plugin .bydhi-tab-btn.bydhi-active {
    background: var(--primary); color: #FFF; border-color: var(--primary);
}

/* --- Form Fields --- */
.bydhi-exceljet-plugin .bydhi-route-block {
    padding: 30px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.bydhi-exceljet-plugin .bydhi-route-block__label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 20px;
}

.bydhi-exceljet-plugin .bydhi-route-block__fields {
    display: flex; align-items: flex-end; gap: 15px;
}

.bydhi-exceljet-plugin .bydhi-field-group {
    flex: 1; position: relative;
}

.bydhi-exceljet-plugin .bydhi-field-group--date { flex: 0 0 180px; }
.bydhi-exceljet-plugin .bydhi-field-group--passengers { flex: 0 0 150px; }

.bydhi-exceljet-plugin .bydhi-field-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 8px;
}

.bydhi-exceljet-plugin .bydhi-input {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; color: var(--text-main);
    background: #FFF; transition: 0.2s; outline: none;
}

.bydhi-exceljet-plugin .bydhi-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1); }

/* --- Autocomplete Dropdown --- */
.bydhi-exceljet-plugin .bydhi-autocomplete-wrapper { position: relative; }

.bydhi-exceljet-plugin .bydhi-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFF;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-dropdown.bydhi-open {
    display: block;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid var(--bg-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item:last-child { border-bottom: none; }
.bydhi-exceljet-plugin .bydhi-autocomplete-item:hover { background: var(--bg-subtle); }

.bydhi-exceljet-plugin .bydhi-autocomplete-item__iata {
    background: var(--bg-subtle);
    color: var(--gold);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__city {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.bydhi-exceljet-plugin .bydhi-swap-btn {
    background: var(--primary) !important;
    border: none;
    color: #FFF !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 3px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
    z-index: 10;
}

.bydhi-exceljet-plugin .bydhi-swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    background: #000 !important;
}

.bydhi-exceljet-plugin .bydhi-swap-btn svg,
.bydhi-exceljet-plugin .bydhi-swap-btn i,
.bydhi-swap-btn svg,
.bydhi-swap-btn i {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    stroke-width: 2.5 !important;
}

.bydhi-exceljet-plugin .bydhi-form-actions { padding: 25px 30px; text-align: center; }

.bydhi-exceljet-plugin .bydhi-submit-btn {
    background: var(--primary); color: #FFF; border: none;
    padding: 15px 40px; border-radius: 8px; font-weight: 700;
    font-size: 1rem; cursor: pointer; transition: 0.3s;
    display: inline-flex; align-items: center; gap: 10px;
}
.bydhi-exceljet-plugin .bydhi-submit-btn:hover { background: var(--gold-hover); transform: translateY(-2px); }

/* --- PAX Controls --- */
.bydhi-exceljet-plugin .bydhi-pax-control {
    display: flex; align-items: center; border: 1.5px solid var(--border);
    border-radius: 8px; overflow: hidden; background: #FFF; height: 46px;
}

.bydhi-exceljet-plugin .bydhi-pax-btn {
    background: var(--bg-subtle); border: none; width: 40px; height: 100%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-main); transition: 0.2s;
}
.bydhi-exceljet-plugin .bydhi-pax-btn:hover { background: var(--border); }

.bydhi-exceljet-plugin .bydhi-pax-count { flex: 1; text-align: center; font-weight: 700; font-size: 1rem; }

/* --- Results Section (Premium Dark) --- */
.bydhi-exceljet-plugin .bydhi-results-section {
    background: var(--bg-dark); color: #FFF; padding: 60px 40px;
    border-radius: var(--radius); margin-top: 40px;
}

.bydhi-exceljet-plugin .bydhi-charters-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.bydhi-exceljet-plugin .bydhi-charter-card {
    background: #1E293B; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; overflow: hidden;
    max-width: 400px; /* Prevent over-stretching */
    width: 100%;
    margin: 0 auto;
}

.bydhi-exceljet-plugin .bydhi-charter-card__image { height: 200px; position: relative; }
.bydhi-exceljet-plugin .bydhi-charter-card__image img { width: 100%; height: 100%; object-fit: cover; }
.bydhi-exceljet-plugin .bydhi-charter-card__image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, #1E293B);
}

.bydhi-exceljet-plugin .bydhi-charter-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bydhi-exceljet-plugin .bydhi-charter-card__content { padding: 25px; }
.bydhi-exceljet-plugin .bydhi-charter-card__header h4 { font-size: 1.4rem; margin: 0; color: #FFF; }
.bydhi-exceljet-plugin .bydhi-charter-card__header p { color: var(--gold); font-size: 0.9rem; margin: 5px 0 20px; font-weight: 600; }

.bydhi-exceljet-plugin .bydhi-charter-card__stats {
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 12px !important;
    margin-bottom: 25px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bydhi-exceljet-plugin .bydhi-stat-item {
    display: flex;
    flex-direction: column; /* Stack label/value for more space horizontally */
    align-items: flex-start;
    gap: 5px;
}

.bydhi-exceljet-plugin .bydhi-stat-item i {
    width: 14px;
    height: 14px;
    color: var(--gold);
    margin-bottom: 2px;
}

.bydhi-exceljet-plugin .bydhi-stat-item label { 
    color: #94A3B8; 
    font-size: 10px !important; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 0px; 
    letter-spacing: 0.3px; 
}

.bydhi-exceljet-plugin .bydhi-stat-item value { 
    font-weight: 700; 
    font-size: 11px !important; 
    color: #F1F5F9; 
    white-space: nowrap; 
}

.bydhi-exceljet-plugin .bydhi-charter-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bydhi-exceljet-plugin .bydhi-charter-card__quote {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Map --- */
.bydhi-iata-label {
    background: var(--gold); color: #000; padding: 3px 8px;
    border-radius: 6px; font-weight: 800; font-size: 11px;
    border: 1.5px solid #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .bydhi-exceljet-plugin .bydhi-route-block__fields { flex-wrap: wrap; }
    .bydhi-exceljet-plugin .bydhi-field-group { flex: 1 1 calc(50% - 15px); }
    .bydhi-exceljet-plugin .bydhi-swap-btn { display: none; }
}

@media (max-width: 640px) {
    .bydhi-exceljet-plugin .bydhi-field-group { flex: 1 1 100%; }
    .bydhi-exceljet-plugin .bydhi-booking-card__tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
        flex: 1 1 auto;
        justify-content: center;
        gap: 5px;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn i {
        width: 14px;
        height: 14px;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__header {
        padding: 15px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-route-block {
        padding: 20px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        padding: 20px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-results-section {
        padding: 30px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-charters-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }

    /* Smaller Charter Cards on Mobile */
    .bydhi-exceljet-plugin .bydhi-charter-card {
        max-width: 100% !important;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__image {
        height: 110px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__content {
        padding: 12px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__header h4 {
        font-size: 0.85rem;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__header p {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__badge {
        font-size: 0.55rem;
        padding: 3px 8px;
        top: 10px;
        right: 10px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__stats {
        gap: 4px !important;
        margin-bottom: 12px;
        padding-top: 10px;
    }
    .bydhi-exceljet-plugin .bydhi-stat-item label {
        font-size: 6px !important;
        letter-spacing: 0;
    }
    .bydhi-exceljet-plugin .bydhi-stat-item value {
        font-size: 8px !important;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__footer {
        padding-top: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__quote {
        font-size: 0.65rem;
        text-align: center;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }

    .bydhi-exceljet-plugin .bydhi-submit-btn,
    .bydhi-exceljet-plugin .bydhi-confirm-btn,
    .bydhi-exceljet-plugin .bydhi-add-route-btn {
        padding: 2px 20px !important;
        font-size: 0.7rem !important;
        width: 100%;
        justify-content: center;
        min-height: 28px;
    }
}

/* --- Modal Overlay & Popups --- */
#bydhi-modalOverlay, #bydhi-successOverlay {
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 100000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bydhi-exceljet-plugin .bydhi-user-modal {
    background: #0F172A !important; 
    width: 95% !important; 
    max-width: 440px !important; 
    border-radius: 12px !important;
    position: relative !important; 
    overflow: hidden !important; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    margin: auto !important;
    padding: 9px !important; /* User requested 9px padding in all side */
}

.bydhi-exceljet-plugin .bydhi-ej-close-modal {
    position: absolute !important; 
    top: 10px !important; 
    right: 10px !important; 
    background: #1F2937 !important; /* Circular dark background */
    border: 1px solid rgba(255,255,255,0.1) !important; 
    color: #FFF !important; 
    cursor: pointer !important; 
    width: 24px !important; 
    height: 24px !important;
    padding: 0 !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    border-radius: 50% !important; /* Circular form */
    transition: 0.2s ease !important; 
    z-index: 9999 !important;
    box-shadow: none !important;
}

.bydhi-exceljet-plugin .bydhi-ej-close-modal i { 
    width: 14px !important; 
    height: 14px !important; 
    stroke-width: 3px !important; 
}

.bydhi-exceljet-plugin .bydhi-ej-close-modal:hover { 
    background: #EF4444 !important; 
    border-color: #EF4444 !important;
    transform: scale(1.1) !important; 
}

.bydhi-exceljet-plugin .bydhi-user-modal h3 {
    color: #FFF !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 0 5px !important;
}

.bydhi-exceljet-plugin .bydhi-user-modal p {
    color: #94A3B8 !important;
    font-size: 0.8rem !important;
    margin-bottom: 20px !important;
}

.bydhi-exceljet-plugin .bydhi-modal-summary {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 0.8rem !important;
    color: #E2E8F0 !important;
}

.bydhi-exceljet-plugin .bydhi-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bydhi-exceljet-plugin .bydhi-form-group { margin-bottom: 15px; }
.bydhi-exceljet-plugin .bydhi-form-group.bydhi-full { grid-column: span 2; }

.bydhi-exceljet-plugin .bydhi-user-modal label {
    display: flex; align-items: center; gap: 8px; color: var(--gold);
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.bydhi-exceljet-plugin .bydhi-user-modal input,
.bydhi-exceljet-plugin .bydhi-user-modal textarea {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #FFF !important;
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
}

.bydhi-exceljet-plugin .bydhi-user-modal input:focus,
.bydhi-exceljet-plugin .bydhi-user-modal textarea:focus {
    border-color: var(--gold) !important;
    background: rgba(255,255,255,0.06) !important;
    outline: none;
}

.bydhi-exceljet-plugin .bydhi-confirm-btn {
    width: 100%; background: var(--gold) !important; color: #000 !important;
    font-weight: 800; font-size: 1rem; padding: 14px !important;
    border-radius: 8px !important; border: none; cursor: pointer;
    margin-top: 10px; transition: 0.3s;
}

.bydhi-exceljet-plugin .bydhi-confirm-btn:hover { background: #FFF !important; }

.bydhi-exceljet-plugin .bydhi-success-modal {
    background: #0F172A !important;
    text-align: center;
    max-width: 450px;
    width: 90%;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8) !important;
    margin: auto;
}

.bydhi-exceljet-plugin .bydhi-success-modal h3 { color: #FFF !important; margin-bottom: 10px; font-size: 1.6rem; }
.bydhi-exceljet-plugin .bydhi-success-modal p { color: #94A3B8 !important; margin-bottom: 25px; font-size: 0.95rem; line-height: 1.6; }

.bydhi-exceljet-plugin .bydhi-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22C55E !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.bydhi-exceljet-plugin .bydhi-success-icon i { width: 32px; height: 32px; }

@media (max-width: 640px) {
    .bydhi-exceljet-plugin .bydhi-user-modal .bydhi-form-grid { grid-template-columns: 1fr; }
    .bydhi-exceljet-plugin .bydhi-user-modal .bydhi-form-group.bydhi-full { grid-column: span 1; }
    .bydhi-exceljet-plugin .bydhi-user-modal { padding: 30px 20px; }
}

/* ============================================
   Return Route Block — Round Trip
   ============================================ */

/* Smooth slide animation container */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock {
    overflow: hidden;
    border-left: 3px solid var(--gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.04) 0%, rgba(201, 168, 76, 0.01) 100%);
    position: relative;
}

/* Subtle top separator connector line */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.4;
}

/* "Return Flight" label — gold tinted */
.bydhi-exceljet-plugin .bydhi-return-label {
    color: var(--gold) !important;
    font-size: 0.8rem !important;
}

.bydhi-exceljet-plugin .bydhi-return-label i {
    color: var(--gold);
    width: 15px;
    height: 15px;
}

/* "Auto-synced" pill badge — airports only */
.bydhi-exceljet-plugin .bydhi-return-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bydhi-exceljet-plugin .bydhi-return-badge i {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Helper hint below return pax control */
.bydhi-exceljet-plugin .bydhi-pax-hint {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

/* Readonly inputs in the return block — dimmed to show they are auto-filled */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-airport-input[readonly] {
    background: var(--bg-subtle) !important;
    color: var(--text-muted) !important;
    cursor: default;
    border-color: var(--border);
}

.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-airport-input[readonly]:focus {
    border-color: var(--border) !important;
    box-shadow: none !important;
}

/* Return block PAX is now freely adjustable — no locks */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-pax-control {
    background: #FFF !important;
    border-color: var(--border) !important;
    pointer-events: auto !important;
    opacity: 1;
}

.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-pax-btn {
    display: flex !important;
}

/* Subtle gold ring when return pax differs from outbound */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-pax-control.pax-adjusted {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

/* Return Block Pax Synced Display */
.bydhi-exceljet-plugin .bydhi-pax-synced-display {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-subtle);
    height: 46px;
    padding: 0 15px;
    gap: 8px;
    color: var(--text-muted);
}

.bydhi-exceljet-plugin .bydhi-pax-sync-icon {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.bydhi-exceljet-plugin .bydhi-pax-synced-count {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.bydhi-exceljet-plugin .bydhi-pax-synced-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Disabled swap button in return block */
.bydhi-exceljet-plugin .bydhi-return-swap-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.bydhi-exceljet-plugin .bydhi-return-swap-disabled:hover {
    transform: none !important;
    background: var(--primary) !important;
}

/* Multi-Trip Leg Buttons */
.bydhi-exceljet-plugin .bydhi-route-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 5px;
}

.bydhi-exceljet-plugin .bydhi-route-block__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
}

.bydhi-exceljet-plugin .bydhi-remove-leg {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    line-height: 1;
}

.bydhi-exceljet-plugin .bydhi-remove-leg:hover {
    background: rgba(239, 68, 68, 0.05) !important;
    border-color: #ef4444 !important;
}

.bydhi-exceljet-plugin .bydhi-remove-leg svg {
    width: 14px;
    height: 14px;
}

.bydhi-exceljet-plugin .bydhi-add-route-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 25px 0;
    padding-right: 35px; /* Aligns with the Remove button above */
}

.bydhi-exceljet-plugin .bydhi-add-route-btn {
    background: var(--ej-primary) !important;
    color: #FFF !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: var(--ej-radius) !important;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bydhi-exceljet-plugin .bydhi-add-route-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.bydhi-exceljet-plugin .bydhi-add-route-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Flatpickr Dark Theme Overrides for Theme Conflicts --- */
.flatpickr-calendar {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.flatpickr-calendar .flatpickr-months {
    background: #0f172a !important;
}

.flatpickr-calendar .flatpickr-month {
    background: #0f172a !important;
    color: #fff !important;
}

.flatpickr-calendar .flatpickr-current-month {
    color: #fff !important;
}

.flatpickr-calendar .flatpickr-current-month select.flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month input.cur-year,
.flatpickr-calendar .flatpickr-current-month select {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 4px !important;
    display: inline-block !important;
    width: auto !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.flatpickr-calendar .flatpickr-current-month select.flatpickr-monthDropdown-months:hover,
.flatpickr-calendar .flatpickr-current-month input.cur-year:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.flatpickr-calendar .flatpickr-current-month select option {
    background: #0f172a !important;
    color: #fff !important;
}

/* Fix year input visibility */
.flatpickr-calendar .numInputWrapper {
    display: inline-block !important;
    width: 60px !important;
}

.flatpickr-calendar .numInputWrapper input.cur-year {
    color: #fff !important;
    background: transparent !important;
    border: none !important;
}

.flatpickr-calendar .numInputWrapper span {
    display: none !important; /* Hide arrows if any */
}

/* Weekday labels */
.flatpickr-calendar span.flatpickr-weekday {
    background: #0f172a !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

/* Calendar Days */
.flatpickr-calendar .flatpickr-day {
    color: #e2e8f0 !important;
}

.flatpickr-calendar .flatpickr-day:hover,
.flatpickr-calendar .flatpickr-day:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.flatpickr-calendar .flatpickr-day.today {
    border-color: var(--gold) !important;
}

.flatpickr-calendar .flatpickr-day.selected {
    background: var(--gold) !important;
    color: #000 !important;
    border-color: var(--gold) !important;
}

.flatpickr-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar .flatpickr-day.nextMonthDay {
    color: #475569 !important;
}

.bydhi-charters-section__title,
.bydhi-map-section__header h3 {
    text-align: center;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
