/* =========================================
   LUMIERE V2 - PLUGIN OVERRIDES
   Specific styles for plugins to avoid inline CSS.
   ========================================= */

/* --- PoiEdit --- */
.poi-edit-subcategories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #f9f9f9;
}

.poi-edit-help-text {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.photo-gallery-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    background: white;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.photo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.photo-actions {
    margin-top: 10px;
}

.photo-caption-input {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.photo-actions-buttons {
    display: flex;
    gap: 5px;
}

.photo-actions-btn {
    flex: 1;
}

.color-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: white;
}

.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-right: 8px;
}

.custom-tags-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.custom-tag-checkbox {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.map-container {
    height: 400px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 15px;
}

/* --- PoiReviews --- */
.poi-reviews-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.poi-reviews-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.poi-review-moderated-btn {
    display: inline;
}

.poi-review-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poi-review-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.poi-review-moderate-action-btn {
    background: #ffc107;
    color: #000;
}

/* --- PoiContribute --- */
.poi-contribute-map {
    width: 100%;
    height: 400px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.poi-map-error {
    padding: 20px;
    text-align: center;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
}

/* --- PoiFavorites --- */
.poi-favorites-list {
    list-style: none;
    padding: 0;
}

.poi-favorite-item {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.poi-favorite-header {
    margin-bottom: 1rem;
}

.poi-favorite-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.poi-favorite-name a {
    color: var(--text-main);
    text-decoration: none;
}

.poi-favorite-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.poi-favorite-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.poi-favorite-badge.blue {
    background: #e7f3ff;
    color: #0066cc;
}

.poi-favorite-badge.gray {
    background: #f0f0f0;
    color: #666;
}

.poi-favorite-badge.purple {
    background: #667eea;
    color: white;
    font-weight: 500;
}

.poi-favorite-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.poi-favorite-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- PoiNotifications --- */
.poi-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poi-notification-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
}

.poi-notification-item.unread {
    border-left: 4px solid var(--primary-color);
    background: #f8fbff;
}

.poi-notification-item.read {
    opacity: 0.8;
}

.poi-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.poi-notification-type {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}

.poi-notification-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.poi-notification-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.poi-notification-link:hover {
    text-decoration: underline;
}

.poi-notification-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* --- Newsletter --- */
.newsletter-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.25rem;
    max-width: 10%;
}

.newsletter-hidden {
    display: none;
}

.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.newsletter-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newsletter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.newsletter-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.newsletter-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    transition: color 0.2s;
}

.newsletter-modal-close:hover {
    color: var(--text-main);
}

.newsletter-modal-body {
    padding: 1.5rem;
}

.newsletter-rgpd {
    margin: 1rem 0;
}

.newsletter-rgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.newsletter-rgpd-text {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 1.5rem;
}

/* Subscribe/Unsubscribe Pages */
.newsletter-subscribe-page,
.newsletter-unsubscribe-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- Offers --- */
.offers-index-header p {
    color: var(--text-muted);
}

.offer-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.offer-view-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.offer-view-details-block {
    margin-bottom: 1.5rem;
}

.offer-view-validity-date {
    color: var(--text-muted);
}

/* --- Agenda --- */
.agenda-index {
    position: relative;
}

.agenda-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.agenda-event-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    border-left-width: 5px;
    border-left-style: solid;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.agenda-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.agenda-event-card.past-card {
    border-left-color: #ccc !important;
    opacity: 0.8;
}

.agenda-event-card h3 a {
    color: var(--text-main);
    text-decoration: none;
}

.agenda-event-card h3 a:hover {
    color: var(--primary-color);
}

.event-meta {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-mini-map {
    height: 150px;
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
    background: #f0f0f0;
}

.agenda-event-detail .header-actions {
    margin-bottom: 20px;
}

.agenda-event-card.detailed {
    border-left: none;
    /* Detailed view might not need the colored border or handled differently */
    padding: 2rem;
}

.event-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.attendance-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.attendance-count {
    font-size: 1.1rem;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}