/* Single Events Styles */
.single-event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-to-events a.btn-back {
    margin-bottom: 40px;
    border: 1px solid #ccc;
    letter-spacing: 2px;
    font-size: 14px;
    padding: 15px 20px;
    border-radius: 35px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #2a2929;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-events a.btn-back:hover {
    color: var(--uicore-primary-color);
}

.back-to-events {
    margin-bottom: 30px !important;
}

.btn-back:hover {
    color: #333;
}

.event-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    min-height: 0;
    min-width: 0;
}

.event-main-content {
    overflow: hidden;
    min-width: 0;
}

.event-header-info {
    margin-bottom: 40px;
}

.featured-badge {
    display: inline-block;
    color: var(--uicore-primary-color);
    background: white;
    font-size: 14px;
    font-weight: 600;
}

.event-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 5px;
}

.event-date,
.event-time,
.event-location,
.recurrence-info {
    font-size: 18px;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.event-time {
    margin-top: -5px;
}

.event-date {
    font-size: 20px;
    font-weight: 600;
}

.event-location {
    padding-top: 20px;
    border-top: 1px solid #ebebeb;
    margin-top: 20px;
}

.location-address {
    color: #666;
}

.category-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recurrence-info {
    font-weight: 600;
    background: #f0f8ff;
    padding: 12px 16px;
    border-left: 4px solid var(--uicore-primary-color);
    margin-bottom: 15px;
    font-size: 15px;
}

.next-occurrence {
    color: var(--uicore-primary-color);
    font-weight: 600;
    margin-top: 5px;
    font-size: 18px;
}

.recurrence-end {
    color: #666;
    font-weight: 400;
    margin-top: 3px;
    font-size: 14px;
    display: none;
}

/* Custom Dates Styling */
.custom-dates-list {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--uicore-primary-color);
    margin-bottom: 15px;
    width: 100%;
}

.custom-dates-wrapper {
  display: grid;
  grid-template-columns: 1fr; /* 1 colonne par défaut (mobile) */
  gap: 0.5rem; /* espace entre les éléments */
}

.custom-date-item {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* À partir de 600px (ou autre valeur selon ton besoin), passe en 2 colonnes */
@media (min-width: 600px) {
  .custom-dates-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}


.custom-dates-header {
    font-weight: 700;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.custom-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 0px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.custom-date-item:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.custom-date-item:last-child {
    margin-bottom: 0;
}

.custom-date {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    flex: 1;
}

.custom-time {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
}

.event-description {
    margin-top: 40px;
}

.event-description h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.description-content {
    line-height: 1.7;
    color: #444;
}

.description-content p {
    margin-bottom: 16px;
}

.description-content img {
    max-width: 100%;
}

.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-container h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.map-container {
    padding-bottom: 30px;
    border-bottom: 1px solid #d9d9d9;
}

#event-map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.btn-directions {
    width: 100%;
    background: black;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 2px solid transparent;
}

.btn-directions:hover {
    background: var(--uicore-primary-color);
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--uicore-primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--uicore-primary-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--uicore-primary-color);
    border-color: var(--uicore-primary-color);
}

.btn-secondary:hover {
    background: var(--uicore-primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .single-event-container {
        padding: 20px 15px;
    }
    
    .event-title {
        font-size: 2.2rem;
    }
    
    .event-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .event-date,
    .event-time,
    .event-location,
    .recurrence-info {
        font-size: 16px;
    }
    
    .event-sidebar {
        order: -1;
    }
    
    #event-map {
        height: 250px;
    }
    
    .custom-date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .custom-time {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .event-title {
        font-size: 1.8rem;
    }
    
    .event-actions {
        position: sticky;
        bottom: 20px;
        background: white;
        padding: 15px;
        border-radius: 12px;
        border: 1px solid #e5e5e5;
    }
    
    .custom-dates-list {
        padding: 15px;
    }
    
    .custom-date-item {
        padding: 10px 12px;
    }
}