/**
 * Itineris WP Booking Styles
 *
 * @package     Itineris WP
 * @subpackage  Assets/CSS
 * @copyright   Copyright (c) 2025, Itineris WP
 * @license     GPL v2 or later
 * @since       1.0.0
 */

/* Booking Form Styles */
.itineris-booking-form {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.booking-form-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
}

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

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Participant Section */
.participant-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.participant-group label {
    flex: 1;
    margin-bottom: 0;
    font-weight: 500;
}

.price-display {
    margin-left: 10px;
    color: #6c757d;
    font-weight: normal;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #dee2e6;
}

.participant-quantity {
    width: 50px;
    margin: 0 5px;
    text-align: center;
}

.subtotal {
    flex: 0 0 100px;
    text-align: right;
    font-weight: 500;
}

/* Total Section */
.total-section {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    font-size: 18px;
    font-weight: 700;
}

/* Booking Actions */
.booking-actions {
    margin-top: 30px;
    text-align: center;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

 

 
/* Booking Result */
.booking-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.booking-result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.booking-result.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Availability Calendar Styles */
.itineris-availability-calendar {
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



/* Calendar */

.calendar-month {
  padding: 15px;
  width: 100%;
  /*max-width: 400px;*/
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}
.calendar-day {
  padding: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 5px;
}
.calendar-day:hover {
  background: #0088cc;
  color: white;
}
.calendar-day.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.calendar-header {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}
.calendar-day.selected {
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: bold;
    box-shadow: inset 0 0 0 2px var(--bs-secondary);
}


.calendar-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.current-month-display {
    font-size: 18px;
    font-weight: 500;
}

.calendar-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

 
.month-header {
    margin-bottom: 10px;
    text-align: center;
}

.month-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    width: 52px;
    height: 52px;
    padding: 10px;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    text-align: center;
    font-weight: 500;
}

.calendar-table td {
    height: 48px;
    padding: 5px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.empty-day {
    background-color: #f8f9fa;
}

.calendar-day {
    position: relative;
    cursor: pointer;
}

 
.calendar-day.past {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: default;
}

.calendar-day.today {
    background-color: #e8f4f8;
}

.calendar-day.available {
    background-color: #d4edda;
}

.calendar-day.unavailable {
    background-color: #f8d7da;
}

.day-number {
    font-weight: 500;
    margin-bottom: 5px;
}

.availability-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.price-popup {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 10;
    width: 200px;
    padding: 10px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-popup-header {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-indicator {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #dee2e6;
}

.legend-indicator.available {
    background-color: #d4edda;
}

.legend-indicator.unavailable {
    background-color: #f8d7da;
}

.legend-indicator.past {
    background-color: #f8f9fa;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .calendar-container {
        flex-direction: column;
    }
    
    .calendar-month {
        max-width: 100%;
    }
    
    .calendar-table td {
        height: 60px;
    }
    
    .price-popup {
        left: 0;
        top: 100%;
        width: 100%;
    }
}
