/**
 * Compact Booking Search Header
 * Single-line, professional, modern design
 * No duplicates, clean information hierarchy
 */

/* ==========================================================================
   Main Container - Slim & Professional
   ========================================================================== */

.booking-search-compact-header {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 12, 35, 64), 0.02) 0%, transparent 100%);
    border-bottom: 1px solid rgba(var(--primary-color-rgb, 12, 35, 64), 0.06);
    padding: 1rem 0;
}

.booking-compact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid rgba(var(--primary-color-rgb, 12, 35, 64), 0.08);
}

[data-theme="dark"] .booking-compact-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Single Row Layout - Everything on one line
   ========================================================================== */

.booking-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Dates Section - Compact & Clean
   ========================================================================== */

.booking-dates-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-color-rgb, 12, 35, 64), 0.04);
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-color-rgb, 12, 35, 64), 0.08);
}

.date-item i {
    font-size: 0.875rem;
    color: var(--primary-color, #0c2340);
    opacity: 0.7;
}

.date-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    white-space: nowrap;
}

.date-separator {
    display: flex;
    align-items: center;
    color: var(--primary-color, #0c2340);
    opacity: 0.5;
}

.date-separator i {
    font-size: 0.875rem;
}

/* ==========================================================================
   Meta Section - Nights & Guests
   ========================================================================== */

.booking-meta-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(var(--primary-color-rgb, 12, 35, 64), 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary, #111827);
    white-space: nowrap;
}

.meta-item i {
    font-size: 0.875rem;
    color: var(--primary-color, #0c2340);
    opacity: 0.7;
}

/* ==========================================================================
   Stats Section - Inline, Clean
   ========================================================================== */

.booking-stats-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(var(--primary-color-rgb, 12, 35, 64), 0.1);
    flex: 1;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #6b7280);
    opacity: 0.7;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color, #0c2340);
    white-space: nowrap;
}

.stat-avg .stat-value {
    color: var(--primary-color, #0c2340);
}

.stat-range .stat-value {
    color: #6366f1;
}

.stat-count .stat-value {
    color: var(--accent-color, #d4af37);
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(var(--primary-color-rgb, 12, 35, 64), 0.1);
    margin: 0 0.25rem;
}

/* ==========================================================================
   Change Button - Icon Only, Compact
   ========================================================================== */

.btn-change-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--primary-color, #0c2340);
    border-radius: 8px;
    color: var(--primary-color, #0c2340);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-change-compact i {
    font-size: 1rem;
}

.btn-change-compact:hover {
    background: var(--primary-color, #0c2340);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 12, 35, 64), 0.2);
}

.btn-change-compact:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .booking-info-row {
        gap: 1.5rem;
    }

    .booking-stats-compact {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .stat-divider {
        display: none;
    }
}

@media (max-width: 992px) {
    .booking-compact-card {
        padding: 1rem;
    }

    .booking-info-row {
        gap: 1rem;
    }

    .booking-meta-compact,
    .booking-stats-compact {
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .booking-search-compact-header {
        padding: 0.75rem 0;
    }

    .booking-compact-card {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .booking-info-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    /* Dates - Full Width */
    .booking-dates-compact {
        justify-content: space-between;
        width: 100%;
    }

    .date-item {
        flex: 1;
        justify-content: center;
    }

    .date-separator {
        flex-shrink: 0;
    }

    /* Meta - Full Width Row */
    .booking-meta-compact {
        width: 100%;
        justify-content: space-around;
        padding: 0.75rem;
        background: rgba(var(--primary-color-rgb, 12, 35, 64), 0.02);
        border-radius: 8px;
        border-left: none;
    }

    /* Stats - Grid Layout on Mobile */
    .booking-stats-compact {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0;
        border-left: none;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem;
        background: rgba(var(--primary-color-rgb, 12, 35, 64), 0.02);
        border-radius: 8px;
    }

    .stat-label {
        font-size: 0.6875rem;
    }

    .stat-value {
        font-size: 0.875rem;
    }

    /* Change Button - Full Width */
    .btn-change-compact {
        width: 100%;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .date-value {
        font-size: 0.8125rem;
    }

    .meta-item {
        font-size: 0.8125rem;
    }

    .booking-stats-compact {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

[data-theme="dark"] .booking-search-compact-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .date-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .date-value,
[data-theme="dark"] .meta-item,
[data-theme="dark"] .stat-value {
    color: #f9fafb;
}

[data-theme="dark"] .date-item i,
[data-theme="dark"] .meta-item i,
[data-theme="dark"] .date-separator {
    color: #e9d38b;
}

[data-theme="dark"] .booking-meta-compact,
[data-theme="dark"] .booking-stats-compact {
    border-left-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-divider {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-change-compact {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f9fafb;
}

[data-theme="dark"] .btn-change-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .meta-item,
[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.03);
}
