/* =====================================================
   ESPACE PROPRIETAIRE v2 — Luxury Design System
   Maison Rivage — Cote d'Emeraude
   Fonts: Cormorant Garamond (headings), Inter (body)
   ===================================================== */

/* ---- CSS VARIABLES ---- */
:root {
    --ep-black: #1a1a1a;
    --ep-white: #ffffff;
    --ep-bg: #f7f6f3;
    --ep-bg-warm: #faf9f7;
    --ep-border: #e8e6e1;
    --ep-border-light: #f0eeea;
    --ep-text: #1a1a1a;
    --ep-text-secondary: #6b6560;
    --ep-text-muted: #9c9790;
    --ep-gold: #b8973b;
    --ep-gold-light: #f5f0e4;
    --ep-success: #16a34a;
    --ep-success-light: #dcfce7;
    --ep-warning: #f59e0b;
    --ep-warning-light: #fef3c7;
    --ep-danger: #ef4444;
    --ep-danger-light: #fee2e2;
    --ep-info: #3b82f6;
    --ep-info-light: #dbeafe;
    --ep-radius: 8px;
    --ep-radius-lg: 12px;
    --ep-radius-xl: 16px;
    --ep-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --ep-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --ep-shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --ep-transition: 0.2s ease;
    --ep-font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --ep-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ep-sidebar-width: 260px;
}

/* ---- RESET ---- */
.ep-layout, .ep-auth-split, .ep-layout *, .ep-auth-split * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ep-layout, .ep-auth-split {
    font-family: var(--ep-font-body);
    color: var(--ep-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.ep-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--ep-sidebar-width);
    background: var(--ep-white);
    border-right: 1px solid var(--ep-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.ep-sidebar-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--ep-border-light);
}

.ep-sidebar-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ep-sidebar-logo-text {
    font-family: var(--ep-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--ep-black);
    letter-spacing: 2px;
}

.ep-sidebar-logo-sub {
    font-size: 9px;
    font-weight: 600;
    color: var(--ep-text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ep-sidebar-nav {
    flex: 1;
    padding: 12px 12px 0;
}

.ep-sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ep-sidebar-item { list-style: none; }

.ep-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--ep-radius);
    text-decoration: none;
    color: var(--ep-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--ep-transition);
    position: relative;
}

.ep-sidebar-link:hover {
    background: var(--ep-bg);
    color: var(--ep-text);
}

.ep-sidebar-link--active {
    background: var(--ep-black);
    color: var(--ep-white);
}

.ep-sidebar-link--active:hover {
    background: var(--ep-black);
    color: var(--ep-white);
}

.ep-sidebar-link--active .ep-sidebar-icon svg {
    stroke: var(--ep-white);
}

.ep-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ep-sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.ep-sidebar-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--ep-danger);
    color: var(--ep-white);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.ep-sidebar-separator {
    height: 1px;
    background: var(--ep-border-light);
    margin: 8px 24px;
}

.ep-sidebar-user {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ep-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ep-sidebar-avatar-initials {
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-text-secondary);
}

.ep-sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ep-sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-sidebar-user-email {
    font-size: 11px;
    color: var(--ep-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 20px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    color: var(--ep-text-muted);
    font-size: 12px;
    font-family: var(--ep-font-body);
    cursor: pointer;
    transition: all var(--ep-transition);
}

.ep-sidebar-logout:hover {
    background: var(--ep-bg);
    color: var(--ep-text);
    border-color: var(--ep-text-muted);
}

.ep-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 40px;
    height: 40px;
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--ep-shadow);
}

/* =====================================================
   HORIZONTAL SUB-NAVIGATION BAR
   ===================================================== */
.ep-subnav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--ep-white);
    border-bottom: 1px solid var(--ep-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ep-subnav-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.ep-subnav-scroll {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}

.ep-subnav-scroll::-webkit-scrollbar {
    display: none;
}

.ep-subnav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    font-family: var(--ep-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.ep-subnav-link:hover {
    color: var(--ep-text);
    background: var(--ep-bg);
}

.ep-subnav-link--active {
    color: var(--ep-text);
    border-bottom-color: #d4a44a;
    font-weight: 600;
}

.ep-subnav-icon {
    display: flex;
    align-items: center;
}

.ep-subnav-icon svg {
    width: 16px;
    height: 16px;
}

.ep-subnav-label {
    display: inline;
}

.ep-subnav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}

.ep-subnav-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ep-border);
    border-radius: 50%;
    background: transparent;
    color: var(--ep-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.ep-subnav-logout:hover {
    background: var(--ep-bg);
    color: var(--ep-text);
    border-color: var(--ep-text-muted);
}

/* Hide the old sidebar on desktop — subnav replaces it */
.ep-sidebar {
    display: none !important;
}

.ep-mobile-header {
    display: none !important;
}

.ep-sidebar-overlay {
    display: none !important;
}

/* ---- MAIN CONTENT ---- */
.ep-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--ep-bg);
}

.ep-main {
    flex: 1;
    margin-left: 0;
    padding: 32px 48px;
    max-width: 100%;
    min-height: 100vh;
}

/* =====================================================
   AUTH — SPLIT SCREEN
   ===================================================== */
.ep-auth-split {
    display: flex;
    min-height: 100vh;
}

.ep-auth-hero {
    flex: 1;
    position: relative;
    background: center/cover no-repeat;
    background-color: #87CEEB;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
}

.ep-auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.ep-auth-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px;
    max-width: 500px;
}

.ep-auth-hero-brand {
    display: block;
    font-family: var(--ep-font-heading);
    font-size: 13px;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.ep-auth-hero-title {
    font-family: var(--ep-font-heading);
    font-size: 44px;
    font-weight: 300;
    color: var(--ep-white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.ep-auth-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    font-weight: 300;
}

.ep-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: var(--ep-white);
}

.ep-auth-form-inner {
    width: 100%;
    max-width: 400px;
}

.ep-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ep-text-muted);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 48px;
    transition: color var(--ep-transition);
}

.ep-auth-back-link:hover {
    color: var(--ep-text);
}

.ep-auth-form-header {
    margin-bottom: 36px;
}

.ep-auth-title {
    font-family: var(--ep-font-heading);
    font-size: 38px;
    font-weight: 300;
    color: var(--ep-text);
    margin-bottom: 10px;
    line-height: 1.15;
}

.ep-auth-contact {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--ep-border);
    font-size: 13px;
    color: var(--ep-text-muted);
    text-align: center;
}

.ep-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ep-field-password-wrap {
    position: relative;
}

.ep-auth-subtitle {
    font-size: 14px;
    color: var(--ep-text-muted);
}

.ep-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ep-auth-footer-link {
    text-align: center;
    margin-top: 4px;
}

/* ---- FORM FIELDS ---- */
.ep-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ep-field-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ep-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ep-field-input {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--ep-border);
    background: transparent;
    font-size: 15px;
    font-family: var(--ep-font-body);
    color: var(--ep-text);
    transition: border-color var(--ep-transition);
    outline: none;
    width: 100%;
    border-radius: 0;
}

.ep-field-input:focus {
    border-bottom-color: var(--ep-black);
}

.ep-field-input--readonly {
    color: var(--ep-text-muted);
    cursor: not-allowed;
}

.ep-field-input--sm {
    padding: 8px 12px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    font-size: 13px;
}

.ep-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ep-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

select.ep-field-input {
    padding: 10px 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239c9790' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

.ep-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ep-text-secondary);
    cursor: pointer;
}

.ep-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--ep-black);
}

/* ---- BUTTONS ---- */
/* Button styles — high specificity to override Elementor */
html body .ep-auth-split .ep-auth-form-panel .ep-auth-form button.ep-btn-dark,
html body .ep-auth-split .ep-auth-form button.ep-btn-dark,
html body .ep-layout .ep-main button.ep-btn-dark,
html body .ep-btn-dark,
html body .ep-auth-form .ep-btn-dark,
html body .ep-auth-split .ep-btn-dark,
html body button.ep-btn-dark,
html body a.ep-btn-dark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 28px !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    width: auto;
}

html body .ep-auth-split .ep-auth-form-panel .ep-auth-form button.ep-btn-dark:hover,
html body .ep-auth-split .ep-auth-form button.ep-btn-dark:hover,
html body .ep-layout .ep-main button.ep-btn-dark:hover,
html body .ep-btn-dark:hover,
html body .ep-auth-form .ep-btn-dark:hover,
html body .ep-auth-split .ep-btn-dark:hover,
html body button.ep-btn-dark:hover,
html body a.ep-btn-dark:hover {
    background-color: #d4a44a !important;
    color: #ffffff !important;
}

html body .ep-btn-dark:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.ep-btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--ep-text);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--ep-font-body);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ep-transition);
}

.ep-btn-outline-dark:hover {
    background: var(--ep-bg);
    border-color: var(--ep-text-muted);
    color: var(--ep-text);
}

.ep-btn-sm {
    padding: 10px 20px;
    font-size: 11px;
}

.ep-btn-full,
.ep-auth-form .ep-btn-full {
    width: 100% !important;
}

/* ---- LINKS ---- */
.ep-link-subtle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ep-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--ep-transition);
}

.ep-link-subtle:hover {
    color: var(--ep-text);
}

/* ---- ALERTS ---- */
.ep-alert {
    padding: 12px 16px;
    border-radius: var(--ep-radius);
    font-size: 14px;
    line-height: 1.5;
}

.ep-alert-error {
    background: var(--ep-danger-light);
    color: var(--ep-danger);
    border: 1px solid #fca5a5;
}

.ep-alert-success {
    background: var(--ep-success-light);
    color: var(--ep-success);
    border: 1px solid #86efac;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.ep-page-header {
    margin-bottom: 32px;
}

.ep-page-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ep-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ep-page-title {
    font-family: var(--ep-font-heading);
    font-size: 42px;
    font-weight: 400;
    color: var(--ep-text);
    line-height: 1.15;
    margin: 0 0 8px 0;
}

.ep-page-subtitle {
    font-size: 15px;
    color: var(--ep-text-muted);
    margin: 0;
}

.ep-gamme-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--ep-gold-light);
    color: var(--ep-gold);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =====================================================
   CARDS
   ===================================================== */
.ep-card {
    background: var(--ep-white);
    border-radius: var(--ep-radius-lg);
    border: 1px solid var(--ep-border-light);
    box-shadow: var(--ep-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.ep-card--flush {
    padding: 0;
    overflow: hidden;
}

.ep-card-title {
    font-family: var(--ep-font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--ep-text);
    margin: 0 0 20px 0;
}

.ep-section-title {
    font-family: var(--ep-font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--ep-text);
    margin: 0 0 16px 0;
}

/* =====================================================
   STATUS BANNER
   ===================================================== */
.ep-status-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--ep-white);
    border-radius: var(--ep-radius-lg);
    border: 1px solid var(--ep-border-light);
    box-shadow: var(--ep-shadow);
    margin-bottom: 20px;
    font-size: 14px;
}

.ep-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.ep-status-divider {
    color: var(--ep-text-muted);
}

.ep-status-meta {
    color: var(--ep-text-muted);
}

/* =====================================================
   QUICK ACTIONS
   ===================================================== */
.ep-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* =====================================================
   KPI CARDS
   ===================================================== */
.ep-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ep-kpi-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.ep-kpi-card {
    padding: 24px;
}

.ep-kpi-card--highlight {
    background: var(--ep-black);
    color: var(--ep-white);
    border-color: var(--ep-black);
}

.ep-kpi-card--highlight .ep-kpi-label {
    color: rgba(255,255,255,0.6);
}

.ep-kpi-card--highlight .ep-kpi-value {
    color: var(--ep-white);
}

.ep-kpi-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ep-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ep-kpi-value {
    display: block;
    font-family: var(--ep-font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--ep-text);
    line-height: 1.1;
    margin-bottom: 4px;
}

.ep-kpi-change {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.ep-kpi-change--up { color: var(--ep-success); }
.ep-kpi-change--down { color: var(--ep-danger); }

.ep-kpi-period {
    font-weight: 400;
    color: var(--ep-text-muted);
    margin-left: 4px;
}

.ep-kpi-detail {
    display: block;
    font-size: 13px;
    color: var(--ep-text-muted);
    margin-top: 4px;
}

.ep-stars-row {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.ep-occupancy-bar {
    height: 6px;
    background: var(--ep-border);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.ep-occupancy-fill {
    height: 100%;
    background: var(--ep-black);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* =====================================================
   DETAILS GRID
   ===================================================== */
.ep-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ep-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ep-detail-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ep-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ep-detail-value {
    font-size: 15px;
    color: var(--ep-text);
}

/* =====================================================
   OCCUPATION GRID
   ===================================================== */
.ep-occ-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.ep-occ-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--ep-text-muted);
    padding: 4px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ep-occ-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    transition: transform var(--ep-transition);
}

.ep-occ-cell--empty { background: transparent; }

.ep-occ-cell--available {
    background: var(--ep-bg);
    color: var(--ep-text-secondary);
}

.ep-occ-cell--occupied {
    background: var(--ep-black);
    color: var(--ep-white);
}

.ep-occ-cell--today {
    outline: 2px solid var(--ep-gold);
    outline-offset: -2px;
}

.ep-occ-legend {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.ep-occ-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ep-text-muted);
}

.ep-occ-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.ep-occ-legend-dot--occupied { background: var(--ep-black); }
.ep-occ-legend-dot--available { background: var(--ep-bg); border: 1px solid var(--ep-border); }
.ep-occ-legend-dot--today { background: var(--ep-bg); outline: 2px solid var(--ep-gold); outline-offset: -2px; }

/* =====================================================
   UPCOMING LIST
   ===================================================== */
.ep-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-upcoming-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ep-border-light);
}

.ep-upcoming-item:last-child {
    border-bottom: none;
}

.ep-upcoming-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-bg);
    border-radius: var(--ep-radius);
    flex-shrink: 0;
    color: var(--ep-text-secondary);
}

.ep-upcoming-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ep-upcoming-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text);
}

.ep-upcoming-date {
    font-size: 12px;
    color: var(--ep-text-muted);
}

/* =====================================================
   TAGS
   ===================================================== */
.ep-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ep-tag--neutral { background: var(--ep-bg); color: var(--ep-text-secondary); }
.ep-tag--success { background: var(--ep-success-light); color: var(--ep-success); }
.ep-tag--warning { background: var(--ep-warning-light); color: #92400e; }
.ep-tag--danger { background: var(--ep-danger-light); color: var(--ep-danger); }
.ep-tag--info { background: var(--ep-info-light); color: var(--ep-info); }
.ep-tag--planifie { background: var(--ep-bg); color: var(--ep-text-secondary); }
.ep-tag--en_cours { background: var(--ep-info-light); color: var(--ep-info); }
.ep-tag--termine { background: var(--ep-success-light); color: var(--ep-success); }

.ep-tag--new {
    background: var(--ep-black);
    color: var(--ep-white);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =====================================================
   FILTERS
   ===================================================== */
.ep-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ep-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--ep-transition);
    font-family: var(--ep-font-body);
}

.ep-filter-pill:hover {
    background: var(--ep-bg);
    border-color: var(--ep-text-muted);
    color: var(--ep-text);
}

.ep-filter-pill--active {
    background: var(--ep-black);
    border-color: var(--ep-black);
    color: var(--ep-white);
}

.ep-filter-pill--active:hover {
    background: var(--ep-black);
    color: var(--ep-white);
}

.ep-filter-count {
    font-size: 11px;
    opacity: 0.7;
}

.ep-filter-row {
    margin-bottom: 20px;
}

/* =====================================================
   SEARCH BAR
   ===================================================== */
.ep-search-bar {
    margin-bottom: 20px;
}

.ep-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    transition: border-color var(--ep-transition);
}

.ep-search-input-wrap:focus-within {
    border-color: var(--ep-black);
}

.ep-search-input-wrap svg {
    color: var(--ep-text-muted);
    flex-shrink: 0;
}

.ep-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--ep-font-body);
    color: var(--ep-text);
    background: transparent;
}

.ep-search-input::placeholder {
    color: var(--ep-text-muted);
}

/* =====================================================
   CALENDAR
   ===================================================== */
/* ---- CALENDAR — Premium Design ---- */
.ep-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 20px 0;
}

.ep-cal-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1a1a1a;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ep-cal-nav-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.ep-cal-month-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    color: #1a1a1a;
    min-width: 240px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Calendar Grid Container */
.ep-card--flush {
    padding: 0;
    overflow: hidden;
}

.ep-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Day Headers */
.ep-cal-header {
    padding: 16px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #99a1af;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

/* Day Cells */
.ep-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3f4f6;
    border-width: 0 1px 1px 0;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    min-height: 64px;
    gap: 4px;
}

.ep-cal-day:hover:not(.ep-cal-outside) {
    background: #f9f7f4;
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Day Number */
.ep-cal-day-num {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1;
}

/* Day Status Label */
.ep-cal-day-status {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Outside / Empty */
.ep-cal-outside {
    background: #fafafa;
    opacity: 0.4;
}

/* Available */
.ep-cal-available {
    background: #fff;
}

.ep-cal-available .ep-cal-day-status {
    color: #22c55e;
}

/* Reserved / Booked */
.ep-cal-booked {
    background: #1a1a1a;
    cursor: pointer;
}

.ep-cal-booked .ep-cal-day-num {
    color: #fff;
}

.ep-cal-booked .ep-cal-day-status {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
}

.ep-cal-booked:hover {
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Blocked */
.ep-cal-blocked {
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(0,0,0,0.04) 4px,
            rgba(0,0,0,0.04) 8px
        ),
        #f3f4f6;
}

.ep-cal-blocked .ep-cal-day-num {
    color: #99a1af;
}

.ep-cal-blocked .ep-cal-day-status {
    color: #d97706;
    background: #fef3c7;
}

/* Today */
.ep-cal-today {
    outline: 2px solid #d4a44a;
    outline-offset: -2px;
    z-index: 2;
}

.ep-cal-today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4a44a;
}

.ep-cal-booked.ep-cal-today::after {
    background: #fff;
}

/* Weekend columns (6th and 7th) */
.ep-cal-day:nth-child(7n+6),
.ep-cal-day:nth-child(7n+7) {
    background-color: rgba(250, 247, 244, 0.5);
}

.ep-cal-booked:nth-child(7n+6),
.ep-cal-booked:nth-child(7n+7) {
    background-color: #1a1a1a;
}

/* Guest Name Tooltip on Hover */
.ep-cal-day[data-guest]::before {
    content: attr(data-guest);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.ep-cal-day[data-guest]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.ep-cal-day[data-guest]:hover::before,
.ep-cal-day[data-guest]:hover::after {
    opacity: 1;
}

/* Legend */
.ep-cal-legend {
    display: flex;
    gap: 28px;
    margin-top: 24px;
    margin-bottom: 32px;
    justify-content: center;
    padding: 16px 0;
}

.ep-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6a7282;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.ep-cal-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.ep-cal-legend-dot--available {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.ep-cal-legend-dot--reserved {
    background: #1a1a1a;
}

.ep-cal-legend-dot--blocked {
    background: repeating-linear-gradient(45deg, #fafafa, #fafafa 2px, #e5e7eb 2px, #e5e7eb 4px);
    border: 1px solid #e5e7eb;
}

/* Block Dates Card */
.ep-block-dates {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ep-block-dates h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.ep-block-dates .ep-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.ep-block-dates .ep-field label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #99a1af;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.ep-block-dates input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    transition: border-color 0.2s;
    background: #fff;
}

.ep-block-dates input[type="date"]:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

#ep-block-dates-msg {
    margin-top: 16px;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    /* Subnav: hide labels, show icons only */
    .ep-subnav-label { display: none; }
    .ep-subnav-link { padding: 12px 14px; }
    .ep-subnav-icon svg { width: 20px; height: 20px; }
    .ep-subnav-inner { padding: 0 8px; }
    .ep-main { padding: 24px 16px; }

    .ep-cal-month-title { font-size: 24px; }
    .ep-cal-nav { gap: 16px; }
    .ep-cal-day { min-height: 44px; }
    .ep-cal-day-num { font-size: 12px; }
    .ep-cal-day-status { display: none; }
    .ep-cal-header { padding: 10px 4px; font-size: 10px; }
    .ep-cal-legend { flex-wrap: wrap; gap: 12px; justify-content: center; }
    .ep-block-dates .ep-field-grid { grid-template-columns: 1fr; }
    .ep-cal-day[data-guest]::before { display: none; }
}

@media (max-width: 480px) {
    .ep-cal-day { min-height: 36px; }
    .ep-cal-day-num { font-size: 11px; }
    .ep-cal-nav-btn { width: 36px; height: 36px; }
}

.ep-reservation-detail {
    border-left: 3px solid var(--ep-black);
}

.ep-ical-url {
    margin-top: 12px;
}

.ep-code {
    display: block;
    padding: 12px;
    background: var(--ep-bg);
    border-radius: var(--ep-radius);
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 12px;
    color: var(--ep-text-secondary);
    word-break: break-all;
}

/* =====================================================
   INTERVENTIONS LIST
   ===================================================== */
.ep-interventions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-intervention-card {
    padding: 20px 24px;
}

.ep-intervention-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.ep-intervention-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ep-radius);
    flex-shrink: 0;
    background: var(--ep-bg);
    color: var(--ep-text-secondary);
}

.ep-intervention-icon--alerte { background: var(--ep-warning-light); color: #92400e; }
.ep-intervention-icon--rapport { background: var(--ep-info-light); color: var(--ep-info); }

.ep-intervention-meta {
    flex: 1;
}

.ep-intervention-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ep-text);
    margin: 0 0 4px 0;
}

.ep-intervention-date {
    font-size: 13px;
    color: var(--ep-text-muted);
}

.ep-intervention-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ep-intervention-desc {
    font-size: 14px;
    color: var(--ep-text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.ep-intervention-photos {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ep-intervention-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--ep-transition);
}

.ep-intervention-thumb:hover {
    transform: scale(1.05);
}

.ep-intervention-footer {
    padding-top: 12px;
    border-top: 1px solid var(--ep-border-light);
}

/* =====================================================
   DOCUMENTS
   ===================================================== */
.ep-doc-section {
    margin-bottom: 32px;
}

.ep-doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ep-doc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.ep-doc-preview {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.ep-doc-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-doc-zoom-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: var(--ep-white);
    opacity: 0;
    transition: opacity var(--ep-transition);
}

.ep-doc-preview:hover .ep-doc-zoom-overlay {
    opacity: 1;
}

.ep-doc-type-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.ep-doc-type-ext {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ep-doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ep-doc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text);
}

.ep-doc-meta {
    font-size: 12px;
    color: var(--ep-text-muted);
}

/* =====================================================
   FINANCES TABLE
   ===================================================== */
.ep-table-wrap {
    overflow-x: auto;
}

.ep-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ep-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: var(--ep-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ep-border);
}

.ep-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ep-border-light);
    color: var(--ep-text-secondary);
}

.ep-table tbody tr:hover {
    background: var(--ep-bg-warm);
}

.ep-table-total td {
    font-weight: 700;
    color: var(--ep-text);
    border-top: 2px solid var(--ep-border);
    border-bottom: none;
}

.ep-text-right { text-align: right; }
.ep-text-bold { font-weight: 700; color: var(--ep-text); }
.ep-text-center { text-align: center; }
.ep-text-muted { color: var(--ep-text-muted); font-size: 14px; }
.ep-text-sm { font-size: 13px; }

.ep-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* =====================================================
   CHAT / MESSAGING
   ===================================================== */
.ep-chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 280px);
    min-height: 450px;
    padding: 0;
    overflow: hidden;
}

.ep-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ep-border-light);
}

.ep-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-white);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.ep-chat-header-info {
    display: flex;
    flex-direction: column;
}

.ep-chat-header-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ep-text);
}

.ep-chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ep-text-muted);
}

.ep-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.ep-messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-chat-date-divider {
    text-align: center;
    padding: 16px 0;
}

.ep-chat-date-divider span {
    padding: 4px 14px;
    background: var(--ep-bg);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ep-text-muted);
    letter-spacing: 0.5px;
}

.ep-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.ep-message--sent {
    align-self: flex-end;
}

.ep-message--received {
    align-self: flex-start;
}

.ep-message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.ep-message--sent .ep-message-bubble {
    background: var(--ep-black);
    color: var(--ep-white);
    border-bottom-right-radius: 4px;
}

.ep-message--received .ep-message-bubble {
    background: var(--ep-bg-warm);
    color: var(--ep-text);
    border-bottom-left-radius: 4px;
}

.ep-message-attachments {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ep-message-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: rgba(255,255,255,0.15);
}

.ep-message--received .ep-message-attachment-chip {
    background: var(--ep-border);
}

.ep-message-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ep-text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.ep-message--sent .ep-message-time {
    justify-content: flex-end;
}

/* Composer */
.ep-chat-composer {
    border-top: 1px solid var(--ep-border-light);
    padding: 16px 24px;
    background: var(--ep-white);
}

.ep-composer-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ep-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.ep-composer-attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ep-text-muted);
    cursor: pointer;
    transition: color var(--ep-transition);
    flex-shrink: 0;
}

.ep-composer-attach:hover {
    color: var(--ep-text);
}

.ep-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.ep-composer-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    font-size: 14px;
    font-family: var(--ep-font-body);
    resize: none;
    min-height: 40px;
    max-height: 120px;
    outline: none;
    transition: border-color var(--ep-transition);
}

.ep-composer-input:focus {
    border-color: var(--ep-black);
}

.ep-composer-send {
    padding: 10px 20px;
    flex-shrink: 0;
}

.ep-composer-preview {
    font-size: 12px;
    color: var(--ep-text-muted);
}

/* Quick requests */
.ep-quick-requests {
    margin-top: 32px;
}

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

.ep-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--ep-gold);
    background: var(--ep-gold-light);
    transition: all var(--ep-transition);
    font-family: var(--ep-font-body);
    border-radius: var(--ep-radius-lg);
}

.ep-quick-card:hover {
    background: var(--ep-gold);
    border-color: var(--ep-gold);
    box-shadow: var(--ep-shadow-md);
    transform: translateY(-2px);
}

.ep-quick-card:hover .ep-quick-icon {
    background: rgba(255,255,255,0.3);
    color: var(--ep-white);
}

.ep-quick-card:hover .ep-quick-label {
    color: var(--ep-white);
}

.ep-quick-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-white);
    border-radius: 50%;
    color: var(--ep-gold);
    box-shadow: 0 2px 8px rgba(184,151,59,0.15);
}

.ep-quick-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.ep-timeline {
    position: relative;
    padding-left: 32px;
}

.ep-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ep-border);
}

.ep-timeline-month {
    position: relative;
    margin: 28px 0 16px;
}

.ep-timeline-month-dot {
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--ep-white);
    border: 2px solid var(--ep-border);
    border-radius: 50%;
    z-index: 1;
}

.ep-timeline-month-label {
    font-family: var(--ep-font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--ep-text);
    margin: 0;
}

.ep-timeline-item {
    position: relative;
    margin-bottom: 12px;
}

.ep-timeline-item--new .ep-timeline-card {
    border-left: 3px solid var(--ep-black);
}

.ep-timeline-line-dot {
    position: absolute;
    left: -32px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--ep-white);
    border: 2px solid var(--ep-border);
    border-radius: 50%;
    z-index: 1;
    margin-left: 5px;
}

.ep-timeline-card {
    padding: 18px 20px;
}

.ep-timeline-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ep-timeline-card-date {
    font-size: 12px;
    color: var(--ep-text-muted);
}

.ep-timeline-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ep-text);
    margin: 0 0 4px 0;
}

.ep-timeline-card-desc {
    font-size: 14px;
    color: var(--ep-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.ep-timeline-photos {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ep-timeline-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--ep-transition);
}

.ep-timeline-photo:hover {
    transform: scale(1.05);
}

.ep-timeline-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ep-border-light);
}

/* =====================================================
   SATISFACTION
   ===================================================== */
.ep-satisfaction-summary {
    text-align: center;
    padding: 32px 24px;
}

.ep-satisfaction-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ep-satisfaction-avg {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ep-satisfaction-number {
    font-family: var(--ep-font-heading);
    font-size: 56px;
    font-weight: 400;
    color: var(--ep-text);
    line-height: 1;
}

.ep-satisfaction-max {
    font-size: 20px;
    color: var(--ep-text-muted);
}

.ep-satisfaction-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.ep-satisfaction-count {
    font-size: 14px;
    color: var(--ep-text-muted);
}

.ep-satisfaction-distribution,
.ep-rating-distribution {
    max-width: 360px;
    margin: 24px auto 0;
}

.ep-rating-bar,
.ep-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ep-rating-bar-label {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 32px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-text-secondary);
    justify-content: flex-end;
    flex-shrink: 0;
}

.ep-rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--ep-bg);
    border-radius: 4px;
    overflow: hidden;
}

.ep-rating-bar-fill {
    height: 100%;
    background: var(--ep-warning);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.ep-rating-bar-count {
    width: 24px;
    font-size: 12px;
    color: var(--ep-text-muted);
    text-align: right;
    flex-shrink: 0;
}

.ep-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-review-card {
    padding: 20px 24px;
}

.ep-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ep-review-guest {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ep-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--ep-text-secondary);
    flex-shrink: 0;
}

.ep-review-guest-name,
.ep-review-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ep-text);
    display: block;
}

.ep-review-date {
    font-size: 12px;
    color: var(--ep-text-muted);
    display: block;
}

.ep-review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ep-text-muted);
}

.ep-review-platform {
    font-weight: 600;
}

.ep-review-sep {
    color: var(--ep-border);
}

.ep-review-rating,
.ep-review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ep-review-rating-num {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text);
}

.ep-review-rating-big {
    font-family: var(--ep-font-heading);
    font-size: 24px;
    color: var(--ep-text);
}

.ep-review-comment {
    font-size: 14px;
    color: var(--ep-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.ep-review-photos {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ep-review-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.ep-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.ep-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.ep-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.ep-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: var(--ep-white);
    font-size: 32px;
    cursor: pointer;
}

.ep-lightbox-title {
    text-align: center;
    color: var(--ep-white);
    margin-top: 12px;
    font-size: 14px;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.ep-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ep-text-muted);
}

.ep-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .ep-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-kpi-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ep-property-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-main { padding: 32px 24px; }
}

@media (max-width: 768px) {
    .ep-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .ep-sidebar.ep-sidebar--open {
        transform: translateX(0);
    }

    .ep-sidebar-toggle {
        display: flex;
    }

    .ep-main {
        margin-left: 0;
        padding: 24px 16px;
        padding-top: 64px;
    }

    .ep-page-title {
        font-size: 32px;
    }

    .ep-auth-split {
        flex-direction: column;
    }

    .ep-auth-hero {
        min-height: 240px;
    }

    .ep-auth-hero-title {
        font-size: 28px;
    }

    .ep-auth-form-panel {
        padding: 32px 24px;
    }

    .ep-kpi-grid,
    .ep-kpi-grid--4 {
        grid-template-columns: 1fr;
    }

    .ep-quick-grid {
        grid-template-columns: 1fr;
    }

    .ep-field-grid {
        grid-template-columns: 1fr;
    }

    .ep-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ep-intervention-header {
        flex-direction: column;
    }

    .ep-message {
        max-width: 85%;
    }

    .ep-table { font-size: 12px; }
    .ep-table th, .ep-table td { padding: 8px 6px; }

    .ep-cal-month-title { font-size: 22px; }

    .ep-quick-actions {
        flex-direction: column;
    }

    .ep-quick-actions .ep-btn-dark,
    .ep-quick-actions .ep-btn-outline-dark {
        width: 100%;
    }

    .ep-review-header {
        flex-direction: column;
    }

    .ep-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .ep-filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Calendar responsive */
    .ep-calendar-grid { font-size: 12px; }
    .ep-cal-day { min-height: 44px; padding: 4px; }
    .ep-cal-day-num { font-size: 12px; }
    .ep-cal-header { padding: 10px 4px; font-size: 10px; }
    .ep-cal-nav { gap: 16px; }
    .ep-cal-day-status { display: none; }
    .ep-cal-legend { flex-wrap: wrap; gap: 12px; justify-content: center; }

    /* Chat / messaging bubbles */
    .ep-message { max-width: 90%; }

    /* Finance table */
    .ep-table-wrap,
    .ep-finance-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ep-table { font-size: 12px; }
    .ep-table th, .ep-table td { padding: 8px 6px; }

    /* Document items stack */
    .ep-doc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Timeline items full width */
    .ep-timeline-item { width: 100%; }
    .ep-timeline-card { width: 100%; }

    /* Intervention cards full width */
    .ep-intervention-card { width: 100%; }

    /* Filter buttons wrap + smaller */
    .ep-filter-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .ep-filter-pill {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Status banner smaller */
    .ep-status-banner {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Occupation grid smaller cells */
    .ep-occ-grid { gap: 2px; }
    .ep-occ-cell { font-size: 10px; padding: 4px 2px; }
}

@media (max-width: 480px) {
    .ep-page-title {
        font-size: 28px;
    }

    .ep-auth-hero-title {
        font-size: 24px;
    }

    .ep-auth-title {
        font-size: 28px;
    }

    .ep-kpi-value {
        font-size: 24px;
    }

    .ep-satisfaction-number {
        font-size: 40px;
    }

    .ep-details-grid {
        grid-template-columns: 1fr;
    }

    .ep-occ-grid {
        gap: 2px;
    }

    .ep-occ-cell {
        font-size: 10px;
    }
}

/* =====================================================
   MESSAGING FIX
   ===================================================== */
.ep-messaging {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--ep-border, #f0f0f0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 280px);
    min-height: 400px;
}

/* =====================================================
   DATE BLOCKING
   ===================================================== */
.ep-block-dates {
    margin-top: 24px;
}

.ep-block-dates h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 16px;
}

.ep-block-dates .ep-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.ep-block-dates .ep-field label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #99a1af;
    margin-bottom: 6px;
    display: block;
}

.ep-block-dates input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

#ep-block-dates-msg {
    margin-top: 12px;
}

/* =====================================================
   CALENDAR NAVIGATION (additional)
   ===================================================== */
#ep-cal-month-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
}

/* Calendar grid improvements */
.ep-cal-outside {
    background: transparent;
}

.ep-cal-day.ep-cal-today {
    outline: 2px solid #d4a44a;
    outline-offset: -2px;
}

/* =====================================================
   LOAD MORE BUTTON
   ===================================================== */
.ep-load-more {
    display: block;
    margin: 24px auto;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4a5565;
    cursor: pointer;
    transition: all 0.2s;
}

.ep-load-more:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* =====================================================
   YEAR SELECT
   ===================================================== */
#ep-finance-year {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    margin-bottom: 20px;
}

/* =====================================================
   REVIEWS SORT
   ===================================================== */
#ep-reviews-sort {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    margin-bottom: 20px;
}

/* =====================================================
   CATEGORY TABS
   ===================================================== */
.ep-category-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.ep-category-tab {
    padding: 12px 20px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #99a1af;
    font-weight: 400;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.ep-category-tab:hover {
    color: #4a5565;
}

.ep-category-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 500;
}

/* =====================================================
   SPINNER & LOADING
   ===================================================== */
.ep-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: ep-spin 0.6s linear infinite;
}

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

.ep-loading {
    text-align: center;
    padding: 40px 0;
    color: #99a1af;
}

/* =====================================================
   FILTER BUTTON (interventions)
   ===================================================== */
.ep-filter-btn {
    padding: 8px 20px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6a7282;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
}

.ep-filter-btn.active,
.ep-filter-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* =====================================================
   JOURNAL FILTER
   ===================================================== */
.ep-journal-filter {
    padding: 8px 20px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6a7282;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.ep-journal-filter.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* =====================================================
   MOBILE HEADER BAR — replaces Elementor nav on EP pages
   ===================================================== */
.ep-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #1a1a1a !important;
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ep-mobile-logo {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 5px !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase;
}

.ep-mobile-avatar {
    width: 34px;
    height: 34px;
    background: #d4a44a !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a !important;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.ep-sidebar-toggle {
    display: none;
    background: none !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.ep-sidebar-overlay,
#ep-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.ep-sidebar-overlay.active,
#ep-sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .ep-mobile-header {
        display: flex !important;
    }

    .ep-sidebar-toggle {
        display: flex !important;
    }

    .ep-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .ep-sidebar.open,
    .ep-sidebar.active {
        transform: translateX(0) !important;
    }

    .ep-main {
        margin-left: 0 !important;
        padding-top: 72px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .ep-auth-split {
        flex-direction: column !important;
    }

    .ep-auth-hero {
        min-height: 200px !important;
        flex: none !important;
    }

    .ep-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .ep-page-title {
        font-size: 28px !important;
    }

    .ep-property-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .ep-quick-actions {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
    }
}

/* =====================================================
   MOBILE BOTTOM TAB BAR (app-style)
   ===================================================== */
.ep-bottomnav {
    display: none;
}

@media (max-width: 768px) {
    .ep-bottomnav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        height: 68px;
        align-items: center;
        justify-content: space-around;
        padding: 0 4px;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    }

    .ep-bottomnav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: #9ca3af;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.3px;
        padding: 6px 4px;
        border: none;
        background: none;
        cursor: pointer;
        min-width: 56px;
        transition: color 0.2s;
    }

    .ep-bottomnav-item--active {
        color: #1a1a1a;
    }

    .ep-bottomnav-item--active .ep-bottomnav-icon svg {
        stroke-width: 2;
    }

    .ep-bottomnav-icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
    }

    .ep-bottomnav-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background: #ef4444;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    .ep-bottomnav-label {
        font-family: 'Inter', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Hide elements on mobile */
    .ep-sidebar,
    .ep-mobile-header,
    .ep-subnav {
        display: none !important;
    }

    /* Fix main content */
    .ep-main {
        margin-left: 0 !important;
        padding: 20px 16px 80px !important;
    }

    .ep-layout {
        display: block !important;
    }

    /* Page header smaller on mobile */
    .ep-page-header {
        margin-bottom: 20px;
    }
    .ep-page-header .ep-page-title {
        font-size: 28px;
    }
}

/* ---- Bottom Nav "More" Popup ---- */
.ep-bottomnav-popup {
    display: none;
}

.ep-bottomnav-popup.active {
    display: block;
}

.ep-bottomnav-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
}

.ep-bottomnav-popup-content {
    position: fixed;
    bottom: 68px;
    left: 8px;
    right: 8px;
    z-index: 10001;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    padding: 16px 0 8px;
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

.ep-bottomnav-popup-header {
    padding: 0 20px 12px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 8px;
}

.ep-bottomnav-popup-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-bottomnav-popup-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.ep-bottomnav-popup-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.ep-bottomnav-popup-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.ep-bottomnav-popup-link:hover,
.ep-bottomnav-popup-link:active {
    background: #f9fafb;
}

.ep-bottomnav-popup-link--active {
    color: #1a1a1a;
    font-weight: 600;
    background: #f9f7f4;
}

.ep-bottomnav-popup-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ep-bottomnav-popup-icon svg {
    width: 20px;
    height: 20px;
}

.ep-bottomnav-popup-logout {
    color: #ef4444;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
    padding-top: 16px;
}
