/* =========================================
   PRICE BREAKDOWN COMPONENT
========================================= */

.price-breakdown-card {
    background: linear-gradient(135deg, #F9F3EB 0%, #fff 100%);
    border: 2px solid var(--booking-primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.breakdown-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--booking-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-title i {
    color: var(--booking-primary);
    font-size: 18px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(196, 154, 108, 0.15);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-size: 14px;
    color: var(--booking-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breakdown-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.breakdown-sublabel {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.breakdown-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--booking-secondary);
}

.breakdown-row.weekday .breakdown-label i {
    color: #3b82f6;
}

.breakdown-row.weekend .breakdown-label i {
    color: #f59e0b;
}

.breakdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--booking-primary), transparent);
    margin: 8px 0;
}

.breakdown-row.total {
    padding-top: 16px;
    border-top: 2px solid var(--booking-primary);
}

.breakdown-row.total .breakdown-label {
    font-size: 16px;
    font-weight: 700;
}

.total-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--booking-primary);
    background: linear-gradient(135deg, var(--booking-primary) 0%, var(--booking-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Simple Price Card (Fallback) */
.simple-price-card {
    background: var(--booking-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.price-row:not(:last-child) {
    border-bottom: 1px solid var(--booking-border);
}

.price-row span {
    font-size: 14px;
    color: var(--booking-text);
}

.price-row strong {
    font-size: 16px;
    color: var(--booking-primary);
    font-weight: 700;
}

/* Resort Badge في Details Panel */
.resort-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--booking-primary-light);
    border: 1px solid rgba(196, 154, 108, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--booking-text);
    margin-top: 8px;
}

.resort-badge i {
    color: var(--booking-primary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 576px) {
    .breakdown-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .breakdown-value {
        align-self: flex-end;
    }

    .total-amount {
        font-size: 20px;
    }
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.spinner-border.text-primary {
    color: var(--booking-primary);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
