/* Styles extraits de index.html */

/* Fix pour l'autocomplete Google Places dans les modals */
.pac-container {
    z-index: 10000 !important;
}

/* Styles pour la popup notifications */
.notifications-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notifications-popup.show {
    pointer-events: auto;
    opacity: 1;
}

.notifications-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.notifications-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notifications-popup.show .notifications-sheet {
    transform: translateY(0);
}

.notifications-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.drag-indicator {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 15px;
}

.notifications-header .btn-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-body);
    padding: 5px;
}

.notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px;
    color: var(--text-body);
}

.notification {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.media-65 {
    position: relative;
    width: 65px;
    height: 65px;
    margin-right: 15px;
    flex-shrink: 0;
}

.media-65 img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.notify {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.notify.bg-secondary {
    background-color: var(--secondary);
}

.notify.bg-red {
    background-color: #ff4444;
}

.notification-content {
    flex: 1;
}

.notification-content small {
    color: var(--text-muted);
    display: block;
}

.text-notify {
    margin: 4px 0;
    color: var(--text-body);
}

.text-primary {
    color: var(--primary);
    font-weight: 600;
}

/* Styles pour la popup Map */
.map-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-popup.show {
    pointer-events: auto;
    opacity: 1;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.map-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 20px 20px 0 0;
    height: 85vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-popup.show .map-sheet {
    transform: translateY(0);
}

.map-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
}

.map-header .btn-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-body);
    padding: 5px;
}

.map-controls {
    flex-shrink: 0;
}

.map-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}






/* ===== Popup de prévisualisation de profil - Design moderne ===== */

/* Container principal */
.profile-preview-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-preview-popup.show {
    opacity: 1;
}

/* Overlay avec effet de flou */
.profile-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Modal principal avec effet glassmorphism */
.profile-preview-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-preview-popup.show .profile-preview-modal {
    transform: scale(1) translateY(0);
}

/* Header de la modal */
.profile-preview-header {
    position: relative;
    padding: 16px 20px;
    text-align: center;
}

.profile-preview-drag-handle {
    width: 48px;
    height: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    margin: 0 auto 8px;
}

.profile-preview-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.profile-preview-close:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    transform: translateY(-50%) scale(1.1);
}

/* Contenu principal */
.profile-preview-content {
    border:3px solid white;
    padding: 0 0px 20px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

/* Scrollbar personnalisée */
.profile-preview-content::-webkit-scrollbar {
    width: 6px;
}

.profile-preview-content::-webkit-scrollbar-track {
    background: transparent;
}

.profile-preview-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Loading state */
.profile-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.profile-preview-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Section header avec avatar */
.preview-header-section {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.preview-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.preview-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.preview-online-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #34c759;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.5);
}

.preview-user-info {
    text-align: center;
}

.preview-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1c1c1e;
}

.preview-username {
    font-size: 16px;
    color: #8e8e93;
    margin: 0 0 12px;
}

.preview-bio {
    font-size: 15px;
    line-height: 1.5;
    color: #3a3a3c;
    margin: 0;
    padding: 0 20px;
}

/* Section des boutons d'action */
.preview-actions-section {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.preview-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.preview-btn i {
    font-size: 20px;
}

.preview-btn span {
    font-size: 12px;
}

/* Bouton primaire */
.preview-btn-primary {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
}

.preview-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.preview-btn-primary:active {
    transform: translateY(0);
}

/* Bouton like */
.preview-btn-like {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.preview-btn-like.active {
    background: #ff3b30;
    color: white;
    animation: likeAnimation 0.4s ease;
}

@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.preview-btn-like:hover {
    background: rgba(255, 59, 48, 0.2);
}

.preview-btn-like.active:hover {
    background: #ff3b30;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
}

/* Bouton secondaire */
.preview-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #3a3a3c;
}

.preview-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Section galerie */
.preview-gallery-section {
    padding: 20px 0;
}

.preview-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1c1c1e;
}

.preview-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preview-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.preview-gallery-item:hover {
    transform: scale(0.95);
}

.preview-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photos privées */
.preview-photo-locked {
    position: relative;
    width: 100%;
    height: 100%;
}

.preview-photo-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
}

.preview-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-lock-overlay i {
    font-size: 24px;
    color: white;
}

/* État d'erreur */
.preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    text-align: center;
}

.preview-error i {
    font-size: 48px;
    color: #ff3b30;
}

.preview-error p {
    color: #666;
    margin: 0;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .profile-preview-modal {
        background: rgba(28, 28, 30, 0.95);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    
    .profile-preview-drag-handle {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .profile-preview-close {
        background: rgba(255, 255, 255, 0.1);
        color: #8e8e93;
    }
    
    .preview-name {
        color: #ffffff;
    }
    
    .preview-username {
        color: #8e8e93;
    }
    
    .preview-bio {
        color: #c7c7cc;
    }
    
    .preview-section-title {
        color: #ffffff;
    }
    
    .preview-btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .preview-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .profile-preview-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .profile-preview-popup {
        padding: 0;
    }
    
    .profile-preview-modal {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .profile-preview-close {
        right: 12px;
    }
    
    .preview-avatar {
        width: 100px;
        height: 100px;
    }
    
    .preview-name {
        font-size: 20px;
    }
    
    .preview-btn {
        padding: 10px 12px;
    }
    
    .preview-btn i {
        font-size: 18px;
    }
}

/* Popup unifiée Chat/Messages Styles */
.unified-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    transition: background 0.3s ease;
}

.unified-popup.show {
    background: rgba(0, 0, 0, 0.5);
}

.unified-popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80vh;
    background: var(--bg-white);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.unified-popup.show .unified-popup-content {
    transform: translateY(0);
}

.drag-handle-wrapper {
    padding: 10px 20px;
    text-align: center;
    cursor: grab;
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: var(--bs-gray-400);
    border-radius: 2px;
    margin: 0 auto;
}

.unified-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--bs-gray-200);
    flex-shrink: 0;
}

.unified-popup-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.unified-popup-footer {
    border-top: 1px solid var(--bs-gray-200);
    padding: 10px;
    flex-shrink: 0;
}

/* Styles pour la liste des chats */
.chat-list-content {
    flex: 1;
}

.chat-list-search {
    padding: 15px;
    border-bottom: 1px solid var(--bs-gray-200);
}

/* Styles pour les messages */
.messages-content {
    flex: 1;
    overflow-y: auto;
}

.chat-box-area {
    padding: 20px 15px 80px;
    min-height: calc(100% - 24px);
}

.chat-content {
    margin-bottom: 20px;
}

.chat-content.user {
    text-align: right;
}

.chat-content .message-item {
    display: inline-block;
    max-width: 70%;
}

.chat-content .bubble {
    padding: 12px 18px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    margin-bottom: 5px;
    word-wrap: break-word;
    background: var(--bs-gray-100);
    color: var(--bs-dark);
}

.chat-content.user .bubble {
    background: var(--primary);
    color: white;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin: 0 10px;
}

.message-area {
    position: relative;
}

.message-area .form-control {
    padding-right: 60px;
    padding-left: 55px;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
}

.message-area .btn-chat {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-area .btn-photo {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media styles pour la liste de chat */
.unified-popup .media-50 {
    width: 50px;
    height: 50px;
    min-width: 50px;
    margin-right: 15px;
}

.unified-popup .media-50 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.unified-popup .media-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.unified-popup .media-content > div:first-child {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

.unified-popup .chat-popup-item-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.unified-popup .chat-popup-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Liste des conversations */
.unified-popup .dz-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unified-popup .dz-list li {
    border-bottom: 1px solid #f0f0f0;
}

.unified-popup .dz-list li:last-child {
    border-bottom: none;
}

.unified-popup .dz-list li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.unified-popup .dz-list li a:hover {
    background-color: var(--bs-gray-100);
}

.unified-popup .name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--bs-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unified-popup .last-message {
    font-size: 14px;
    color: var(--bs-gray-600);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unified-popup .left-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.unified-popup .time {
    font-size: 12px;
    color: var(--bs-gray-500);
}

.unified-popup .unread-count {
    min-width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.unified-popup .status-icon {
    margin-left: 5px;
}

.unified-popup .chat-popup-status-icon.read svg path {
    fill: #4BD39E;
}

.unified-popup .chat-popup-status-icon.delivered svg path {
    fill: #999;
}


/* Modal Disponibilités */
.availability-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    display: none;
    transition: background 0.3s ease;
}

.availability-modal.show {
    background: rgba(0, 0, 0, 0.5);
}

.availability-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80vh;
    background: var(--bg-white);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.availability-modal.show .availability-modal-content {
    transform: translateY(0);
}

.availability-drag-bar {
    padding: 10px;
    text-align: center;
    cursor: grab;
}

.availability-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--bs-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--bs-gray-600);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.availability-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

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

.nav-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--bs-gray-100);
}

#current-month {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-size: 12px;
    color: var(--bs-gray-600);
    font-weight: 600;
    padding: 10px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s;
    background: var(--bs-gray-100);
    color: var(--bs-dark);
    border: 1px solid var(--bs-gray-200);
}

.calendar-day:hover {
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: var(--bs-gray-400);
    opacity: 0.5;
}

.calendar-day.today {
    font-weight: bold;
    border: 2px solid var(--primary);
}

.calendar-day.available {
    background: #4BD39E;
    color: white;
}


.calendar-day.maybe {
    background: #FFC107;
    color: white;
}

.calendar-day.has-event {
    background: #9B59B6;
    color: white;
}

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

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #4BD39E;
}


.legend-dot.maybe {
    background: #FFC107;
}

.legend-dot.event {
    background: #9B59B6;
}

/* Dark mode support */
.dark .availability-modal-content {
    background: var(--dark-bg);
}

.dark .availability-header {
    border-bottom-color: var(--dark-border);
}

.dark .calendar-day {
    background: var(--dark-bg-secondary);
    color: var(--bs-light);
    border-color: var(--dark-border);
}

.dark .calendar-day.other-month {
    color: var(--bs-gray-600);
}

.dark .nav-btn:hover {
    background: var(--dark-bg-secondary);
}

/* Popup de disponibilité */
.availability-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.availability-popup-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.availability-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.availability-popup-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.btn-close-availability {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--bs-gray-600);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.availability-options {
    margin-bottom: 20px;
}

.availability-option {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid var(--bs-gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.availability-option:hover {
    border-color: var(--primary);
    background: var(--bs-gray-50);
}

.availability-option input[type="radio"] {
    display: none;
}

.availability-option input[type="radio"]:checked + .option-indicator {
    transform: scale(1.2);
}

.availability-option input[type="radio"]:checked ~ span {
    font-weight: 600;
}

.option-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    transition: transform 0.2s;
}

.option-indicator.available {
    background: #4BD39E;
}

.option-indicator.maybe {
    background: #FFC107;
}

.option-indicator.none {
    background: var(--bs-gray-400);
}

.option-indicator.event {
    background: #9B59B6;
}

.availability-comment-section {
    margin-bottom: 20px;
}

.availability-comment-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.availability-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dark .availability-popup-content {
    background: var(--dark-bg);
}

.dark .availability-option {
    border-color: var(--dark-border);
}

.dark .availability-option:hover {
    background: var(--dark-bg-secondary);
}

.calendar-day[title] {
    position: relative;
}

.calendar-day[title]::after {
    content: '💬';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

/* Styles pour le formulaire d'événement dans la popup */
.event-form-section {
    margin-top: 15px;
}

.event-form-section .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.event-form-section .category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--bs-gray-200);
    border-radius: 6px;
    font-size: 14px;
}

.event-form-section .category-item .form-check {
    flex: 1;
    margin: 0;
}

.event-form-section .category-item .price-input {
    width: 70px;
    font-size: 14px;
}

.event-form-section .form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.event-form-section .form-control {
    font-size: 14px;
}

/* Ajuster la hauteur de la popup quand le formulaire événement est visible */
.availability-popup-content.event-mode {
    max-height: 90vh;
    overflow-y: auto;
}

/* Fix pour les inputs focus avec texte blanc sur fond blanc dans disponibilités */
.availability-modal input:focus,
.availability-modal textarea:focus,
.availability-modal select:focus,
.availability-popup input:focus,
.availability-popup textarea:focus,
.availability-popup select:focus {
    color: var(--title) !important;
    background-color: var(--bg-white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 144, 99, 0.25) !important;
}

.availability-modal input,
.availability-modal textarea,
.availability-modal select,
.availability-popup input,
.availability-popup textarea,
.availability-popup select {
    color: var(--title) !important;
}


/* Styles pour la popup notifications */
.notifications-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notifications-popup.show {
    pointer-events: auto;
    opacity: 1;
}

.notifications-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.notifications-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notifications-popup.show .notifications-sheet {
    transform: translateY(0);
}

.notifications-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.drag-indicator {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 15px;
}

.notifications-header .btn-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-body);
    padding: 5px;
}

.notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px;
    color: var(--text-body);
}

.notification {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.media-65 {
    position: relative;
    width: 65px;
    height: 65px;
    margin-right: 15px;
    flex-shrink: 0;
}

.media-65 img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.notify {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.notify.bg-secondary {
    background-color: var(--secondary);
}

.notify.bg-red {
    background-color: #ff4444;
}

.notification-content {
    flex: 1;
}

.notification-content small {
    color: var(--text-muted);
    display: block;
}

.text-notify {
    margin: 4px 0;
    color: var(--text-body);
}

.text-primary {
    color: var(--primary);
    font-weight: 600;
}

/* Styles pour la popup Map */
.map-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-popup.show {
    pointer-events: auto;
    opacity: 1;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.map-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 20px 20px 0 0;
    height: 85vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.map-popup.show .map-sheet {
    transform: translateY(0);
}

.map-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
}

.map-header .btn-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-body);
    padding: 5px;
}

.map-controls {
    flex-shrink: 0;
}

.map-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}
