/**
 * Hotelia Plugin - Styles principaux
 * Préfixe: hotcla-
 */

/* ============================================
   Variables CSS
   ============================================ */
:root {
    --hotcla-primary: #1F77B4;
    --hotcla-secondary: #FF7F0E;
    --hotcla-success: #2CA02C;
    --hotcla-danger: #D62728;
    --hotcla-warning: #FF9800;
    --hotcla-info: #17A2B8;
    
    --hotcla-text: #333333;
    --hotcla-text-muted: #6c757d;
    --hotcla-bg: #ffffff;
    --hotcla-bg-secondary: #f8f9fa;
    --hotcla-border: #dee2e6;
    
    --hotcla-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --hotcla-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --hotcla-shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    
    --hotcla-transition: all 0.3s ease;
    --hotcla-radius: 8px;
    --hotcla-radius-sm: 4px;
    --hotcla-radius-lg: 12px;
}

/* Mode sombre */
.hotcla-theme-dark {
    --hotcla-text: #f8f9fa;
    --hotcla-text-muted: #adb5bd;
    --hotcla-bg: #212529;
    --hotcla-bg-secondary: #343a40;
    --hotcla-border: #495057;
}

/* ============================================
   Reset et base
   ============================================ */
.hotcla-container,
.hotcla-container * {
    box-sizing: border-box;
}

.hotcla-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--hotcla-text);
    background-color: var(--hotcla-bg);
    transition: var(--hotcla-transition);
}

/* ============================================
   Header
   ============================================ */
.hotcla-header {
    background: linear-gradient(135deg, var(--hotcla-primary) 0%, #1565a0 100%);
    padding: 20px 0;
    box-shadow: var(--hotcla-shadow-md);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hotcla-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotcla-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hotcla-logo img {
    border-radius: 50%;
    box-shadow: var(--hotcla-shadow-sm);
}

.hotcla-site-title {
    color: white;
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.hotcla-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ============================================
   Sidebar
   ============================================ */
.hotcla-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.hotcla-sidebar-inner {
    background: var(--hotcla-bg);
    border: 1px solid var(--hotcla-border);
    border-radius: var(--hotcla-radius-lg);
    padding: 25px;
    box-shadow: var(--hotcla-shadow-sm);
}

.hotcla-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hotcla-border);
}

.hotcla-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--hotcla-text);
}

/* ============================================
   Contenu principal
   ============================================ */
.hotcla-main-content {
    flex: 1;
    min-width: 0;
}

.hotcla-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--hotcla-bg-secondary);
    border-radius: var(--hotcla-radius);
    border: 1px solid var(--hotcla-border);
}

.hotcla-results-summary {
    font-size: 16px;
    font-weight: 600;
    color: var(--hotcla-text);
}

.hotcla-sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   Grille des chambres
   ============================================ */
.hotcla-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* ============================================
   Carte de chambre
   ============================================ */
.hotcla-room-card {
    background: var(--hotcla-bg);
    border: 1px solid var(--hotcla-border);
    border-radius: var(--hotcla-radius-lg);
    overflow: hidden;
    transition: var(--hotcla-transition);
    box-shadow: var(--hotcla-shadow-sm);
    display: flex;
    flex-direction: column;
}

.hotcla-room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hotcla-shadow-lg);
}

.hotcla-room-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background: var(--hotcla-bg-secondary);
}

.hotcla-room-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotcla-room-card:hover .hotcla-room-image {
    transform: scale(1.05);
}

.hotcla-room-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hotcla-badge {
    padding: 6px 12px;
    border-radius: var(--hotcla-radius-sm);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--hotcla-shadow-sm);
}

.hotcla-badge-primary {
    background: var(--hotcla-primary);
    color: white;
}

.hotcla-badge-success {
    background: var(--hotcla-success);
    color: white;
}

.hotcla-badge-info {
    background: var(--hotcla-info);
    color: white;
}

.hotcla-badge-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.hotcla-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--hotcla-transition);
    box-shadow: var(--hotcla-shadow-sm);
}

.hotcla-favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.hotcla-favorite-btn.hotcla-is-favorite .hotcla-icon-heart {
    display: none;
}

.hotcla-favorite-btn.hotcla-is-favorite .hotcla-icon-heart-filled {
    display: inline;
    color: var(--hotcla-danger);
}

.hotcla-room-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.hotcla-room-header {
    border-bottom: 1px solid var(--hotcla-border);
    padding-bottom: 12px;
}

.hotcla-room-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--hotcla-text);
}

.hotcla-room-hotel {
    font-size: 14px;
    color: var(--hotcla-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hotcla-room-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hotcla-text);
}

.hotcla-room-amenities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hotcla-room-amenities li {
    font-size: 20px;
    padding: 8px;
    background: var(--hotcla-bg-secondary);
    border-radius: var(--hotcla-radius-sm);
    transition: var(--hotcla-transition);
    cursor: help;
}

.hotcla-room-amenities li:hover {
    transform: scale(1.1);
}

.hotcla-room-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.hotcla-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--hotcla-radius-sm);
    border: 2px solid var(--hotcla-border);
    cursor: pointer;
    transition: var(--hotcla-transition);
    flex-shrink: 0;
}

.hotcla-thumbnail:hover {
    border-color: var(--hotcla-primary);
    transform: scale(1.05);
}

.hotcla-thumbnail-more {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hotcla-bg-secondary);
    border-radius: var(--hotcla-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--hotcla-text-muted);
    flex-shrink: 0;
}

.hotcla-room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--hotcla-border);
    margin-top: auto;
}

.hotcla-room-price {
    display: flex;
    flex-direction: column;
}

.hotcla-price-label {
    font-size: 12px;
    color: var(--hotcla-text-muted);
}

.hotcla-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--hotcla-primary);
}

.hotcla-price-period {
    font-size: 13px;
    color: var(--hotcla-text-muted);
}

/* ============================================
   Boutons
   ============================================ */
.hotcla-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--hotcla-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hotcla-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.hotcla-btn:focus-visible {
    outline: 3px solid var(--hotcla-primary);
    outline-offset: 2px;
}

.hotcla-btn-primary {
    background: var(--hotcla-primary);
    color: white;
}

.hotcla-btn-primary:hover {
    background: #1565a0;
    transform: translateY(-2px);
    box-shadow: var(--hotcla-shadow-md);
}

.hotcla-btn-secondary {
    background: var(--hotcla-bg-secondary);
    color: var(--hotcla-text);
    border: 1px solid var(--hotcla-border);
}

.hotcla-btn-secondary:hover {
    background: var(--hotcla-border);
}

.hotcla-btn-success {
    background: var(--hotcla-success);
    color: white;
}

.hotcla-btn-success:hover {
    background: #218838;
}

.hotcla-btn-danger {
    background: var(--hotcla-danger);
    color: white;
}

.hotcla-btn-danger:hover {
    background: #c82333;
}

.hotcla-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.hotcla-btn-block {
    width: 100%;
}

.hotcla-btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

.hotcla-btn-whatsapp {
    background: #25D366;
}

.hotcla-btn-whatsapp:hover {
    background: #20BA5A;
}

/* ============================================
   Formulaires
   ============================================ */
.hotcla-filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotcla-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hotcla-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--hotcla-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotcla-label-inline {
    font-size: 14px;
    font-weight: 600;
    color: var(--hotcla-text);
}

.hotcla-input,
.hotcla-select,
.hotcla-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--hotcla-border);
    border-radius: var(--hotcla-radius);
    font-size: 14px;
    background: var(--hotcla-bg);
    color: var(--hotcla-text);
    transition: var(--hotcla-transition);
}

.hotcla-input:focus,
.hotcla-select:focus,
.hotcla-textarea:focus {
    outline: none;
    border-color: var(--hotcla-primary);
    box-shadow: 0 0 0 3px rgba(31, 119, 180, 0.1);
}

.hotcla-select-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.hotcla-input-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.hotcla-textarea {
    resize: vertical;
    min-height: 100px;
}

.hotcla-price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotcla-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotcla-price-separator {
    color: var(--hotcla-text-muted);
}

.hotcla-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--hotcla-bg-secondary);
    outline: none;
    -webkit-appearance: none;
}

.hotcla-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hotcla-primary);
    cursor: pointer;
    box-shadow: var(--hotcla-shadow-sm);
}

.hotcla-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hotcla-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--hotcla-shadow-sm);
}

.hotcla-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotcla-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--hotcla-radius-sm);
    transition: var(--hotcla-transition);
}

.hotcla-checkbox-label:hover {
    background: var(--hotcla-bg-secondary);
}

.hotcla-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--hotcla-primary);
}

/* ============================================
   Pagination
   ============================================ */
.hotcla-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 0;
}

.hotcla-btn-load-more {
    min-width: 200px;
}

.hotcla-loading-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotcla-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--hotcla-border);
    border-top-color: var(--hotcla-primary);
    border-radius: 50%;
    animation: hotcla-spin 0.8s linear infinite;
}

.hotcla-spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

@keyframes hotcla-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Skeleton loading
   ============================================ */
.hotcla-skeleton {
    pointer-events: none;
    animation: hotcla-skeleton-pulse 1.5s ease-in-out infinite;
}

.hotcla-skeleton-image {
    width: 100%;
    padding-top: 66.67%;
    background: linear-gradient(90deg, var(--hotcla-bg-secondary) 25%, var(--hotcla-border) 50%, var(--hotcla-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: hotcla-skeleton-shimmer 1.5s ease-in-out infinite;
}

.hotcla-skeleton-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotcla-skeleton-title {
    height: 24px;
    width: 70%;
    background: linear-gradient(90deg, var(--hotcla-bg-secondary) 25%, var(--hotcla-border) 50%, var(--hotcla-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: hotcla-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--hotcla-radius-sm);
}

.hotcla-skeleton-text {
    height: 16px;
    width: 100%;
    background: linear-gradient(90deg, var(--hotcla-bg-secondary) 25%, var(--hotcla-border) 50%, var(--hotcla-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: hotcla-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--hotcla-radius-sm);
}

@keyframes hotcla-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes hotcla-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   Modal
   ============================================ */
.hotcla-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hotcla-modal.hotcla-modal-open {
    display: flex;
}

.hotcla-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.hotcla-modal-content {
    position: relative;
    background: var(--hotcla-bg);
    border-radius: var(--hotcla-radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--hotcla-shadow-lg);
    animation: hotcla-modal-slide-in 0.3s ease;
}

@keyframes hotcla-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hotcla-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--hotcla-bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--hotcla-transition);
}

.hotcla-modal-close:hover {
    background: var(--hotcla-danger);
    color: white;
    transform: rotate(90deg);
}

.hotcla-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: var(--hotcla-text);
}

.hotcla-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotcla-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hotcla-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--hotcla-text);
}

.hotcla-form-message {
    padding: 12px;
    border-radius: var(--hotcla-radius);
    font-size: 14px;
    display: none;
}

.hotcla-form-message.hotcla-message-error {
    display: block;
    background: rgba(214, 39, 40, 0.1);
    color: var(--hotcla-danger);
    border: 1px solid var(--hotcla-danger);
}

.hotcla-form-message.hotcla-message-success {
    display: block;
    background: rgba(44, 160, 44, 0.1);
    color: var(--hotcla-success);
    border: 1px solid var(--hotcla-success);
}

/* ============================================
   Favoris
   ============================================ */
.hotcla-favorites-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--hotcla-border);
}

.hotcla-favorites-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotcla-favorites-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--hotcla-primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   Interface Admin
   ============================================ */
.hotcla-admin-mode .hotcla-sidebar {
    display: none;
}

.hotcla-admin-panel {
    background: var(--hotcla-bg);
    border: 1px solid var(--hotcla-border);
    border-radius: var(--hotcla-radius-lg);
    padding: 25px;
    box-shadow: var(--hotcla-shadow-md);
}

.hotcla-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--hotcla-border);
}

.hotcla-admin-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: var(--hotcla-text);
}

.hotcla-admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--hotcla-border);
    overflow-x: auto;
}

.hotcla-admin-tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--hotcla-text-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--hotcla-transition);
    white-space: nowrap;
}

.hotcla-admin-tab-btn:hover {
    color: var(--hotcla-primary);
}

.hotcla-admin-tab-btn.hotcla-active {
    color: var(--hotcla-primary);
    border-bottom-color: var(--hotcla-primary);
}

.hotcla-admin-table-wrapper {
    overflow-x: auto;
}

.hotcla-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hotcla-admin-table thead {
    background: var(--hotcla-bg-secondary);
}

.hotcla-admin-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    color: var(--hotcla-text);
    border-bottom: 2px solid var(--hotcla-border);
}

.hotcla-admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--hotcla-border);
}

.hotcla-admin-table tbody tr:hover {
    background: var(--hotcla-bg-secondary);
}

.hotcla-admin-thumbnail {
    border-radius: var(--hotcla-radius-sm);
    object-fit: cover;
}

.hotcla-admin-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.hotcla-admin-actions {
    display: flex;
    gap: 8px;
}

.hotcla-btn-edit {
    background: var(--hotcla-info);
    color: white;
}

.hotcla-btn-delete {
    background: var(--hotcla-danger);
    color: white;
}

.hotcla-admin-empty {
    text-align: center;
    padding: 60px 20px;
}

.hotcla-admin-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.hotcla-stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: var(--hotcla-primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Formulaire admin */
.hotcla-admin-form {
    max-width: 800px;
}

.hotcla-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hotcla-form-col-6 {
    grid-column: span 1;
}

.hotcla-label-required::after {
    content: " *";
    color: var(--hotcla-danger);
}

.hotcla-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.hotcla-checkbox-card {
    display: block;
    cursor: pointer;
}

.hotcla-checkbox-card input[type="checkbox"] {
    display: none;
}

.hotcla-checkbox-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: 2px solid var(--hotcla-border);
    border-radius: var(--hotcla-radius);
    background: var(--hotcla-bg);
    transition: var(--hotcla-transition);
}

.hotcla-checkbox-card:hover .hotcla-checkbox-card-content {
    border-color: var(--hotcla-primary);
    background: var(--hotcla-bg-secondary);
}

.hotcla-checkbox-card input:checked + .hotcla-checkbox-card-content {
    border-color: var(--hotcla-primary);
    background: rgba(31, 119, 180, 0.1);
}

.hotcla-checkbox-icon {
    font-size: 28px;
}

.hotcla-checkbox-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.hotcla-image-upload-area {
    border: 2px dashed var(--hotcla-border);
    border-radius: var(--hotcla-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--hotcla-transition);
}

.hotcla-image-upload-area:hover {
    border-color: var(--hotcla-primary);
    background: var(--hotcla-bg-secondary);
}

.hotcla-upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.hotcla-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.hotcla-image-preview-item {
    position: relative;
    padding-top: 100%;
    border-radius: var(--hotcla-radius);
    overflow: hidden;
    border: 2px solid var(--hotcla-border);
}

.hotcla-image-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotcla-image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--hotcla-danger);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transition: var(--hotcla-transition);
}

.hotcla-image-preview-item:hover .hotcla-image-preview-remove {
    opacity: 1;
}

.hotcla-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--hotcla-border);
}

/* Statistiques */
.hotcla-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hotcla-stat-card {
    background: var(--hotcla-bg);
    border: 1px solid var(--hotcla-border);
    border-radius: var(--hotcla-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--hotcla-shadow-sm);
    transition: var(--hotcla-transition);
}

.hotcla-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hotcla-shadow-md);
}

.hotcla-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.hotcla-stat-icon-primary {
    background: rgba(31, 119, 180, 0.1);
}

.hotcla-stat-icon-success {
    background: rgba(44, 160, 44, 0.1);
}

.hotcla-stat-icon-info {
    background: rgba(23, 162, 184, 0.1);
}

.hotcla-stat-icon-warning {
    background: rgba(255, 152, 0, 0.1);
}

.hotcla-stat-icon-secondary {
    background: rgba(108, 117, 125, 0.1);
}

.hotcla-stat-content {
    flex: 1;
}

.hotcla-stat-value {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--hotcla-text);
}

.hotcla-stat-label {
    font-size: 13px;
    color: var(--hotcla-text-muted);
    margin: 0;
}

.hotcla-admin-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--hotcla-border);
}

.hotcla-admin-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--hotcla-text);
}

.hotcla-popular-rooms {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hotcla-popular-room-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--hotcla-bg-secondary);
    border-radius: var(--hotcla-radius);
    border: 1px solid var(--hotcla-border);
}

.hotcla-popular-rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--hotcla-primary);
    min-width: 40px;
    text-align: center;
}

.hotcla-popular-thumbnail {
    border-radius: var(--hotcla-radius-sm);
    object-fit: cover;
}

.hotcla-popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hotcla-popular-stats {
    display: flex;
    align-items: center;
}

.hotcla-stat-badge-lg {
    padding: 6px 14px;
    font-size: 14px;
}

.hotcla-info-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 20px;
    margin: 0;
}

.hotcla-info-list dt {
    font-weight: 600;
    color: var(--hotcla-text);
}

.hotcla-info-list dd {
    margin: 0;
    color: var(--hotcla-text-muted);
}

/* ============================================
   Utilitaires
   ============================================ */
.hotcla-text-muted {
    color: var(--hotcla-text-muted) !important;
}

.hotcla-text-center {
    text-align: center;
}

.hotcla-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--hotcla-bg-secondary);
    border-radius: var(--hotcla-radius-lg);
    margin: 40px 0;
}

.hotcla-no-results p {
    color: var(--hotcla-text-muted);
    font-size: 16px;
}

/* ============================================
   Theme Toggle
   ============================================ */
.hotcla-theme-toggle .hotcla-icon-sun {
    display: inline;
}

.hotcla-theme-toggle .hotcla-icon-moon {
    display: none;
}

.hotcla-theme-dark .hotcla-theme-toggle .hotcla-icon-sun {
    display: none;
}

.hotcla-theme-dark .hotcla-theme-toggle .hotcla-icon-moon {
    display: inline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hotcla-container {
        flex-direction: column;
    }
    
    .hotcla-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .hotcla-rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hotcla-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hotcla-header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .hotcla-nav {
        width: 100%;
        justify-content: center;
    }
    
    .hotcla-results-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .hotcla-rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .hotcla-form-row {
        grid-template-columns: 1fr;
    }
    
    .hotcla-room-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .hotcla-equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .hotcla-admin-nav {
        flex-wrap: wrap;
    }
    
    .hotcla-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hotcla-popular-room-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hotcla-container {
        padding: 10px;
    }
    
    .hotcla-sidebar-inner {
        padding: 15px;
    }
    
    .hotcla-room-card {
        border-radius: var(--hotcla-radius);
    }
    
    .hotcla-modal-content {
        padding: 20px;
    }
    
    .hotcla-equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .hotcla-header,
    .hotcla-sidebar,
    .hotcla-admin-panel,
    .hotcla-btn,
    .hotcla-favorite-btn {
        display: none !important;
    }
    
    .hotcla-room-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   Accessibilité
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.hotcla-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible pour accessibilité clavier */
.hotcla-btn:focus-visible,
.hotcla-input:focus-visible,
.hotcla-select:focus-visible,
.hotcla-textarea:focus-visible,
.hotcla-checkbox:focus-visible {
    outline: 3px solid var(--hotcla-primary);
    outline-offset: 2px;
}

/* ============================================
   Animations supplémentaires
   ============================================ */
@keyframes hotcla-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes hotcla-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hotcla-room-card {
    animation: hotcla-fade-in 0.4s ease;
}

/* PWA Install prompt */
.hotcla-pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hotcla-bg);
    border: 1px solid var(--hotcla-border);
    border-radius: var(--hotcla-radius-lg);
    padding: 20px;
    box-shadow: var(--hotcla-shadow-lg);
    z-index: 9998;
    max-width: 400px;
    width: calc(100% - 40px);
    animation: hotcla-slide-up 0.3s ease;
}

.hotcla-pwa-install-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}