/* MyParkTickets Calendar Styles */

.mpt-calendar-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Seleção de Parques */
.mpt-parks-selector {
    margin-bottom: 30px;
    text-align: center;
}

.mpt-parks-selector h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.mpt-parks-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.mpt-park-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #0073aa;
    background: white;
    color: #0073aa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mpt-park-btn:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.mpt-park-btn.active {
    background: #0073aa;
    color: white;
}

/* Container do Calendário */
.mpt-calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.mpt-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mpt-calendar-header h3 {
    font-size: 22px;
    margin: 0;
    color: #333;
}

.mpt-prev-month,
.mpt-next-month {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mpt-prev-month:hover,
.mpt-next-month:hover {
    background: #f5f5f5;
    border-color: #0073aa;
}

/* Loading */
.mpt-calendar-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* Grid do Calendário */
.mpt-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.mpt-day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px;
    color: #666;
    font-size: 14px;
}

.mpt-day-cell {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    padding: 8px;
}

.mpt-day-cell:hover:not(.unavailable) {
    border-color: #0073aa;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.mpt-day-cell.selected {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

.mpt-day-cell.unavailable {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.mpt-day-number {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mpt-day-price {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.mpt-day-cell.selected .mpt-day-price {
    color: white;
}

/* Formulário de Tickets */
.mpt-ticket-form {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.mpt-ticket-form h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.mpt-date-selected {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.mpt-ticket-quantity {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.mpt-quantity-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 6px;
}

.mpt-quantity-group label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.mpt-quantity-group input[type="number"] {
    width: 80px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.mpt-quantity-group input[type="number"]:focus {
    outline: none;
    border-color: #0073aa;
}

.mpt-adult-price,
.mpt-child-price {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-left: auto;
}

.mpt-total-price {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #0073aa;
}

.mpt-total-price strong {
    font-size: 20px;
    color: #333;
}

.mpt-total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
}

.mpt-add-to-cart-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mpt-add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.mpt-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .mpt-calendar-grid {
        gap: 5px;
    }
    
    .mpt-day-number {
        font-size: 14px;
    }
    
    .mpt-day-price {
        font-size: 11px;
    }
    
    .mpt-parks-buttons {
        flex-direction: column;
    }
    
    .mpt-park-btn {
        width: 100%;
    }
    
    .mpt-calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .mpt-quantity-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .mpt-quantity-group label {
        min-width: auto;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mpt-calendar-container {
    animation: fadeIn 0.3s ease;
}

.mpt-ticket-form {
    animation: fadeIn 0.3s ease;
}