/**
 * Premium User Dashboard Styles
 * Modern, clean interface for landlord property management
 */

/* ── Dashboard Container ── */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ─── Pill Toggles — Tipo de Propiedad & Tipo de Operación ─── */
.fancy-property-type .acf-label,
.fancy-operation-type .acf-label {
    text-align: left !important;
}

.fancy-property-type .acf-label label,
.fancy-operation-type .acf-label label {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

/* Remove ACF taxonomy field border/scroll */
.fancy-property-type .acf-taxonomy-field,
.fancy-property-type .acf-input,
.fancy-property-type .acf-input > div,
.fancy-property-type .acf-input > div > div {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Pill list — works for both taxonomy (ul) and radio (.acf-radio-list) */
.fancy-property-type ul,
.fancy-property-type .acf-radio-list,
.fancy-operation-type .acf-radio-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.fancy-property-type ul > li,
.fancy-property-type .acf-radio-list > li,
.fancy-operation-type .acf-radio-list > li {
    display: block !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

.fancy-property-type ul > li > label,
.fancy-property-type .acf-radio-list > li > label,
.fancy-operation-type .acf-radio-list > li > label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 18px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 999px !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    transition: all 0.18s ease !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    text-align: left !important;
    box-shadow: none !important;
    flex-direction: row !important;
}

.fancy-property-type ul > li > label:hover,
.fancy-property-type .acf-radio-list > li > label:hover,
.fancy-operation-type .acf-radio-list > li > label:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: rgba(31, 123, 255, 0.06) !important;
    transform: none !important;
    box-shadow: none !important;
}

.fancy-property-type ul input[type="radio"],
.fancy-property-type ul input[type="checkbox"],
.fancy-property-type .acf-radio-list input[type="radio"],
.fancy-operation-type .acf-radio-list input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.fancy-property-type ul > li:has(input:checked) > label,
.fancy-property-type .acf-radio-list > li:has(input:checked) > label,
.fancy-operation-type .acf-radio-list > li:has(input:checked) > label {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(31, 123, 255, 0.35) !important;
    transform: none !important;
}

.fancy-property-type .acf-label .description,
.fancy-property-type .acf-required,
.fancy-operation-type .acf-label .description,
.fancy-operation-type .acf-required {
    display: none !important;
}

/* Override .publish-page constraints when the modern dashboard is rendered */
.publish-page:has(.dashboard-shell) {
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Modern Sidebar Shell ── */
.dashboard-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    background: var(--primary-gradient);
    box-shadow: 0 6px 14px rgba(31, 123, 255, 0.35);
    flex-shrink: 0;
}

.sidebar-user-info {
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-mobile-nav {
    display: none;
}

.sidebar-mobile-nav__label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.sidebar-mobile-nav__select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    padding: 0 40px 0 12px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 11px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    position: relative;
}

.sidebar-link svg {
    flex-shrink: 0;
    color: #94a3b8;
    transition: color 0.18s ease;
}

.sidebar-link span:not(.sidebar-badge) {
    flex: 1;
}

.sidebar-link:hover {
    background: #f8fafc;
    color: var(--text-primary);
}

.sidebar-link:hover svg {
    color: var(--primary-color);
}

.sidebar-link--active {
    background: linear-gradient(135deg, rgba(31, 123, 255, 0.1) 0%, rgba(32, 214, 199, 0.08) 100%);
    color: var(--primary-color);
}

.sidebar-link--active svg {
    color: var(--primary-color);
}

.sidebar-link--active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--primary-color), #20D6C7);
}

.sidebar-link--danger {
    color: #94a3b8;
}

.sidebar-link--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.sidebar-link--danger:hover svg {
    color: #dc2626;
}

.sidebar-link--danger.sidebar-link--active {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.sidebar-link--danger.sidebar-link--active svg {
    color: #dc2626;
}

.sidebar-link--danger.sidebar-link--active::before {
    background: #ef4444;
}

.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 22px;
    width: auto;
    height: 22px;
    padding: 0 7px;
    background: rgba(31, 123, 255, 0.1);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-hover);
}

.sidebar-link--active .sidebar-badge {
    background: var(--primary-color);
    color: #fff;
}

.sidebar-badge--alert {
    background: #ef4444;
    color: #fff;
    animation: pulse 2s infinite;
}

/* ── Main column ── */
.dashboard-main {
    min-width: 0;
}

.dashboard-topbar {
    margin-bottom: 22px;
    padding: 26px 30px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.dashboard-topbar .dashboard-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

/* Plan chip shown after the greeting name (loaded on every dashboard tab). */
.dashboard-plan-chip {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 3px 12px;
}

.dashboard-topbar .dashboard-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Stats grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card--blue .stat-card-icon { background: rgba(31, 123, 255, 0.1); color: var(--primary-color); }
.stat-card--green .stat-card-icon { background: #ecfdf5; color: #059669; }
.stat-card--amber .stat-card-icon { background: #fffbeb; color: #d97706; }
.stat-card--purple .stat-card-icon { background: rgba(32, 214, 199, 0.12); color: #20D6C7; }

.stat-card-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card-label {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px 0;
    }
    .dashboard-sidebar {
        position: static;
        min-height: auto;
        padding: 16px;
    }
    .sidebar-nav,
    .sidebar-footer {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        border-top: none;
        padding-top: 0;
        margin-top: 12px;
    }
    .sidebar-link {
        padding: 9px 12px;
        font-size: 13px;
    }
    .sidebar-link--active::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-topbar { padding: 20px; }
}

@media (max-width: 600px) {
    .sidebar-mobile-nav {
        display: block;
        margin-top: 12px;
    }

    .sidebar-nav,
    .sidebar-footer {
        display: none;
    }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 14px; }
    .stat-card-value { font-size: 20px; }
    .profile-danger-zone,
    .property-danger-zone {
        align-items: flex-start;
        flex-direction: column;
    }
    .btn-danger-outline {
        width: 100%;
    }
}

/* ── Dashboard Header ── */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-welcome {
    flex: 1;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.dashboard-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.dashboard-logout-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
}

/* ── Dashboard Navigation Tabs ── */
.dashboard-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 12px;
    overflow-x: auto;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-tab:hover {
    background: #fff;
    color: #334155;
}

.nav-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(31, 123, 255, 0.1);
}

.nav-tab svg {
    flex-shrink: 0;
}

.nav-tab--danger.active {
    color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--border-color);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.nav-tab.active .tab-badge {
    background: var(--primary-color);
    color: #fff;
}

.tab-badge--alert {
    background: #ef4444;
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ── Dashboard Content Area ── */
.dashboard-content {
    background: #fff;
    border-radius: 16px;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);*/
    overflow: hidden;
}

.dashboard-tab-panel {
    padding: 32px 0;
}

.dashboard-tab-panel .acf-form-wrapper {
    max-width: 100%;
}

/* ACF Pro adds `border-left: 1px solid #eee` between adjacent multi-column
   fields, which renders as an unwanted vertical divider between input columns
   (e.g. "Precio Mensual" | "Administración"). Suppress it. */
.dashboard-tab-panel .acf-frontend-form .acf-field[data-width] + .acf-field[data-width] {
    border-left: 0 !important;
    border-right: 0 !important;
}

/* Tighten the gap between fields a bit since they no longer have a divider. */
.dashboard-tab-panel .acf-frontend-form .acf-fields > .acf-field {
    padding: 12px 14px !important;
}

/* Make prepend/append wraps a proper flex row with all children stretching to
   the same height. ACF Pro ships these styles but they're being clobbered
   (likely by Tailwind v4's preflight). Force them back. */
/* Pin all input-like controls to the same 46px height used on the registration
   form, so dropdowns and plain text inputs match the prepend/append boxes. */
.dashboard-tab-panel .acf-frontend-form input[type="text"],
.dashboard-tab-panel .acf-frontend-form input[type="number"],
.dashboard-tab-panel .acf-frontend-form input[type="email"],
.dashboard-tab-panel .acf-frontend-form input[type="tel"],
.dashboard-tab-panel .acf-frontend-form input[type="url"],
.dashboard-tab-panel .acf-frontend-form input[type="password"],
.dashboard-tab-panel .acf-frontend-form input[type="date"],
.dashboard-tab-panel .acf-frontend-form select {
    min-height: 46px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.dashboard-tab-panel .acf-frontend-form .acf-input-wrap {
    display: flex !important;
    align-items: stretch !important;
}
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > input,
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > .acf-input-prepend,
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > .acf-input-append {
    min-height: 46px !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > input {
    flex: 1 1 auto !important;
    padding: 0 14px !important;
}
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > .acf-input-prepend,
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > .acf-input-append {
    flex: 0 0 auto !important;
    padding: 0 14px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    justify-content: center !important;
}
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > .acf-input-prepend {
    border-right: 0 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}
.dashboard-tab-panel .acf-frontend-form .acf-input-wrap > .acf-input-append {
    border-left: 0 !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(31, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 123, 255, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

@media (max-width: 540px) {
    .property-contract-generate {
        grid-template-columns: 1fr !important;
    }

    .property-contract-generate__button {
        width: 100%;
    }
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ef4444;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* ── Alerts ── */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.alert svg {
    flex-shrink: 0;
}

.alert--success {
    background: #ecfdf5;
    border: 2px solid #d1fae5;
    color: #065f46;
}

.alert--info {
    background: #eff6ff;
    border: 2px solid #dbeafe;
    color: #1e40af;
    font-weight: 500;
}

.alert--error {
    background: #fef2f2;
    border: 2px solid #fee2e2;
    color: #991b1b;
}

.alert--danger {
    background: #fef2f2;
    border: 2px solid #fee2e2;
    color: #991b1b;
}

.alert--danger strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

/* ── Properties Grid ── */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.property-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    padding: 0;
}

.property-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.property-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.property-card-image--placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.property-card-content {
    padding: 20px;
}

.property-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.property-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.property-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.property-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.property-status--publish {
    background: #d1fae5;
    color: #065f46;
}

.property-status--pending {
    background: #fef3c7;
    color: #92400e;
}

.property-status--draft {
    background: var(--border-color);
    color: #475569;
}

.property-status--arrendado {
    background: #fee2e2;
    color: #991b1b;
}

.property-status--reservado {
    background: #e0e7ff;
    color: #3730a3;
}

.property-status--featured {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.property-card-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.property-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.property-card-views svg {
    flex-shrink: 0;
}

.property-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 8px 0;
}

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

/* ── Inbox Styles ── */
.inbox-unread-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #fef3c7;
    border: 2px solid #fde68a;
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbox-list--detail { gap: 0; }
.inbox-list--detail .inbox-message-item--active {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}
.inbox-list--detail .inbox-message-item--active > .inbox-message-header { display: none; }

.inbox-detail-back {
    display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px;
    border-radius: 9px; color: #475569; font-size: 13px; font-weight: 700; text-decoration: none;
}
.inbox-detail-back:hover { color: #1d4ed8; background: #eff6ff; }
.inbox-detail-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 18px;
}
.inbox-detail-summary {
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 320px);
    align-items: center; gap: 16px; padding: 0 0 22px; border-bottom: 1px solid #e2e8f0;
}
.inbox-detail-avatar {
    display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 16px; background: linear-gradient(145deg, #2563eb, #60a5fa); color: #fff;
    font-size: 21px; font-weight: 800; box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
}
.inbox-detail-eyebrow { display: block; margin-bottom: 2px; color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inbox-detail-identity h3 { margin: 0; color: #0f172a; font-size: 21px; line-height: 1.25; }
.inbox-detail-contact { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; color: #94a3b8; font-size: 13px; }
.inbox-detail-contact a { color: #64748b; text-decoration: none; }
.inbox-detail-contact a:hover { color: #2563eb; }
.inbox-detail-property {
    position: relative; display: block; min-width: 0; padding: 12px 38px 12px 14px;
    border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff; text-decoration: none;
}
.inbox-detail-property span { display: block; margin-bottom: 3px; color: #64748b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.inbox-detail-property strong { display: block; overflow: hidden; color: #1e3a8a; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.inbox-detail-property svg { position: absolute; right: 13px; top: 50%; color: #3b82f6; transform: translateY(-50%); }
.inbox-thread {
    display: flex; flex-direction: column; gap: 14px; margin: 22px 0;
    padding: 20px; border-radius: 16px; background: #f8fafc;
}

.inbox-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }
.inbox-pagination a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 7px; border: 1px solid #dbe1ea;
    border-radius: 9px; background: #fff; color: #334155;
    font-size: 14px; font-weight: 700; text-decoration: none;
}
.inbox-pagination a:hover { border-color: #60a5fa; color: #2563eb; }
.inbox-pagination a.is-current { border-color: #2563eb; background: #2563eb; color: #fff; }
.inbox-pagination > span { display: inline-flex; align-items: center; padding: 0 3px; color: #94a3b8; }

.inbox-message-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.inbox-message-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.inbox-message-item--unread {
    position: relative;
    border-color: #bfdbfe;
    background: #fafdff;
}
.inbox-message-item--unread::before {
    content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1;
    width: 4px; background: #2563eb;
}

.inbox-message-item--active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(31, 123, 255, 0.1);
}

.inbox-message-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: inherit;
}

.inbox-list-avatar {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 13px; background: #eef2ff; color: #4f46e5; font-size: 16px; font-weight: 800;
}
.inbox-message-item--unread .inbox-list-avatar { background: #dbeafe; color: #1d4ed8; }

.inbox-message-header:hover {
    text-decoration: none;
}

.inbox-message-meta {
    min-width: 0;
}

.inbox-message-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }

.inbox-message-title {
    overflow: hidden;
    font-size: 15px;
    font-weight: 750;
    color: var(--text-primary);
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inbox-message-item--unread .inbox-message-title { color: #0f172a; font-weight: 850; }

.inbox-message-subject {
    display: flex; align-items: center; gap: 5px; min-width: 0;
    margin: 6px 0 0; overflow: hidden; color: #64748b; font-size: 12px; font-weight: 650;
    text-overflow: ellipsis; white-space: nowrap;
}
.inbox-message-subject svg { flex: 0 0 auto; color: #94a3b8; }

.inbox-message-preview {
    margin: 4px 0 0; overflow: hidden; color: #64748b; font-size: 13px; line-height: 1.4;
    text-overflow: ellipsis; white-space: nowrap;
}
.inbox-message-item--unread .inbox-message-preview { color: #334155; }

.inbox-message-date {
    flex: 0 0 auto; color: #94a3b8; font-size: 11px; font-weight: 650;
}

.inbox-message-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}
.inbox-message-status-row { display: flex; align-items: center; gap: 12px; }

.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge--unread {
    background: #fef3c7;
    color: #92400e;
}

.status-badge--read {
    background: rgba(31, 123, 255, 0.1);
    color: var(--primary-hover);
}

.status-badge--replied {
    background: #d1fae5;
    color: #065f46;
}

.inbox-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: #94a3b8;
}
.inbox-message-item:hover .inbox-chevron { color: #2563eb; transform: translateX(2px); }

.inbox-chevron--open {
    transform: rotate(180deg);
}

.inbox-message-body {
    padding: 22px;
}

.message-bubble {
    width: fit-content; max-width: min(78%, 660px); padding: 13px 15px 10px;
    border-radius: 16px; margin: 0;
}

.message-bubble--visitor {
    align-self: flex-start; background: #fff; border: 1px solid #e2e8f0;
    border-bottom-left-radius: 5px; box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}

.message-bubble--reply {
    align-self: flex-end; background: #2563eb; border: 1px solid #2563eb;
    border-bottom-right-radius: 5px; color: #fff; box-shadow: 0 5px 14px rgba(37, 99, 235, .16);
}

.message-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 13px;
}

.message-bubble-header strong {
    color: var(--text-primary);
}
.message-bubble--reply .message-bubble-header strong,
.message-bubble--reply .message-bubble-text { color: #fff; }
.message-bubble--reply .message-bubble-time { color: #bfdbfe; }

.message-bubble-email {
    color: var(--text-secondary);
}

.message-bubble-phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.message-bubble-phone:hover {
    text-decoration: underline;
}

.message-bubble-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.message-bubble-time {
    font-size: 12px;
    color: #94a3b8;
}

.inbox-reply-form {
    margin-top: 14px; padding: 18px; border: 1px solid #e2e8f0;
    border-radius: 14px; background: #fff;
}
.inbox-reply-form--blocked { border-color: #fde68a; background: #fffbeb; color: #92400e; font-size: 13px; font-weight: 600; line-height: 1.5; }
.inbox-action-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.inbox-action-heading > div { min-width: 0; }
.inbox-action-heading strong, .inbox-action-heading label { display: block; margin: 0; color: #0f172a; font-size: 14px; font-weight: 800; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.inbox-action-heading span { display: block; margin-top: 2px; color: #64748b; font-size: 12px; line-height: 1.4; }
.inbox-action-icon { display: flex !important; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; margin: 0 !important; border-radius: 10px; background: #dbeafe; color: #2563eb !important; }
.inbox-action-icon--reply { background: #ede9fe; color: #7c3aed !important; }
.inbox-visit-scheduler { margin-top: 0; padding: 18px; border: 1px solid #dbeafe; background: #f8fbff; border-radius: 14px; }
.inbox-visit-scheduler--disabled { color: #64748b; font-size: 13px; line-height: 1.5; }
.inbox-message-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f5f9; }

.inbox-reply-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inbox-reply-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.inbox-reply-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 123, 255, 0.1);
}

@media (max-width: 720px) {
    .inbox-detail-summary { grid-template-columns: auto minmax(0, 1fr); }
    .inbox-detail-property { grid-column: 1 / -1; }
    .message-bubble { max-width: 90%; }
}

@media (max-width: 480px) {
    .inbox-message-body { padding: 16px; }
    .inbox-detail-avatar { width: 44px; height: 44px; border-radius: 13px; }
    .inbox-detail-identity h3 { font-size: 18px; }
    .inbox-thread { margin-inline: -4px; padding: 14px 10px; }
    .message-bubble { max-width: 94%; }
}

/* ── Profile & Forms ── */
.profile-form,
.delete-account-form {

}

.profile-danger-zone,
.property-danger-zone {
    margin-top: 32px;
    padding: 18px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-danger-zone h3,
.property-danger-zone h3 {
    margin: 0 0 4px;
    color: #991b1b;
    font-size: 15px;
    font-weight: 800;
}

.profile-danger-zone p,
.property-danger-zone p {
    margin: 0;
    color: #7f1d1d;
    font-size: 13px;
    line-height: 1.45;
}

.btn-danger-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    background: #fff;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.18s ease;
}

.btn-danger-outline:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.form-field {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 123, 255, 0.1);
}

.form-input:disabled,
.form-input[aria-disabled="true"] {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.form-label__lock svg {
    display: inline-block;
    vertical-align: middle;
}

.user-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 10px;
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.user-verified-badge svg {
    display: inline-block;
}

.form-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0 0 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-actions {
    margin-top: 32px;
}

/* ── ACF Form Wrapper ── */
.acf-form-wrapper {
    max-width: 900px;
}

/* ── Responsive Design ── */
@media (max-width: 768px) {
    /* Stack all 2-column ACF fields to single column.
       High specificity to outweigh publish-form.css 50% rule loaded by Vite. */
    .acf-frontend-form .acf-fields > .acf-field[data-width],
    .acf-frontend-form .form-step-container > .acf-field[data-width],
    .acf-frontend-form .acf-fields > .acf-field[data-width="50"],
    .acf-frontend-form .form-step-container > .acf-field[data-width="50"],
    .acf-frontend-form .acf-fields > .acf-field[data-width="33"],
    .acf-frontend-form .form-step-container > .acf-field[data-width="33"],
    .dashboard-content .acf-field[data-width] {
        width: 100% !important;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .dashboard-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-tab-panel {
        padding: 20px 0;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-card-actions {
        flex-direction: column;
    }

    .property-card-actions .btn-secondary,
    .property-card-actions .btn-danger {
        width: 100%;
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .inbox-message-header {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px 12px;
    }

    .inbox-message-status {
        grid-column: 2;
        width: auto;
        align-items: flex-end;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 16px 12px;
    }

    .nav-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .inbox-message-header { padding: 14px; }
    .inbox-list-avatar { width: 40px; height: 40px; border-radius: 11px; }
    .inbox-message-title-row { align-items: center; }
    .inbox-message-status .status-badge { font-size: 10px; }

    .dashboard-shell {
        padding: 12px 0 !important;
        gap: 12px !important;
    }

    .dashboard-topbar {
        padding: 16px 20px !important;
        border-radius: 12px !important;
    }

    .dashboard-topbar .dashboard-title {
        font-size: 20px !important;
    }

    .dashboard-topbar .dashboard-subtitle {
        font-size: 13px !important;
    }

    .dashboard-content {
        border-radius: 12px !important;
    }

    .dashboard-tab-panel {
        padding: 16px 0 !important;
    }


    .dashboard-sidebar {
        padding: 12px 16px !important;
        border-radius: 12px !important;
    }

    .acf-frontend-form .acf-form,
    .acf-form {
        padding: 0 !important;
    }
}

/* ── Contact-visibility toggle switches (profile form) ── */
.contact-toggles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.contact-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.15s;
}
.contact-toggle + .contact-toggle {
    border-top: 1px solid #f1f5f9;
}
.contact-toggle:hover {
    background: #f8fafc;
}
.contact-toggle__text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}
/* Hide the native checkbox; the switch is drawn by the sibling span. */
.contact-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.contact-toggle__switch {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.2s ease;
}
.contact-toggle__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}
.contact-toggle input[type="checkbox"]:checked + .contact-toggle__switch {
    background: var(--primary-color, #1F7BFF);
}
.contact-toggle input[type="checkbox"]:checked + .contact-toggle__switch::after {
    transform: translateX(18px);
}
.contact-toggle input[type="checkbox"]:focus-visible + .contact-toggle__switch {
    box-shadow: 0 0 0 3px rgba(31, 123, 255, 0.30);
}

/* ── Verification card (Mi Perfil tab) ── */
.verification-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}
.verification-card--verified {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.verification-card--pending {
    border-color: #fde68a;
    background: #fffbeb;
}
.verification-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 123, 255, 0.10);
    color: var(--primary-color, #1F7BFF);
}
.verification-card--verified .verification-card__icon {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}
.verification-card--pending .verification-card__icon {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}
.verification-card__body { flex: 1; }
.verification-card__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.verification-card__text {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #475569;
}
.verification-card__error {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #b91c1c;
}
.verification-card__note {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
    background: rgba(31, 123, 255, 0.06);
    border-left: 3px solid var(--primary-color, #1F7BFF);
    border-radius: 6px;
}

/* ── Remove-avatar control ── */
.avatar-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 12px 0 0 80px;
    padding: 8px 12px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    cursor: pointer;
    user-select: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.avatar-remove input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.avatar-remove:hover { background:#fff7f7; border-color:#fca5a5; }
.avatar-remove:has(input:focus-visible) { outline:3px solid rgba(220,38,38,.16); outline-offset:2px; }
.avatar-remove.is-selected { background:#fef2f2; border-color:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.08); }
.avatar-remove__icon { display:grid; width:28px; height:28px; place-items:center; border-radius:8px; background:#fef2f2; flex:0 0 auto; }
.avatar-remove.is-selected .avatar-remove__icon { background:#fee2e2; }
.avatar-remove__check { display:none; margin-left:4px; font-size:14px; font-weight:900; }
.avatar-remove.is-selected .avatar-remove__check { display:inline; }

/* ── International phone field (country-code picker + number) ── */
.phone-field {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    overflow: visible;
}
.phone-field:focus-within {
    border-color: var(--primary-color, #1F7BFF);
    box-shadow: 0 0 0 3px rgba(31, 123, 255, 0.15);
}
.phone-field__cc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: #f8fafc;
    border: 0;
    border-right: 1px solid #e2e8f0;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
}
.phone-field__cc:hover {
    background: #f1f5f9;
}
.phone-field__dial {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}
.phone-field__num {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
}
.phone-field__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.phone-field__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
}
.phone-field__opt:hover {
    background: #f1f5f9;
}
.phone-field__opt.is-active {
    background: rgba(31, 123, 255, 0.10);
    color: var(--primary-color, #1F7BFF);
    font-weight: 600;
}
.phone-field__opt-name {
    flex: 1 1 auto;
}
.phone-field__opt-dial {
    color: #94a3b8;
    font-weight: 600;
}

/* ── Visitas / CRM panel ──
   The global `button` rule (main.css) paints a gradient via the `background`
   shorthand. Tailwind `bg-*` utilities only set background-color, so that
   gradient image bleeds through. Strip it (and the hover lift) inside the
   Visitas panel so the intended flat colors show. */
.visitas-panel button {
    background-image: none !important;
    background-size: auto !important;
}
.visitas-panel button:hover {
    transform: none !important;
    box-shadow: none !important;
}
.visits-view-tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    margin: 0 0 24px; padding: 6px; border: 1px solid #dbe3ee;
    border-radius: 14px; background: #f8fafc;
}
.visits-view-tabs--single { grid-template-columns: 1fr; }
.inbox-view-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.visits-view-tab {
    display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 14px;
    border: 1px solid transparent; border-radius: 10px; color: #64748b;
    text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.visits-view-tab:hover { border-color: #bfdbfe; background: #fff; color: #1d4ed8; }
.visits-view-tab.is-active { border-color: #93c5fd; background: #fff; color: #1d4ed8; box-shadow: 0 3px 10px rgba(15, 23, 42, .08); }
.visits-view-tab__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: #e2e8f0; color: #64748b; }
.visits-view-tab.is-active .visits-view-tab__icon { background: #dbeafe; color: #2563eb; }
.visits-view-tab strong { display: flex; align-items: center; gap: 7px; color: inherit; font-size: 14px; font-style: normal; line-height: 1.25; }
.visits-view-tab small { display: block; margin-top: 3px; color: #64748b; font-size: 12px; line-height: 1.3; }
.visits-view-tab em { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 11px; font-style: normal; }
@media (max-width: 560px) {
    .visits-view-tabs { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) and (min-width: 561px) {
    .inbox-view-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Availability-editor buttons — plain classes (Tailwind utilities don't
   reliably compile for these), forced over the theme's button styles. */
.visitas-panel .av-day {
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #fff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
.visitas-panel .av-day.is-on {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}
.visitas-panel .av-save {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #2563eb !important;
    color: #fff !important;
    border: 1px solid #2563eb !important;
}
.visitas-panel .av-save:hover { background: #1d4ed8 !important; }
.visitas-panel .av-add {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #fff !important;
    color: #1d4ed8 !important;
    border: 1px solid #cbd5e1 !important;
}
.visitas-panel .av-add:hover { background: #f8fafc !important; }
.visitas-panel .av-toggle {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}
.visitas-panel .av-toggle:hover { background: #dbeafe !important; }

/* ── Alertas: status badge ── */
.alerta-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.alerta-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.alerta-status--active {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.alerta-status--paused {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}
.alerta-card.is-paused { opacity: 0.92; }

/* ── Seeker conversion CTA in the dashboard nav ── */
.sidebar-link.sidebar-link--cta {
    margin-top: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    border: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.sidebar-link.sidebar-link--cta svg { color: #ffffff; }
.sidebar-link.sidebar-link--cta:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #ffffff;
    transform: translateY(-1px);
}
.sidebar-link.sidebar-link--cta.sidebar-link--active {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #ffffff;
}

/* ── Estudios/Solicitudes status badge (tone-based) ── */
.estudio-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.estudio-badge--gray  { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.estudio-badge--blue  { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.estudio-badge--amber { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.estudio-badge--green { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.estudio-badge--red   { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }

/* ── Seeker CTA helper text (above "Publica tu propiedad") ── */
.sidebar-cta-text {
    margin: 14px 6px 6px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #64748b;
}

/* ── Outlined sidebar action (owner "Publicar Nueva") ── */
.sidebar-link.sidebar-link--outline {
    margin-top: 4px;
    background: transparent;
    color: #1d4ed8;
    border: 1.5px solid #2563eb;
    font-weight: 600;
}
.sidebar-link.sidebar-link--outline .icon,
.sidebar-link.sidebar-link--outline svg { color: #1d4ed8; }
.sidebar-link.sidebar-link--outline:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ── Visit contact icons (after visitor name) ── */
.visit-contacts a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    line-height: 0;
    padding: 0;
    transition: filter .15s ease, transform .15s ease;
}
.visit-contacts a svg { display: block; }
.visit-contacts a:hover { filter: brightness(0.94); transform: translateY(-1px); }

/* ── Visit CRM list cards ── */
.visit-list-card {
    position: relative; margin-bottom: 12px; padding: 0; overflow: hidden; border: 1px solid #e2e8f0;
    border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.visit-list-card:hover { border-color: #bfdbfe; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.visit-list-card--today::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 4px; background: #f97316; }
.visit-list-card--cancelled { opacity: .68; }
.visit-list-card__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 15px 12px; }
.visit-list-card__avatar { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, #eff6ff, #dbeafe); color: #1d4ed8; font-size: 18px; font-weight: 850; }
.visit-list-card__content { min-width: 0; }
.visit-list-card__property { display: flex; align-items: center; gap: 5px; margin: 0 0 5px; overflow: hidden; color: #64748b; }
.visit-list-card__property svg { flex: 0 0 auto; color: #94a3b8; }
.visit-list-card__property a { overflow: hidden; color: #64748b; font-size: 11px; font-weight: 750; letter-spacing: .045em; text-decoration: none; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.visit-list-card__property a:hover { color: #2563eb; }
.visit-list-card__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; color: #0f172a; font-size: 17px; line-height: 1.3; }
.visit-list-card__interest { padding: 3px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700; }
.visit-list-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.visit-list-card__when { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-size: 13px; text-transform: capitalize; }
.visit-list-card__when svg { color: #94a3b8; }
.visit-list-card__when strong { padding: 2px 6px; border-radius: 5px; background: #fff7ed; color: #c2410c; font-size: 10px; text-transform: uppercase; }
.visit-list-card__when strong.is-cancelled { background: #fef2f2; color: #b91c1c; }
.visit-list-card__meta .visit-contacts { display: inline-flex; gap: 5px; padding-left: 10px; border-left: 1px solid #e2e8f0; }
.visit-list-card__status { align-self: start; padding: 5px 11px !important; border-radius: 999px !important; font-size: 11px !important; font-weight: 750 !important; white-space: nowrap; }
.visit-list-card__actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px 15px; border-top: 1px solid #f1f5f9; background: #fafcff; }
.visit-list-card__notice { margin: 11px 15px; }
.visit-list-card__editor { margin: 0 15px 14px; }
.visit-list-card__crm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 15px; border-top: 1px solid #f1f5f9; background: #fff; }
.visit-list-card__note, .visit-list-card__followup { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 9px; border-radius: 8px; font-size: 12px; line-height: 1.35; }
.visit-list-card__note { max-width: min(100%, 560px); background: #f8fafc; color: #64748b; }
.visit-list-card__note > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-list-card__followup { background: #fff7ed; color: #9a3412; }
.visit-list-card__followup strong { margin-left: 2px; font-weight: 800; }
.visit-list-card__crm-icon { display: inline-flex; flex: 0 0 auto; color: currentColor; opacity: .8; }
.visitas-panel .visit-card-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; border: 1px solid #dbe3ee !important; border-radius: 9px; background: #fff !important; color: #334155 !important; font-size: 12px; font-weight: 700; cursor: pointer; }
.visitas-panel .visit-card-action:hover { border-color: #93c5fd !important; color: #1d4ed8 !important; background: #f8fbff !important; }
.visitas-panel .visit-card-action--study { border-color: #a5f3fc !important; background: #ecfeff !important; color: #0e7490 !important; }
.visitas-panel .visit-card-action--danger { margin-left: auto; border-color: transparent !important; background: transparent !important; color: #b91c1c !important; }
.visitas-panel .visit-card-action--danger:hover { border-color: #fecaca !important; background: #fef2f2 !important; }

@media (max-width: 680px) {
    .visit-list-card__main { grid-template-columns: auto minmax(0, 1fr); padding: 13px; }
    .visit-list-card__status { grid-column: 2; justify-self: start; }
    .visit-list-card__actions { padding: 9px 13px; }
    .visit-list-card__notice { margin: 11px 13px; }
    .visit-list-card__editor { margin: 0 13px 13px; }
    .visit-list-card__crm-meta { padding: 10px 13px; }
    .visitas-panel .visit-card-action--danger { margin-left: 0; }
}
@media (max-width: 440px) {
    .visit-list-card__avatar { width: 42px; height: 42px; border-radius: 12px; }
    .visit-list-card__name { font-size: 15px; }
    .visit-list-card__meta .visit-contacts { width: 100%; padding: 8px 0 0; border-top: 1px solid #f1f5f9; border-left: 0; }
    .visit-list-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visitas-panel .visit-card-action { width: 100%; }
}

/* ── Visitas property picker (global Visitas tab) ── */
.visitas-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 22px;
}
.visitas-picker__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.visitas-picker__card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}
.visitas-picker__thumb { position: relative; aspect-ratio: 16 / 11; background: #f1f5f9; overflow: hidden; }
.visitas-picker__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visitas-picker__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.visitas-picker__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.visitas-picker__badge--on { background: #16a34a; }
.visitas-picker__badge--off { background: #94a3b8; }
.visitas-picker__body { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.visitas-picker__title { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visitas-picker__meta { font-size: 13.5px; color: #64748b; margin-top: 4px; }
.visitas-picker__meta strong { color: #2563eb; font-weight: 700; }
.visitas-picker__arrow { flex: 0 0 auto; color: #cbd5e1; transition: color .15s ease; }
.visitas-picker__card:hover .visitas-picker__arrow { color: #64748b; }

/* ── Visits calendar (FullCalendar) ── */
.visits-fc-options {
    display:flex;
    justify-content:flex-end;
    margin:0 0 14px;
}
.visits-fc-options__toggle {
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#475569;
    font-size:13px;
    font-weight:650;
    cursor:pointer;
    user-select:none;
}
.visits-fc-options__toggle input {
    width:16px;
    height:16px;
    margin:0;
    accent-color:var(--primary-color, #1F7BFF);
    cursor:pointer;
}
.visits-fc {
    --fc-border-color: #e6eaf0;
    --fc-today-bg-color: #f0f7ff;
    --fc-now-indicator-color: #ef4444;
    font-size: 14px;
}
.visits-fc .fc .fc-toolbar.fc-header-toolbar { margin-bottom: 26px; align-items:center; flex-wrap: wrap; gap: 14px; }
.visits-fc .fc .fc-toolbar-chunk { display:flex; align-items:center; gap:10px; }
.visits-fc .fc .fc-toolbar-title { margin-left:8px; font-size: 28px; font-weight: 650; color: #111827; text-transform: none; letter-spacing:0; }
.visits-fc .fc .fc-toolbar-title::first-letter { text-transform: uppercase; }
.visits-fc .fc .fc-button {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #8a93a3;
    font-weight: 650;
    font-size: 13px;
    text-transform: capitalize;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: none;
}
.visits-fc .fc .fc-button:hover { background: #fff; color: #111827; border-color:#d1d5db; }
.visits-fc .fc .fc-button:focus { box-shadow: none; outline: none; }
.visits-fc .fc .fc-button-primary:not(:disabled).fc-button-active,
.visits-fc .fc .fc-button-primary:not(:disabled):active {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #111827;
}
.visits-fc .fc .fc-prev-button,
.visits-fc .fc .fc-next-button {
    border-color:transparent;
    padding:7px 4px;
    color:#b6bdc8;
}
.visits-fc .fc .fc-prev-button:hover,
.visits-fc .fc .fc-next-button:hover { border-color:transparent; color:#111827; }
.visits-fc .fc .fc-button .fc-icon { font-size: 1.55em; }
.visits-fc .fc-theme-standard td, .visits-fc .fc-theme-standard th { border-color: #e6eaf0; }
.visits-fc .fc-theme-standard .fc-scrollgrid {
    border-color: #e6eaf0;
    border-radius: 14px;
    overflow: hidden;
    background:#fff;
    box-shadow: 0 10px 28px rgba(15,23,42,0.05);
}
.visits-fc .fc .fc-col-header-cell { background:#fff; }
.visits-fc .fc .fc-col-header-cell-cushion { color: #8a93a3; font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 12px 4px; text-decoration: none; }
.visits-fc .fc .fc-daygrid-day-frame { padding: 18px 18px 14px; }
.visits-fc .fc .fc-daygrid-day-number {
    float:none;
    display:block;
    color: #111827;
    font-size:18px;
    line-height:1;
    font-weight:850;
    text-decoration: none;
    padding: 0 0 22px;
}
.visits-fc .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { color: var(--primary-color, #1F7BFF); }
.visits-fc .fc .fc-daygrid-day.fc-day-today { background:#fff; }
.visits-fc .fc .fc-day-other .fc-daygrid-day-number { color:#cbd5e1; }
.visits-fc .fc .fc-timegrid-slot-label-cushion { color:#64748b; font-weight:700; font-size:12px; }
.visits-fc .fc-event { cursor: pointer; box-shadow: none; }
.visits-fc .fc-event-main,
.visits-fc .fc-event-main-frame { color:inherit; width:100%; min-width:0; }
.visits-fc .fc-daygrid-event-dot { display:none; }
/* Shared status-dot + time + title body (see dotColor()/dotTint() in the Twig). */
.visits-fc .fc-visit-item {
    display:flex;
    align-items:flex-start;
    gap:8px;
    min-width:0;
    width:100%;
    height:auto;
    padding:0;
    box-sizing:border-box;
}
.visits-fc .fc-visit-dot {
    flex:0 0 auto;
    width:9px;
    height:9px;
    margin-top:4px;
    border-radius:999px;
    background:var(--visit-color, #2563eb);
}
.visits-fc .fc-visit-body { flex:1 1 auto; min-width:0; }
.visits-fc .fc-event-time {
    display:block;
    font-size:11px;
    line-height:1.2;
    font-weight:600;
    color:#9ca3af;
    margin-bottom:2px;
}
.visits-fc .fc-event-title {
    display:block;
    min-width:0;
    font-size:15px;
    line-height:1.25;
    font-weight:650;
    color:#111827;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.visits-fc .fc-visit-stage-no_asistio .fc-event-title,
.visits-fc .fc-visit-stage-perdida .fc-event-title { color:#64748b; }
.visits-fc .fc-visit-cancelled .fc-event-time,
.visits-fc .fc-visit-cancelled .fc-event-title { color:#b91c1c; text-decoration:line-through; }
.visits-fc .fc a { text-decoration: none; }

/* Month grid: flat rows (dot + text), no block chrome. */
.visits-fc .fc-daygrid-event {
    display:block;
    margin:0 0 14px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow:visible;
}
.visits-fc .fc-daygrid-event:hover .fc-event-title { color:#111827; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }

/* Week / day (timeGrid) events: compact coloured blocks tinted by status. */
.visits-fc .fc-timegrid-event {
    border:none !important;
    background:transparent !important;
    box-shadow:none;
    border-radius:7px;
}
.visits-fc .fc-timegrid-event .fc-event-main { padding:0; }
.visits-fc .fc-timegrid-event .fc-visit-item {
    display:block;
    height:100%;
    padding:3px 8px;
    border-radius:7px;
    background:var(--visit-tint, #eff6ff);
    border-left:3px solid var(--visit-color, #2563eb);
    overflow:hidden;
}
.visits-fc .fc-timegrid-event .fc-visit-dot { display:none; }
/* The time axis already labels the row, so the block only needs the name. */
.visits-fc .fc-timegrid-event .fc-event-time { display:none; }
.visits-fc .fc-timegrid-event .fc-event-title { font-size:12.5px; font-weight:700; color:#0f172a; white-space:normal; }
.visits-fc .fc-timegrid-event.fc-visit-cancelled .fc-event-time,
.visits-fc .fc-timegrid-event.fc-visit-cancelled .fc-event-title { text-decoration:line-through; color:#b91c1c; }

/* ── Status colour key ── */
.visits-fc-legend {
    display:flex;
    flex-wrap:wrap;
    gap:10px 18px;
    margin-top:16px;
    padding:14px 16px;
    border:1px solid #eef1f6;
    border-radius:12px;
    background:#fbfcfe;
}
.visits-fc-legend__item { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:#475569; }
.visits-fc-legend__dot { width:9px; height:9px; border-radius:999px; flex:0 0 auto; }

/* ── Mobile: collapse events to status dots; tapping a day opens the day sheet ── */
@media (max-width: 640px) {
    .visits-fc .fc .fc-daygrid-day-frame { padding: 8px 3px 6px; cursor: pointer; }
    .visits-fc .fc .fc-daygrid-day-number { font-size:15px; padding:0 0 5px; text-align:center; }
    .visits-fc .fc .fc-col-header-cell-cushion { padding:10px 2px; font-size:11px; }
    /* A centred row of dots under the number; inline-block flows + wraps them. */
    .visits-fc .fc-daygrid-day-events {
        display:block;
        text-align:center;
        line-height:1;
        margin:0;
        min-height:0;
        pointer-events:none;            /* taps fall through to the day cell → dateClick */
    }
    .visits-fc .fc-daygrid-event-harness { display:inline-block; position:static !important; margin:2px !important; top:auto !important; width:auto !important; }
    .visits-fc .fc-daygrid-event { display:inline-block !important; margin:0 !important; }
    .visits-fc .fc-daygrid-event .fc-event-main, .visits-fc .fc-daygrid-event .fc-event-main-frame { display:inline-block; width:auto; }
    .visits-fc .fc-daygrid-event .fc-visit-body { display:none; }
    .visits-fc .fc-daygrid-event .fc-visit-item { display:inline-block; gap:0; width:auto; }
    .visits-fc .fc-daygrid-event .fc-visit-dot { display:inline-block; width:7px; height:7px; margin:0; vertical-align:middle; }
    .visits-fc .fc-daygrid-more-link { display:none; }  /* the day sheet lists everything */
}

/* ── Activity timeline (per-property Resumen) ── */
.property-activity { margin-top: 24px; padding: 18px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.property-activity__heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.property-activity__heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: #eff6ff; color: #2563eb; }
.property-activity__heading h3 { margin: 0; color: #0f172a; font-size: 15px; line-height: 1.3; }
.property-activity__heading p { margin: 2px 0 0; color: #94a3b8; font-size: 11px; line-height: 1.4; }
.ad-timeline { display: flex; flex-direction: column; gap: 7px; max-width: 860px; margin: 0; padding: 0; list-style: none; }
.ad-timeline-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px;
    padding: 10px 11px; border: 1px solid transparent; border-radius: 11px; background: #f8fafc;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.ad-timeline-item:hover { border-color: #dbeafe; background: #fff; transform: translateX(2px); }
.ad-timeline-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #e2e8f0; color: #64748b; }
.ad-timeline-item--green .ad-timeline-icon { background: #dcfce7; color: #15803d; }
.ad-timeline-item--blue  .ad-timeline-icon { background: #dbeafe; color: #2563eb; }
.ad-timeline-item--amber .ad-timeline-icon { background: #fef3c7; color: #b45309; }
.ad-timeline-item--red   .ad-timeline-icon { background: #fee2e2; color: #b91c1c; }
.ad-timeline-item--gray  .ad-timeline-icon { background: #e2e8f0; color: #64748b; }
.ad-timeline-body { flex: 1; min-width: 0; }
.ad-timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.ad-timeline-title {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.ad-timeline-title:hover { color: var(--primary-color, #1F7BFF); }
.ad-timeline-date {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}
.ad-timeline-sub {
    overflow: hidden;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .property-activity { padding: 14px; }
    .ad-timeline-head { align-items: flex-start; flex-direction: column; gap: 2px; }
    .ad-timeline-title, .ad-timeline-sub { white-space: normal; }
}

/* ── Property Manager Tabs (per-property dashboard sub-nav) ── */
.pm-property-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px;
    margin-bottom: 20px;
}

.pm-property-header__thumb {
    width: 96px;
    height: 72px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.pm-property-header__body {
    flex: 1 1 auto;
    min-width: 0;
}

.pm-property-header__title {
    margin: 0 0 6px;
}

.pm-property-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
    max-width: 380px;
}

.pm-property-header__actions .btn-secondary {
    justify-content: center;
}

.pm-property-action-wrap { display:inline-flex; }
.pm-property-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pm-property-action svg { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.pm-property-action:hover { transform:translateY(-1px); }
.pm-property-action:focus-visible { outline:3px solid rgba(31,123,255,.2); outline-offset:2px; }
.pm-property-action--view { border-color:#1f7bff; background:#1f7bff; color:#fff; box-shadow:0 5px 14px -7px rgba(31,123,255,.7); }
.pm-property-action--view:hover { border-color:#1668dc; background:#1668dc; color:#fff; box-shadow:0 8px 18px -9px rgba(31,123,255,.9); }
.pm-property-action--available { border-color:#bbf7d0; background:#f0fdf4; color:#15803d; }
.pm-property-action--available:hover { border-color:#86efac; background:#dcfce7; color:#166534; }
.pm-property-action--rented { border-color:#fde68a; background:#fffbeb; color:#b45309; }
.pm-property-action--rented:hover { border-color:#fcd34d; background:#fef3c7; color:#92400e; }
.pm-property-action--featured { border-color:#fed7aa; background:#fff7ed; color:#c2410c; }
.pm-property-action--featured:hover { border-color:#fdba74; background:#ffedd5; color:#9a3412; }
.pm-property-action--danger { border-color:#fecaca; background:#fff; color:#b91c1c; }
.pm-property-action--danger:hover { border-color:#fca5a5; background:#fef2f2; color:#991b1b; }

.pm-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 24px;
    padding: 5px;
    background: #f1f5f9;
    border: 1px solid var(--border-color, #DCE3EA);
    border-radius: 14px;
}

.pm-tabs-mobile {
    display: none;
    margin-bottom: 18px;
}

.pm-tabs-mobile__label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.pm-tabs-mobile__select {
    width: 100%;
    min-height: 46px;
    padding: 10px 40px 10px 12px;
    border: 1px solid var(--border-color, #DCE3EA);
    border-radius: 12px;
    background: #fff;
    color: var(--text-primary, #0F172A);
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pm-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #64748B);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Count pill inside a filter tab */
.pm-tab-count {
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    opacity: 0.55;
}
.pm-tab--active .pm-tab-count { opacity: 0.8; }

.pm-tab svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    opacity: .9;
}

.pm-tab:hover {
    color: var(--text-primary, #0F172A);
    background: rgba(255, 255, 255, 0.7);
}

.pm-tab--active {
    color: var(--primary-color, #1F7BFF);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.pm-tab--active svg {
    opacity: 1;
    color: var(--primary-color, #1F7BFF);
}

/* Accent underline on the active tab */
.pm-tab--active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-gradient, linear-gradient(135deg, #20D6C7 0%, #1F7BFF 100%));
}

/* "Editar Propiedad" sits apart as a secondary action, pushed to the right */
.pm-tab--edit {
    margin-left: auto;
    color: #475569;
}
.pm-tab--edit:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-color, #1F7BFF);
}

/* Unread counter pill on a tab */
.pm-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.property-messages-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 4px 0 16px;
}

.property-messages-head__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: #eff6ff;
    color: #2563eb;
}

.property-messages-head__copy {
    min-width: 0;
}

.property-messages-head__copy h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.property-messages-head__copy p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.property-messages-head__unread {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.property-message-list {
    gap: 12px;
}

.property-message-item {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
}

.property-message-item .inbox-message-header {
    padding: 17px 18px;
}

.property-message-contact {
    display: flex;
    align-items: center;
    gap: 6px 14px;
    min-width: 0;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.property-message-contact > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-message-contact svg {
    flex: 0 0 auto;
}

.property-message-open {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .property-messages-head {
        align-items: flex-start;
    }

    .property-messages-head__unread {
        align-self: center;
    }

    .property-message-contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .property-message-open {
        display: none;
    }
}

@media (max-width: 640px) {
    .pm-property-header {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 12px;
    }

    .pm-property-header__thumb {
        width: 72px;
        height: 56px;
    }

    .pm-property-header__title {
        font-size: 18px;
        line-height: 1.25;
    }

    .pm-property-header__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: none;
        justify-content: stretch;
    }

    .pm-property-header__actions .btn-secondary,
    .pm-property-header__actions .pm-property-action,
    .pm-property-header__actions .pm-property-action-wrap {
        width: 100%;
    }

    .pm-property-header__actions .btn-secondary,
    .pm-property-header__actions .pm-property-action {
        min-height: 40px;
        white-space: normal;
        text-align: center;
    }

    .pm-tabs-mobile {
        display: block;
    }

    .pm-tabs {
        display: none;
    }
}

@media (max-width: 420px) {
    .pm-property-header {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .pm-property-header__thumb {
        width: 64px;
        height: 50px;
    }

    .pm-property-header__actions {
        grid-template-columns: 1fr;
    }
}

/* ── Rent payments (Pagos) panel ─────────────────────────────────────────── */
.pagos-panel { margin-bottom: 20px; }
.pagos-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.pagos-summary__item {
    flex: 1 1 160px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    padding: 10px 14px;
    background: #fff;
}
.pagos-summary__item span { display: block; font-size: 12px; color: #64748b; }
.pagos-summary__item strong { font-size: 18px; color: #0b2545; }
.pagos-error { color: #dc2626; font-size: 13px; margin: 0 0 10px; }

.pagos-form { display: flex; flex-direction: column; gap: 10px; }
.pagos-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #475569; }
.pagos-field input, .pagos-field select, .pagos-field textarea {
    font-weight: 400;
    padding: 9px 11px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

.pagos-month__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.pagos-month__figures { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: #475569; }
.pago-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pago-status--paid { background: #dcfce7; color: #166534; }
.pago-status--partial { background: #fef3c7; color: #92400e; }
.pago-status--pending { background: #f1f5f9; color: #475569; }

.pagos-items { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pago-item {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
    padding: 8px 10px; border: 1px solid #eef1f6; border-radius: 10px; font-size: 13px;
}
.pago-item--rejected { opacity: 0.7; }
.pago-amt { font-weight: 700; color: #0b2545; }
.pago-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pago-badge--confirmed { background: #dcfce7; color: #166534; }
.pago-badge--submitted { background: #dbeafe; color: #1e40af; }
.pago-badge--rejected { background: #fee2e2; color: #991b1b; }
.pago-src, .pago-date { font-size: 12px; color: #94a3b8; }
.pago-link { color: var(--primary-color, #1F7BFF); text-decoration: none; }
.pago-link:hover { text-decoration: underline; }
.pago-note { flex-basis: 100%; font-size: 12.5px; color: #64748b; }
.pago-note--reject { color: #b45309; }
.pago-actions { display: flex; gap: 6px; margin-left: auto; }

/* Rent schedule (increase) status badges */
.pago-badge--sched-pending { background: #fef3c7; color: #92400e; }
.pago-badge--sched-accepted { background: #dcfce7; color: #166534; }
.pago-badge--sched-rejected { background: #fee2e2; color: #991b1b; }
.pago-item--rejected .pago-amt { text-decoration: line-through; opacity: 0.7; }

/* Dashboard payment history tables */
.payment-history-table-wrap { overflow-x: auto; }
.payment-history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.payment-history-table th { text-align: left; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
.payment-history-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: top; }
.payment-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 800; }
.payment-ref { display: block; font-family: monospace; color: #0f172a; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-history-table small { display: block; margin-top: 3px; color: #94a3b8; font-size: 11px; }
.payment-download-btn { white-space: nowrap; }
.payment-muted { color: #94a3b8; }
.payment-history-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.payment-history-footer .plan-summary-card__note { margin: 0; }


/* Dashboard partial styles moved from Twig templates. */

/* _estudios.twig */
.applicant-verify { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; white-space:nowrap; vertical-align:middle; }
.applicant-verify--ok { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.applicant-verify--no { background:#f8fafc; color:#64748b; border:1px solid #e2e8f0; }
.estudio-review-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.estudios-list-panel .estudio-header-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:20px;
    padding-bottom:18px;
    border-bottom:1px solid #eef2f7;
}
.estudio-header-identity { display:flex; align-items:center; gap:12px; }
.estudio-header-icon {
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:14px;
    background:linear-gradient(145deg,#eff6ff,#dbeafe);
    color:#2563eb;
}
.estudio-list-title { margin:0; color:#0f172a; font-size:24px; font-weight:850; }
.estudio-header-identity p { margin:3px 0 0; color:#64748b; font-size:13px; }
.estudio-hint--header {
    display:flex;
    align-items:center;
    gap:7px;
    max-width:540px;
    margin:0;
    padding:8px 11px;
    border:1px solid #dbeafe;
    border-radius:10px;
    background:#f8fbff;
    color:#64748b;
    font-size:12px;
    line-height:1.45;
}
.estudio-hint--header svg { flex:0 0 auto; color:#2563eb; }
.estudio-filter-panel {
    margin-bottom:20px;
    padding:14px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    background:#f8fafc;
}
.estudio-filter-panel__heading {
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:11px;
    color:#334155;
    font-size:12px;
}
.estudio-filter-panel__heading > span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:8px;
    background:#eaf2ff;
    color:#2563eb;
}
.estudio-filters { display:grid; grid-template-columns:minmax(240px,2fr) minmax(150px,.85fr) minmax(150px,.75fr) minmax(150px,.75fr) auto; gap:10px; align-items:end; margin:0; }
.estudio-filter-field { min-width:0; }
.estudio-filter-label { display:block; margin-bottom:5px; color:#64748b; font-size:11px; font-weight:750; }
.estudio-filter-control {
    width:100%;
    min-width:0;
    height:42px;
    padding:8px 11px;
    border:1px solid #dbe3ee;
    border-radius:10px;
    background:#fff;
    color:#334155;
    font:inherit;
    font-size:13px;
    transition:border-color .15s ease,box-shadow .15s ease;
}
.estudio-filter-control:focus { outline:none; border-color:#60a5fa; box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.estudio-filter-control--wide,
.estudio-filters select.estudio-filter-control:not(.estudio-filter-control--wide) { min-width:0; padding:8px 11px; }
.estudio-clear-filters {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:42px;
    padding:8px 11px;
    border:1px solid #dbe3ee;
    border-radius:10px;
    background:#fff;
    color:#475569;
    font:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}
.estudio-clear-filters:hover { border-color:#93c5fd; color:#1d4ed8; }
.estudio-table-shell {
    overflow:hidden;
    border:1px solid #dbe3ee;
    border-radius:15px;
    background:#fff;
    box-shadow:0 5px 20px rgba(15,23,42,.05);
}
.estudios-list-panel .estudio-table th {
    padding:11px 16px;
    border-bottom:1px solid #e2e8f0;
    background:#f8fafc;
    color:#94a3b8;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
}
.estudios-list-panel .estudio-table td {
    padding:15px 16px;
    border-bottom:1px solid #eef2f7;
    vertical-align:middle;
}
.estudios-list-panel .estudio-table tbody tr:last-child td { border-bottom:0; }
.estudios-list-panel .estudio-table tbody tr { transition:background-color .15s ease; }
.estudios-list-panel .estudio-table tbody tr:hover { background:#fafcff; }
.estudio-client { display:flex; align-items:center; gap:11px; min-width:190px; }
.estudio-client__avatar {
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid #dbeafe;
    border-radius:12px;
    background:linear-gradient(145deg,#eff6ff,#dbeafe);
    color:#2563eb;
    font-size:15px;
    font-weight:850;
}
.estudio-client__copy { min-width:0; color:#0f172a; }
.estudio-client__copy > strong { font-size:14px; font-weight:800; }
.estudio-email { color:#94a3b8; font-size:11px; }
.estudio-property-name { display:flex; align-items:flex-start; gap:7px; max-width:620px; color:#475569; font-size:13px; line-height:1.45; }
.estudio-property-name svg { flex:0 0 auto; margin-top:1px; color:#94a3b8; }
.estudios-list-panel .estudio-menu-btn {
    min-height:38px;
    padding:8px 11px;
    border-radius:9px;
    font-weight:700;
}
.estudios-list-panel .sol-status { white-space:nowrap; }
@media (max-width:1100px) {
    .estudio-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .estudio-filter-field--property { grid-column:1 / -1; }
    .estudio-clear-filters { justify-self:start; }
}
@media (max-width:720px) {
    .estudio-hint--header { width:100%; max-width:none; }
    .estudio-filters { grid-template-columns:1fr; }
    .estudio-filter-field--property { grid-column:auto; }
    .estudio-clear-filters { width:100%; }
    .estudio-table-shell { overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
    .estudios-list-panel .estudio-table,
    .estudios-list-panel .estudio-table tbody { display:block; }
    .estudios-list-panel .estudio-table thead { display:none; }
    .estudios-list-panel .estudio-table tr {
        display:grid;
        grid-template-columns:1fr auto;
        gap:10px 12px;
        margin-bottom:12px;
        padding:14px;
        border:1px solid #dbe3ee;
        border-radius:14px;
        background:#fff;
        box-shadow:0 4px 14px rgba(15,23,42,.05);
    }
    .estudios-list-panel .estudio-table td { display:block; padding:0; border:0; }
    .estudios-list-panel .estudio-table td:nth-child(1),
    .estudios-list-panel .estudio-table td:nth-child(2) { grid-column:1 / -1; }
    .estudios-list-panel .estudio-table td:nth-child(3) { align-self:center; }
    .estudio-client { min-width:0; }
}
.estudio-empty-action { color:#cbd5e1; }
.estudio-modal { position:fixed; inset:0; z-index:9999; }
.estudio-modal__backdrop { position:absolute; inset:0; background:rgba(15,23,42,.5); backdrop-filter:blur(2px); }
.estudio-modal__dialog { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:#fff; border-radius:16px; width:min(440px, calc(100vw - 32px)); padding:24px; box-shadow:0 24px 60px rgba(15,23,42,.28); }
.estudio-modal__close { position:absolute; top:14px; right:14px; width:34px; height:34px; border:0; border-radius:999px; background:#f8fafc; color:#475569; font-size:18px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.estudio-modal__close:hover { background:#e2e8f0; color:#0f172a; }
.estudio-modal__close:disabled { opacity:.55; cursor:not-allowed; }
.estudio-modal__icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:14px; }
.estudio-modal__icon--info { background:#eff6ff; }
.estudio-modal__icon--danger { background:#fef2f2; }
.estudio-modal__title { margin:0 0 8px; font-size:19px; font-weight:800; color:#0b2545; }
.estudio-modal__text { margin:0 0 14px; font-size:14px; color:#475569; line-height:1.55; }
.estudio-modal__text--compact { margin-bottom:0; }
.estudio-modal__label { display:block; font-size:12px; font-weight:600; color:#475569; margin-bottom:5px; }
.estudio-modal__input { width:100%; padding:9px 10px; border:1px solid #e2e8f0; border-radius:9px; font-size:14px; }
.estudio-modal__error { display:none; margin:12px 0 0; padding:9px 12px; background:#fef2f2; border:1px solid #fecaca; border-radius:9px; font-size:13px; color:#b91c1c; }
.estudio-modal__actions { display:flex; gap:10px; margin-top:20px; }
.estudio-modal__actions--spaced { margin-top:22px; }
.estudio-modal__button { padding:11px; border-radius:10px; font-weight:700; font-size:14px; cursor:pointer; }
.estudio-modal__button--secondary { flex:1; background:#fff; color:#334155; border:1px solid #e2e8f0; font-weight:600; }
.estudio-modal__button--primary { flex:2; background:#2563eb; color:#fff; border:0; }
.estudio-modal__button--danger { flex:2; background:#dc2626; color:#fff; border:0; }
.dashboard-empty-icon { color:#cbd5e1; margin-bottom:16px; }
.alertas-panel-header {
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}
.alertas-panel-header__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}
.alertas-panel-header__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    color: #2563eb;
}
.alertas-panel-header .panel-title { margin: 0; }
.alertas-panel-header__identity p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}
.favorites-panel-header__icon {
    background: linear-gradient(145deg, #fff1f2, #ffe4e6);
    color: #e11d48;
}
.alertas-list { display:flex; flex-direction:column; gap:16px; }
.alertas-panel .alerta-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe3ee;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.alertas-panel .alerta-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .09);
    transform: translateY(-1px);
}
.alerta-card__head {
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    padding: 18px 20px 14px;
}
.alerta-card__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}
.alerta-card__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: #eff6ff;
    color: #2563eb;
}
.alerta-card__title {
    margin:0;
    color:#0f172a;
    font-size: 17px;
    font-weight:800;
    line-height: 1.3;
}
.alerta-card__eyebrow {
    margin: 3px 0 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}
.alerta-card__criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 18px 75px;
}
.alerta-criterion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
}
.alerta-criterion svg { color: #64748b; }
.alerta-actions {
    display:flex;
    align-items: center;
    gap:7px;
    flex-wrap:wrap;
    margin: 0;
    padding: 11px 20px;
    border-top: 1px solid #eef2f7;
    background: #fafcff;
}
.alerta-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.alerta-action:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    color: #1d4ed8;
    transform: translateY(-1px);
}
.alerta-action--primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.alerta-action--primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}
.alerta-action--danger {
    margin-left: auto;
    border-color: transparent;
    background: transparent;
    color: #b91c1c;
}
.alerta-action--danger:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.alerta-card.is-paused .alerta-card__icon {
    background: #f1f5f9;
    color: #64748b;
}
.btn-secondary--danger-text { color:#b91c1c; }
@media (max-width: 720px) {
    .alertas-panel-header { align-items: flex-start; }
    .alertas-panel-header__identity p { display: none; }
    .alerta-card__head { align-items: flex-start; padding: 15px 15px 12px; }
    .alerta-card__criteria { padding: 0 15px 15px; }
    .alerta-actions { padding: 10px 15px; }
    .alerta-action--primary { width: 100%; }
    .alerta-action--danger { margin-left: 0; }
}
.daily-alert-dialog--wide { max-width:880px; }
.dashboard-content .daily-alert-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; }
.dashboard-content .daily-alert-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.48); }
.dashboard-content .daily-alert-dialog { position:relative; width:min(720px, 100%); max-height:min(760px, calc(100vh - 40px)); overflow:auto; background:#fff; border-radius:16px; box-shadow:0 24px 70px rgba(15,23,42,.24); padding:24px; }
.dashboard-content .daily-alert-close { position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:999px; border:1px solid #dbeafe; background:#f6faff; }
.property-contract-void-modal { position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:20px; }
.property-contract-void-modal .daily-alert-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.48); }
.property-contract-void-modal .daily-alert-dialog { position:relative; width:min(460px, 100%); max-height:calc(100vh - 40px); overflow:auto; background:#fff; border-radius:16px; box-shadow:0 24px 70px rgba(15,23,42,.24); padding:24px; }
.property-contract-void-modal .daily-alert-close { position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:999px; border:1px solid #dbeafe; background:#f6faff; }
/* ── Property tenant contract workspace ── */
.tenancy-contact-card { margin-bottom: 16px; padding: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .06); }
.tenancy-contact-card__identity { display: flex; align-items: center; gap: 13px; padding: 16px 18px; }
.tenancy-contact-card__avatar { flex: 0 0 auto; width: 52px; height: 52px; border: 1px solid #dbeafe; border-radius: 15px; object-fit: cover; }
.tenancy-contact-card__avatar--initials { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #eff6ff, #dbeafe); color: #2563eb; font-size: 19px; font-weight: 850; }
.tenancy-contact-card__person { min-width: 0; }
.tenancy-contact-card__person > span { display: block; margin-bottom: 2px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tenancy-contact-card__person h3 { overflow: hidden; margin: 0; color: #0f172a; font-size: 17px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.tenancy-contact-card__person p { display: flex; align-items: center; gap: 5px; margin: 5px 0 0; color: #64748b; font-size: 12px; }
.tenancy-contact-card__person p svg { color: #94a3b8; }
.tenancy-contact-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 11px 18px; border-top: 1px solid #f1f5f9; background: #fafcff; }
.tenancy-contact-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 37px; padding: 8px 11px; border: 1px solid #dbe3ee; border-radius: 9px; background: #fff; color: #334155; font-size: 12px; font-weight: 700; text-decoration: none; transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease; }
.tenancy-contact-action:hover { border-color: #93c5fd; background: #f8fbff; color: #1d4ed8; transform: translateY(-1px); }
.tenancy-contact-action--whatsapp { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.tenancy-contact-action--whatsapp:hover { border-color: #86efac; background: #dcfce7; color: #166534; }
.tenancy-contact-action--study { margin-left: auto; }
.tenancy-contact-action span { overflow: hidden; max-width: 280px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 620px) {
    .tenancy-contact-card__identity { padding: 14px; }
    .tenancy-contact-card__actions { padding: 10px 14px; }
    .tenancy-contact-action--study { margin-left: 0; }
}
@media (max-width: 440px) {
    .tenancy-contact-card__actions { display: grid; grid-template-columns: 1fr; }
    .tenancy-contact-action { width: 100%; }
}

.property-contract-card { margin-bottom: 16px; padding: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .06); }
.property-contract-card__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px 18px; }
.property-contract-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: #eff6ff; color: #2563eb; }
.property-contract-card__title { min-width: 0; }
.property-contract-card__title > span { display: block; margin-bottom: 2px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.property-contract-card__title h3 { margin: 0; color: #0f172a; font-size: 16px; line-height: 1.3; }
.property-contract-card__title p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.property-contract-card__title p.is-expiring { color: #b45309; }
.property-contract-card__title p.is-expired { color: #b91c1c; }
.property-contract-card__status { align-self: start; border-radius: 999px; }
.property-contract-card__document { padding: 14px 18px 16px; border-top: 1px solid #f1f5f9; background: #fafcff; }
.property-contract-card__description { margin: 0 0 11px; color: #64748b; font-size: 12px; }
.property-contract-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.property-contract-card .contract-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; padding: 8px 11px; border: 1px solid #dbe3ee; border-radius: 9px; background: #fff; background-image: none; color: #334155; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: none; }
.property-contract-card .contract-action:hover { border-color: #93c5fd; background: #f8fbff; color: #1d4ed8; transform: translateY(-1px); }
.property-contract-card .contract-action--primary { border-color: #2563eb; background: #2563eb; color: #fff; }
.property-contract-card .contract-action--primary:hover { background: #1d4ed8; color: #fff; }
.property-contract-card .contract-action--danger { margin-left: auto; border-color: transparent; background: transparent; color: #b91c1c; }
.property-contract-card .contract-action--danger:hover { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.property-contract-card__signatures { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.property-contract-card__signatures:empty { display: none; }
.property-contract-card__signatures .property-status { padding: 4px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 10px; }
.property-contract-card__study { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 15px; color: #2563eb; font-size: 12px; font-weight: 700; text-decoration: none; }
.property-contract-card__study:hover { color: #1d4ed8; text-decoration: underline; }
.property-contract-card > .property-contract-generate, .property-contract-card > label, .property-contract-card > .contract-draft, .property-contract-card > .sol-error, .property-contract-card > .btn-secondary { margin-left: 18px; margin-right: 18px; }

@media (max-width: 640px) {
    .property-contract-card__header { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
    .property-contract-card__status { grid-column: 2; justify-self: start; }
    .property-contract-card__document { padding: 13px 14px 14px; }
    .property-contract-card .contract-action { width: 100%; }
    .property-contract-card .contract-action--danger { margin-left: 0; }
    .property-contract-card__study { margin: 0 14px 14px; }
}

.contract-draft { margin-top:14px; border:1px solid #cbd5e1; border-radius:8px; overflow:hidden; background:#fff; }
.contract-draft__toolbar { display:flex; align-items:center; gap:4px; min-height:42px; padding:6px 8px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.contract-draft__toolbar > span { width:1px; height:24px; margin:0 4px; background:#cbd5e1; }
.contract-draft__toolbar button { display:inline-grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid transparent; border-radius:6px; background:transparent; color:#1e293b; font-size:16px; cursor:pointer; }
.contract-draft__toolbar button:hover, .contract-draft__toolbar button:focus-visible { border-color:#94a3b8; background:#fff; outline:none; }
.contract-draft__editor { min-height:420px; max-height:65vh; overflow:auto; padding:28px clamp(18px, 5vw, 58px); color:#111827; font-family:Arial,sans-serif; font-size:15px; line-height:1.65; }
.contract-draft__editor:focus { outline:2px solid #2563eb; outline-offset:-2px; }
.contract-draft__editor p { margin:0 0 12px; }
.contract-draft__editor .contract-token { border-bottom:1px dashed #64748b; background:#f1f5f9; color:#0f172a; cursor:default; }
.contract-draft__actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px; border-top:1px solid #e2e8f0; background:#f8fafc; }
.contract-draft__actions > span { color:#15803d; font-size:13px; }
.contract-draft__actions .sol-btn--primary, .contract-draft__actions .btn-primary { margin-left:auto; }
.contract-template-save { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px; border-top:1px solid #e2e8f0; background:#fff; }
.contract-template-save input { flex:1 1 240px; min-width:0; padding:9px 11px; border:1px solid #cbd5e1; border-radius:6px; font:inherit; }
.contract-template-save span { color:#15803d; font-size:13px; }
@media (max-width:560px) { .contract-draft__editor { min-height:360px; padding:20px 16px; } .contract-draft__actions .sol-btn--primary, .contract-draft__actions .btn-primary { width:100%; margin-left:0; } }

/* Owner-wide contracts workspace. */
.owner-contracts__header {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
    padding-bottom:18px;
    border-bottom:1px solid #eef2f7;
}
.owner-contracts__header-icon {
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:14px;
    background:linear-gradient(145deg,#eff6ff,#dbeafe);
    color:#2563eb;
}
.owner-contracts__header h2 { margin:0; color:#0f172a; font-size:24px; font-weight:850; }
.owner-contracts__header p { margin:3px 0 0; color:#64748b; font-size:13px; }
.owner-contracts__summary { margin-bottom:18px; }
.owner-contracts__summary .stat-card { min-width:0; }
.owner-contracts__summary .stat-card-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.owner-contracts__summary .stat-card > div { min-width:0; display:grid; gap:3px; }
.owner-contracts__summary .stat-card-label { white-space:nowrap; }
.owner-contracts__filters { margin:18px 0; }
.owner-contracts__filter-grid { grid-template-columns:minmax(240px,1.4fr) minmax(200px,1fr) minmax(160px,.65fr) auto; }
.owner-contracts__filters label { display:block; min-width:0; }
.owner-contracts__filters input,
.owner-contracts__filters select { box-sizing:border-box; }
.owner-contracts__list { display:grid; gap:24px; }
.owner-contract-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; align-items:center; margin:0; padding:16px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.owner-contract-row__heading { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.owner-contract-row__heading > strong { color:#0f172a; font-size:15px; }
.owner-contract-row__main > p { margin:4px 0 0; color:#64748b; font-size:12px; }
.owner-contract-row__meta { display:flex; gap:8px 18px; flex-wrap:wrap; margin-top:10px; color:#475569; font-size:12px; }
.owner-contract-row__meta b { color:#334155; }
.owner-contract-row__actions { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex-wrap:wrap; max-width:560px; }
.owner-contract-action { min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:7px; box-sizing:border-box; padding:0 13px; border:1px solid #dbe3ee; border-radius:10px; background:#fff; color:#334155; font-size:12.5px; font-weight:700; line-height:1; text-decoration:none; white-space:nowrap; cursor:pointer; box-shadow:0 1px 2px rgba(15,23,42,.04); transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease; }
.owner-contract-action svg { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.owner-contract-action--primary { border-color:#1f7bff; background:#1f7bff; color:#fff; box-shadow:0 5px 14px -7px rgba(31,123,255,.7); }
.owner-contract-action--primary:hover { border-color:#1668dc; background:#1668dc; color:#fff; box-shadow:0 8px 18px -9px rgba(31,123,255,.9); transform:translateY(-1px); }
.owner-contract-action--secondary:hover { border-color:#aebed2; background:#f8fafc; color:#0f172a; box-shadow:0 4px 12px -8px rgba(15,23,42,.35); transform:translateY(-1px); }
.owner-contract-action--danger { border-color:#fecaca; background:#fff; color:#b91c1c; }
.owner-contract-action--danger:hover { border-color:#fca5a5; background:#fef2f2; color:#991b1b; box-shadow:0 4px 12px -8px rgba(185,28,28,.35); transform:translateY(-1px); }
.owner-contract-action:disabled { opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }
.owner-contract-action:focus-visible { outline:3px solid rgba(31,123,255,.2); outline-offset:2px; }
.owner-contract-status { display:inline-flex; align-items:center; min-height:22px; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; }
.owner-contract-status--draft { color:#854d0e; background:#fef9c3; }
.owner-contract-status--signing { color:#1d4ed8; background:#dbeafe; }
.owner-contract-status--completed { color:#166534; background:#dcfce7; }
.owner-contract-status--expired { color:#475569; background:#e2e8f0; }
.owner-contract-status--cancelled { color:#991b1b; background:#fee2e2; }
.owner-contract-editor-modal { position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; padding:20px; }
.owner-contract-editor-modal__backdrop { position:absolute; inset:0; background:rgba(15,23,42,.56); }
.owner-contract-editor-modal__dialog { position:relative; width:min(920px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:20px; border-radius:8px; background:#fff; box-shadow:0 24px 70px rgba(15,23,42,.28); }
.owner-contract-editor-modal__dialog > header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.owner-contract-editor-modal__dialog h2 { margin:0; color:#0f172a; font-size:20px; }
.owner-contract-editor-modal__dialog header p { margin:4px 0 0; color:#64748b; font-size:13px; }
.owner-contract-editor-modal__close { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid #cbd5e1; border-radius:50%; background:#fff; color:#334155; font-size:24px; line-height:1; cursor:pointer; }
.owner-contract-editor-modal .contract-draft { margin-top:16px; }
@media (max-width:1100px) { .owner-contracts__filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .owner-contracts__search { grid-column:1 / -1; } }
@media (max-width:760px) { .owner-contracts__filter-grid { grid-template-columns:1fr; } .owner-contracts__search { grid-column:auto; } .owner-contracts__filter-grid .estudio-clear-filters { width:100%; } .owner-contract-row { grid-template-columns:1fr; } .owner-contract-row__actions { justify-content:flex-start; max-width:none; } .owner-contract-row__actions > * { flex:1 1 150px; text-align:center; } .owner-contract-editor-modal { padding:0; } .owner-contract-editor-modal__dialog { width:100%; max-height:100vh; min-height:100vh; border-radius:0; padding:16px; } }
@media (max-width:420px) { .owner-contract-row__actions { display:grid; grid-template-columns:1fr; } .owner-contract-row__actions > * { width:100%; } }

/* _profile.twig */
.plan-summary-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:20px 22px; margin-bottom:20px; box-shadow:0 4px 12px -6px rgba(15,23,42,.08); }
.plan-summary-card__head { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.plan-summary-card__label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#64748b; }
.plan-summary-card__name { font-size:18px; font-weight:800; color:#0f172a; padding:3px 12px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:999px; }
.plan-summary-card__list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.plan-summary-card__list li { display:flex; flex-direction:column; gap:2px; padding:12px 14px; background:#f8fafc; border:1px solid #eef2f7; border-radius:10px; }
.plan-summary-card__k { font-size:12px; color:#64748b; font-weight:600; }
.plan-summary-card__v { font-size:16px; font-weight:800; color:#0f172a; }
.plan-summary-card__note { margin:14px 0 0; font-size:12px; color:#94a3b8; }
.plan-summary-card__note--flush { margin-top:0; }
.plan-summary-card__note--wompi { display:flex; align-items:center; gap:8px; }
.plan-wompi-logo { width:auto; max-width:100%; height:auto; max-height:40px; flex-shrink:1; display:block; object-fit:contain; }
.plan-summary-card__status { font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; }
.plan-summary-card__status--ok { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.plan-summary-card__status--warn { background:#fffbeb; color:#b45309; border:1px solid #fed7aa; }
.plan-upgrade { margin-top:18px; padding-top:16px; border-top:1px solid #f1f5f9; }
.plan-upgrade__title { font-size:14px; font-weight:800; color:#0f172a; margin:0 0 12px; }
.plan-upgrade__grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; align-items:stretch; }
.plan-upgrade__item { display:flex; flex-direction:column; justify-content:space-between; gap:16px; min-height:184px; padding:18px 18px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; position:relative; }
.plan-upgrade__item.is-current { border-color:#bfdbfe; background:#eff6ff; }
.plan-upgrade__item.is-recommended { border-color:#2563eb; background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%); box-shadow:0 12px 28px rgba(37,99,235,.12); }
.plan-upgrade__item.is-recommended .plan-upgrade__btn { background:linear-gradient(135deg,#1d4ed8,#2563eb); box-shadow:0 8px 18px rgba(37,99,235,.22); }
.plan-upgrade__body { min-width:0; }
.plan-upgrade__head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.plan-upgrade__name { font-size:14px; font-weight:800; color:#0f172a; }
.plan-upgrade__badge { flex-shrink:0; display:inline-flex; align-items:center; min-height:22px; padding:3px 8px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-size:10px; font-weight:800; line-height:1; }
.plan-upgrade__price { font-size:18px; font-weight:800; color:#0f172a; margin-top:2px; }
.plan-upgrade__price small { font-size:12px; font-weight:600; color:#64748b; }
.plan-upgrade__meta { font-size:11px; color:#64748b; margin-top:4px; line-height:1.45; }
.plan-upgrade__btn { display:inline-flex; align-items:center; justify-content:center; align-self:stretch; min-height:44px; padding:10px 18px; background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; font-weight:700; font-size:13px; border-radius:10px; text-decoration:none; text-align:center; }
.plan-upgrade__btn:hover { background:#1d4ed8; }
.plan-upgrade__btn.is-disabled { background:#e2e8f0; color:#94a3b8; cursor:not-allowed; }
.plan-upgrade__note { margin-top:6px; font-size:11px; font-weight:700; color:#047857; display:flex; align-items:center; gap:5px; }
.plan-cancel-open { margin-left:auto; border:1px solid #fecaca; background:#fff5f5; color:#dc2626; border-radius:10px; padding:9px 14px; font-size:13px; font-weight:800; cursor:pointer; box-shadow:none; white-space:nowrap; }
.plan-cancel-open:hover { background:#fee2e2; color:#b91c1c; transform:none; box-shadow:none; }
.plan-cancel-dialog { width:min(820px,100%); border:1px solid #e2e8f0; background:#fff; box-shadow:0 28px 80px rgba(15,23,42,.22); }
.plan-cancel-title { margin:0 0 14px; color:#0f172a; font-size:22px; line-height:1.2; }
.plan-cancel-options { display:grid; gap:10px; margin-bottom:16px; }
.plan-cancel-option { display:flex; gap:11px; align-items:flex-start; padding:14px 16px; border:1px solid #e2e8f0; border-radius:14px; background:#fff; color:#334155; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.plan-cancel-option:has(input:checked) { border-color:#93c5fd; background:#f8fbff; box-shadow:0 0 0 3px rgba(59,130,246,.08); }
.plan-cancel-option input { margin-top:3px; }
.plan-cancel-option strong { display:block; color:#0f172a; font-size:14px; }
.plan-cancel-option small { display:block; color:#64748b; font-size:12px; line-height:1.5; margin-top:3px; }
.plan-cancel-option--danger { border-color:#fecaca; background:#fffafa; }
.plan-cancel-option.is-disabled { opacity:.72; cursor:not-allowed; }
.plan-cancel-option.is-disabled input { cursor:not-allowed; }
.property-card--plan-suspended { opacity:.6; filter:grayscale(1); }
.plan-cancel-properties { margin-top:14px; padding-top:16px; border-top:1px solid #e2e8f0; }
.plan-cancel-delete-now { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:#991b1b; font-weight:700; }
.plan-cancel-delete-now-wrap { margin-top:12px; }
.plan-cancel-delete-now__input { width:16px; height:16px; margin-top:1px; }
.plan-cancel-delete-now__note { display:block; margin-top:4px; color:#b91c1c; font-weight:500; }
.plan-cancel-properties__head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:10px; }
.plan-cancel-properties__head strong { display:block; color:#0f172a; font-size:14px; }
.plan-cancel-properties__head > span { color:#94a3b8; font-size:11px; font-weight:700; white-space:nowrap; }
.plan-cancel-properties__note { margin:3px 0 0; }
.plan-cancel-properties__rail { display:flex; gap:10px; overflow-x:auto; overscroll-behavior-inline:contain; padding:2px 2px 10px; scroll-snap-type:x proximity; scrollbar-color:#cbd5e1 transparent; scrollbar-width:thin; }
.plan-cancel-property-card { position:relative; display:flex; align-items:center; flex:0 0 300px; min-width:0; gap:11px; padding:8px 42px 8px 8px; border:1px solid #dbe3ef; border-radius:14px; background:#fff; cursor:pointer; scroll-snap-align:start; box-shadow:0 4px 14px rgba(15,23,42,.05); transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.plan-cancel-property-card:hover { border-color:#93c5fd; box-shadow:0 8px 22px rgba(15,23,42,.09); transform:translateY(-1px); }
.plan-cancel-property-card.is-disabled { background:#f8fafc; cursor:not-allowed; opacity:.5; transform:none; }
.plan-cancel-property-card.is-disabled:hover { border-color:#dbe3ef; box-shadow:0 4px 14px rgba(15,23,42,.05); }
.plan-cancel-property-card:has(.plan-cancel-property-card__check:focus-visible) { outline:3px solid rgba(37,99,235,.25); outline-offset:2px; }
.plan-cancel-property-card:has(.plan-cancel-property-card__check:checked) { border-color:#2563eb; background:#f8fbff; box-shadow:0 0 0 3px rgba(37,99,235,.1),0 8px 22px rgba(15,23,42,.08); }
.plan-cancel-property-card__check { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.plan-cancel-property-card__image { flex:0 0 82px; width:82px; height:66px; border-radius:10px; background-position:center; background-size:cover; }
.plan-cancel-property-card__image--placeholder { display:grid; place-items:center; background:#f1f5f9; color:#94a3b8; }
.plan-cancel-property-card__content { min-width:0; }
.plan-cancel-property-card__content strong { display:-webkit-box; overflow:hidden; color:#0f172a; font-size:13px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.plan-cancel-property-card__content small { display:block; overflow:hidden; margin-top:5px; color:#64748b; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.plan-cancel-property-card__indicator { position:absolute; top:50%; right:12px; display:grid; width:22px; height:22px; place-items:center; border:1.5px solid #cbd5e1; border-radius:7px; color:transparent; transform:translateY(-50%); transition:all .18s ease; }
.plan-cancel-property-card:has(.plan-cancel-property-card__check:checked) .plan-cancel-property-card__indicator { border-color:#2563eb; background:#2563eb; color:#fff; }
.plan-cancel-confirmation { margin-top:16px; }
.plan-cancel-form .btn-danger:disabled,
.plan-cancel-form .btn-danger:disabled:hover { background:#e2e8f0; color:#94a3b8; cursor:not-allowed; box-shadow:none; opacity:1; transform:none; }
.plan-upgrade__pulse { display:inline-flex; color:#f59e0b; animation:adPulse 1.4s ease-in-out infinite; transform-origin:center; }
@keyframes adPulse { 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.35); opacity:.6; } }
@media (prefers-reduced-motion: reduce) { .plan-upgrade__pulse { animation:none; } }
.plan-upgrade__other { color:#2563eb; font-weight:700; text-decoration:underline; }
@media (max-width: 640px) {
    .plan-summary-card__head { flex-wrap:wrap; align-items:flex-start; }
    .plan-cancel-open { width:100%; margin-left:0; }
    .plan-cancel-properties__head { align-items:flex-start; }
    .plan-cancel-properties__head > span { display:none; }
    .plan-cancel-property-card { flex-basis:260px; }
    .plan-cancel-property-card__image { flex-basis:70px; width:70px; height:60px; }
}

.seeker-summary-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:20px 22px; margin-bottom:20px; box-shadow:0 4px 12px -6px rgba(15,23,42,.08); }
.seeker-summary-card__head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.seeker-summary-card__label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#64748b; }
.seeker-summary-card__completeness { font-size:12px; font-weight:700; color:#2563eb; }
.seeker-summary-card__bar { height:6px; background:#eef2f7; border-radius:999px; overflow:hidden; margin-bottom:16px; }
.seeker-summary-card__bar span { display:block; height:100%; background:linear-gradient(135deg,#2563eb,#1d4ed8); border-radius:999px; transition:width .4s ease; }
.seeker-summary-card__list { list-style:none; margin:0 0 18px; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
.seeker-summary-card__list a { display:flex; flex-direction:column; gap:2px; padding:14px; background:#f8fafc; border:1px solid #eef2f7; border-radius:12px; text-decoration:none; transition:border-color .15s ease,background .15s ease; }
.seeker-summary-card__list a:hover { border-color:#bfdbfe; background:#eff6ff; }
.seeker-summary-card__v { font-size:22px; font-weight:800; color:#0f172a; line-height:1; }
.seeker-summary-card__v.is-pending { color:#b45309; }
.seeker-summary-card__k { font-size:12px; color:#64748b; font-weight:600; }
.seeker-summary-card__cta { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding-top:16px; border-top:1px solid #f1f5f9; }
.seeker-summary-card__cta-title { font-size:14px; font-weight:800; color:#0f172a; margin:0; }
.seeker-summary-card__cta-text { font-size:12px; color:#64748b; margin:2px 0 0; }
.seeker-summary-card__cta-btn { flex-shrink:0; display:inline-block; padding:10px 18px; background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; font-weight:700; font-size:13px; border-radius:10px; text-decoration:none; }
.seeker-summary-card__cta-btn:hover { background:#1d4ed8; }
.profile-avatar-row { display:flex; align-items:center; gap:1rem; margin-top:.5rem; padding:14px; border:1px solid #e2e8f0; border-radius:14px; background:#f8fafc; }
.profile-avatar-preview,
.profile-avatar-placeholder { width:64px; height:64px; border-radius:50%; border:1px solid #e2e8f0; }
.profile-avatar-preview { object-fit:cover; }
.profile-avatar-placeholder { display:flex; align-items:center; justify-content:center; background:#f1f5f9; color:#64748b; font-weight:700; font-size:1.25rem; }
.profile-avatar-controls { display:flex; align-items:center; min-width:0; gap:12px; flex:1; }
.profile-avatar-upload { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:9px 14px; border:1px solid #bfdbfe; border-radius:10px; background:#fff; color:#1d4ed8; font-size:13px; font-weight:800; cursor:pointer; white-space:nowrap; box-shadow:0 3px 10px rgba(37,99,235,.07); transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.profile-avatar-upload:hover { background:#eff6ff; border-color:#60a5fa; transform:translateY(-1px); }
.profile-avatar-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.profile-avatar-controls:has(.profile-avatar-input:focus-visible) .profile-avatar-upload { outline:3px solid rgba(37,99,235,.18); outline-offset:3px; }
.profile-avatar-file { min-width:0; overflow:hidden; color:#64748b; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:640px) {
    .profile-avatar-row { align-items:flex-start; }
    .profile-avatar-controls { align-items:flex-start; flex-direction:column; gap:7px; }
    .avatar-remove { margin-left:0; }
}
.form-required { color:#dc2626; }
.form-lock-icon { vertical-align:text-bottom; }
.verification-card__inline-icon { vertical-align:text-bottom; margin-right:4px; }
.profile-verified-name-note { margin-top:-12px; margin-bottom:18px; font-size:.82rem; color:#64748b; }
.form-hint--flush { margin-top:0; }
.contact-toggle__description { display:block; color:#64748b; font-weight:500; margin-top:2px; }
.email-pref-required { color:#64748b; font-size:12px; font-weight:700; }
