/* ============================================
   BOOKING CALENDAR - CLEAN & BALANCED STYLE
   ============================================ */

/* Base Styles */
.booking-sidebar-container {
    position: sticky;
    top: 20px;
    z-index: 100;
}

.booking-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.booking-header {
    background: #374151;
    color: #ffffff;
    padding: 24px;
    text-align: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ============================================
   PRICE SECTION
   ============================================ */
.price-section {
    padding: 24px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 4px;
}

.price-details {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   FORM STYLES
   ============================================ */
.booking-form {
    padding: 24px;
    background: #ffffff;
}

.form-group {
    margin-bottom: 24px;
}

.date-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-size: 1rem;
}

.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.toggle-btn.active {
    background: #ffffff;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
    color: #374151;
}

/* ============================================
   CALENDAR STYLES
   ============================================ */
.calendar-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    flex: 1;
    text-align: center;
}

.nav-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.calendar-grid {
    padding: 16px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
    font-size: 0.9rem;
    font-weight: 500;
}

.calendar-day.empty {
    border: none;
    cursor: default;
    background: transparent;
}

.calendar-day.past {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.calendar-day.available {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: #d1fae5;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.calendar-day.selected {
    background: #374151;
    color: #ffffff;
    border-color: #374151;
    box-shadow: 0 4px 8px rgba(55, 65, 81, 0.3);
}

.day-number {
    font-weight: inherit;
    line-height: 1;
}

.day-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.6rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 600;
}

.calendar-legend {
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid #d1d5db;
}

.legend-color.available {
    background: #ecfdf5;
    border-color: #10b981;
}

.legend-color.selected {
    background: #374151;
    border-color: #374151;
}

/* ============================================
   DROPDOWN STYLES
   ============================================ */
.dropdown-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
    width: 100%;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.no-dates-alert {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* ============================================
   SELECTED DATE CARD
   ============================================ */
.selected-date-card {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.date-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-main i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.date-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.time-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
}

.availability-info {
    text-align: right;
}

.availability-number {
    font-weight: 700;
    color: #10b981;
    font-size: 1.1rem;
    display: block;
}

.availability-text {
    font-size: 0.8rem;
    color: #6b7280;
    display: block;
}

/* ============================================
   PARTICIPANTS SECTION
   ============================================ */
.participants-section {
    margin-bottom: 24px;
}

.participant-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.participant-group:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.participant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-right: 5px;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.participant-info i {
    color: #6b7280;
    font-size: 1.2rem;
}

.participant-title {
    font-weight: 600;
    color: #1f2937;
    display: block;
    font-size: 0.95rem;
}

.participant-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.participant-price {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-align: right;
    min-width: 80px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 5px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.qty-btn:hover:not(:disabled) {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #374151;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}

.qty-display {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.subtotal {
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.text-success {
    color: #10b981 !important;
    font-weight: 600 !important;
}

/* ============================================
   TOTAL SECTION
   ============================================ */
.total-section {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.total-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-info {
    text-align: left;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    display: block;
}

.total-participants {
    font-size: 0.9rem;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.total-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
}

/* ============================================
   BOOKING BUTTON
   ============================================ */
.booking-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-book {
    background: #10b981;
    color: #ffffff;
}

.btn-book:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-quote {
    background: #3b82f6;
    color: #ffffff;
}

.btn-quote:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.booking-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.booking-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* ============================================
   LOADING STATES
   ============================================ */
.spinner {
    animation: spin 1s linear infinite;
}

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

[wire\:loading] .qty-btn,
[wire\:loading] .form-select,
[wire\:loading] .calendar-day {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .booking-card {
        border-radius: 12px;
        margin: 0 -10px;
    }

    .booking-header {
        padding: 20px 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .booking-title {
        font-size: 1.1rem;
    }

    .price-section {
        padding: 20px 16px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .booking-form {
        padding: 20px 16px;
    }

    .date-selector-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .view-toggle {
        align-self: center;
    }

    .participant-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .participant-header {
        margin-right: 0;
        justify-content: space-between;
    }

    .quantity-controls {
        justify-content: center;
        margin-right: 0;
    }

    .subtotal {
        text-align: center;
        font-size: 1.1rem;
    }

    .total-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .total-info {
        text-align: center;
    }

    .total-price {
        font-size: 1.6rem;
    }

    .calendar-header {
        padding: 12px 16px;
    }

    .calendar-grid {
        padding: 12px;
    }

    .calendar-day {
        min-height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .price-amount {
        font-size: 1.8rem;
    }

    .total-price {
        font-size: 1.4rem;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
    }

    .booking-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }

    .booking-btn:hover:not(:disabled),
    .qty-btn:hover:not(:disabled),
    .calendar-day.available:hover {
        transform: none;
    }
}

.qty-btn:focus,
.booking-btn:focus,
.toggle-btn:focus,
.nav-btn:focus,
.calendar-day:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .booking-card {
        box-shadow: none;
        border: 1px solid #000;
    }

    .view-toggle,
    .nav-btn {
        display: none;
    }
}