/* ═══════════════════════════════════════
   TARVEYA Booking Engine Styles
   ═══════════════════════════════════════ */

.bk-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 48px 0 32px;
    text-align: center;
    margin-bottom: 0;
}
.bk-hero-title { color: #fff; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.bk-hero-sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* Tabs */
.bk-tabs {
    display: flex; gap: 4px; justify-content: center;
    background: #f1f5f9; border-radius: 14px; padding: 4px;
    margin: -20px auto 0; max-width: 700px; position: relative; z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow-x: auto; flex-wrap: nowrap;
}
.bk-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px;
    font-size: 0.82rem; font-weight: 600;
    color: #64748b; text-decoration: none;
    white-space: nowrap; transition: all 0.2s;
}
.bk-tab:hover { background: rgba(255,255,255,0.6); color: #334155; }
.bk-tab.active { background: #fff; color: #E8654A; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.bk-tab-icon { font-size: 1.1rem; }

/* Search Card */
.bk-search-card {
    background: #fff; border-radius: 16px; padding: 28px;
    margin: 20px auto 32px; max-width: 900px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.bk-form-grid { display: grid; gap: 14px; margin-bottom: 16px; }
.bk-form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bk-form-grid-4 { grid-template-columns: repeat(4, 1fr); }

.bk-field { display: flex; flex-direction: column; gap: 4px; }
.bk-field label { font-size: 0.75rem; font-weight: 600; color: #64748b; }
.bk-field-row { display: flex; gap: 8px; }
.bk-field-row > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.bk-input {
    padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 0.85rem; font-family: inherit; color: #334155;
    transition: border-color 0.2s; background: #f8fafc;
}
.bk-input:focus { border-color: #E8654A; outline: none; background: #fff; }

/* Children section */
.bk-children-section {
    display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
    margin-bottom: 16px; padding: 12px 14px; background: #f8fafc; border-radius: 10px;
}
.bk-children-ages {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1;
}
.bk-children-label { font-size: 0.75rem; color: #64748b; font-weight: 600; white-space: nowrap; }
.bk-children-ages-row { display: flex; gap: 8px; }
.bk-child-age { width: 100px; font-size: 0.8rem; padding: 8px; }

.bk-submit {
    width: 100%; padding: 12px; background: linear-gradient(135deg, #E8654A, #F5B041);
    color: #fff; border: none; border-radius: 12px; font-size: 0.9rem;
    font-weight: 700; cursor: pointer; font-family: inherit;
    transition: all 0.2s; box-shadow: 0 4px 16px rgba(232,101,74,0.3);
}
.bk-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,101,74,0.4); }

/* Autocomplete Dropdown */
.bk-field { position: relative; }
.bk-ac-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.bk-ac-dropdown::-webkit-scrollbar { width: 4px; }
.bk-ac-dropdown::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.bk-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid #f8fafc;
}
.bk-ac-item:last-child { border-bottom: none; }
.bk-ac-item:hover, .bk-ac-item.active {
    background: linear-gradient(135deg, #fef3f0, #fff7ed);
}
.bk-ac-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
}
.bk-ac-item:hover .bk-ac-icon, .bk-ac-item.active .bk-ac-icon {
    background: #E8654A;
    filter: brightness(0) invert(1);
}
.bk-ac-info {
    flex: 1;
    min-width: 0;
}
.bk-ac-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}
.bk-ac-info span {
    font-size: 0.72rem;
    color: #94a3b8;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bk-ac-code {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.bk-ac-item:hover .bk-ac-code, .bk-ac-item.active .bk-ac-code {
    background: #E8654A;
    color: #fff;
}
.bk-ac-loading, .bk-ac-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}
.bk-ac-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e2e8f0;
    border-top-color: #E8654A;
    border-radius: 50%;
    animation: bk-spin 0.6s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

/* Features */
.bk-features {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    padding: 32px 0; max-width: 900px; margin: 0 auto;
}
.bk-feature {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 4px; padding: 16px;
}
.bk-feature-icon { font-size: 1.5rem; }
.bk-feature strong { font-size: 0.8rem; color: #334155; }
.bk-feature span { font-size: 0.7rem; color: #94a3b8; }

/* Results */
.bk-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bk-results-title { font-size: 1.3rem; font-weight: 700; color: #1e293b; }
.bk-results-count { font-size: 0.8rem; color: #94a3b8; background: #f1f5f9; padding: 4px 12px; border-radius: 8px; }

.bk-filters { display: flex; gap: 8px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.bk-filter-label { font-size: 0.78rem; color: #94a3b8; }
.bk-filter-btn {
    padding: 6px 14px; border-radius: 8px; font-size: 0.78rem;
    color: #64748b; background: #f1f5f9; text-decoration: none;
    transition: all 0.2s; border: 1px solid transparent;
}
.bk-filter-btn:hover { background: #e2e8f0; color: #334155; }
.bk-filter-btn.active { background: #E8654A; color: #fff; }

.bk-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bk-results-list { display: flex; flex-direction: column; gap: 12px; }

/* Card */
.bk-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #f0f0f0;
    transition: all 0.2s; position: relative;
    display: flex; flex-direction: column;
}
.bk-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }

.bk-card-img { height: 160px; background-size: cover; background-position: center; background-color: #f1f5f9; }
.bk-card-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; }

.bk-card-body { padding: 14px 16px; flex: 1; }
.bk-card-name { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; line-height: 1.3; }
.bk-card-meta { display: flex; gap: 8px; align-items: center; font-size: 0.75rem; color: #94a3b8; margin-bottom: 4px; }
.bk-card-location { font-size: 0.75rem; color: #94a3b8; margin-bottom: 4px; }
.bk-card-provider { font-size: 0.7rem; color: #94a3b8; }

.bk-card-price {
    padding: 12px 16px; border-top: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.bk-price-main { display: flex; align-items: baseline; gap: 4px; }
.bk-price-amount { font-size: 1.4rem; font-weight: 800; color: #E8654A; }
.bk-price-currency { font-size: 0.7rem; color: #94a3b8; font-weight: 600; }
.bk-price-per { font-size: 0.68rem; color: #94a3b8; }
.bk-price-nights { font-size: 0.65rem; color: #cbd5e1; }

.bk-book-btn {
    margin-left: auto; padding: 8px 20px;
    background: #E8654A; color: #fff; border-radius: 10px;
    font-size: 0.8rem; font-weight: 700; text-decoration: none;
    transition: all 0.2s; white-space: nowrap;
}
[dir="rtl"] .bk-book-btn { margin-left: 0; margin-right: auto; }
.bk-book-btn:hover { background: #d44a2e; transform: scale(1.03); }

.bk-badge-best {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    padding: 4px 10px; border-radius: 8px; font-size: 0.68rem; font-weight: 700;
}
[dir="rtl"] .bk-badge-best { left: auto; right: 10px; }

/* Flight card */
.bk-flight-card {
    background: #fff; border-radius: 14px; padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 20px; transition: all 0.2s;
}
.bk-flight-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.bk-flight-airline { min-width: 100px; }
.bk-flight-airline strong { font-size: 0.85rem; display: block; color: #1e293b; }
.bk-flight-num { font-size: 0.7rem; color: #94a3b8; }
.bk-flight-route { display: flex; align-items: center; gap: 10px; flex: 1; }
.bk-flight-city { font-size: 1.1rem; font-weight: 700; color: #334155; }
.bk-flight-arrow { color: #cbd5e1; font-size: 0.8rem; }
.bk-flight-info { display: flex; gap: 12px; font-size: 0.75rem; color: #64748b; }
.bk-flight-stops.direct { color: #10b981; font-weight: 600; }
.bk-flight-price { text-align: end; min-width: 140px; }

/* Empty state */
.bk-empty { text-align: center; padding: 60px 20px; }
.bk-empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.bk-empty h3 { color: #64748b; font-size: 1.1rem; margin-bottom: 6px; }
.bk-empty p { color: #94a3b8; font-size: 0.85rem; }

.bk-back-link { color: #E8654A; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.bk-back-link:hover { text-decoration: underline; }

/* Stars */
.bk-stars { font-size: 0.7rem; letter-spacing: -2px; }
.bk-rating { font-size: 0.75rem; font-weight: 700; color: #f59e0b; background: #fef3c7; padding: 2px 6px; border-radius: 4px; }
.bk-reviews { font-size: 0.7rem; color: #94a3b8; }

/* Responsive */
@media (max-width: 768px) {
    .bk-hero-title { font-size: 1.3rem; }
    .bk-tabs { margin: -16px 16px 0; }
    .bk-search-card { margin: 16px; padding: 20px; }
    .bk-form-grid-3, .bk-form-grid-4 { grid-template-columns: 1fr; }
    .bk-features { grid-template-columns: repeat(2, 1fr); }
    .bk-results-grid { grid-template-columns: 1fr; }
    .bk-flight-card { flex-wrap: wrap; gap: 10px; }
    .bk-flight-price { width: 100%; text-align: start; display: flex; align-items: center; gap: 12px; }
}
