/* Hotel details page styles */

.client-details-breadcrumb {
    padding: var(--spacing-6) var(--spacing-12);
    padding-top: calc(72px + var(--spacing-6));
    background: var(--gray-50);
}

.client-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 500px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-back-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.client-details-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: var(--spacing-6);
    max-width: 1190px;
    margin: 0 auto;
    padding: var(--spacing-6) var(--spacing-12);
}

.client-details-header {
    width: 100%;
    gap: var(--spacing-16);
}

.client-details-content {
    width: 100%;
}

/* Gallery styles */
.client-gallery {
    width: 100%;
}

/* Grid container for main + secondary images */
.client-gallery-grid {
    height: 433px;
    overflow: hidden;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 702px 1fr;
    grid-template-rows: 200px 200px;
    gap: 12px;
    grid-template-areas:
    "main client_card"
    "main client_card";
}

/* Main image container with stacked crossfade images */
.client-gallery-main-container {
    position: relative;
    grid-area: main;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.client-gallery-thumbnails {
    gap: 13px;
}

.client-gallery-thumbnail {
    width: 130px;
    height: 121px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.client-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.client-gallery-more {
    position: relative;
}

.client-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-gallery-overlay span {
    color: var(--white);
}

/* Map and info card */
.client-info-card {
    width: 457px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
}

.client-map-placeholder {
    width: 100%;
    height: 433px;
    border-radius: 16px;
    overflow: hidden;
}

/* Sections layout */
.client-sections {
    width: 100%;
}

.client-left-section {
    flex: 1;
    max-width: 745px;
}

.client-right-section {
    width: 385px;
}

.client-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

/* Services grid */
.client-services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    padding: 0;
    gap: var(--spacing-2);
}

.client-service-badge {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 16px 32px 16px 24px;
    transition: all 0.2s ease;
}

.client-service-badge:hover {
    background: var(--gray-25);
    border-color: var(--green-300);
}

/* Accommodation details card */
.client-accommodation-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
}

.client-details-list {
    gap: var(--spacing-6);
}

.client-detail-row {
    justify-content: space-between;
}

.flex-direction-column {
    flex-direction: column;
}

/* Gallery interactions */
.client-gallery-thumbnail {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-gallery-thumbnail:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.client-gallery-more {
    cursor: pointer;
}

.client-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.client-gallery-main-img:first-child {
    position: relative;
}

.client-gallery-main-img.active {
    opacity: 1;
    z-index: 2;
}

/* GLightbox - décaler le bouton close vers la gauche pour éviter superposition avec déconnexion */
.gclose {
    right: 60px !important;
}

/* Selection button animations for client details page */
.client-details-container .selection_button.add {
    width: 270px;
}

.client-details-container .selection_button.add.animate {
    animation: expandToFixed 0.2s ease;
}

.client-details-container .selection_button.remove.animate {
    animation: shrinkFromFixed 0.2s ease;
}

.client-contact-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    height: fit-content;
    width: 100%;
}

/* Users table styles */
.users-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}

.users-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 4px 16px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    background: var(--green-25);
    font-family: 'Lufga';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.users-add-btn:hover:not(:disabled) {
    background: var(--green-50);
    border-color: var(--green-400);
}

.users-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    padding: 16px;
}

.users-table thead th {
    text-align: left;
    padding: 4px;
    border-right: 1px solid var(--gray-300);
}

.users-table thead th:last-child {
    border-right: none;
}

.users-table tbody td {
    padding: 4px;
    border-right: 1px solid var(--gray-300);
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-table tbody td:last-child {
    border-right: none;
}

.users-table tbody td.users-actions {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.users-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-text-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.action-text-button:hover:not(:disabled) {
    color: var(--green-500);
}

.action-text-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.users-empty {
    padding: 20px;
    text-align: center;
}

/* User Modal */
.user-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.user-modal-overlay.show {
    display: flex;
}

.user-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 32px;
    overflow: hidden;
}

.user-modal-close {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 100px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    position: absolute;
    top: 16px;
    right: 16px;
    transition: all 0.2s;
}

.user-modal-close:hover {
    color: var(--gray-800);
    border-color: var(--gray-400);
}

.user-modal-header {
    margin-bottom: 24px;
}

.user-modal-header h3 {
    font-family: 'Lufga';
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: var(--gray-900);
    margin: 0;
}

.user-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-modal-form-group label {
    font-family: 'Lufga';
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--gray-700);
}

.user-modal-form-group input {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-family: 'Lufga';
    font-size: 16px;
    line-height: 24px;
    color: var(--gray-900);
    transition: all 0.2s;
}

.user-modal-form-group input:focus {
    outline: none;
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.user-modal-form-group input::placeholder {
    color: var(--gray-400);
}

.user-modal-error {
    font-family: 'Lufga';
    font-size: 14px;
    line-height: 20px;
    color: var(--red);
    margin-top: 4px;
}

.user-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.user-modal-actions button {
    flex: 1;
    padding: 12px 24px;
    border-radius: 16px;
    font-family: 'Lufga';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-modal-btn-back {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.user-modal-btn-back:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.user-modal-btn-confirm {
    background: var(--green-500);
    border: none;
    color: var(--white);
}

.user-modal-btn-confirm:hover:not(:disabled) {
    background: var(--green-600);
}

.user-modal-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}