/**
 * Frontend Styles pour Listeo Multi-Day Planner
 */

/* === BILLETTERIE MULTI-TYPES === */
.lmdp-ticket-selector {
    margin: 40px 0;
}

.lmdp-tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lmdp-ticket-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.lmdp-ticket-card:hover:not(.sold-out) {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.lmdp-ticket-card.sold-out {
    opacity: 0.6;
    background: #f5f5f5;
}

.lmdp-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.lmdp-ticket-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
}

.lmdp-ticket-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.lmdp-ticket-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.lmdp-ticket-badge.sold-out {
    background: #ffebee;
    color: #c62828;
}

.lmdp-ticket-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 60px;
}

.lmdp-ticket-description p {
    margin: 0;
}

.lmdp-ticket-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.lmdp-ticket-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.lmdp-ticket-price .price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.lmdp-ticket-price .price-currency {
    font-size: 14px;
    color: #666;
}

.lmdp-ticket-quantity {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lmdp-ticket-quantity label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 2px;
}

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

.qty-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.qty-btn:active {
    transform: scale(0.95);
}

.ticket-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 5px;
}

.ticket-qty-input:focus {
    outline: none;
}

/* Résumé des billets */
.lmdp-ticket-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    color: #fff;
}

.lmdp-summary-content {
    max-width: 600px;
    margin: 0 auto;
}

.lmdp-summary-items {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 80px;
}

.lmdp-summary-items .no-selection {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
}

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

.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list .item-name {
    font-weight: 500;
}

.summary-list .item-price {
    font-weight: 700;
    font-size: 16px;
}

.lmdp-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 24px;
    font-weight: 700;
}

.lmdp-add-to-cart-btn {
    width: 100%;
    background: #fff;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lmdp-add-to-cart-btn:hover:not(:disabled) {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lmdp-add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lmdp-add-to-cart-btn i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .lmdp-tickets-grid {
        grid-template-columns: 1fr;
    }
    
    .lmdp-ticket-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lmdp-ticket-price {
        justify-content: center;
    }
    
    .lmdp-ticket-quantity {
        align-items: center;
    }
    
    .lmdp-summary-total {
        font-size: 20px;
    }
}

/* === Formulaire de soumission === */
.lmdp-frontend-fields {
    margin: 30px 0;
}

.lmdp-frontend-fields .listing-form-section-headline {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

#lmdp-days-container {
    margin-top: 20px;
}

/* Élément jour */
.lmdp-day-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.lmdp-day-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lmdp-day-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lmdp-day-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lmdp-day-header h5 i {
    margin-right: 8px;
}

.lmdp-remove-day {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lmdp-remove-day:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lmdp-day-content {
    padding: 20px;
}

.lmdp-day-content .form-row {
    margin-bottom: 20px;
}

.lmdp-day-content .form-row-half {
    display: inline-block;
    width: 48%;
    margin-right: 4%;
}

.lmdp-day-content .form-row-half:last-child {
    margin-right: 0;
}

.lmdp-day-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.lmdp-day-content input[type="text"],
.lmdp-day-content input[type="time"],
.lmdp-day-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.lmdp-day-content input[type="text"]:focus,
.lmdp-day-content input[type="time"]:focus,
.lmdp-day-content textarea:focus {
    border-color: #667eea;
    outline: none;
}

.lmdp-day-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* Upload d'image */
.lmdp-image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lmdp-day-image-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
    margin-right: 10px;
}

.lmdp-upload-image,
.lmdp-remove-image {
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lmdp-upload-image {
    background: #667eea;
    color: #fff;
    border: none;
}

.lmdp-upload-image:hover {
    background: #5568d3;
}

.lmdp-remove-image {
    background: #f44336;
    color: #fff;
    border: none;
}

.lmdp-remove-image:hover {
    background: #d32f2f;
}

/* Bouton ajouter un jour */
.lmdp-add-day {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.lmdp-add-day:hover {
    background: #45a049;
}

.lmdp-add-day i {
    margin-right: 8px;
}

/* Listes inclus/exclus */
.lmdp-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

.lmdp-list-item i.fa-check-circle {
    color: #4caf50;
    font-size: 18px;
}

.lmdp-list-item i.fa-times-circle {
    color: #f44336;
    font-size: 18px;
}

.lmdp-list-item input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lmdp-remove-item {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lmdp-remove-item:hover {
    background: #d32f2f;
}

.lmdp-add-included,
.lmdp-add-excluded {
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.lmdp-add-included:hover,
.lmdp-add-excluded:hover {
    background: #1976d2;
}

/* === Affichage sur la page de l'annonce === */
.lmdp-planning-display {
    margin: 40px 0;
}

.lmdp-section {
    margin-bottom: 50px;
}

.lmdp-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lmdp-section-title i {
    color: #667eea;
}

/* Timeline */
.lmdp-timeline {
    position: relative;
    padding-left: 60px;
}

.lmdp-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.lmdp-timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.lmdp-timeline-marker {
    position: absolute;
    left: -60px;
    top: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lmdp-day-number {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.lmdp-timeline-content {
    margin-left: 20px;
}

.lmdp-day-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lmdp-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lmdp-day-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.lmdp-day-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lmdp-day-card:hover .lmdp-day-image img {
    transform: scale(1.05);
}

.lmdp-day-details {
    padding: 25px;
}

.lmdp-day-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.lmdp-day-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.lmdp-day-time i {
    font-size: 18px;
}

.lmdp-day-activities {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.lmdp-day-activities p {
    margin-bottom: 12px;
}

/* Section inclus/exclus */
.lmdp-includes-section {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
}

.lmdp-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lmdp-includes-column {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lmdp-includes-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lmdp-included .lmdp-includes-title {
    color: #4caf50;
}

.lmdp-excluded .lmdp-includes-title {
    color: #f44336;
}

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

.lmdp-includes-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 15px;
}

.lmdp-includes-list li:last-child {
    border-bottom: none;
}

.lmdp-included .lmdp-includes-list li i {
    color: #4caf50;
    font-size: 16px;
}

.lmdp-excluded .lmdp-includes-list li i {
    color: #f44336;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .lmdp-day-content .form-row-half {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .lmdp-timeline {
        padding-left: 40px;
    }
    
    .lmdp-timeline-marker {
        left: -40px;
        width: 36px;
        height: 36px;
    }
    
    .lmdp-day-number {
        font-size: 16px;
    }
    
    .lmdp-includes-section {
        padding: 20px;
    }
    
    .lmdp-includes-grid {
        grid-template-columns: 1fr;
    }
}
