/* Toast Notifications & Booking Integration Styles */

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast {
    position: fixed;
    bottom: -100px;
    right: 30px;
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    transition: all 0.3s ease;
    border-left: 4px solid #000;
}

.toast.show {
    bottom: 30px;
    animation: slideInUp 0.3s ease-out;
}

.toast i {
    font-size: 24px;
}

.toast span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.toast-success {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.toast-success i {
    color: #22c55e;
}

.toast-error {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.toast-error i {
    color: #dc2626;
}

.toast-info {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.toast-info i {
    color: #3b82f6;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   CUSTOM PACKAGE SUMMARY IN BOOKING
   ======================================== */

.package-summary-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.package-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.package-header i {
    font-size: 32px;
    color: #000;
}

.package-header h3 {
    flex: 1;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #000;
}

.package-badge {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Category Groups in Custom Package */
.items-container {
    margin: 24px 0;
}

.category-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.category-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #000;
    border-radius: 2px;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #333;
    font-size: 15px;
}

.item-name {
    flex: 1;
}

.item-price {
    font-weight: 600;
    color: #000;
}

/* Includes Section for Regular Packages */
.includes-section {
    margin: 24px 0;
}

.includes-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #333;
    font-size: 15px;
}

.includes-list i {
    color: #22c55e;
    font-size: 18px;
}

/* Package Total */
.package-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

.total-amount {
    font-size: 28px;
    color: #000;
}

/* Package Actions */
.package-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.package-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   SELECTED ITEMS IN CUSTOM BUILDER
   ======================================== */

.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.selected-item:hover {
    background: #f0f0f0;
}

.selected-item span:first-child {
    flex: 1;
    font-weight: 500;
    color: #000;
}

.selected-item .item-price {
    font-weight: 700;
    color: #000;
    margin-right: 12px;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    color: #991b1b;
    transform: scale(1.1);
}

.no-items {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* ========================================
   SUMMARY STICKY BAR
   ======================================== */

.summary-bar {
    position: sticky;
    top: 80px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.summary-bar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.summary-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #000;
}

#selectedItemsList {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

#selectedItemsList::-webkit-scrollbar {
    width: 6px;
}

#selectedItemsList::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

#selectedItemsList::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#selectedItemsList::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
    }
    
    .toast.show {
        bottom: 15px;
    }
    
    .package-summary-card {
        padding: 20px;
    }
    
    .package-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .package-header h3 {
        font-size: 22px;
    }
    
    .items-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .package-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .summary-bar {
        position: relative;
        top: 0;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat {
        text-align: left;
        display: flex;
        justify-content: space-between;
    }
}

/* ========================================
   PAYMENT SECTION
   ======================================== */

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.payment-method-btn {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
}

.payment-method-btn:hover {
    border-color: #000;
    background: #f9f9f9;
    transform: translateY(-2px);
}

.payment-method-btn i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

/* ========================================
   LOADING STATE
   ======================================== */

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
