/* Cohost Prime Finance v0.2.6 — Poppins global para el plugin */
.cpf-wrap, .cpf-wrap *,
.cpf-app-shell, .cpf-app-shell *,
.cpf-owner-portal, .cpf-owner-portal *,
.cpf-owner-statement, .cpf-owner-statement * {
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.cpf-wrap { max-width: 1200px; }
.cpf-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.cpf-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cpf-card span { display:block; color:#6b7280; font-size:13px; margin-bottom:8px; }
.cpf-card strong { display:block; color:#111827; font-size:28px; line-height:1.1; }
.cpf-panel { background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:18px; margin-top:16px; }
.cpf-filter { display:flex; gap:10px; align-items:end; margin:16px 0; }
@media (max-width: 900px) { .cpf-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); } }

.cpf-owner-portal, .cpf-owner-statement {
    max-width: 980px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-family: inherit;
}
.cpf-owner-filter {
    display: flex;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap;
    margin: 16px 0 24px;
}
.cpf-owner-filter label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}
.cpf-owner-filter select, .cpf-owner-filter input {
    min-width: 180px;
    padding: 8px 10px;
}
.cpf-owner-filter button {
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.cpf-statement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.cpf-statement-table th, .cpf-statement-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
}
.cpf-statement-table th {
    font-size: 13px;
    color: #111827;
}

.cpf-card strong { word-break: break-word; }
.cpf-owner-statement strong { color: #111827; }

/* v0.1.3 — portal visual tipo dashboard */
.cpf-owner-portal-prime {
    max-width: 1180px;
    background: #202020;
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 34px 28px 42px;
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cpf-owner-portal-prime h2 {
    color: #fff;
    text-align: center;
    font-size: 28px;
    margin: 0 0 18px;
    font-weight: 800;
}
.cpf-prime-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 6px auto 18px;
}
.cpf-prime-filter label {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: grid;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cpf-prime-filter select {
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    background: #f4f4f4;
    color: #111;
    min-width: 180px;
}
.cpf-prime-property-name {
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    margin: 0 auto 22px;
}
.cpf-prime-months {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.cpf-prime-months a,
.cpf-prime-months span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 4px;
    background: #f1f1f1;
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.cpf-prime-months .is-active {
    background: #ff4d35;
    color: #fff;
}
.cpf-prime-grid {
    display: grid;
    grid-template-columns: 1.45fr .68fr .68fr;
    gap: 18px;
    align-items: stretch;
}
.cpf-prime-card {
    background: #0e0e0e;
    border-radius: 20px;
    padding: 24px;
    min-height: 160px;
    box-sizing: border-box;
}
.cpf-prime-card h3 {
    color: #fff;
    margin: 0 0 18px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 900;
}
.cpf-prime-subtitle {
    margin-top: 30px !important;
}
.cpf-icon,
.cpf-prime-card h3 span {
    color: #ff4d35;
    margin-right: 8px;
}
.cpf-prime-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    background: #171717;
    border-radius: 8px;
    padding: 14px 12px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 12px;
}
.cpf-prime-row span { font-weight: 800; }
.cpf-prime-row em { font-style: normal; font-weight: 800; font-size: 11px; color: #fff; }
.cpf-prime-row strong { font-weight: 900; text-align: right; }
.cpf-muted { opacity: .55; grid-template-columns: 1fr; }
.cpf-prime-metrics {
    display: grid;
    gap: 22px;
}
.cpf-metric {
    border: 1px solid #333;
    border-radius: 14px;
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
}
.cpf-metric span {
    font-size: 24px;
    color: #fff;
}
.cpf-metric strong {
    font-size: 22px;
    color: #fff;
    line-height: 1.1;
    font-weight: 900;
}
.cpf-metric small {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.cpf-green strong,
.cpf-green span { color: #22c55e; }
.cpf-prime-expenses,
.cpf-prime-supports { min-height: 240px; }
.cpf-expense-line,
.cpf-expense-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.cpf-expense-total {
    background: #a73535;
    border-radius: 12px;
    padding: 13px 16px;
    margin-top: 10px;
}
.cpf-support-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    background: #ff4d35;
    color: #fff !important;
    border-radius: 0;
    text-decoration: none;
    font-weight: 900;
    margin: 14px 0;
    padding: 0 16px;
}
.cpf-support-button:hover { background: #ff684f; }
.cpf-support-button.cpf-disabled {
    background: #3b3b3b;
    color: #aaa !important;
    cursor: not-allowed;
}
.cpf-prime-empty {
    background: #0e0e0e;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}
.cpf-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
}
.cpf-support-form input[type="text"],
.cpf-support-form input[type="url"],
.cpf-support-form input[type="month"],
.cpf-support-form select,
.cpf-support-form textarea {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 980px) {
    .cpf-prime-grid { grid-template-columns: 1fr; }
    .cpf-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .cpf-owner-portal-prime { padding: 24px 14px; }
    .cpf-prime-row { grid-template-columns: 1fr; }
    .cpf-prime-row strong { text-align: left; }
    .cpf-form-grid { grid-template-columns: 1fr; }
}

/* v0.2.1 — Portal standalone práctico */
.cpf-standalone-body {
    margin: 0 !important;
    background: #f6f7f9 !important;
    color: #111827;
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cpf-app-shell, .cpf-app-shell * { box-sizing: border-box; }
.cpf-app-shell {
    min-height: 100vh;
    width: 100%;
    padding: 22px;
    color: #111827;
    background: radial-gradient(circle at top left, rgba(249,115,22,.08), transparent 28%), #f6f7f9;
}
.cpf-app-header {
    max-width: 1240px;
    margin: 0 auto 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}
.cpf-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    text-decoration: none;
}
.cpf-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: -.04em;
}
.cpf-brand strong { display:block; font-size: 16px; line-height: 1.1; }
.cpf-brand small { display:block; color:#6b7280; font-size: 12px; margin-top: 2px; }
.cpf-header-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cpf-header-actions a, .cpf-header-actions span {
    background:#fff;
    color:#111827;
    border:1px solid #e5e7eb;
    border-radius: 999px;
    padding: 9px 13px;
    text-decoration:none;
    font-size: 12px;
    font-weight: 800;
}
.cpf-page-title {
    max-width: 1240px;
    margin: 0 auto 22px;
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-end;
}
.cpf-page-title p { margin:0 0 5px; color:#f97316; font-weight:900; text-transform:uppercase; font-size:12px; letter-spacing:.08em; }
.cpf-page-title h1 { margin:0; color:#111827; font-size: clamp(30px, 5vw, 54px); line-height:.98; letter-spacing:-.05em; }
.cpf-back-link { display:inline-block; color:#6b7280; font-weight:800; text-decoration:none; margin-bottom:12px; }
.cpf-month-chips { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.cpf-month-chips a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 15px;
    border-radius: 12px;
    background:#fff;
    color:#374151;
    border:1px solid #e5e7eb;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
}
.cpf-month-chips a.active { background:#f97316; color:#fff; border-color:#f97316; }
.cpf-owner-card-grid, .cpf-property-card-grid {
    max-width: 1240px;
    margin: 0 auto;
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.cpf-owner-card, .cpf-property-card, .cpf-summary-tile, .cpf-panel-card, .cpf-empty-state, .cpf-auth-card {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(17,24,39,.06);
}
.cpf-owner-card, .cpf-property-card {
    display:block;
    text-decoration:none;
    color:#111827;
    padding: 22px;
    min-height: 210px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cpf-owner-card:hover, .cpf-property-card:hover { transform: translateY(-2px); border-color:#fed7aa; box-shadow:0 20px 54px rgba(249,115,22,.13); }
.cpf-card-eyebrow { display:inline-flex; color:#f97316; background:#fff7ed; border-radius:999px; padding:6px 10px; font-size:11px; font-weight:900; text-transform:uppercase; }
.cpf-owner-card h2, .cpf-property-card h3 { margin:18px 0 18px; font-size:24px; line-height:1.04; letter-spacing:-.04em; color:#111827; }
.cpf-property-card p { color:#6b7280; margin: -8px 0 16px; font-weight:700; }
.cpf-card-metrics { display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-bottom:18px; }
.cpf-card-metrics div, .cpf-mini-metrics span {
    background:#f9fafb;
    border-radius:16px;
    padding:12px;
    border:1px solid #f1f5f9;
}
.cpf-card-metrics small, .cpf-mini-metrics small, .cpf-summary-tile small { display:block; color:#6b7280; font-weight:900; font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.cpf-card-metrics strong span, .cpf-mini-metrics span span, .cpf-summary-tile strong span { display:block; color:#111827; font-size:16px; font-weight:950; line-height:1.25; margin-top:6px; }
.cpf-card-link { color:#f97316; font-weight:950; }
.cpf-summary-grid {
    max-width: 1240px;
    margin: 0 auto 28px;
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:16px;
}
.cpf-summary-grid-detail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cpf-summary-tile { padding:20px; min-height:130px; }
.cpf-summary-tile strong { display:block; margin-top:14px; }
.cpf-summary-tile strong span { font-size:22px; }
.cpf-summary-tile.tone-orange { border-top:4px solid #f97316; }
.cpf-summary-tile.tone-red { border-top:4px solid #ef4444; }
.cpf-summary-tile.tone-green { border-top:4px solid #22c55e; }
.cpf-summary-tile.tone-neutral { border-top:4px solid #111827; }
.cpf-section-head { max-width:1240px; margin: 10px auto 14px; display:flex; justify-content:space-between; gap:16px; align-items:end; }
.cpf-section-head h2 { margin:0; font-size:26px; letter-spacing:-.04em; }
.cpf-section-head p { margin:0; color:#6b7280; font-weight:700; }
.cpf-mini-metrics { display:grid; gap:8px; }
.cpf-mini-metrics span { display:block; }
.cpf-mini-metrics span span { margin-top:4px; }
.cpf-detail-grid {
    max-width:1240px;
    margin: 0 auto;
    display:grid;
    grid-template-columns: 1.35fr .75fr;
    gap:16px;
}
.cpf-panel-card { padding:22px; min-width:0; }
.cpf-wide-card { grid-column: span 1; }
.cpf-panel-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:14px; }
.cpf-panel-title h2 { margin:0; font-size:20px; letter-spacing:-.03em; }
.cpf-panel-title span { color:#6b7280; font-size:12px; font-weight:900; background:#f9fafb; padding:7px 10px; border-radius:999px; }
.cpf-table-wrap { overflow-x:auto; }
.cpf-data-table { width:100%; border-collapse:separate; border-spacing:0 8px; font-size:13px; }
.cpf-data-table th { color:#6b7280; text-align:left; padding:0 12px 6px; font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.cpf-data-table td { background:#f9fafb; padding:12px; vertical-align:middle; }
.cpf-data-table td:first-child { border-radius:14px 0 0 14px; }
.cpf-data-table td:last-child { border-radius:0 14px 14px 0; }
.cpf-data-table td strong { display:block; color:#111827; }
.cpf-data-table td small { display:block; color:#6b7280; margin-top:3px; font-weight:700; }
.cpf-list-stack, .cpf-support-stack { display:grid; gap:10px; }
.cpf-list-item { display:flex; justify-content:space-between; gap:12px; background:#f9fafb; border-radius:16px; padding:14px; }
.cpf-list-item strong { display:block; }
.cpf-list-item small { display:block; color:#6b7280; margin-top:3px; font-weight:700; }
.cpf-list-item b { white-space:nowrap; }
.cpf-support-stack a {
    display:block;
    text-decoration:none;
    background:#111827;
    color:#fff;
    border-radius:16px;
    padding:16px;
}
.cpf-support-stack a span { display:block; color:#f97316; font-size:11px; font-weight:950; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.cpf-support-stack a strong { color:#fff; }
.cpf-muted-text { color:#6b7280; font-weight:700; margin:0; }
.cpf-empty-state, .cpf-auth-card { max-width:720px; margin: 70px auto; padding:34px; text-align:center; }
.cpf-empty-state h2, .cpf-auth-card h1 { margin:0 0 10px; font-size:32px; letter-spacing:-.04em; }
.cpf-empty-state p, .cpf-auth-card p { margin:0; color:#6b7280; font-weight:700; }
.cpf-auth-shell { display:grid; place-items:center; }
.cpf-primary-button { display:inline-flex; background:#f97316; color:#fff; padding:12px 16px; border-radius:12px; text-decoration:none; font-weight:900; margin-top:20px; }
@media (max-width: 1080px) {
    .cpf-owner-card-grid, .cpf-property-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cpf-summary-grid, .cpf-summary-grid-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cpf-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .cpf-app-shell { padding: 16px; }
    .cpf-app-header, .cpf-page-title, .cpf-section-head { align-items:flex-start; flex-direction:column; }
    .cpf-month-chips { justify-content:flex-start; }
    .cpf-owner-card-grid, .cpf-property-card-grid, .cpf-summary-grid, .cpf-summary-grid-detail { grid-template-columns: 1fr; }
    .cpf-card-metrics { grid-template-columns: 1fr; }
}

/* v0.2.1 — administración de importaciones */
.cpf-admin-grid {
    display:grid;
    grid-template-columns: minmax(320px, .9fr) minmax(320px, 1.1fr);
    gap:16px;
    align-items:start;
}
.cpf-wrap .widefat td, .cpf-wrap .widefat th { vertical-align: middle; }
.cpf-wrap .description { color:#64748b; }
@media (max-width: 980px) { .cpf-admin-grid { grid-template-columns:1fr; } }

/* v0.2.3 — portal público por propietario */
.cpf-owner-public-mode .cpf-app-header {
    max-width: 1120px;
}
.cpf-owner-public-mode .cpf-page-title,
.cpf-owner-public-mode .cpf-summary-grid,
.cpf-owner-public-mode .cpf-section-head,
.cpf-owner-public-mode .cpf-owner-welcome,
.cpf-owner-public-mode .cpf-property-card-grid,
.cpf-owner-public-mode .cpf-detail-grid {
    max-width: 1120px;
}
.cpf-owner-welcome {
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    align-items: stretch;
}
.cpf-owner-welcome > div {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}
.cpf-owner-welcome span,
.cpf-owner-final-balance small {
    display:block;
    color:#6b7280;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.06em;
    margin-bottom:8px;
}
.cpf-owner-welcome strong {
    display:block;
    font-size:34px;
    letter-spacing:-.05em;
    color:#111827;
}
.cpf-owner-welcome p { color:#6b7280; font-weight:700; margin:10px 0 0; }
.cpf-owner-final-balance {
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.cpf-owner-final-balance strong span { display:block; margin-top:4px; }
.cpf-balance-negative { color:#ef4444; }
.cpf-balance-positive { color:#16a34a; }
.cpf-admin-card-grid {
    display:grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap:16px;
    margin-top:18px;
}
.cpf-owner-link-card h2 { margin-top:0; }
.cpf-copy-field { font-size:12px; margin: 8px 0 10px; }
@media (max-width: 1080px) { .cpf-admin-card-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); } }
@media (max-width: 720px) {
    .cpf-owner-welcome { grid-template-columns:1fr; }
    .cpf-admin-card-grid { grid-template-columns:1fr; }
}

/* v0.2.4 — Cohost Prime owner portal dark */
.cpf-standalone-body {
    margin: 0;
    background: #050505;
    color: #f8fafc;
}
.cpf-standalone-body .cpf-app-shell,
.cpf-app-shell.cpf-owner-public-mode {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(249,115,22,.16), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(255,255,255,.05), transparent 28%),
        #050505;
    color: #f8fafc;
}
.cpf-standalone-body .cpf-app-header,
.cpf-owner-public-mode .cpf-app-header {
    background: rgba(16,16,16,.84);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
    backdrop-filter: blur(16px);
}
.cpf-standalone-body .cpf-brand,
.cpf-owner-public-mode .cpf-brand {
    color: #fff;
}
.cpf-standalone-body .cpf-brand-mark,
.cpf-owner-public-mode .cpf-brand-mark {
    background: #f97316;
    color: #fff;
}
.cpf-standalone-body .cpf-brand strong,
.cpf-owner-public-mode .cpf-brand strong {
    color: #fff;
}
.cpf-standalone-body .cpf-brand small,
.cpf-owner-public-mode .cpf-brand small {
    color: #a3a3a3;
}
.cpf-standalone-body .cpf-header-actions a,
.cpf-standalone-body .cpf-header-actions span,
.cpf-owner-public-mode .cpf-header-actions a,
.cpf-owner-public-mode .cpf-header-actions span {
    background: rgba(255,255,255,.06);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,.1);
}
.cpf-standalone-body .cpf-page-title h1,
.cpf-owner-public-mode .cpf-page-title h1,
.cpf-standalone-body .cpf-section-head h2,
.cpf-owner-public-mode .cpf-section-head h2 {
    color: #fff;
}
.cpf-standalone-body .cpf-back-link,
.cpf-owner-public-mode .cpf-back-link {
    color: #cbd5e1;
}
.cpf-standalone-body .cpf-month-chips a,
.cpf-owner-public-mode .cpf-month-chips a {
    background: rgba(255,255,255,.06);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,.12);
}
.cpf-standalone-body .cpf-month-chips a.active,
.cpf-owner-public-mode .cpf-month-chips a.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
    box-shadow: 0 16px 30px rgba(249,115,22,.25);
}
.cpf-owner-property-intro {
    max-width: 1120px;
    margin: -6px auto 22px;
}
.cpf-owner-property-intro p {
    margin: 0;
    color: #a3a3a3;
    font-weight: 700;
}
.cpf-standalone-body .cpf-property-card-grid,
.cpf-owner-public-mode .cpf-property-card-grid {
    align-items: stretch;
}
.cpf-standalone-body .cpf-property-card,
.cpf-owner-public-mode .cpf-property-card,
.cpf-standalone-body .cpf-owner-card,
.cpf-owner-public-mode .cpf-owner-card,
.cpf-standalone-body .cpf-panel-card,
.cpf-owner-public-mode .cpf-panel-card,
.cpf-standalone-body .cpf-empty-state,
.cpf-owner-public-mode .cpf-empty-state,
.cpf-standalone-body .cpf-auth-card,
.cpf-owner-public-mode .cpf-auth-card {
    background: #101010;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
    color: #f8fafc;
}
.cpf-property-card-cover {
    padding: 0 !important;
    overflow: hidden;
    min-height: 430px;
    display: flex !important;
    flex-direction: column;
}
.cpf-property-cover {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    box-sizing: border-box;
}
.cpf-property-cover span {
    background: rgba(0,0,0,.62);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 950;
    backdrop-filter: blur(12px);
}
.cpf-property-body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
}
.cpf-property-card-cover h3,
.cpf-standalone-body .cpf-owner-card h2,
.cpf-owner-public-mode .cpf-owner-card h2 {
    color: #fff;
    margin: 0 0 18px;
}
.cpf-property-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.cpf-property-values div,
.cpf-standalone-body .cpf-card-metrics div,
.cpf-owner-public-mode .cpf-card-metrics div,
.cpf-standalone-body .cpf-mini-metrics span,
.cpf-owner-public-mode .cpf-mini-metrics span {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 12px;
}
.cpf-property-values small,
.cpf-standalone-body .cpf-card-metrics small,
.cpf-owner-public-mode .cpf-card-metrics small,
.cpf-standalone-body .cpf-mini-metrics small,
.cpf-owner-public-mode .cpf-mini-metrics small {
    color: #a3a3a3;
}
.cpf-property-values span,
.cpf-standalone-body .cpf-card-metrics strong span,
.cpf-owner-public-mode .cpf-card-metrics strong span,
.cpf-standalone-body .cpf-mini-metrics span span,
.cpf-owner-public-mode .cpf-mini-metrics span span,
.cpf-standalone-body .cpf-summary-tile strong span,
.cpf-owner-public-mode .cpf-summary-tile strong span {
    color: #fff;
    display: block;
    margin-top: 6px;
    font-weight: 950;
}
.cpf-card-button {
    margin-top: auto;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-weight: 950;
    box-shadow: 0 16px 28px rgba(249,115,22,.22);
}
.cpf-property-card-cover:hover .cpf-card-button {
    background: #fb923c;
}
.cpf-standalone-body .cpf-summary-tile,
.cpf-owner-public-mode .cpf-summary-tile {
    background: #101010;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
}
.cpf-standalone-body .cpf-panel-title h2,
.cpf-owner-public-mode .cpf-panel-title h2,
.cpf-standalone-body .cpf-data-table td strong,
.cpf-owner-public-mode .cpf-data-table td strong,
.cpf-standalone-body .cpf-list-item strong,
.cpf-owner-public-mode .cpf-list-item strong {
    color: #fff;
}
.cpf-standalone-body .cpf-panel-title span,
.cpf-owner-public-mode .cpf-panel-title span,
.cpf-standalone-body .cpf-data-table td,
.cpf-owner-public-mode .cpf-data-table td,
.cpf-standalone-body .cpf-list-item,
.cpf-owner-public-mode .cpf-list-item {
    background: rgba(255,255,255,.055);
    color: #f8fafc;
}
.cpf-standalone-body .cpf-data-table th,
.cpf-owner-public-mode .cpf-data-table th,
.cpf-standalone-body .cpf-data-table td small,
.cpf-owner-public-mode .cpf-data-table td small,
.cpf-standalone-body .cpf-list-item small,
.cpf-owner-public-mode .cpf-list-item small,
.cpf-standalone-body .cpf-muted-text,
.cpf-owner-public-mode .cpf-muted-text,
.cpf-standalone-body .cpf-empty-state p,
.cpf-owner-public-mode .cpf-empty-state p,
.cpf-standalone-body .cpf-auth-card p,
.cpf-owner-public-mode .cpf-auth-card p {
    color: #a3a3a3;
}
.cpf-standalone-body .cpf-support-stack a,
.cpf-owner-public-mode .cpf-support-stack a {
    background: rgba(249,115,22,.14);
    border: 1px solid rgba(249,115,22,.26);
}
@media (max-width: 720px) {
    .cpf-property-card-cover { min-height: 390px; }
    .cpf-property-cover { height: 160px; }
    .cpf-property-values { grid-template-columns: 1fr; }
}

/* v0.2.5 — detalle propietario: reservas + resumen de pago */
.cpf-detail-dashboard {
    max-width: 1120px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: stretch;
}
.cpf-detail-left {
    display: grid;
    gap: 18px;
}
.cpf-reservation-panel {
    min-height: 245px;
}
.cpf-payment-summary {
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
    padding: 22px;
}
.cpf-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.cpf-payment-metric {
    min-height: 132px;
    background: #141414;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: center;
}
.cpf-payment-metric strong {
    display: block;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.05;
    letter-spacing: -.04em;
    color: #fff;
    font-weight: 950;
}
.cpf-payment-metric strong span {
    display: block;
}
.cpf-payment-metric small {
    display: block;
    color: #fff;
    font-size: 11px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 900;
}
.cpf-payment-metric.tone-income { border-color: rgba(255,255,255,.18); }
.cpf-payment-metric.tone-expense strong { color: #a3a3a3; }
.cpf-payment-metric.tone-commission { border-color: rgba(249,115,22,.42); }
.cpf-payment-metric.tone-admin { border-color: rgba(249,115,22,.55); }
.cpf-payment-metric.tone-owner strong { color: #22c55e; }
.cpf-payment-metric.tone-owner {
    grid-column: 1 / -1;
    min-height: 118px;
}
.cpf-reservation-stack {
    display: grid;
    gap: 12px;
}
.cpf-reservation-line {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 14px;
    padding: 16px 18px;
}
.cpf-reservation-line strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
}
.cpf-reservation-line small {
    display: block;
    color: #a3a3a3;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
}
.cpf-reservation-line em {
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.cpf-reservation-line b {
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}
.cpf-detail-bottom-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.cpf-owner-public-mode .cpf-payment-summary,
.cpf-standalone-body .cpf-payment-summary {
    background: #0c0c0c;
}
@media (max-width: 980px) {
    .cpf-detail-dashboard,
    .cpf-detail-bottom-grid {
        grid-template-columns: 1fr;
    }
    .cpf-payment-summary { order: -1; }
}
@media (max-width: 620px) {
    .cpf-payment-grid { grid-template-columns: 1fr; }
    .cpf-payment-metric.tone-owner { grid-column: auto; }
    .cpf-reservation-line { grid-template-columns: 1fr; gap: 8px; }
}


/* v0.2.7 — refinamiento tipográfico del portal propietario */
.cpf-app-shell,
.cpf-app-shell * {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.cpf-standalone-body .cpf-page-title h1,
.cpf-owner-public-mode .cpf-page-title h1 {
    font-size: clamp(22px, 3vw, 32px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    font-weight: 600 !important;
}

.cpf-standalone-body .cpf-page-title p,
.cpf-owner-public-mode .cpf-page-title p,
.cpf-page-title p {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.cpf-panel-title h2,
.cpf-standalone-body .cpf-panel-title h2,
.cpf-owner-public-mode .cpf-panel-title h2 {
    font-size: 19px !important;
    font-weight: 600 !important;
}

.cpf-panel-title span,
.cpf-standalone-body .cpf-panel-title span,
.cpf-owner-public-mode .cpf-panel-title span {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.cpf-payment-metric strong {
    font-size: clamp(17px, 1.65vw, 22px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    font-weight: 650 !important;
}

.cpf-payment-metric small {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
}

.cpf-payment-metric {
    min-height: 120px !important;
    padding: 18px 16px !important;
}

.cpf-payment-metric.tone-owner {
    min-height: 104px !important;
}

.cpf-reservation-line {
    padding: 15px 17px !important;
}

.cpf-reservation-line strong {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.cpf-reservation-line small {
    font-size: 10px !important;
    font-weight: 600 !important;
}

.cpf-reservation-line em {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.cpf-reservation-line b {
    font-size: 12px !important;
    font-weight: 700 !important;
}

.cpf-list-item strong,
.cpf-standalone-body .cpf-list-item strong,
.cpf-owner-public-mode .cpf-list-item strong {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.cpf-list-item b {
    font-size: 12px !important;
    font-weight: 700 !important;
}

.cpf-property-card-cover h3,
.cpf-standalone-body .cpf-owner-card h2,
.cpf-owner-public-mode .cpf-owner-card h2 {
    font-size: 19px !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
}

.cpf-property-values small,
.cpf-standalone-body .cpf-card-metrics small,
.cpf-owner-public-mode .cpf-card-metrics small,
.cpf-standalone-body .cpf-mini-metrics small,
.cpf-owner-public-mode .cpf-mini-metrics small {
    font-size: 10px !important;
    font-weight: 600 !important;
}

.cpf-property-values span,
.cpf-standalone-body .cpf-card-metrics strong span,
.cpf-owner-public-mode .cpf-card-metrics strong span,
.cpf-standalone-body .cpf-mini-metrics span span,
.cpf-owner-public-mode .cpf-mini-metrics span span,
.cpf-standalone-body .cpf-summary-tile strong span,
.cpf-owner-public-mode .cpf-summary-tile strong span {
    font-size: 14px !important;
    font-weight: 650 !important;
}

.cpf-card-button,
.cpf-primary-button,
.cpf-card-link,
.cpf-back-link {
    font-weight: 700 !important;
}


/* v0.2.9 — ajustes seguros portal propietario */
.cpf-brand-image { gap: 12px !important; }
.cpf-brand-logo {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    flex: 0 0 auto;
}
.cpf-brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpf-brand-image .cpf-brand-mark { display: none !important; }
.cpf-brand strong { font-weight: 600 !important; }
.cpf-brand small { font-weight: 500 !important; }

@media (max-width: 620px) {
    .cpf-payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .cpf-payment-metric {
        min-height: 108px !important;
        padding: 14px 10px !important;
        border-radius: 18px !important;
    }
    .cpf-payment-metric strong {
        font-size: clamp(13px, 4.2vw, 17px) !important;
        line-height: 1.1 !important;
        font-weight: 600 !important;
        letter-spacing: -0.02em !important;
        word-break: keep-all;
    }
    .cpf-payment-metric small {
        font-size: 8px !important;
        line-height: 1.18 !important;
        font-weight: 600 !important;
    }
    .cpf-payment-metric.tone-owner {
        grid-column: 1 / -1 !important;
        min-height: 104px !important;
    }
    .cpf-reservation-line {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 6px 12px !important;
        align-items: center !important;
    }
    .cpf-reservation-line > div {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0;
    }
    .cpf-reservation-line em {
        grid-column: 1 !important;
        grid-row: 2 !important;
        white-space: normal !important;
        text-align: left !important;
    }
    .cpf-reservation-line b {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        justify-self: end !important;
        align-self: center !important;
        text-align: right !important;
        white-space: nowrap !important;
        font-size: 11px !important;
        font-weight: 600 !important;
    }
    .cpf-panel-title h2,
    .cpf-standalone-body .cpf-panel-title h2,
    .cpf-owner-public-mode .cpf-panel-title h2 {
        font-size: 18px !important;
        line-height: 1.15 !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 390px) {
    .cpf-payment-metric strong { font-size: 13px !important; }
    .cpf-payment-metric small { font-size: 7.8px !important; }
    .cpf-reservation-line b { font-size: 10px !important; }
}


/* v0.2.10 — header del portal propietario más limpio */
.cpf-owner-public-mode .cpf-app-header,
.cpf-standalone-body .cpf-app-header {
    border-radius: 28px !important;
    padding: 14px 18px !important;
    overflow: hidden;
}

.cpf-owner-public-mode .cpf-brand-logo,
.cpf-standalone-body .cpf-brand-logo {
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .cpf-owner-public-mode .cpf-app-header,
    .cpf-standalone-body .cpf-app-header {
        width: calc(100% - 2px);
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 26px !important;
        padding: 16px !important;
        background: rgba(16,16,16,.72) !important;
        border: 1px solid rgba(255,255,255,.10) !important;
    }

    .cpf-owner-public-mode .cpf-brand strong,
    .cpf-standalone-body .cpf-brand strong {
        font-size: 22px !important;
        line-height: 1.08 !important;
    }

    .cpf-owner-public-mode .cpf-brand small,
    .cpf-standalone-body .cpf-brand small {
        font-size: 15px !important;
    }
}


/* v0.2.11 — ancho consistente del portal */
.cpf-standalone-body .cpf-app-header,
.cpf-owner-public-mode .cpf-app-header {
    max-width: 1120px !important;
    width: 100% !important;
}

.cpf-standalone-body .cpf-page-title,
.cpf-standalone-body .cpf-detail-dashboard,
.cpf-standalone-body .cpf-detail-bottom-grid,
.cpf-standalone-body .cpf-property-card-grid,
.cpf-standalone-body .cpf-owner-card-grid,
.cpf-owner-public-mode .cpf-page-title,
.cpf-owner-public-mode .cpf-detail-dashboard,
.cpf-owner-public-mode .cpf-detail-bottom-grid,
.cpf-owner-public-mode .cpf-property-card-grid,
.cpf-owner-public-mode .cpf-owner-card-grid {
    max-width: 1120px !important;
    width: 100% !important;
}

/* v0.2.12 — propietarios: conteos discretos + links en tarjetas + ficha contrato */
.cpf-owner-directory-card {
    cursor: default;
}
.cpf-owner-directory-card h2 {
    margin-bottom: 8px !important;
}
.cpf-owner-count-line {
    display: inline-flex;
    color: #9ca3af !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: .02em !important;
}
.cpf-owner-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.cpf-copy-public-link {
    appearance: none;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: #e5e7eb;
    border-radius: 999px;
    min-height: 36px;
    padding: 0 13px;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}
.cpf-copy-public-link:hover {
    border-color: rgba(249,115,22,.55);
    color: #fff;
}
.cpf-standalone-body .cpf-card-eyebrow,
.cpf-owner-public-mode .cpf-card-eyebrow {
    color: #a3a3a3 !important;
    background: rgba(255,255,255,.055) !important;
}
.cpf-form-grid-2 {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}
.cpf-owner-form input[type="text"],
.cpf-owner-form input[type="email"],
.cpf-owner-form input[type="url"],
.cpf-owner-form select,
.cpf-owner-form textarea {
    width: 100%;
    max-width: 100%;
}
.cpf-owner-admin-table .cpf-copy-field {
    max-width: 260px;
}
@media (max-width: 720px) {
    .cpf-owner-card-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .cpf-owner-card-actions .cpf-card-link,
    .cpf-copy-public-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .cpf-form-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* v0.2.13 — contrato visible para propietarios */
.cpf-title-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.cpf-contract-action,
.cpf-contract-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    min-height: 46px;
    padding: 9px 16px;
    border-radius: 18px;
    text-decoration: none !important;
    border: 1px solid rgba(249,115,22,.35);
    background: rgba(249,115,22,.09);
    color: #fff !important;
    box-shadow: 0 14px 35px rgba(0,0,0,.24);
}
.cpf-contract-action span,
.cpf-contract-card span {
    color: #f97316;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}
.cpf-contract-action strong,
.cpf-contract-card strong {
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
}
.cpf-contract-action:hover,
.cpf-contract-card:hover {
    background: rgba(249,115,22,.16);
    border-color: rgba(249,115,22,.72);
    transform: translateY(-1px);
}
@media (max-width: 720px) {
    .cpf-title-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .cpf-title-actions .cpf-month-select,
    .cpf-title-actions .cpf-month-chips {
        width: 100%;
    }
    .cpf-contract-action {
        width: 100%;
        align-items: flex-start;
        padding: 13px 16px;
        border-radius: 20px;
    }
}

/* v0.2.14 - configuración financiera de propietarios */
.cpf-owner-config-box {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    border-radius: 16px;
    padding: 18px;
    margin: 18px 0;
}
.cpf-owner-config-box h2 {
    margin-top: 0;
}
.cpf-owner-admin-table small {
    color: #777;
    line-height: 1.35;
}
.cpf-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
}
@media (max-width: 960px) {
    .cpf-form-grid-3 { grid-template-columns: 1fr; }
}

/* v0.2.15 - variables financieras simplificadas */
.cpf-owner-flow-box {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    border-radius: 14px;
    padding: 14px 16px 8px;
    margin: 10px 0 16px;
}
.cpf-owner-flow-box h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 650;
}
.cpf-owner-flow-box p {
    margin-top: 0;
}


/* v0.2.16 - reglas de cobros adicionales */
.cpf-owner-extra-rules {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
}
.cpf-owner-extra-rules h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}
.cpf-owner-extra-rules .description {
    margin: 0 0 12px;
}


/* v0.2.18 - módulo Propiedades más limpio y media library */
.cpf-properties-admin-app {
    max-width: 1280px;
}
.cpf-properties-admin-app > h1 {
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.04em;
    margin: 18px 0 6px;
}
.cpf-properties-admin-app .cpf-panel {
    border-radius: 22px;
    border: 1px solid #dbe1ea;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .08);
}
.cpf-properties-admin-app .cpf-admin-grid {
    grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr);
    gap: 18px;
}
.cpf-properties-admin-app .cpf-property-form input[type="text"],
.cpf-properties-admin-app .cpf-property-form input[type="url"],
.cpf-properties-admin-app .cpf-property-form input[type="number"],
.cpf-properties-admin-app .cpf-property-form select,
.cpf-properties-admin-app .cpf-property-form textarea {
    width: 100%;
    max-width: 100%;
}
.cpf-media-field {
    margin: 14px 0;
}
.cpf-media-preview {
    min-height: 120px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 7px;
}
.cpf-media-preview:empty:before {
    content: 'Sin foto seleccionada';
    color: #cbd5e1;
    font-weight: 600;
    font-size: 13px;
}
.cpf-media-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.cpf-media-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}
.cpf-property-admin-list {
    display: grid;
    gap: 14px;
}
.cpf-property-admin-card {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 32px rgba(15,23,42,.06);
}
.cpf-property-admin-cover {
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(249,115,22,.35), transparent 32%), linear-gradient(135deg, #111827, #020617);
    background-size: cover;
    background-position: center;
    min-height: 130px;
}
.cpf-property-admin-body {
    min-width: 0;
}
.cpf-property-admin-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.cpf-property-admin-head h3 {
    margin: 7px 0 3px;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.cpf-property-admin-head p,
.cpf-property-admin-channels {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}
.cpf-admin-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #e5e7eb;
    color: #475569;
}
.cpf-admin-pill.is-active {
    background: rgba(34, 197, 94, .12);
    color: #15803d;
}
.cpf-property-admin-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cpf-property-admin-actions form {
    margin: 0;
}
.cpf-property-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 10px;
}
.cpf-property-admin-meta span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 650;
}
.cpf-property-inventory-link {
    display: inline-flex;
    margin-top: 10px;
    color: #f97316;
    font-weight: 750;
    text-decoration: none;
}
.cpf-owner-admin-basic-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}
@media (max-width: 1100px) {
    .cpf-properties-admin-app .cpf-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .cpf-property-admin-card { grid-template-columns: 1fr; }
    .cpf-property-admin-cover { min-height: 180px; }
    .cpf-property-admin-head { flex-direction: column; }
    .cpf-property-admin-actions { justify-content: flex-start; }
}

/* v0.2.20 - consolidado por propietario y duplicación segura de propiedades */
.cpf-owner-consolidated-panel {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr);
    gap: 18px;
    align-items: stretch;
    margin: 0 0 22px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    box-shadow: 0 22px 70px rgba(0,0,0,.24);
}
.cpf-owner-consolidated-panel small {
    display: block;
    color: #f97316;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.cpf-owner-consolidated-panel h2 {
    margin: 7px 0 6px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.04em;
}
.cpf-owner-consolidated-panel p {
    margin: 0;
    color: #a3a3a3;
    font-size: 12px;
    font-weight: 500;
}
.cpf-owner-consolidated-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.cpf-owner-consolidated-metrics article {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
}
.cpf-owner-consolidated-metrics strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.04em;
    font-weight: 700;
}
.cpf-owner-consolidated-metrics strong span {
    display: block;
}
.cpf-duplicate-property-panel {
    border-color: #fdba74 !important;
    background: #fff7ed !important;
}
.cpf-duplicate-property-panel h2 {
    color: #9a3412;
}
@media (max-width: 760px) {
    .cpf-owner-consolidated-panel { grid-template-columns: 1fr; padding: 18px; }
    .cpf-owner-consolidated-metrics { grid-template-columns: 1fr; }
    .cpf-owner-consolidated-metrics strong { font-size: 20px; }
}

/* v0.2.21 — ajustes de consolidado y estado propietario */
.cpf-owner-consolidated-panel {
    max-width: 1120px !important;
    width: 100% !important;
    margin: 0 auto 22px !important;
    box-sizing: border-box !important;
}
.cpf-owner-consolidated-panel > div:first-child {
    min-width: 0;
}
.cpf-owner-consolidated-metrics {
    min-width: 0;
}
.cpf-owner-consolidated-metrics article {
    min-width: 0;
}
.cpf-owner-consolidated-metrics small {
    line-height: 1.2;
}
.cpf-owner-consolidated-metrics strong {
    word-break: break-word;
}
@media (max-width: 760px) {
    .cpf-owner-consolidated-panel {
        max-width: 1120px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* v0.2.26 — consolidado interno Joseangel Prime */
.cpf-admin-income-overview {
    max-width: 1360px;
    margin: 0 auto 28px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(249,115,22,.08), rgba(255,255,255,.025));
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.cpf-admin-income-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 16px;
}
.cpf-admin-income-head small {
    display:block;
    color:#f97316;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:11px;
    font-weight:800;
    margin-bottom:6px;
}
.cpf-admin-income-head h2 {
    margin:0;
    color:#fff;
    font-size:clamp(22px,3vw,34px);
    line-height:1;
    letter-spacing:-.04em;
}
.cpf-admin-income-head p {
    max-width: 520px;
    margin:0;
    color:#a8b3c7;
    font-size:12px;
    line-height:1.45;
    text-align:right;
}
.cpf-admin-income-grid {
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:14px;
}
.cpf-admin-income-card {
    min-height:112px;
    padding:18px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    background:rgba(255,255,255,.045);
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.cpf-admin-income-card span {
    color:#a8b3c7;
    font-size:11px;
    line-height:1.25;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.055em;
    margin-bottom:9px;
}
.cpf-admin-income-card strong {
    display:block;
    color:#fff;
    font-size:clamp(20px,2.1vw,30px);
    line-height:1.08;
    font-weight:760;
    letter-spacing:-.045em;
}
.cpf-admin-income-card strong span {
    display:block;
    color:#fff;
    font-size:inherit;
    font-weight:inherit;
    text-transform:none;
    letter-spacing:inherit;
    margin:0 0 4px;
}
.cpf-admin-income-card-main {
    border-color: rgba(249,115,22,.65);
    background: linear-gradient(180deg, rgba(249,115,22,.16), rgba(255,255,255,.045));
}
.cpf-admin-income-card-wide {
    border-color: rgba(34,197,94,.35);
}
.cpf-admin-income-card-wide em {
    display:block;
    margin-top:10px;
    color:#7f8aa3;
    font-size:11px;
    line-height:1.35;
    font-style:normal;
}
@media (max-width: 1000px) {
    .cpf-admin-income-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cpf-admin-income-head { align-items:flex-start; flex-direction:column; }
    .cpf-admin-income-head p { text-align:left; }
}
@media (max-width: 560px) {
    .cpf-admin-income-overview { padding:16px; border-radius:22px; }
    .cpf-admin-income-grid { grid-template-columns:1fr; }
    .cpf-admin-income-card { min-height:96px; }
}


/* v0.2.27 — ajuste de ancho y tipografía del consolidado interno */
.cpf-admin-income-overview {
    max-width: 1240px !important;
    width: calc(100% - 0px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px !important;
}
.cpf-admin-income-head {
    margin-bottom: 14px !important;
}
.cpf-admin-income-head small {
    font-size: 10px !important;
    font-weight: 720 !important;
    letter-spacing: .075em !important;
}
.cpf-admin-income-head h2 {
    font-size: clamp(20px, 2.45vw, 30px) !important;
    font-weight: 520 !important;
    letter-spacing: -.035em !important;
}
.cpf-admin-income-head p {
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
}
.cpf-admin-income-grid {
    gap: 12px !important;
}
.cpf-admin-income-card {
    min-height: 104px !important;
    padding: 16px !important;
}
.cpf-admin-income-card span {
    font-size: 10px !important;
    font-weight: 680 !important;
    letter-spacing: .045em !important;
    margin-bottom: 8px !important;
}
.cpf-admin-income-card strong,
.cpf-admin-income-card strong span {
    font-size: clamp(18px, 1.85vw, 26px) !important;
    font-weight: 520 !important;
    line-height: 1.06 !important;
    letter-spacing: -.035em !important;
}
.cpf-admin-income-card-wide em {
    font-size: 10px !important;
    font-weight: 400 !important;
}
@media (max-width: 720px) {
    .cpf-admin-income-overview {
        max-width: 100% !important;
        padding: 15px !important;
        margin-bottom: 22px !important;
    }
    .cpf-admin-income-card strong,
    .cpf-admin-income-card strong span {
        font-size: 20px !important;
    }
}


/* v0.2.28 — consolidado interno con el mismo ancho de las fichas de propietarios */
.cpf-admin-income-overview {
    max-width: 1120px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Máquina Host Prime: calendario mensual dentro de tarjetas de propiedad */
.cpf-mini-calendar{
    margin-top:16px;
    padding:14px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    background:rgba(0,0,0,.22);
}
.cpf-mini-calendar-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:56px;
    color:rgba(255,255,255,.45);
    font-size:12px;
    font-weight:500;
}
.cpf-mini-calendar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
    color:#fff;
}
.cpf-mini-calendar-head strong{
    font-size:13px;
    font-weight:600;
}
.cpf-mini-calendar-head span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:rgba(255,255,255,.62);
    font-size:11px;
    font-weight:500;
}
.cpf-mini-calendar-head i{
    display:inline-block;
    width:8px;
    height:8px;
    border-radius:999px;
    background:#f97316;
}
.cpf-mini-weekdays,
.cpf-mini-days{
    display:grid;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap:5px;
}
.cpf-mini-weekdays span{
    text-align:center;
    color:rgba(255,255,255,.38);
    font-size:10px;
    font-weight:600;
    line-height:1;
    padding-bottom:3px;
}
.cpf-mini-day{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:26px;
    border-radius:9px;
    background:rgba(255,255,255,.05);
    color:rgba(255,255,255,.68);
    font-size:11px;
    font-weight:500;
}
.cpf-mini-day-blank{
    background:transparent;
}
.cpf-mini-day.is-booked{
    background:rgba(249,115,22,.88);
    color:#fff;
    box-shadow:0 8px 22px rgba(249,115,22,.16);
}
.cpf-mini-day.is-conflict{
    background:#dc2626;
    color:#fff;
    box-shadow:0 0 0 2px rgba(220,38,38,.25),0 8px 22px rgba(220,38,38,.2);
}
.cpf-mini-conflict{
    margin-top:10px;
    color:#fecaca;
    font-size:11px;
    font-weight:600;
}
@media (max-width: 760px){
    .cpf-mini-calendar{padding:12px;margin-top:14px;}
    .cpf-mini-day{min-height:24px;font-size:10px;border-radius:8px;}
}

/* Host Prime admin architecture cleanup */
.mhp-admin-tabs-wrap{
    margin: 14px 20px 18px 0;
    padding: 14px 16px;
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    color: #fff;
}
.mhp-admin-tabs-head{
    display:flex;
    align-items:baseline;
    gap:10px;
    margin-bottom:12px;
}
.mhp-admin-tabs-head strong{
    font-size:16px;
    letter-spacing:.01em;
}
.mhp-admin-tabs-head span{
    color:#9ca3af;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.mhp-admin-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.mhp-admin-tabs a{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.1);
    color:#e5e7eb;
    font-weight:600;
    text-decoration:none;
}
.mhp-admin-tabs a:hover,
.mhp-admin-tabs a:focus{
    background:rgba(249,115,22,.15);
    border-color:rgba(249,115,22,.55);
    color:#fff;
    box-shadow:none;
}
.mhp-admin-tabs a.is-active{
    background:#f97316;
    border-color:#f97316;
    color:#fff;
}
@media (max-width: 782px){
    .mhp-admin-tabs-wrap{margin-right:10px;padding:12px;}
    .mhp-admin-tabs a{width:calc(50% - 4px);justify-content:center;}
}

/* v0.3.13 — Host Prime admin UI polish
   Unifica la estética interna con el menú superior modular: más limpio, tarjetas suaves y navegación clara. */
:root{
    --mhp-bg:#f4f5f7;
    --mhp-ink:#101827;
    --mhp-muted:#667085;
    --mhp-line:#e5e7eb;
    --mhp-panel:#ffffff;
    --mhp-soft:#f8fafc;
    --mhp-navy:#111827;
    --mhp-navy-2:#1f2937;
    --mhp-orange:#f97316;
    --mhp-orange-dark:#ea580c;
    --mhp-radius:18px;
    --mhp-shadow:0 18px 50px rgba(15,23,42,.08);
}

/* Área general de páginas del plugin */
.cpf-wrap,
.mrp-admin-wrap{
    max-width:1200px !important;
    margin:26px auto 50px !important;
    padding:0 22px !important;
    color:var(--mhp-ink) !important;
    font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
.cpf-wrap h1,
.mrp-admin-wrap h1{
    margin:0 0 8px !important;
    color:var(--mhp-ink) !important;
    font-size:clamp(28px,2.4vw,38px) !important;
    font-weight:650 !important;
    letter-spacing:-.045em !important;
    line-height:1.05 !important;
}
.cpf-wrap > p,
.mrp-admin-wrap > p,
.mrp-lead,
.mrp-page-head p,
.cpf-wrap .description,
.mrp-admin-wrap .description{
    color:var(--mhp-muted) !important;
    font-size:14px !important;
    line-height:1.55 !important;
}

/* Menú modular superior */
.mhp-admin-tabs-wrap{
    max-width:1200px !important;
    margin:26px auto 26px !important;
    padding:18px 18px !important;
    border-radius:22px !important;
    background:linear-gradient(135deg,#111827 0%,#111827 58%,#182235 100%) !important;
    border:1px solid rgba(255,255,255,.10) !important;
    box-shadow:0 18px 48px rgba(15,23,42,.20) !important;
    color:#fff !important;
    box-sizing:border-box !important;
    font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
.mhp-admin-tabs-head{
    margin:0 0 14px !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
}
.mhp-admin-tabs-head strong{
    font-size:18px !important;
    font-weight:650 !important;
    letter-spacing:-.015em !important;
}
.mhp-admin-tabs-head span{
    color:#9fb1cc !important;
    font-size:12px !important;
    text-transform:uppercase !important;
    letter-spacing:.12em !important;
    font-weight:500 !important;
}
.mhp-admin-tabs{
    display:flex !important;
    gap:10px !important;
    flex-wrap:wrap !important;
}
.mhp-admin-tabs a{
    min-height:42px !important;
    padding:0 18px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.08) !important;
    border:1px solid rgba(255,255,255,.13) !important;
    color:#f8fafc !important;
    font-size:14px !important;
    font-weight:650 !important;
    text-decoration:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07) !important;
    transition:all .15s ease !important;
}
.mhp-admin-tabs a:hover,
.mhp-admin-tabs a:focus{
    color:#fff !important;
    border-color:rgba(249,115,22,.55) !important;
    background:rgba(249,115,22,.16) !important;
    box-shadow:0 8px 22px rgba(249,115,22,.12), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.mhp-admin-tabs a.is-active{
    background:var(--mhp-orange) !important;
    border-color:var(--mhp-orange) !important;
    color:#fff !important;
    box-shadow:0 14px 34px rgba(249,115,22,.28) !important;
}

/* Paneles, tarjetas y bloques */
.cpf-panel,
.cpf-card,
.cpf-owner-admin-basic-box,
.cpf-owner-config-box,
.cpf-owner-flow-box,
.cpf-owner-extra-rules,
.cpf-owner-link-card,
.cpf-property-admin-card,
.cpf-duplicate-property-panel,
.cpf-media-field,
.mrp-panel,
.mrp-card,
.mrp-property-card,
.mrp-public-link-card,
.mrp-media-field,
.mrp-filter,
.mrp-bank-card,
.mrp-balance-card,
.mrp-check-card,
.mrp-catalog-item,
.mrp-booking-card{
    background:var(--mhp-panel) !important;
    border:1px solid var(--mhp-line) !important;
    border-radius:var(--mhp-radius) !important;
    box-shadow:var(--mhp-shadow) !important;
    box-sizing:border-box !important;
}
.cpf-panel,
.mrp-panel{
    padding:24px !important;
    margin:20px 0 !important;
}
.cpf-card,
.mrp-card{
    padding:22px !important;
}
.cpf-panel h2,
.mrp-panel h2,
.cpf-owner-config-box h2,
.cpf-property-admin-body h2,
.mrp-admin-wrap h2{
    color:var(--mhp-ink) !important;
    font-size:20px !important;
    font-weight:650 !important;
    letter-spacing:-.03em !important;
    margin:0 0 16px !important;
}
.cpf-panel h3,
.mrp-panel h3,
.cpf-property-admin-card h3{
    color:var(--mhp-ink) !important;
    font-size:16px !important;
    font-weight:650 !important;
    margin:0 0 12px !important;
}

/* Grillas */
.cpf-grid,
.mrp-stats,
.mrp-grid,
.cpf-admin-grid,
.cpf-admin-card-grid,
.cpf-property-admin-list,
.mrp-public-link-grid,
.mrp-property-list{
    gap:18px !important;
}
.mrp-stats{
    margin:22px 0 !important;
}
.mrp-card strong,
.cpf-card strong{
    color:#0f3d2e !important;
    font-weight:600 !important;
    letter-spacing:-.04em !important;
}
.mrp-card span,
.cpf-card span{
    color:var(--mhp-muted) !important;
    font-weight:500 !important;
}

/* Formularios */
.cpf-wrap label,
.mrp-admin-wrap label,
.cpf-owner-form label,
.cpf-property-form label,
.mrp-form label,
.mrp-form-inline label{
    color:#1f2937 !important;
    font-weight:600 !important;
    font-size:13px !important;
    line-height:1.35 !important;
}
.cpf-wrap input[type="text"],
.cpf-wrap input[type="email"],
.cpf-wrap input[type="number"],
.cpf-wrap input[type="url"],
.cpf-wrap input[type="date"],
.cpf-wrap input[type="month"],
.cpf-wrap select,
.cpf-wrap textarea,
.mrp-admin-wrap input[type="text"],
.mrp-admin-wrap input[type="email"],
.mrp-admin-wrap input[type="number"],
.mrp-admin-wrap input[type="url"],
.mrp-admin-wrap input[type="date"],
.mrp-admin-wrap input[type="month"],
.mrp-admin-wrap select,
.mrp-admin-wrap textarea{
    min-height:42px !important;
    border:1px solid #d8dee8 !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#111827 !important;
    padding:9px 12px !important;
    box-shadow:0 1px 2px rgba(15,23,42,.04) !important;
    outline:none !important;
    font-size:14px !important;
    font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
.cpf-wrap textarea,
.mrp-admin-wrap textarea{
    min-height:100px !important;
}
.cpf-wrap input:focus,
.cpf-wrap select:focus,
.cpf-wrap textarea:focus,
.mrp-admin-wrap input:focus,
.mrp-admin-wrap select:focus,
.mrp-admin-wrap textarea:focus{
    border-color:rgba(249,115,22,.75) !important;
    box-shadow:0 0 0 3px rgba(249,115,22,.13) !important;
}
.cpf-form-grid,
.cpf-form-grid-2,
.cpf-form-grid-3,
.mrp-form-grid,
.mrp-form-inline,
.mrp-grid-two{
    gap:18px !important;
}

/* Botones WordPress dentro del plugin */
.cpf-wrap .button,
.mrp-admin-wrap .button,
.cpf-wrap button,
.mrp-admin-wrap button,
.cpf-copy-button,
.mrp-btn{
    border-radius:999px !important;
    min-height:40px !important;
    padding:0 16px !important;
    font-weight:650 !important;
    font-size:13px !important;
    box-shadow:none !important;
    transition:all .15s ease !important;
}
.cpf-wrap .button-primary,
.mrp-admin-wrap .button-primary,
.cpf-wrap button.button-primary,
.mrp-admin-wrap button.button-primary,
.cpf-wrap .button.button-primary,
.mrp-admin-wrap .button.button-primary,
.mrp-btn-primary{
    background:var(--mhp-orange) !important;
    border-color:var(--mhp-orange) !important;
    color:#fff !important;
}
.cpf-wrap .button-primary:hover,
.mrp-admin-wrap .button-primary:hover,
.mrp-btn-primary:hover{
    background:var(--mhp-orange-dark) !important;
    border-color:var(--mhp-orange-dark) !important;
    color:#fff !important;
    transform:translateY(-1px) !important;
}
.cpf-wrap .button:not(.button-primary),
.mrp-admin-wrap .button:not(.button-primary),
.cpf-copy-button,
.mrp-btn-secondary{
    background:#fff !important;
    color:#1f2937 !important;
    border:1px solid #d8dee8 !important;
}
.cpf-wrap .button:not(.button-primary):hover,
.mrp-admin-wrap .button:not(.button-primary):hover,
.cpf-copy-button:hover,
.mrp-btn-secondary:hover{
    border-color:#f97316 !important;
    color:#c2410c !important;
    background:#fff7ed !important;
}

/* Tablas */
.cpf-wrap table,
.mrp-admin-wrap table,
.cpf-owner-admin-table,
.wp-list-table{
    border-collapse:separate !important;
    border-spacing:0 !important;
    border:1px solid var(--mhp-line) !important;
    border-radius:16px !important;
    overflow:hidden !important;
    background:#fff !important;
    box-shadow:0 10px 28px rgba(15,23,42,.05) !important;
}
.cpf-wrap table th,
.cpf-wrap table td,
.mrp-admin-wrap table th,
.mrp-admin-wrap table td{
    padding:13px 14px !important;
    border-bottom:1px solid #edf0f5 !important;
    color:#1f2937 !important;
}
.cpf-wrap table th,
.mrp-admin-wrap table th{
    background:#f8fafc !important;
    font-size:12px !important;
    font-weight:650 !important;
    text-transform:uppercase !important;
    letter-spacing:.045em !important;
    color:#64748b !important;
}
.cpf-wrap table tr:last-child td,
.mrp-admin-wrap table tr:last-child td{
    border-bottom:0 !important;
}

/* Tarjetas específicas de reservas y propiedades */
.mrp-property-card,
.cpf-property-admin-card{
    overflow:hidden !important;
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
}
.mrp-property-card:hover,
.cpf-property-admin-card:hover,
.mrp-public-link-card:hover{
    transform:translateY(-2px) !important;
    border-color:#d4dbe7 !important;
    box-shadow:0 18px 45px rgba(15,23,42,.10) !important;
}
.mrp-property-thumb,
.cpf-property-admin-cover,
.mrp-media-preview,
.cpf-media-preview{
    border-radius:14px !important;
    background-color:#eef2f7 !important;
    overflow:hidden !important;
}
.mrp-public-link-head strong,
.mrp-property-card strong,
.cpf-property-admin-head strong{
    color:#111827 !important;
    font-weight:650 !important;
    letter-spacing:-.02em !important;
}
.mrp-public-link-head small,
.mrp-property-card small,
.cpf-property-admin-meta,
.cpf-property-admin-card small{
    color:#64748b !important;
}

/* Avisos y badges */
.mrp-badge,
.cpf-admin-pill{
    background:#f1f5f9 !important;
    color:#475569 !important;
    border-radius:999px !important;
    padding:5px 10px !important;
    font-size:12px !important;
    font-weight:650 !important;
}
.notice.inline.mrp-conflict-notice,
.mrp-conflict-panel{
    border-radius:16px !important;
    padding:16px !important;
    box-shadow:0 12px 30px rgba(15,23,42,.05) !important;
}

/* Media selector */
.mrp-media-field,
.cpf-media-field{
    background:#f8fafc !important;
    border-style:dashed !important;
}
.mrp-gallery-preview img,
.mrp-unit-summary img,
.cpf-media-preview img{
    border-radius:14px !important;
}

/* Calendario maestro: mantener legible pero más moderno */
.mrp-master-wrap{
    border-radius:18px !important;
    overflow:hidden !important;
}
.mrp-master-calendar thead th,
.mrp-master-calendar thead .mrp-unit-col{
    background:#f8fafc !important;
    color:#475569 !important;
}
.mrp-master-calendar th,
.mrp-master-calendar td{
    border-color:#e8edf4 !important;
}
.mrp-dialog{
    border-radius:22px !important;
    box-shadow:0 28px 90px rgba(15,23,42,.28) !important;
}

@media (max-width: 782px){
    .cpf-wrap,
    .mrp-admin-wrap{
        margin:18px auto 36px !important;
        padding:0 12px !important;
    }
    .mhp-admin-tabs-wrap{
        margin:14px 12px 20px !important;
        padding:14px !important;
        border-radius:18px !important;
    }
    .mhp-admin-tabs a{
        width:calc(50% - 5px) !important;
        min-height:40px !important;
        padding:0 10px !important;
        font-size:12px !important;
    }
    .cpf-panel,
    .mrp-panel{
        padding:18px !important;
        border-radius:16px !important;
    }
}

/* v0.3.14 — calendario de propietario con rangos redondeados y continuidad semanal */
.cpf-mini-calendar{
    overflow:hidden;
}
.cpf-mini-days-ranges{
    position:relative;
    display:grid !important;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    grid-auto-rows:minmax(26px, 1fr);
    gap:5px;
    isolation:isolate;
}
.cpf-mini-days-ranges .cpf-mini-range{
    grid-column:var(--cpf-col) / span var(--cpf-span);
    grid-row:var(--cpf-row);
    align-self:center;
    height:26px;
    border:2px solid #f97316;
    border-radius:999px;
    background:rgba(249,115,22,.02);
    box-shadow:0 7px 18px rgba(249,115,22,.12);
    pointer-events:none;
    z-index:1;
    box-sizing:border-box;
}
.cpf-mini-days-ranges .cpf-mini-range:not(.is-start){
    border-left-color:transparent;
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    margin-left:-8px;
}
.cpf-mini-days-ranges .cpf-mini-range:not(.is-end){
    border-right-color:transparent;
    border-top-right-radius:0;
    border-bottom-right-radius:0;
    margin-right:-8px;
}
.cpf-mini-days-ranges .cpf-mini-day{
    position:relative;
    grid-column:var(--cpf-col);
    grid-row:var(--cpf-row);
    z-index:2;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.025);
    box-sizing:border-box;
}
.cpf-mini-days-ranges .cpf-mini-day.is-booked{
    background:rgba(255,255,255,.055);
    color:rgba(255,255,255,.82);
    box-shadow:none;
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover{
    color:#fff;
    z-index:4;
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    content:'';
    position:absolute;
    inset:2px;
    border:2px solid #f97316;
    border-radius:999px;
    box-shadow:0 0 0 2px rgba(0,0,0,.18);
    pointer-events:none;
}
.cpf-mini-days-ranges .cpf-mini-day.is-conflict{
    background:#dc2626;
    color:#fff;
    box-shadow:0 0 0 2px rgba(220,38,38,.25),0 8px 22px rgba(220,38,38,.2);
    z-index:5;
}
.cpf-mini-days-ranges .cpf-mini-day-blank{display:none;}
@media (max-width:760px){
    .cpf-mini-days-ranges{grid-auto-rows:minmax(24px, 1fr);gap:4px;}
    .cpf-mini-days-ranges .cpf-mini-range{height:24px;}
    .cpf-mini-days-ranges .cpf-mini-range:not(.is-start){margin-left:-7px;}
    .cpf-mini-days-ranges .cpf-mini-range:not(.is-end){margin-right:-7px;}
}

/* v0.3.15 — navegación mensual y calendario en detalle de propiedad */
.cpf-property-card-cover{
    text-decoration:none !important;
}
.cpf-property-card-cover .cpf-card-button{
    text-decoration:none !important;
}
.cpf-calendar-block{
    width:100%;
    margin-top:16px;
}
.cpf-calendar-months{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}
.cpf-calendar-months-2{
    grid-template-columns:repeat(2, minmax(0, 1fr));
}
.cpf-detail-calendar-section{
    max-width:1120px;
    margin:18px auto 0;
}
.cpf-detail-calendar-section .cpf-calendar-block{
    margin-top:6px;
}
.cpf-detail-calendar-section .cpf-mini-calendar{
    min-height:330px;
}
.cpf-mini-calendar-nav-title{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-width:0;
}
.cpf-calendar-arrow{
    width:28px;
    height:28px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff !important;
    text-decoration:none !important;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.065);
    font-size:20px;
    line-height:1;
    font-weight:700;
    transition:.18s ease;
}
.cpf-calendar-arrow:hover{
    border-color:rgba(249,115,22,.65);
    background:rgba(249,115,22,.16);
    transform:translateY(-1px);
}
.cpf-mini-calendar-placeholder{
    min-height:160px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.45);
    font-size:12px;
    font-weight:600;
}
.cpf-mini-calendar-empty-month{
    min-height:240px;
}
@media (max-width:760px){
    .cpf-calendar-months-2{
        grid-template-columns:1fr;
    }
    .cpf-calendar-months-2 .cpf-mini-calendar:nth-child(n+2){
        display:none;
    }
    .cpf-detail-calendar-section .cpf-mini-calendar{
        min-height:auto;
    }
    .cpf-calendar-arrow{
        width:26px;
        height:26px;
        font-size:18px;
    }
}

/* v0.3.16 — calendario tipo barras continuas para propietarios */
.cpf-mini-days-ranges{
    grid-auto-rows:30px !important;
    gap:5px !important;
    align-items:stretch;
    overflow:hidden;
}
.cpf-mini-days-ranges .cpf-mini-range{
    height:24px !important;
    align-self:center;
    border:1.5px solid rgba(249,115,22,.92) !important;
    background:linear-gradient(180deg, rgba(148,148,148,.72), rgba(112,112,112,.72)) !important;
    box-shadow:none !important;
    border-radius:0 !important;
    margin-left:-4px !important;
    margin-right:-4px !important;
    z-index:1;
}
.cpf-mini-days-ranges .cpf-mini-range.is-real-start{
    border-top-left-radius:999px !important;
    border-bottom-left-radius:999px !important;
    margin-left:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-real-end{
    border-top-right-radius:999px !important;
    border-bottom-right-radius:999px !important;
    margin-right:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-cut-left{
    border-left-color:transparent !important;
    border-top-left-radius:0 !important;
    border-bottom-left-radius:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-cut-right{
    border-right-color:transparent !important;
    border-top-right-radius:0 !important;
    border-bottom-right-radius:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-month,
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-row{
    margin-left:-12px !important;
}
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-month,
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-row{
    margin-right:-12px !important;
}
.cpf-mini-days-ranges .cpf-mini-day{
    min-height:30px !important;
    border-radius:10px;
    background:rgba(255,255,255,.045) !important;
    border:1px solid rgba(255,255,255,.025) !important;
    color:rgba(255,255,255,.72);
    z-index:3;
}
.cpf-mini-days-ranges .cpf-mini-day.is-booked{
    background:transparent !important;
    border-color:transparent !important;
    color:#fff !important;
    text-shadow:0 1px 4px rgba(0,0,0,.55);
    font-weight:600;
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover{
    color:#fff !important;
    z-index:6 !important;
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    inset:1px !important;
    border:2px solid #f97316 !important;
    background:rgba(18,18,18,.72);
    box-shadow:0 0 0 3px rgba(0,0,0,.2), 0 8px 18px rgba(249,115,22,.15) !important;
}
.cpf-mini-days-ranges .cpf-mini-day.is-conflict{
    background:#dc2626 !important;
    border-color:rgba(255,255,255,.16) !important;
    color:#fff !important;
    z-index:7 !important;
}
.cpf-calendar-block-card .cpf-mini-calendar,
.cpf-property-card-cover .cpf-mini-calendar{
    margin-top:16px;
}
@media (max-width:760px){
    .cpf-mini-days-ranges{
        grid-auto-rows:28px !important;
        gap:4px !important;
    }
    .cpf-mini-days-ranges .cpf-mini-range{
        height:22px !important;
        margin-left:-3px !important;
        margin-right:-3px !important;
    }
    .cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-month,
    .cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-row{
        margin-left:-10px !important;
    }
    .cpf-mini-days-ranges .cpf-mini-range.continues-to-next-month,
    .cpf-mini-days-ranges .cpf-mini-range.continues-to-next-row{
        margin-right:-10px !important;
    }
    .cpf-mini-days-ranges .cpf-mini-day{
        min-height:28px !important;
        font-size:10px;
    }
}

/* v0.3.17 — calendario de ocupación tipo barras para portal de propietarios */
.cpf-occupancy-calendar-section{
    background:#ffffff !important;
    color:#111827 !important;
    border:1px solid rgba(15,23,42,.08) !important;
    box-shadow:0 18px 45px rgba(0,0,0,.10) !important;
    padding:28px !important;
    overflow:hidden !important;
}
.cpf-occupancy-calendar-section .cpf-calendar-block{margin-top:0 !important;}
.cpf-occupancy-header{margin-bottom:26px;}
.cpf-occupancy-header h2{
    margin:0 0 22px !important;
    text-align:center;
    font-size:36px !important;
    line-height:1.05 !important;
    font-weight:600 !important;
    letter-spacing:-.04em;
    color:#ff5a3d !important;
}
.cpf-occupancy-stats{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:18px;
}
.cpf-occupancy-stat{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:16px;
    padding:20px 22px;
    min-height:104px;
    box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.cpf-occupancy-stat span{
    display:block;
    color:#64748b;
    font-size:15px;
    line-height:1.2;
    font-weight:500;
    margin-bottom:8px;
}
.cpf-occupancy-stat strong{
    display:block;
    font-size:34px;
    line-height:1;
    font-weight:600;
    letter-spacing:-.045em;
    color:#111827;
}
.cpf-occupancy-stat.is-airbnb strong{color:#ff4f7b;}
.cpf-occupancy-stat.is-booking strong{color:#0b4a8b;}
.cpf-occupancy-stat.is-direct strong{color:#18a653;}
.cpf-occupancy-stat.is-occupancy strong{color:#111827;}
.cpf-calendar-block-detail .cpf-calendar-months{
    gap:46px !important;
    align-items:start;
    justify-content:center;
}
.cpf-calendar-block-detail .cpf-calendar-months-2{
    grid-template-columns:repeat(2, minmax(280px, 420px)) !important;
}
.cpf-calendar-block-detail .cpf-mini-calendar{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    padding:0 !important;
    min-height:auto !important;
    color:#111827 !important;
}
.cpf-calendar-block-card .cpf-mini-calendar,
.cpf-property-card-cover .cpf-mini-calendar{
    background:#ffffff !important;
    border:1px solid rgba(15,23,42,.09) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.12) !important;
    border-radius:18px !important;
    padding:14px !important;
    color:#111827 !important;
}
.cpf-calendar-block-detail .cpf-mini-calendar-head{
    justify-content:center !important;
    margin:26px 0 22px !important;
    color:#111827 !important;
}
.cpf-calendar-block-card .cpf-mini-calendar-head,
.cpf-property-card-cover .cpf-mini-calendar-head{
    color:#111827 !important;
}
.cpf-mini-calendar-head strong{
    color:inherit !important;
    font-size:24px !important;
    font-weight:600 !important;
    letter-spacing:-.035em !important;
}
.cpf-calendar-block-card .cpf-mini-calendar-head strong,
.cpf-property-card-cover .cpf-mini-calendar-head strong{font-size:18px !important;}
.cpf-mini-calendar-head span{color:#64748b !important;}
.cpf-mini-calendar-head i{background:#ff7a1a !important;}
.cpf-calendar-arrow{
    background:#1f2933 !important;
    color:#fff !important;
    border:0 !important;
    box-shadow:0 10px 22px rgba(0,0,0,.18) !important;
}
.cpf-calendar-arrow:hover{background:#ff7a1a !important;color:#fff !important;}
.cpf-mini-weekdays{
    display:grid !important;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap:5px !important;
    border-top:1px solid rgba(15,23,42,.10);
    padding-top:10px;
    margin-bottom:7px;
}
.cpf-mini-weekdays span{
    color:#777 !important;
    font-size:12px !important;
    font-weight:500 !important;
    text-transform:lowercase;
}
.cpf-mini-days-ranges{
    grid-auto-rows:43px !important;
    gap:5px !important;
    overflow:visible !important;
    isolation:isolate;
}
.cpf-calendar-block-card .cpf-mini-days-ranges,
.cpf-property-card-cover .cpf-mini-days-ranges{grid-auto-rows:33px !important;gap:4px !important;}
.cpf-mini-days-ranges .cpf-mini-day{
    min-height:43px !important;
    border-radius:10px !important;
    background:#f7f7f7 !important;
    border:1px solid rgba(15,23,42,.08) !important;
    color:#555 !important;
    font-size:13px !important;
    font-weight:500 !important;
    z-index:3 !important;
    box-shadow:none !important;
    text-shadow:none !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day{
    min-height:33px !important;
    font-size:11px !important;
    border-radius:8px !important;
}
.cpf-mini-days-ranges .cpf-mini-day.is-booked{
    background:#f7f7f7 !important;
    border-color:rgba(15,23,42,.08) !important;
    color:#374151 !important;
    font-weight:600 !important;
}
.cpf-mini-days-ranges .cpf-mini-range{
    height:36px !important;
    align-self:center !important;
    border:0 !important;
    background:#b7b7b7 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    margin-left:-5px !important;
    margin-right:-5px !important;
    z-index:4 !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    pointer-events:none !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-range,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-range{height:27px !important;}
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb{background:#b9b9b9 !important;}
.cpf-mini-days-ranges .cpf-mini-range.source-booking{background:#748aa7 !important;}
.cpf-mini-days-ranges .cpf-mini-range.source-direct{background:#1f1f1f !important;}
.cpf-mini-days-ranges .cpf-mini-range.source-other{background:#9ca3af !important;}
.cpf-mini-days-ranges .cpf-mini-range.is-real-start{
    border-top-left-radius:999px !important;
    border-bottom-left-radius:999px !important;
    margin-left:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-real-end{
    border-top-right-radius:999px !important;
    border-bottom-right-radius:999px !important;
    margin-right:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-cut-left,
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-month{
    border-top-left-radius:0 !important;
    border-bottom-left-radius:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-cut-right,
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-month{
    border-top-right-radius:0 !important;
    border-bottom-right-radius:0 !important;
}
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-row{margin-left:-18px !important;}
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-row{margin-right:-18px !important;}
.cpf-mini-range-label{
    display:block;
    color:#fff;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    padding-left:14px;
    max-width:100%;
    text-shadow:0 1px 4px rgba(0,0,0,.35);
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover{
    color:#111827 !important;
    z-index:8 !important;
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    content:'';
    position:absolute;
    inset:5px !important;
    border:2px solid #ff3b6b !important;
    background:#fff !important;
    border-radius:999px !important;
    box-shadow:none !important;
    pointer-events:none;
    z-index:-1;
}
.cpf-mini-days-ranges .cpf-mini-day.is-conflict{
    background:#e11d48 !important;
    color:#fff !important;
    border-color:#e11d48 !important;
    z-index:9 !important;
}
.cpf-calendar-block-card .cpf-mini-range-label,
.cpf-property-card-cover .cpf-mini-range-label{display:none !important;}
.cpf-mini-conflict{color:#e11d48 !important;font-weight:600;}
@media (max-width:900px){
    .cpf-occupancy-stats{grid-template-columns:repeat(2, minmax(0, 1fr));}
    .cpf-occupancy-stat:last-child{grid-column:1 / -1;}
    .cpf-calendar-block-detail .cpf-calendar-months-2{grid-template-columns:1fr !important;}
    .cpf-calendar-block-detail .cpf-mini-calendar:nth-child(n+2){display:none !important;}
    .cpf-occupancy-calendar-section{padding:20px !important;}
    .cpf-occupancy-header h2{font-size:28px !important;}
}
@media (max-width:560px){
    .cpf-occupancy-stats{gap:10px;}
    .cpf-occupancy-stat{padding:14px 15px;min-height:82px;border-radius:14px;}
    .cpf-occupancy-stat span{font-size:12px;}
    .cpf-occupancy-stat strong{font-size:26px;}
    .cpf-mini-days-ranges{grid-auto-rows:36px !important;gap:4px !important;}
    .cpf-mini-days-ranges .cpf-mini-day{min-height:36px !important;font-size:11px !important;}
    .cpf-mini-days-ranges .cpf-mini-range{height:30px !important;}
    .cpf-mini-range-label{display:none;}
}

/* v0.3.18 — calendario propietarios refinado: barras naranja, back-to-back mejor integrado y navegación lateral */
.cpf-occupancy-calendar-section .cpf-calendar-block,
.cpf-calendar-block-card,
.cpf-property-card-cover{--mhp-occ-bar:#f97316;--mhp-occ-bar-dark:#ea580c;--mhp-occ-grid:#f3f4f6;--mhp-occ-grid-border:rgba(15,23,42,.12);}

/* Navegación lateral en detalle desktop */
.cpf-calendar-block-detail .cpf-calendar-months{
    position:relative;
    padding:0 72px;
}
.cpf-calendar-block-detail .cpf-mini-calendar:first-child .cpf-calendar-arrow{
    position:absolute;
    top:55%;
    transform:translateY(-50%);
    width:52px;
    height:52px;
    border-radius:16px;
    background:#151515 !important;
    color:#fff !important;
    box-shadow:0 14px 28px rgba(0,0,0,.18) !important;
    z-index:20;
}
.cpf-calendar-block-detail .cpf-mini-calendar:first-child .cpf-calendar-arrow:first-of-type{left:0;}
.cpf-calendar-block-detail .cpf-mini-calendar:first-child .cpf-calendar-arrow:last-of-type{right:0;}
.cpf-calendar-block-detail .cpf-mini-calendar-head{
    justify-content:center !important;
}
.cpf-calendar-block-detail .cpf-mini-calendar:first-child .cpf-mini-calendar-nav-title{position:static;}

/* Meses y cabeceras */
.cpf-calendar-block-detail .cpf-mini-calendar-head{
    margin:18px 0 18px !important;
}
.cpf-mini-calendar-head strong{
    font-weight:700 !important;
}

/* Cuadrícula más alta para que el número del día respire mejor */
.cpf-mini-days-ranges{
    grid-auto-rows:54px !important;
    gap:6px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges,
.cpf-property-card-cover .cpf-mini-days-ranges{
    grid-auto-rows:40px !important;
    gap:5px !important;
}
.cpf-mini-days-ranges .cpf-mini-day{
    min-height:54px !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    padding-top:10px !important;
    border-radius:11px !important;
    background:var(--mhp-occ-grid) !important;
    border:1px solid var(--mhp-occ-grid-border) !important;
    color:#5b5b5b !important;
    font-size:14px !important;
    font-weight:500 !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day{
    min-height:40px !important;
    padding-top:7px !important;
    font-size:12px !important;
    border-radius:9px !important;
}
.cpf-mini-days-ranges .cpf-mini-day.is-booked{
    background:var(--mhp-occ-grid) !important;
    border-color:var(--mhp-occ-grid-border) !important;
    color:#404040 !important;
}

/* Barras de reserva en naranja */
.cpf-mini-days-ranges .cpf-mini-range,
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb,
.cpf-mini-days-ranges .cpf-mini-range.source-booking,
.cpf-mini-days-ranges .cpf-mini-range.source-direct,
.cpf-mini-days-ranges .cpf-mini-range.source-other{
    background:linear-gradient(180deg, var(--mhp-occ-bar), var(--mhp-occ-bar-dark)) !important;
    border:0 !important;
    height:38px !important;
    align-self:center !important;
    box-shadow:0 8px 18px rgba(249,115,22,.20) !important;
    z-index:4 !important;
    margin-left:-10px !important;
    margin-right:-10px !important;
    border-radius:18px !important;
    overflow:visible !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-range,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-range{
    height:28px !important;
    margin-left:-8px !important;
    margin-right:-8px !important;
}
/* Si el segmento nace realmente este mes, aún se mete un poco para tocar el back-to-back */
.cpf-mini-days-ranges .cpf-mini-range.is-real-start{
    border-top-left-radius:18px !important;
    border-bottom-left-radius:18px !important;
    margin-left:-4px !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-real-end{
    border-top-right-radius:18px !important;
    border-bottom-right-radius:18px !important;
    margin-right:-4px !important;
}
/* Cuando viene de fila/mes anterior: borde recto */
.cpf-mini-days-ranges .cpf-mini-range.is-cut-left,
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-month,
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-row{
    border-top-left-radius:0 !important;
    border-bottom-left-radius:0 !important;
    margin-left:-18px !important;
}
/* Cuando continúa a la siguiente fila/mes: borde recto */
.cpf-mini-days-ranges .cpf-mini-range.is-cut-right,
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-month,
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-row{
    border-top-right-radius:0 !important;
    border-bottom-right-radius:0 !important;
    margin-right:-18px !important;
}
.cpf-mini-range-label{
    color:#fff !important;
    font-weight:700 !important;
    padding-left:18px !important;
    text-shadow:0 1px 3px rgba(0,0,0,.22) !important;
}
.cpf-calendar-block-card .cpf-mini-range-label,
.cpf-property-card-cover .cpf-mini-range-label{display:none !important;}

/* Día back-to-back más integrado: círculo encima de las barras */
.cpf-mini-days-ranges .cpf-mini-day.is-turnover{
    color:#333 !important;
    z-index:9 !important;
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    content:'';
    position:absolute;
    width:34px;
    height:34px;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    border:3px solid var(--mhp-occ-bar) !important;
    border-radius:999px !important;
    background:#fff !important;
    box-shadow:0 6px 14px rgba(249,115,22,.18) !important;
    z-index:-1;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    width:26px;
    height:26px;
    border-width:2px !important;
}

@media (max-width:900px){
    .cpf-calendar-block-detail .cpf-calendar-months{padding:0 !important;}
    .cpf-calendar-block-detail .cpf-mini-calendar:first-child .cpf-calendar-arrow{
        position:static;
        transform:none;
        width:32px;
        height:32px;
        border-radius:999px;
        box-shadow:none !important;
    }
}
@media (max-width:560px){
    .cpf-mini-days-ranges{
        grid-auto-rows:48px !important;
        gap:5px !important;
    }
    .cpf-mini-days-ranges .cpf-mini-day{
        min-height:48px !important;
        padding-top:9px !important;
        font-size:13px !important;
    }
    .cpf-mini-days-ranges .cpf-mini-range{height:34px !important;}
    .cpf-mini-range-label{display:none !important;}
}

/* v0.3.19 — carrusel sin recarga, flechas inline y barra naranja back-to-back refinada */
.cpf-calendar-block[data-cpf-preloaded="1"] .cpf-mini-calendar.is-calendar-preload{display:none !important;}
.cpf-calendar-block[data-cpf-preloaded="1"] .cpf-mini-calendar.is-calendar-preload.is-visible{display:block !important;}
.cpf-calendar-block[data-cpf-preloaded="1"] .cpf-mini-calendar:not(.is-window-start) .cpf-calendar-arrow{display:none !important;}

/* Volver a flechas dentro del encabezado, no a los laterales */
.cpf-calendar-block-detail .cpf-calendar-months{padding:0 !important;}
.cpf-calendar-block-detail .cpf-mini-calendar:first-child .cpf-calendar-arrow,
.cpf-calendar-block-detail .cpf-mini-calendar .cpf-calendar-arrow{
    position:static !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;
    width:34px !important;
    height:34px !important;
    border-radius:999px !important;
    background:#1f2933 !important;
    color:#fff !important;
    box-shadow:0 10px 22px rgba(0,0,0,.16) !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.cpf-calendar-block[data-cpf-preloaded="1"] .cpf-mini-calendar:not(.is-window-start) .cpf-calendar-arrow{display:none !important;}
.cpf-mini-calendar-nav-title{gap:12px !important;}

/* Cajas del día más altas y legibles */
.cpf-occupancy-calendar-section .cpf-mini-days-ranges,
.cpf-calendar-block-detail .cpf-mini-days-ranges{
    grid-auto-rows:58px !important;
    gap:6px !important;
    overflow:visible !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges,
.cpf-property-card-cover .cpf-mini-days-ranges{
    grid-auto-rows:42px !important;
    gap:5px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{
    min-height:58px !important;
    padding-top:11px !important;
    align-items:flex-start !important;
    justify-content:center !important;
    background:#f7f7f7 !important;
    color:#4f4f4f !important;
    border:1px solid rgba(15,23,42,.11) !important;
    border-radius:12px !important;
    font-size:14px !important;
    font-weight:500 !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day{
    min-height:42px !important;
    padding-top:8px !important;
    font-size:11px !important;
    border-radius:9px !important;
}

/* Barras de reserva en naranja, montadas un poco sobre entrada/salida */
.cpf-mini-days-ranges .cpf-mini-range,
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb,
.cpf-mini-days-ranges .cpf-mini-range.source-booking,
.cpf-mini-days-ranges .cpf-mini-range.source-direct,
.cpf-mini-days-ranges .cpf-mini-range.source-other{
    background:linear-gradient(180deg,#fb923c,#f97316) !important;
    border:0 !important;
    height:40px !important;
    align-self:center !important;
    border-radius:20px !important;
    margin-left:-13px !important;
    margin-right:-13px !important;
    box-shadow:0 10px 20px rgba(249,115,22,.22) !important;
    z-index:4 !important;
    overflow:visible !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-range,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-range{
    height:30px !important;
    margin-left:-9px !important;
    margin-right:-9px !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-real-start{
    border-top-left-radius:20px !important;
    border-bottom-left-radius:20px !important;
    margin-left:-7px !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-real-end{
    border-top-right-radius:20px !important;
    border-bottom-right-radius:20px !important;
    margin-right:-7px !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-cut-left,
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-month,
.cpf-mini-days-ranges .cpf-mini-range.continues-from-prev-row{
    border-top-left-radius:0 !important;
    border-bottom-left-radius:0 !important;
    margin-left:-24px !important;
}
.cpf-mini-days-ranges .cpf-mini-range.is-cut-right,
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-month,
.cpf-mini-days-ranges .cpf-mini-range.continues-to-next-row{
    border-top-right-radius:0 !important;
    border-bottom-right-radius:0 !important;
    margin-right:-24px !important;
}
.cpf-mini-range-label{
    color:#fff !important;
    font-weight:700 !important;
    padding-left:18px !important;
    text-shadow:0 1px 3px rgba(0,0,0,.24) !important;
}

/* Back-to-back: círculo encima donde se conectan barras */
.cpf-mini-days-ranges .cpf-mini-day.is-turnover{
    color:#333 !important;
    z-index:9 !important;
}
.cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    content:'' !important;
    position:absolute !important;
    width:36px !important;
    height:36px !important;
    left:50% !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    border:3px solid #f97316 !important;
    background:#fff !important;
    border-radius:999px !important;
    box-shadow:0 6px 14px rgba(249,115,22,.20) !important;
    z-index:-1 !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    width:27px !important;
    height:27px !important;
    border-width:2px !important;
}

@media (max-width:900px){
    .cpf-calendar-block-detail .cpf-calendar-months{padding:0 !important;}
    .cpf-calendar-block-detail .cpf-mini-calendar:first-child .cpf-calendar-arrow,
    .cpf-calendar-block-detail .cpf-mini-calendar .cpf-calendar-arrow{
        width:32px !important;
        height:32px !important;
    }
}
@media (max-width:560px){
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges,
    .cpf-calendar-block-detail .cpf-mini-days-ranges{
        grid-auto-rows:50px !important;
        gap:5px !important;
    }
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
    .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{
        min-height:50px !important;
        padding-top:10px !important;
        font-size:13px !important;
    }
    .cpf-mini-days-ranges .cpf-mini-range{height:35px !important;}
    .cpf-mini-range-label{display:none !important;}
}


/* v0.3.20 — calendario reservas refinado */
/* Números del día siempre visibles por encima de las barras */
.cpf-mini-days-ranges .cpf-mini-day{
    position:relative !important;
    z-index:8 !important;
    align-items:flex-start !important;
    justify-content:center !important;
    padding-top:10px !important;
}
.cpf-mini-days-ranges .cpf-mini-range{
    z-index:3 !important;
}
.cpf-mini-days-ranges .cpf-mini-range .cpf-mini-range-label{
    position:relative !important;
    z-index:4 !important;
}

/* Eliminar marcador circular de back to back */
.cpf-mini-days-ranges .cpf-mini-day.is-turnover:after,
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    display:none !important;
    content:none !important;
}

/* Barras naranjas suaves */
.cpf-mini-days-ranges .cpf-mini-range,
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb,
.cpf-mini-days-ranges .cpf-mini-range.source-booking,
.cpf-mini-days-ranges .cpf-mini-range.source-direct,
.cpf-mini-days-ranges .cpf-mini-range.source-other{
    background:#f97316 !important;
    box-shadow:none !important;
}

/* Etiqueta en español con avatar genérico */
.cpf-mini-range-label{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    min-height:100% !important;
    padding:0 14px !important;
    color:#fff !important;
    font-weight:600 !important;
    font-size:12px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}
.cpf-mini-range-label::before{
    content:'👤' !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:22px !important;
    height:22px !important;
    min-width:22px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.22) !important;
    color:#fff !important;
    font-size:12px !important;
    line-height:1 !important;
}

/* Mostrar también la etiqueta en el calendario de la tarjeta principal */
.cpf-calendar-block-card .cpf-mini-range-label,
.cpf-property-card-cover .cpf-mini-range-label{
    display:flex !important;
    font-size:10px !important;
    gap:6px !important;
    padding:0 8px !important;
}
.cpf-calendar-block-card .cpf-mini-range-label::before,
.cpf-property-card-cover .cpf-mini-range-label::before{
    width:16px !important;
    height:16px !important;
    min-width:16px !important;
    font-size:9px !important;
}

/* Celdas más altas como referencia visual del ejemplo */
.cpf-occupancy-calendar-section .cpf-mini-days-ranges,
.cpf-calendar-block-detail .cpf-mini-days-ranges{
    grid-auto-rows:64px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{
    min-height:64px !important;
    font-size:14px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-range,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-range{
    height:38px !important;
    align-self:center !important;
}

/* Calendario de tarjeta principal: un poco más compacto pero con etiqueta visible */
.cpf-calendar-block-card .cpf-mini-days-ranges,
.cpf-property-card-cover .cpf-mini-days-ranges{
    grid-auto-rows:46px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day{
    min-height:46px !important;
    font-size:11px !important;
    padding-top:8px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-range,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-range{
    height:28px !important;
}

@media (max-width:560px){
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges,
    .cpf-calendar-block-detail .cpf-mini-days-ranges{grid-auto-rows:58px !important;}
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
    .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{min-height:58px !important;}
    .cpf-mini-range-label{font-size:11px !important; padding:0 10px !important;}
    .cpf-mini-range-label::before{width:18px !important;height:18px !important;min-width:18px !important;font-size:10px !important;}
}


/* v0.3.21 — calendario: barras encima de celdas, números arriba y etiqueta R Reservado */
.cpf-mini-days-ranges{
    isolation:isolate !important;
}
.cpf-mini-days-ranges .cpf-mini-day-bg{
    grid-column:var(--cpf-col);
    grid-row:var(--cpf-row);
    position:relative;
    z-index:1;
    min-height:64px;
    border-radius:12px;
    background:#f7f7f7;
    border:1px solid rgba(15,23,42,.11);
    box-sizing:border-box;
    pointer-events:none;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day-bg{
    min-height:46px;
    border-radius:9px;
}
.cpf-mini-days-ranges .cpf-mini-day-bg.is-conflict{
    background:#ffe4e6;
    border-color:#e11d48;
}

/* la barra ahora sí pasa por encima del recuadro */
.cpf-mini-days-ranges .cpf-mini-range,
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb,
.cpf-mini-days-ranges .cpf-mini-range.source-booking,
.cpf-mini-days-ranges .cpf-mini-range.source-direct,
.cpf-mini-days-ranges .cpf-mini-range.source-other{
    z-index:4 !important;
    background:#f97316 !important;
    height:38px !important;
    align-self:center !important;
    box-shadow:none !important;
}

/* el número queda por encima de la barra, sin tapar la reserva */
.cpf-mini-days-ranges .cpf-mini-day{
    z-index:8 !important;
    background:transparent !important;
    border-color:transparent !important;
    box-shadow:none !important;
    text-shadow:none !important;
    color:#263238 !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    padding-top:9px !important;
    pointer-events:none !important;
}
.cpf-mini-days-ranges .cpf-mini-day-number{
    position:relative;
    z-index:9;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    line-height:18px;
    font-weight:600;
}
.cpf-mini-days-ranges .cpf-mini-day.is-conflict .cpf-mini-day-number{
    color:#fff;
    background:#e11d48;
    border-radius:999px;
    min-width:22px;
    height:22px;
}

/* sin círculo de back-to-back */
.cpf-mini-days-ranges .cpf-mini-day.is-turnover:after,
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day.is-turnover:after{
    display:none !important;
    content:none !important;
}

/* etiqueta: R + Reservado, sin avatar */
.cpf-mini-range-label{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    padding:0 14px !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:600 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    text-shadow:none !important;
}
.cpf-mini-range-label::before{
    content:'R' !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    height:auto !important;
    min-width:auto !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-weight:800 !important;
    font-size:13px !important;
    line-height:1 !important;
}
.cpf-calendar-block-card .cpf-mini-range-label,
.cpf-property-card-cover .cpf-mini-range-label{
    display:flex !important;
    font-size:10px !important;
    gap:5px !important;
    padding:0 8px !important;
}
.cpf-calendar-block-card .cpf-mini-range-label::before,
.cpf-property-card-cover .cpf-mini-range-label::before{
    font-size:11px !important;
}

@media (max-width:560px){
    .cpf-mini-days-ranges .cpf-mini-day-bg{min-height:58px;}
    .cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day-bg,
    .cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day-bg{min-height:46px;}
    .cpf-mini-range-label{font-size:11px !important; padding:0 10px !important;}
    .cpf-mini-range-label::before{font-size:12px !important;}
}

/* v0.3.22 — ajuste real de capas: fondo atrás, barra al centro, número arriba */
.cpf-mini-days-ranges .cpf-mini-day-bg{
    position:relative !important;
    z-index:1 !important;
}
.cpf-mini-days-ranges .cpf-mini-range,
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb,
.cpf-mini-days-ranges .cpf-mini-range.source-booking,
.cpf-mini-days-ranges .cpf-mini-range.source-direct,
.cpf-mini-days-ranges .cpf-mini-range.source-other{
    position:relative !important;
    z-index:4 !important;
    align-self:start !important;
    margin-top:24px !important;
    height:30px !important;
    border-radius:18px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges,
.cpf-calendar-block-detail .cpf-mini-days-ranges{
    grid-auto-rows:70px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day-bg{
    min-height:70px !important;
    border-radius:14px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{
    position:relative !important;
    z-index:7 !important;
    min-height:70px !important;
    align-items:flex-start !important;
    justify-content:center !important;
    padding-top:10px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day-number,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day-number{
    position:relative !important;
    z-index:8 !important;
    font-weight:700 !important;
    line-height:1 !important;
}

/* tarjetas: misma lógica, pero más compacto */
.cpf-calendar-block-card .cpf-mini-days-ranges,
.cpf-property-card-cover .cpf-mini-days-ranges{
    grid-auto-rows:52px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day-bg{
    min-height:52px !important;
    border-radius:10px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-range,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-range{
    position:relative !important;
    z-index:4 !important;
    align-self:start !important;
    margin-top:18px !important;
    height:24px !important;
    border-radius:14px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day{
    position:relative !important;
    z-index:7 !important;
    min-height:52px !important;
    padding-top:7px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day-number,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day-number{
    position:relative !important;
    z-index:8 !important;
    line-height:1 !important;
}

/* etiqueta final: R Reservado */
.cpf-mini-range-label{
    gap:6px !important;
}
.cpf-mini-range-label::before{
    content:'R' !important;
    width:auto !important;
    height:auto !important;
    min-width:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    font-size:13px !important;
    font-weight:800 !important;
}

@media (max-width:560px){
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges,
    .cpf-calendar-block-detail .cpf-mini-days-ranges{grid-auto-rows:64px !important;}
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day-bg,
    .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day-bg{min-height:64px !important;}
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
    .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{min-height:64px !important;}
    .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-range,
    .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-range{margin-top:22px !important;height:28px !important;}
}

/* v0.3.23 — forzar orden visual real: fondo atrás, barra encima, número arriba */
.cpf-mini-days-ranges{ position:relative !important; isolation:isolate !important; }
.cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-mini-days-ranges .cpf-mini-range,
.cpf-mini-days-ranges .cpf-mini-day{ display:block !important; }

.cpf-mini-days-ranges .cpf-mini-day-bg{
  position:relative !important;
  z-index:1 !important;
}
.cpf-mini-days-ranges .cpf-mini-range,
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb,
.cpf-mini-days-ranges .cpf-mini-range.source-booking,
.cpf-mini-days-ranges .cpf-mini-range.source-direct,
.cpf-mini-days-ranges .cpf-mini-range.source-other{
  position:relative !important;
  z-index:20 !important;
  transform:translateZ(0) !important;
  will-change:transform !important;
}
.cpf-mini-days-ranges .cpf-mini-day{
  position:relative !important;
  z-index:30 !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
.cpf-mini-days-ranges .cpf-mini-day-number{
  position:relative !important;
  z-index:31 !important;
}

/* en detalle y ocupación: día más alto para que el número viva arriba de la barra */
.cpf-occupancy-calendar-section .cpf-mini-days-ranges,
.cpf-calendar-block-detail .cpf-mini-days-ranges{
  grid-auto-rows:78px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{
  min-height:78px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{
  padding-top:8px !important;
}
.cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-range,
.cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-range{
  align-self:start !important;
  margin-top:30px !important;
  height:34px !important;
}

/* tarjetas, misma idea en compacto */
.cpf-calendar-block-card .cpf-mini-days-ranges,
.cpf-property-card-cover .cpf-mini-days-ranges{
  grid-auto-rows:58px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day-bg,
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day{
  min-height:58px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-day,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-day{
  padding-top:7px !important;
}
.cpf-calendar-block-card .cpf-mini-days-ranges .cpf-mini-range,
.cpf-property-card-cover .cpf-mini-days-ranges .cpf-mini-range{
  align-self:start !important;
  margin-top:22px !important;
  height:26px !important;
}

@media (max-width:560px){
  .cpf-occupancy-calendar-section .cpf-mini-days-ranges,
  .cpf-calendar-block-detail .cpf-mini-days-ranges{grid-auto-rows:72px !important;}
  .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day-bg,
  .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day-bg,
  .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-day,
  .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-day{min-height:72px !important;}
  .cpf-occupancy-calendar-section .cpf-mini-days-ranges .cpf-mini-range,
  .cpf-calendar-block-detail .cpf-mini-days-ranges .cpf-mini-range{margin-top:28px !important;height:32px !important;}
}

/* v0.3.30 — limpiar histórico Andrea, diferenciar reservas manuales y ajustar calendario en tarjetas */
.mrp-manual-reservation-panel{
    border:1px solid rgba(249,115,22,.28) !important;
    background:linear-gradient(135deg, rgba(249,115,22,.08), rgba(255,255,255,.96) 42%) !important;
    box-shadow:0 18px 50px rgba(249,115,22,.08) !important;
    position:relative;
    overflow:hidden;
}
.mrp-manual-reservation-panel:before{
    content:'';
    position:absolute;
    inset:0 auto 0 0;
    width:6px;
    background:#f97316;
}
.mrp-manual-panel-kicker{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border-radius:999px;
    padding:7px 12px;
    margin-bottom:8px;
    background:#fff4ed;
    color:#c2410c;
    border:1px solid rgba(249,115,22,.22);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.mrp-manual-reservation-panel h2{margin-top:0 !important;}
.mrp-manual-reservation-panel .button-primary,
.mrp-manual-reservation-panel .button.button-primary{
    background:#f97316 !important;
    border-color:#f97316 !important;
    border-radius:999px !important;
    padding-left:22px !important;
    padding-right:22px !important;
}
.cpf-card-calendar-heading{
    margin:20px 0 10px;
    color:#fff;
    font-size:14px;
    font-weight:800;
    letter-spacing:-.02em;
}
.cpf-property-card-cover .cpf-calendar-block,
.cpf-calendar-block-card{
    margin-top:8px !important;
    margin-bottom:0 !important;
}
.cpf-property-card-cover .cpf-card-button{
    display:flex !important;
    margin:26px auto 0 !important;
    width:max-content !important;
    min-width:150px;
    text-align:center;
}
@media (max-width:560px){
    .cpf-card-calendar-heading{font-size:13px;margin-top:18px;}
    .cpf-property-card-cover .cpf-card-button{margin-top:26px !important;}
}


/* v0.3.31 — color de barras por canal */
:root{
    --mhp-airbnb:#ff385c;
    --mhp-booking:#006ce4;
    --mhp-direct:#22c55e;
    --mhp-other:#94a3b8;
}
.cpf-mini-days-ranges .cpf-mini-range.source-airbnb{
    --cpf-channel-color:var(--mhp-airbnb);
    background:var(--mhp-airbnb) !important;
    box-shadow:0 10px 22px rgba(255,56,92,.22) !important;
}
.cpf-mini-days-ranges .cpf-mini-range.source-booking{
    --cpf-channel-color:var(--mhp-booking);
    background:var(--mhp-booking) !important;
    box-shadow:0 10px 22px rgba(0,108,228,.20) !important;
}
.cpf-mini-days-ranges .cpf-mini-range.source-direct{
    --cpf-channel-color:var(--mhp-direct);
    background:var(--mhp-direct) !important;
    box-shadow:0 10px 22px rgba(34,197,94,.20) !important;
}
.cpf-mini-days-ranges .cpf-mini-range.source-other{
    --cpf-channel-color:var(--mhp-other);
    background:var(--mhp-other) !important;
    box-shadow:0 10px 22px rgba(148,163,184,.18) !important;
}
.cpf-mini-range-label::before{
    color:var(--cpf-channel-color, #f97316) !important;
}
.cpf-mini-calendar-legend{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    color:#64748b;
    font-size:12px;
    font-weight:700;
}
.cpf-mini-calendar-legend span{
    display:inline-flex !important;
    align-items:center;
    gap:6px;
    color:#64748b !important;
    font-size:12px !important;
    line-height:1 !important;
}
.cpf-mini-calendar-legend i{
    width:8px !important;
    height:8px !important;
    min-width:8px !important;
    border-radius:999px !important;
    display:inline-block !important;
    background:#f97316 !important;
}
.cpf-mini-calendar-legend .cpf-legend-airbnb i{background:var(--mhp-airbnb) !important;}
.cpf-mini-calendar-legend .cpf-legend-booking i{background:var(--mhp-booking) !important;}
.cpf-mini-calendar-legend .cpf-legend-direct i{background:var(--mhp-direct) !important;}
@media (max-width:560px){
    .cpf-mini-calendar-legend{gap:8px;font-size:11px;}
    .cpf-mini-calendar-legend span{font-size:11px !important;}
}

/* v0.3.32 — Chat Anfitrión */
.mhp-chat-wrap .description{color:#64748b}.mhp-chat-grid{display:grid;grid-template-columns:320px minmax(420px,1fr) 330px;gap:18px;align-items:stretch}.mhp-chat-list,.mhp-chat-panel,.mhp-chat-context,.mhp-context-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;box-shadow:0 18px 50px rgba(15,23,42,.08)}.mhp-chat-list{padding:14px;max-height:75vh;overflow:auto}.mhp-chat-list-head{display:flex;align-items:center;justify-content:space-between;margin:4px 4px 12px}.mhp-chat-list-head strong{font-size:16px}.mhp-thread-item{display:block;text-decoration:none;color:#0f172a;border:1px solid rgba(15,23,42,.08);background:#f8fafc;border-radius:16px;padding:13px;margin-bottom:10px;transition:.18s}.mhp-thread-item:hover,.mhp-thread-item.is-active{background:#111827;color:#fff;border-color:#111827;transform:translateY(-1px)}.mhp-thread-item strong{display:block;font-size:14px}.mhp-thread-item span{display:block;color:#64748b;font-size:12px;margin-top:4px}.mhp-thread-item small{display:block;color:#64748b;font-size:11px;margin-top:4px}.mhp-thread-item em{display:inline-block;margin-top:8px;font-style:normal;color:#f97316;font-weight:800;font-size:11px}.mhp-thread-item.is-active span,.mhp-thread-item.is-active small,.mhp-thread-item:hover span,.mhp-thread-item:hover small{color:#cbd5e1}.mhp-chat-panel{display:flex;flex-direction:column;min-height:70vh;overflow:hidden}.mhp-chat-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid rgba(15,23,42,.08);background:#fff}.mhp-chat-header span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#f97316;font-weight:900}.mhp-chat-header h2{margin:2px 0 0;font-size:24px}.mhp-chat-header>strong{background:#ecfdf5;color:#047857;padding:8px 12px;border-radius:999px;font-size:12px}.mhp-chat-messages{flex:1;overflow:auto;padding:22px;background:linear-gradient(180deg,#f8fafc,#eef2f7)}.mhp-bubble{max-width:78%;margin:0 0 14px;padding:12px 14px;border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.06)}.mhp-bubble small{display:block;color:#64748b;font-size:11px;margin-bottom:6px}.mhp-bubble p{margin:0;color:#111827;line-height:1.45}.mhp-bubble.is-host{margin-left:auto;background:#111827;color:#fff;border-bottom-right-radius:6px}.mhp-bubble.is-host p{color:#fff}.mhp-bubble.is-guest{border-bottom-left-radius:6px}.mhp-chat-reply-form{display:grid;grid-template-columns:1fr auto;gap:10px;padding:16px;border-top:1px solid rgba(15,23,42,.08);background:#fff}.mhp-chat-reply-form textarea{border-radius:16px;border:1px solid #cbd5e1;padding:12px;resize:vertical}.mhp-chat-reply-form .button{border-radius:999px;align-self:end;min-height:42px}.mhp-chat-context{padding:0;overflow:auto;max-height:75vh}.mhp-context-card{box-shadow:none;border:0;padding:18px;background:transparent}.mhp-context-card h3{margin-top:0}.mhp-context-card dl{display:grid;gap:10px;margin:0 0 14px}.mhp-context-card dl div{padding:10px 12px;border-radius:14px;background:#f8fafc;border:1px solid rgba(15,23,42,.06)}.mhp-context-card dt{font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:900;color:#64748b}.mhp-context-card dd{margin:3px 0 0;color:#0f172a;font-weight:800}.mhp-context-card input{width:100%;border-radius:12px;border:1px solid #cbd5e1;padding:9px}.mhp-chat-empty{padding:40px}.mhp-chat-tabs-wrap{margin-top:18px}.mhp-admin-tabs-head span{text-transform:uppercase}.mhp-host-chat-layout{display:grid;grid-template-columns:300px 1fr 320px;gap:18px}.mhp-host-portal-shell{font-family:Poppins,system-ui,sans-serif;min-height:100vh;background:#0b0b0c;color:#fff;padding:28px}.mhp-host-portal-shell>header{max-width:1280px;margin:0 auto 22px;display:flex;justify-content:space-between;align-items:center;background:#111;border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:18px 22px}.mhp-host-chat-layout{max-width:1280px;margin:0 auto}.mhp-host-portal-shell .mhp-chat-list,.mhp-host-portal-shell .mhp-chat-panel,.mhp-host-portal-shell .mhp-chat-context{background:#101010;border-color:rgba(255,255,255,.08)}.mhp-host-portal-shell .mhp-chat-header{background:#101010;border-color:rgba(255,255,255,.08)}.mhp-host-portal-shell .mhp-chat-messages{background:#050505}.mhp-host-portal-shell .mhp-thread-item{background:#1a1a1a;border-color:rgba(255,255,255,.08);color:#fff}.mhp-host-portal-shell .mhp-context-card dd{color:#fff}.mhp-host-portal-shell .mhp-context-card dl div{background:#181818;border-color:rgba(255,255,255,.08)}@media(max-width:1100px){.mhp-chat-grid,.mhp-host-chat-layout{grid-template-columns:1fr}.mhp-chat-list,.mhp-chat-context{max-height:none}.mhp-chat-panel{min-height:60vh}}

/* v0.3.33 — Chat huésped estilo app, contexto en popup móvil y sin header/footer */
.mhp-guest-app{font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;min-height:100vh;background:linear-gradient(180deg,#f8fafc,#eef2f7)!important;color:#0f172a!important;padding:18px!important;box-sizing:border-box}.mhp-guest-topbar{max-width:1180px;margin:0 auto 16px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;background:rgba(255,255,255,.92);border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:14px 16px;box-shadow:0 18px 50px rgba(15,23,42,.08);position:sticky;top:12px;z-index:30;backdrop-filter:blur(12px)}.mhp-guest-back{width:42px;height:42px;border-radius:999px;background:#111827;color:#fff!important;text-decoration:none!important;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800}.mhp-guest-title strong{display:block;font-size:18px;letter-spacing:-.03em}.mhp-guest-title span{display:block;color:#64748b;font-size:12px;margin-top:2px}.mhp-guest-details-btn,.mhp-guest-quote-link,.mhp-guest-context-action{border:0;border-radius:999px;background:#f97316;color:#fff!important;text-decoration:none!important;font-weight:800;padding:11px 16px;box-shadow:0 12px 28px rgba(249,115,22,.22);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.mhp-guest-chat-layout{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:stretch}.mhp-guest-chat-panel,.mhp-guest-context-panel{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:26px;box-shadow:0 18px 55px rgba(15,23,42,.08);overflow:hidden}.mhp-guest-chat-panel{display:flex;flex-direction:column;min-height:calc(100vh - 128px)}.mhp-guest-chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid rgba(15,23,42,.08);background:#fff}.mhp-guest-chat-head span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#f97316;font-weight:900}.mhp-guest-chat-head h1{font-size:28px;margin:2px 0 0;letter-spacing:-.05em;line-height:1}.mhp-guest-chat-head p{margin:6px 0 0;color:#64748b;font-size:13px}.mhp-guest-message-list{flex:1;min-height:360px;max-height:none;overflow:auto;padding:22px!important;background:linear-gradient(180deg,#f8fafc,#eef2f7)!important}.mhp-guest-app .mhp-bubble{max-width:min(78%,620px);margin-bottom:14px}.mhp-guest-app .mhp-bubble.is-host{background:#111827!important;color:#fff!important;border-bottom-right-radius:6px}.mhp-guest-app .mhp-bubble.is-host p{color:#fff!important}.mhp-guest-app .mhp-bubble.is-guest{background:#fff;border-bottom-left-radius:6px}.mhp-guest-reply-form{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;padding:16px!important;background:#fff!important;border-top:1px solid rgba(15,23,42,.08)}.mhp-guest-reply-form textarea{border-radius:18px!important;border:1px solid #cbd5e1!important;padding:14px 16px!important;resize:none!important;min-height:52px!important;font-family:inherit!important}.mhp-guest-reply-form button{border:0;border-radius:999px;background:#f97316;color:#fff;font-weight:900;padding:0 22px;min-height:52px;cursor:pointer}.mhp-guest-context-panel{padding:0;overflow:auto}.mhp-guest-context-card{padding:20px}.mhp-guest-context-card h2{margin:0;font-size:21px;letter-spacing:-.04em}.mhp-guest-context-card p{margin:8px 0 16px;color:#64748b;font-size:13px}.mhp-guest-context-card dl{display:grid;gap:10px;margin:0 0 16px}.mhp-guest-context-card dl div{padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid rgba(15,23,42,.07)}.mhp-guest-context-card dt{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#64748b;font-weight:900}.mhp-guest-context-card dd{margin:4px 0 0;font-weight:900;color:#0f172a;word-break:break-word}.mhp-guest-details-modal{display:none}.mhp-quote-chat-card textarea{font-family:inherit}.mhp-quote-chat-card .mrp-secondary-button{background:#111827!important;color:#fff!important}.mhp-public-chat-shell.mhp-guest-app .mhp-public-chat-card{max-width:980px;margin:auto}.mhp-quick-chat-card,.mhp-quote-chat-card{border-radius:28px!important}.mhp-unit-choice{transition:.18s}.mhp-unit-choice:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.10)}@media(max-width:900px){.mhp-guest-app{padding:0;background:#fff!important}.mhp-guest-topbar{position:sticky;top:0;border-radius:0;margin:0;box-shadow:0 8px 25px rgba(15,23,42,.08);grid-template-columns:auto 1fr auto}.mhp-guest-back{background:transparent;color:#111827!important;font-size:30px}.mhp-guest-title strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mhp-guest-title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mhp-guest-details-btn{background:#f3f4f6;color:#111827!important;box-shadow:none}.mhp-guest-chat-layout{display:block;margin:0}.mhp-guest-context-panel{display:none}.mhp-guest-chat-panel{min-height:calc(100vh - 71px);border:0;border-radius:0;box-shadow:none}.mhp-guest-chat-head{padding:16px 18px}.mhp-guest-chat-head h1{font-size:22px}.mhp-guest-chat-head p{font-size:12px}.mhp-guest-quote-link{display:none}.mhp-guest-message-list{padding:16px!important}.mhp-guest-app .mhp-bubble{max-width:86%}.mhp-guest-reply-form{position:sticky;bottom:0;grid-template-columns:auto 52px!important;padding:10px 12px!important;box-shadow:0 -8px 24px rgba(15,23,42,.08)}.mhp-guest-reply-form button{width:52px;padding:0;font-size:0}.mhp-guest-reply-form button:before{content:'↑';font-size:22px}.mhp-guest-details-modal.is-open{display:block;position:fixed;inset:0;z-index:99999}.mhp-guest-details-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45)}.mhp-guest-details-sheet{position:absolute;left:0;right:0;bottom:0;max-height:82vh;overflow:auto;background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.22);padding-top:8px}.mhp-guest-details-close{position:absolute;right:16px;top:14px;width:36px;height:36px;border:0;border-radius:999px;background:#f3f4f6;font-size:24px;line-height:1;cursor:pointer}.mhp-guest-details-sheet .mhp-guest-context-card{padding:28px 18px 22px}.mhp-quick-fields{grid-template-columns:1fr 1fr!important}.mhp-quick-fields label:first-child{grid-column:1/-1}.mhp-unit-choice-grid{grid-template-columns:1fr!important}.mhp-quote-chat-card textarea{min-height:70px}}@media(max-width:480px){.mhp-quick-fields{grid-template-columns:1fr!important}.mhp-guest-title span{max-width:180px}.mhp-guest-chat-head{align-items:flex-start}.mhp-guest-chat-head h1{font-size:20px}.mhp-guest-reply-form textarea{min-height:50px!important}}

/* v0.3.34 — Chat huésped: foto de propiedad, live polling y correo opcional */
.mhp-guest-topbar{
    grid-template-columns:auto auto 1fr auto !important;
}
.mhp-guest-property-avatar{
    width:54px;
    height:54px;
    border-radius:999px;
    object-fit:cover;
    border:3px solid #fff;
    box-shadow:0 10px 24px rgba(15,23,42,.18);
    background:#111827;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    flex:0 0 auto;
}
.mhp-guest-property-avatar-fallback{
    background:linear-gradient(135deg,#111827,#f97316);
}
.mhp-guest-context-image{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:20px;
    margin-bottom:16px;
    box-shadow:0 16px 34px rgba(15,23,42,.14);
}
.mhp-guest-email-form{
    display:grid;
    grid-template-columns:auto minmax(180px,1fr) auto;
    align-items:center;
    gap:10px;
    padding:12px 18px;
    border-bottom:1px solid rgba(15,23,42,.08);
    background:#fff7ed;
}
.mhp-guest-email-form span{
    color:#9a3412;
    font-weight:800;
    font-size:12px;
}
.mhp-guest-email-form input{
    min-height:38px;
    border-radius:999px;
    border:1px solid rgba(249,115,22,.28);
    padding:0 14px;
    font-family:inherit;
    background:#fff;
}
.mhp-guest-email-form button{
    border:0;
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    background:#f97316;
    color:#fff;
    font-weight:900;
    cursor:pointer;
}
.mhp-guest-email-form small{
    grid-column:1 / -1;
    color:#047857;
    font-weight:700;
}
.mhp-guest-email-form.is-saved{
    display:none;
}
.mhp-chat-reply-form button:disabled,
.mhp-guest-reply-form button:disabled,
.mhp-guest-email-form button:disabled{
    opacity:.65;
    cursor:progress;
}
.mhp-chat-panel[data-mhp-host-live] .mhp-chat-messages,
.mhp-guest-app[data-mhp-guest-live] .mhp-guest-message-list{
    scroll-behavior:smooth;
}
@media(max-width:900px){
    .mhp-guest-topbar{
        grid-template-columns:auto auto 1fr auto !important;
        gap:10px !important;
        padding:12px !important;
    }
    .mhp-guest-property-avatar{
        width:46px;
        height:46px;
        border-width:2px;
    }
    .mhp-guest-email-form{
        grid-template-columns:1fr auto;
        padding:10px 14px;
    }
    .mhp-guest-email-form span{
        grid-column:1 / -1;
    }
    .mhp-guest-email-form input{
        min-width:0;
    }
}
@media(max-width:480px){
    .mhp-guest-property-avatar{
        width:42px;
        height:42px;
    }
    .mhp-guest-title strong{
        max-width:170px;
    }
    .mhp-guest-email-form{
        grid-template-columns:1fr;
    }
    .mhp-guest-email-form button{
        width:100%;
    }
}

/* v0.3.35 — Chat: marca por propiedad, enter en desktop, sin zoom móvil y escribiendo */
.mhp-guest-app{
    --mhp-chat-brand:#f97316;
}
.mhp-guest-app .mhp-guest-details-btn,
.mhp-guest-app .mhp-guest-quote-link,
.mhp-guest-app .mhp-guest-context-action,
.mhp-guest-app .mhp-guest-reply-form button,
.mhp-guest-app .mhp-guest-email-form button{
    background:var(--mhp-chat-brand) !important;
    box-shadow:0 12px 28px color-mix(in srgb, var(--mhp-chat-brand) 28%, transparent) !important;
}
.mhp-guest-app .mhp-guest-chat-head span,
.mhp-guest-app .mhp-context-card dt,
.mhp-guest-app .mhp-guest-context-card dt{
    color:var(--mhp-chat-brand) !important;
}
.mhp-guest-app .mhp-guest-property-avatar{
    border-color:#fff !important;
    box-shadow:0 12px 32px color-mix(in srgb, var(--mhp-chat-brand) 20%, rgba(15,23,42,.20)) !important;
}
.mhp-guest-app .mhp-guest-property-avatar-fallback{
    background:linear-gradient(135deg,#111827,var(--mhp-chat-brand)) !important;
}
.mhp-guest-app .mhp-guest-topbar{
    border-color:color-mix(in srgb, var(--mhp-chat-brand) 15%, rgba(15,23,42,.08)) !important;
}
.mhp-typing-indicator{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 16px;
    color:#64748b;
    background:rgba(248,250,252,.92);
    border-top:1px solid rgba(15,23,42,.06);
    font-size:13px;
    font-weight:700;
}
.mhp-typing-indicator[hidden]{display:none!important;}
.mhp-guest-typing-indicator{
    background:#f8fafc;
    border-top:0;
}
.mhp-host-portal-shell .mhp-typing-indicator{
    background:#0f172a;
    color:#cbd5e1;
    border-color:rgba(255,255,255,.08);
}
.mhp-chat-reply-form textarea,
.mhp-guest-reply-form textarea,
.mhp-guest-email-form input,
.mhp-quick-chat-form input,
.mhp-quick-chat-form select,
.mhp-quick-chat-form textarea,
.mhp-quote-chat-card textarea,
.mhp-quote-chat-card input,
.mhp-quote-chat-card select{
    font-size:16px !important;
}
@media(max-width:900px){
    .mhp-guest-app input,
    .mhp-guest-app textarea,
    .mhp-guest-app select,
    .mhp-quick-chat-section input,
    .mhp-quick-chat-section textarea,
    .mhp-quick-chat-section select,
    .mhp-quote-chat-card input,
    .mhp-quote-chat-card textarea,
    .mhp-quote-chat-card select{
        font-size:16px !important;
        -webkit-text-size-adjust:100%;
    }
    .mhp-guest-reply-form textarea{
        font-size:16px !important;
        line-height:1.35 !important;
    }
    .mhp-guest-title strong{max-width:210px;}
    .mhp-guest-chat-head h1{display:none;}
    .mhp-guest-chat-head p{margin-top:0;}
    .mhp-typing-indicator{font-size:13px;min-height:38px;}
}

/* v0.3.36 — Chat estable tipo app: scroll interno, live polling robusto y experiencia móvil */
html.mhp-chat-fullscreen,
html.mhp-chat-fullscreen body.mhp-chat-fullscreen-body{
    height:100% !important;
    overflow:hidden !important;
    overscroll-behavior:none !important;
}
body.mhp-chat-fullscreen-body{
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-app{
    height:var(--mhp-chat-vh,100dvh) !important;
    min-height:0 !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
    padding:14px !important;
    box-sizing:border-box !important;
}
.mhp-guest-topbar{
    flex:0 0 auto !important;
}
.mhp-guest-chat-layout{
    flex:1 1 auto !important;
    min-height:0 !important;
    width:100% !important;
}
.mhp-guest-chat-panel{
    height:100% !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
}
.mhp-guest-chat-head,
.mhp-guest-email-form,
.mhp-typing-indicator,
.mhp-guest-reply-form{
    flex:0 0 auto !important;
}
.mhp-guest-message-list,
.mhp-public-chat-body.mhp-guest-message-list{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    scroll-behavior:smooth !important;
}
.mhp-guest-reply-form{
    position:relative !important;
    bottom:auto !important;
    z-index:20 !important;
}
.mhp-guest-reply-form textarea{
    max-height:120px !important;
    overflow-y:auto !important;
}
.mhp-typing-indicator{
    min-height:36px !important;
    padding:8px 14px !important;
    text-align:center !important;
    font-size:13px !important;
}
.mhp-chat-panel[data-mhp-host-live]{
    height:72vh !important;
    min-height:520px !important;
    display:flex !important;
    flex-direction:column !important;
}
.mhp-chat-panel[data-mhp-host-live] .mhp-chat-messages{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
}
.mhp-host-portal-shell{
    height:100vh !important;
    min-height:0 !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
}
.mhp-host-portal-shell > header{
    flex:0 0 auto !important;
}
.mhp-host-chat-layout{
    flex:1 1 auto !important;
    min-height:0 !important;
}
.mhp-host-portal-shell .mhp-chat-list,
.mhp-host-portal-shell .mhp-chat-context{
    height:100% !important;
    max-height:none !important;
    overflow-y:auto !important;
}
.mhp-host-portal-shell .mhp-chat-panel[data-mhp-host-live]{
    height:100% !important;
    min-height:0 !important;
}
@media(max-width:900px){
    body.mhp-chat-fullscreen-body .mhp-guest-app{
        padding:0 !important;
        background:#fff !important;
    }
    .mhp-guest-topbar{
        position:relative !important;
        top:auto !important;
        margin:0 !important;
        border-radius:0 !important;
        min-height:72px !important;
    }
    .mhp-guest-chat-layout{
        display:block !important;
    }
    .mhp-guest-chat-panel{
        height:calc(var(--mhp-chat-vh,100dvh) - 72px) !important;
        min-height:0 !important;
        border-radius:0 !important;
    }
    .mhp-guest-chat-head{
        display:none !important;
    }
    .mhp-guest-message-list{
        padding:18px 14px !important;
    }
    .mhp-guest-app .mhp-bubble{
        max-width:86% !important;
    }
    .mhp-guest-reply-form{
        grid-template-columns:1fr 52px !important;
        padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        box-shadow:0 -10px 28px rgba(15,23,42,.10) !important;
        background:#fff !important;
    }
    .mhp-typing-indicator{
        min-height:34px !important;
        padding:7px 12px !important;
    }
    .mhp-host-portal-shell{
        overflow:auto !important;
        height:auto !important;
        min-height:100vh !important;
    }
    .mhp-host-chat-layout{
        display:grid !important;
        grid-template-columns:1fr !important;
    }
    .mhp-chat-panel[data-mhp-host-live]{
        height:calc(100vh - 140px) !important;
        min-height:520px !important;
    }
}

/* v0.3.37 — Chat live fix: envío AJAX sin recarga, scroll siempre al último mensaje e indicador escribiendo visible */
.mhp-guest-reply-form button,
.mhp-chat-reply-form button{
    touch-action:manipulation;
}
.mhp-guest-message-list,
.mhp-chat-panel[data-mhp-host-live] .mhp-chat-messages{
    scroll-padding-bottom:28px;
}
.mhp-typing-indicator.is-visible{
    display:flex !important;
    opacity:1 !important;
    visibility:visible !important;
}
.mhp-guest-typing-indicator.is-visible{
    position:relative;
    z-index:18;
    margin:0;
    background:#f8fafc;
    color:#64748b;
}
@media(max-width:900px){
    .mhp-guest-chat-panel{
        overflow:hidden !important;
    }
    .mhp-guest-message-list{
        padding-bottom:22px !important;
    }
    .mhp-guest-reply-form{
        flex:0 0 auto !important;
    }
    .mhp-typing-indicator.is-visible{
        flex:0 0 auto !important;
    }
}

/* v0.3.38 — correcciones chat huésped: marca real, layout estable, detalles/reservar visible y live sin salto */
.mhp-guest-app{
    --mhp-chat-brand:#173d2b;
    height:var(--mhp-chat-vh,100dvh) !important;
    min-height:0 !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
    background:linear-gradient(180deg,#f8fafc,#eef2f7) !important;
    padding:12px !important;
    box-sizing:border-box !important;
}
body.mhp-chat-fullscreen-body{
    background:#f3f4f6 !important;
}
.mhp-guest-topbar{
    flex:0 0 auto !important;
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto 12px !important;
    z-index:50 !important;
    position:relative !important;
}
.mhp-guest-top-actions{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex:0 0 auto !important;
}
.mhp-guest-top-reserve{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:40px !important;
    padding:0 14px !important;
    border-radius:999px !important;
    text-decoration:none !important;
    color:#fff !important;
    background:var(--mhp-chat-brand) !important;
    font-weight:900 !important;
    box-shadow:0 12px 28px color-mix(in srgb, var(--mhp-chat-brand) 24%, transparent) !important;
}
.mhp-guest-chat-layout{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:calc(var(--mhp-chat-vh,100dvh) - 96px) !important;
    max-width:1180px !important;
    width:100% !important;
    margin:0 auto !important;
    align-items:stretch !important;
}
.mhp-guest-chat-panel,
.mhp-guest-context-panel{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
}
.mhp-guest-chat-panel{
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}
.mhp-guest-chat-head,
.mhp-guest-email-form,
.mhp-guest-typing-indicator,
.mhp-guest-reply-form{
    flex:0 0 auto !important;
}
.mhp-guest-message-list{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    scroll-behavior:smooth !important;
}
.mhp-guest-reply-form{
    position:relative !important;
    bottom:auto !important;
    z-index:30 !important;
    flex-shrink:0 !important;
    background:#fff !important;
}
.mhp-guest-context-panel{
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    padding:0 !important;
}
.mhp-guest-context-card{
    min-height:100% !important;
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
}
.mhp-guest-context-image{
    flex:0 0 auto !important;
}
.mhp-guest-context-action,
.mhp-guest-context-action-top{
    width:100% !important;
    min-height:48px !important;
    margin:0 0 16px !important;
    background:var(--mhp-chat-brand) !important;
    color:#fff !important;
    box-shadow:0 12px 28px color-mix(in srgb, var(--mhp-chat-brand) 24%, transparent) !important;
}
.mhp-guest-context-card dl{
    margin-bottom:16px !important;
}
.mhp-guest-context-card dl + .mhp-guest-context-action{
    margin-top:auto !important;
    position:sticky !important;
    bottom:0 !important;
}
.mhp-guest-app .mhp-guest-details-btn,
.mhp-guest-app .mhp-guest-quote-link,
.mhp-guest-app .mhp-guest-context-action,
.mhp-guest-app .mhp-guest-reply-form button,
.mhp-guest-app .mhp-guest-email-form button,
.mhp-guest-app .mhp-guest-top-reserve{
    background:var(--mhp-chat-brand) !important;
    box-shadow:0 12px 28px color-mix(in srgb, var(--mhp-chat-brand) 24%, transparent) !important;
}
.mhp-guest-app .mhp-guest-chat-head span,
.mhp-guest-app .mhp-guest-context-card dt{
    color:var(--mhp-chat-brand) !important;
}
.mhp-guest-email-form{
    background:color-mix(in srgb, var(--mhp-chat-brand) 7%, #fff) !important;
}
.mhp-guest-email-form input{
    border-color:color-mix(in srgb, var(--mhp-chat-brand) 24%, #d1d5db) !important;
}
.mhp-typing-indicator.is-visible,
.mhp-guest-typing-indicator.is-visible{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    min-height:36px !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f8fafc !important;
    color:#64748b !important;
    font-weight:800 !important;
}
.mhp-chat-panel[data-mhp-host-live] .mhp-typing-indicator.is-visible{
    background:#f8fafc !important;
}
.mhp-host-portal-shell .mhp-chat-panel[data-mhp-host-live] .mhp-typing-indicator.is-visible{
    background:#111827 !important;
    color:#cbd5e1 !important;
}
@media(max-width:900px){
    .mhp-guest-app{
        padding:0 !important;
        background:#fff !important;
    }
    .mhp-guest-topbar{
        margin:0 !important;
        max-width:none !important;
        min-height:72px !important;
        border-radius:0 !important;
        box-shadow:0 8px 25px rgba(15,23,42,.08) !important;
        grid-template-columns:auto auto 1fr auto !important;
        gap:9px !important;
        padding:10px 12px !important;
    }
    .mhp-guest-title strong{
        max-width:145px !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
    .mhp-guest-title span{
        max-width:145px !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
    .mhp-guest-top-actions{
        gap:6px !important;
    }
    .mhp-guest-top-reserve{
        display:none !important;
    }
    .mhp-guest-details-btn{
        display:inline-flex !important;
        min-height:40px !important;
        padding:0 14px !important;
        color:#fff !important;
        background:var(--mhp-chat-brand) !important;
    }
    .mhp-guest-chat-layout{
        display:block !important;
        height:calc(var(--mhp-chat-vh,100dvh) - 72px) !important;
        margin:0 !important;
        width:100% !important;
    }
    .mhp-guest-context-panel{
        display:none !important;
    }
    .mhp-guest-chat-panel{
        height:100% !important;
        min-height:0 !important;
        border-radius:0 !important;
        border:0 !important;
        box-shadow:none !important;
    }
    .mhp-guest-email-form{
        order:1 !important;
    }
    .mhp-guest-message-list{
        order:2 !important;
        flex:1 1 auto !important;
        padding:16px 14px !important;
    }
    .mhp-guest-typing-indicator{
        order:3 !important;
    }
    .mhp-guest-reply-form{
        order:4 !important;
        position:relative !important;
        bottom:auto !important;
        grid-template-columns:1fr 52px !important;
        padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        box-shadow:0 -10px 28px rgba(15,23,42,.10) !important;
    }
    .mhp-guest-details-modal.is-open{
        display:block !important;
        position:fixed !important;
        inset:0 !important;
        z-index:999999 !important;
    }
    .mhp-guest-details-sheet{
        max-height:86vh !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }
    .mhp-guest-details-sheet .mhp-guest-context-card{
        min-height:auto !important;
        padding:28px 18px 24px !important;
    }
    .mhp-guest-details-sheet .mhp-guest-context-action{
        position:sticky !important;
        bottom:0 !important;
    }
}
@media(max-width:420px){
    .mhp-guest-property-avatar{width:38px !important;height:38px !important;}
    .mhp-guest-title strong,.mhp-guest-title span{max-width:125px !important;}
    .mhp-guest-details-btn{padding:0 12px !important;font-size:14px !important;}
}

/* v0.3.39 — Chat huésped: pantalla completa real, input fijo visible, detalles móvil y scroll estable */
html.mhp-chat-fullscreen,
html.mhp-chat-fullscreen body,
body.mhp-chat-fullscreen-body{
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    background:#eef2f7 !important;
}
body.mhp-chat-fullscreen-body .wp-site-blocks,
body.mhp-chat-fullscreen-body .site,
body.mhp-chat-fullscreen-body .site-content,
body.mhp-chat-fullscreen-body .content-area,
body.mhp-chat-fullscreen-body main,
body.mhp-chat-fullscreen-body article,
body.mhp-chat-fullscreen-body .entry-content,
body.mhp-chat-fullscreen-body .wp-block-group,
body.mhp-chat-fullscreen-body .is-layout-constrained{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-app{
    position:fixed !important;
    inset:0 !important;
    z-index:2147483000 !important;
    width:100vw !important;
    height:var(--mhp-chat-vh,100dvh) !important;
    min-height:0 !important;
    padding:14px !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
    background:linear-gradient(180deg,#f8fafc,#eef2f7) !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-topbar{
    flex:0 0 auto !important;
    max-width:1180px !important;
    width:100% !important;
    margin:0 auto 12px !important;
    position:relative !important;
    top:auto !important;
    z-index:30 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-chat-layout{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 340px !important;
    gap:18px !important;
    align-items:stretch !important;
    overflow:hidden !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-chat-panel{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-chat-head,
body.mhp-chat-fullscreen-body .mhp-guest-email-form,
body.mhp-chat-fullscreen-body .mhp-guest-typing-indicator,
body.mhp-chat-fullscreen-body .mhp-guest-reply-form{
    flex:0 0 auto !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-message-list{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    padding-bottom:28px !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-reply-form{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:10px !important;
    flex:0 0 auto !important;
    position:relative !important;
    bottom:auto !important;
    z-index:40 !important;
    background:#fff !important;
    border-top:1px solid rgba(15,23,42,.08) !important;
    padding:12px !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-reply-form textarea{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    min-height:52px !important;
    max-height:120px !important;
    font-size:16px !important;
    resize:none !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-reply-form button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:54px !important;
    min-height:54px !important;
    cursor:pointer !important;
    pointer-events:auto !important;
    touch-action:manipulation !important;
    z-index:41 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-context-panel{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-context-card{
    min-height:100% !important;
    padding-bottom:24px !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-context-image{
    width:100% !important;
    max-height:170px !important;
    object-fit:cover !important;
    border-radius:18px !important;
    margin-bottom:12px !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-context-action,
body.mhp-chat-fullscreen-body .mhp-guest-context-action-top{
    background:var(--mhp-chat-brand,#173d2b) !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-context-action-top{
    display:flex !important;
    margin-bottom:18px !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-details-btn{
    display:inline-flex !important;
}
body.mhp-chat-fullscreen-body .mhp-typing-indicator.is-visible{
    flex:0 0 auto !important;
    display:flex !important;
    min-height:34px !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f8fafc !important;
    color:#64748b !important;
    font-weight:800 !important;
    font-size:13px !important;
}
@media(min-width:901px){
    body.mhp-chat-fullscreen-body .mhp-guest-topbar{
        display:none !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-chat-layout{
        height:100% !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-chat-head{
        min-height:94px !important;
    }
}
@media(max-width:900px){
    body.mhp-chat-fullscreen-body .mhp-guest-app{
        padding:0 !important;
        background:#fff !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-topbar{
        display:grid !important;
        grid-template-columns:auto auto minmax(0,1fr) auto !important;
        min-height:72px !important;
        margin:0 !important;
        border-radius:0 !important;
        box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-chat-layout{
        display:block !important;
        height:auto !important;
        flex:1 1 auto !important;
        min-height:0 !important;
        width:100% !important;
        margin:0 !important;
        overflow:hidden !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-chat-panel{
        height:100% !important;
        border-radius:0 !important;
        border:0 !important;
        box-shadow:none !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-panel{
        display:none !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-chat-head{
        display:none !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form{
        order:1 !important;
        padding:10px 12px !important;
        gap:8px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form input{
        min-width:0 !important;
        font-size:16px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-message-list{
        order:2 !important;
        flex:1 1 auto !important;
        padding:14px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-typing-indicator{
        order:3 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form{
        order:4 !important;
        grid-template-columns:minmax(0,1fr) 58px !important;
        padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        box-shadow:0 -10px 28px rgba(15,23,42,.10) !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form button{
        width:58px !important;
        height:58px !important;
        min-width:58px !important;
        min-height:58px !important;
        border-radius:22px !important;
        font-size:0 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form button:before{
        content:'↑' !important;
        font-size:28px !important;
        line-height:1 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-details-modal.is-open{
        display:block !important;
        position:fixed !important;
        inset:0 !important;
        z-index:2147483640 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-details-sheet{
        max-height:88vh !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch !important;
        background:#fff !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-details-sheet .mhp-guest-context-card{
        min-height:auto !important;
        padding:30px 18px calc(24px + env(safe-area-inset-bottom)) !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-details-sheet .mhp-guest-context-action{
        display:flex !important;
        position:sticky !important;
        bottom:0 !important;
        z-index:3 !important;
    }
}

/* v0.3.40 — Chat huésped: responsive limpio, input separado, detalles compactos y Poppins */
body.mhp-chat-fullscreen-body .mhp-guest-app,
body.mhp-chat-fullscreen-body .mhp-guest-app *{
    font-family:'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    box-sizing:border-box !important;
}

/* El aviso de correo queda sutil y en una sola franja */
body.mhp-chat-fullscreen-body .mhp-guest-email-form{
    display:grid !important;
    grid-template-columns: minmax(0,1.35fr) minmax(150px,.9fr) 42px !important;
    align-items:center !important;
    gap:8px !important;
    padding:8px 14px !important;
    background:color-mix(in srgb, var(--mhp-chat-brand,#173d2b) 7%, #fff) !important;
    border-top:1px solid rgba(15,23,42,.06) !important;
    border-bottom:1px solid rgba(15,23,42,.06) !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form span{
    font-size:12px !important;
    line-height:1.25 !important;
    color:#475569 !important;
    font-weight:600 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form input{
    height:38px !important;
    min-height:38px !important;
    border-radius:999px !important;
    font-size:16px !important;
    padding:0 14px !important;
    background:#fff !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form button{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    padding:0 !important;
    border-radius:999px !important;
    font-size:20px !important;
    line-height:1 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:var(--mhp-chat-brand,#173d2b) !important;
    color:#fff !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form small{
    grid-column:1 / -1 !important;
    font-size:11px !important;
    min-height:0 !important;
}

/* Topbar móvil: detalles ya no se sale, y deja ver fechas */
@media(max-width:900px){
    body.mhp-chat-fullscreen-body .mhp-guest-topbar{
        grid-template-columns:34px 46px minmax(0,1fr) auto !important;
        gap:8px !important;
        padding:10px 10px !important;
        min-height:68px !important;
        overflow:hidden !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-back{
        width:34px !important;
        height:34px !important;
        min-width:34px !important;
        font-size:24px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-property-avatar{
        width:46px !important;
        height:46px !important;
        min-width:46px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-title{
        min-width:0 !important;
        overflow:hidden !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-title strong{
        display:block !important;
        max-width:100% !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        font-size:17px !important;
        line-height:1.1 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-title span{
        display:block !important;
        max-width:100% !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        font-size:12px !important;
        line-height:1.25 !important;
        color:#64748b !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-top-actions{
        min-width:auto !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        gap:6px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-top-reserve{
        display:none !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-details-btn{
        max-width:84px !important;
        min-width:74px !important;
        height:38px !important;
        min-height:38px !important;
        padding:0 12px !important;
        border-radius:999px !important;
        font-size:13px !important;
        line-height:1 !important;
        white-space:nowrap !important;
        background:var(--mhp-chat-brand,#173d2b) !important;
        color:#fff !important;
    }

    /* El aviso no se come la pantalla */
    body.mhp-chat-fullscreen-body .mhp-guest-email-form{
        grid-template-columns:minmax(0,1fr) 40px !important;
        gap:7px !important;
        padding:7px 12px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form span{
        grid-column:1 / -1 !important;
        font-size:11px !important;
        line-height:1.2 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form input{
        height:36px !important;
        min-height:36px !important;
        padding:0 12px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form button{
        width:36px !important;
        height:36px !important;
        min-width:36px !important;
        min-height:36px !important;
        font-size:18px !important;
    }

    /* Caja de escribir: botón separado, no encima del textarea */
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) 54px !important;
        gap:10px !important;
        align-items:end !important;
        padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        background:#fff !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form textarea{
        width:100% !important;
        min-width:0 !important;
        min-height:54px !important;
        max-height:96px !important;
        padding:15px 16px !important;
        border-radius:22px !important;
        font-size:16px !important;
        line-height:1.25 !important;
        resize:none !important;
        margin:0 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form button{
        position:static !important;
        transform:none !important;
        width:54px !important;
        height:54px !important;
        min-width:54px !important;
        min-height:54px !important;
        max-width:54px !important;
        border-radius:20px !important;
        margin:0 !important;
        padding:0 !important;
        pointer-events:auto !important;
        touch-action:manipulation !important;
        background:var(--mhp-chat-brand,#173d2b) !important;
        color:#fff !important;
        z-index:3 !important;
    }

    /* Modal de detalles: más minimalista, sin botones gigantes ni X perdida */
    body.mhp-chat-fullscreen-body .mhp-guest-details-sheet{
        width:100vw !important;
        max-height:86vh !important;
        border-radius:22px 22px 0 0 !important;
        padding-top:0 !important;
        background:#fff !important;
        overflow-y:auto !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-details-close{
        position:sticky !important;
        top:10px !important;
        margin-left:auto !important;
        margin-right:12px !important;
        z-index:30 !important;
        width:34px !important;
        height:34px !important;
        min-width:34px !important;
        min-height:34px !important;
        border-radius:999px !important;
        background:rgba(255,255,255,.92) !important;
        color:#0f172a !important;
        box-shadow:0 8px 20px rgba(15,23,42,.12) !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        font-size:24px !important;
        line-height:1 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-details-sheet .mhp-guest-context-card{
        padding:6px 14px calc(20px + env(safe-area-inset-bottom)) !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-image{
        max-height:210px !important;
        border-radius:18px !important;
        margin-bottom:12px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-card h2{
        font-size:22px !important;
        line-height:1.05 !important;
        margin:10px 0 8px !important;
        font-family:'Poppins', system-ui, sans-serif !important;
        font-weight:700 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-card p{
        font-size:13px !important;
        line-height:1.35 !important;
        margin-bottom:12px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-card dl div{
        padding:12px 14px !important;
        border-radius:16px !important;
        margin-bottom:9px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-card dt{
        font-size:10px !important;
        letter-spacing:.08em !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-card dd{
        font-size:17px !important;
        line-height:1.15 !important;
        word-break:break-word !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-context-action,
    body.mhp-chat-fullscreen-body .mhp-guest-context-action-top{
        min-height:48px !important;
        height:48px !important;
        border-radius:999px !important;
        font-size:15px !important;
        padding:0 18px !important;
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        position:static !important;
        margin:10px 0 14px !important;
    }
}

/* Indicador escribir: forzar visibilidad cuando JS lo active */
body.mhp-chat-fullscreen-body .mhp-typing-indicator.is-visible,
body.mhp-chat-fullscreen-body .mhp-guest-typing-indicator.is-visible,
.mhp-chat-panel[data-mhp-host-live] .mhp-typing-indicator.is-visible{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
}


/* v0.3.42 — ajustes reservas + chat responsive */
.mrp-edit-dates-panel{margin:16px 0 0;padding:14px 16px;border:1px solid rgba(23,61,43,.12);border-radius:18px;background:#f8fafc}
.mrp-edit-dates-panel summary{cursor:pointer;font-weight:900;color:#173d2b}
.mrp-edit-dates-panel .mrp-form-grid{margin-top:12px;align-items:end}
.mrp-edit-dates-panel small{display:block;margin-top:8px;color:#64748b;font-weight:600}

body.mhp-chat-fullscreen-body .mhp-guest-email-form.is-saved{display:block!important;padding:10px 14px!important;background:#ecfdf5!important;color:#065f46!important;border-top:1px solid rgba(6,95,70,.12)!important;border-bottom:1px solid rgba(6,95,70,.12)!important}
body.mhp-chat-fullscreen-body .mhp-email-saved-message{display:block!important;color:#065f46!important;font-size:12px!important;line-height:1.35!important;font-weight:700!important}
body.mhp-chat-fullscreen-body .mhp-typing-indicator.is-visible{display:block!important;hidden:false!important;padding:8px 16px!important;text-align:center!important;color:#64748b!important;background:#f8fafc!important;border-top:1px solid rgba(15,23,42,.06)!important;font-weight:700!important}
body.mhp-chat-fullscreen-body .mhp-typing-indicator[hidden]:not(.is-visible){display:none!important}

@media(max-width:900px){
  body.mhp-chat-fullscreen-body .mhp-guest-topbar{grid-template-columns:32px 42px minmax(0,1fr) auto!important;gap:8px!important;padding:8px 8px!important;min-height:62px!important;width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
  body.mhp-chat-fullscreen-body .mhp-guest-property-avatar{width:42px!important;height:42px!important;min-width:42px!important;border-radius:999px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-title strong{font-size:15px!important;max-width:100%!important}
  body.mhp-chat-fullscreen-body .mhp-guest-title span{font-size:11px!important;max-width:100%!important}
  body.mhp-chat-fullscreen-body .mhp-guest-details-btn{min-width:64px!important;max-width:72px!important;height:34px!important;min-height:34px!important;padding:0 9px!important;font-size:12px!important;border-radius:999px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.mhp-chat-fullscreen-body .mhp-guest-email-form{grid-template-columns:minmax(0,1fr) 38px!important;padding:7px 10px!important;gap:7px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-email-form span{grid-column:1/-1!important;font-size:10.5px!important;line-height:1.25!important;font-weight:600!important;color:#475569!important}
  body.mhp-chat-fullscreen-body .mhp-guest-email-form input{height:34px!important;min-height:34px!important;font-size:16px!important;padding:0 12px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-email-form button{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;font-size:18px!important;padding:0!important}
  body.mhp-chat-fullscreen-body .mhp-guest-reply-form{grid-template-columns:minmax(0,1fr) 50px!important;gap:9px!important;padding:9px 10px calc(9px + env(safe-area-inset-bottom))!important;align-items:end!important;position:sticky!important;bottom:0!important;z-index:20!important}
  body.mhp-chat-fullscreen-body .mhp-guest-reply-form textarea{min-height:50px!important;max-height:92px!important;font-size:16px!important;border-radius:20px!important;padding:13px 14px!important;box-sizing:border-box!important}
  body.mhp-chat-fullscreen-body .mhp-guest-reply-form button{position:relative!important;right:auto!important;bottom:auto!important;transform:none!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;border-radius:18px!important;margin:0!important;padding:0!important;pointer-events:auto!important;touch-action:manipulation!important;z-index:50!important}
  body.mhp-chat-fullscreen-body .mhp-guest-details-sheet{max-height:84vh!important;border-radius:20px 20px 0 0!important;padding-top:8px!important;box-sizing:border-box!important}
  body.mhp-chat-fullscreen-body .mhp-guest-details-close{position:sticky!important;top:8px!important;right:auto!important;float:right!important;margin:0 12px 0 auto!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;font-size:22px!important;background:#fff!important;color:#0f172a!important;border:1px solid rgba(15,23,42,.08)!important;box-shadow:0 8px 18px rgba(15,23,42,.12)!important}
  body.mhp-chat-fullscreen-body .mhp-guest-details-sheet .mhp-guest-context-card{clear:both!important;padding:12px 14px 20px!important;font-family:Poppins,system-ui,sans-serif!important}
  body.mhp-chat-fullscreen-body .mhp-guest-context-card h2{font-family:Poppins,system-ui,sans-serif!important;font-size:20px!important;line-height:1.1!important;letter-spacing:-.03em!important;margin-top:8px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-context-card p{font-size:12px!important;line-height:1.35!important;margin:6px 0 12px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-context-card dl{gap:8px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-context-card dl div{padding:10px 12px!important;border-radius:14px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-context-card dd{font-size:15px!important;line-height:1.25!important}
  body.mhp-chat-fullscreen-body .mhp-guest-context-action,body.mhp-chat-fullscreen-body .mhp-guest-context-action-top{width:100%!important;min-height:44px!important;padding:0 14px!important;border-radius:16px!important;font-size:15px!important;box-sizing:border-box!important;margin:8px 0 12px!important}
  body.mhp-chat-fullscreen-body .mhp-guest-context-image{max-height:180px!important;border-radius:18px!important;object-fit:cover!important;margin-bottom:10px!important}
}

/* v0.3.44 — chat guest final polish: enviar con flecha, correo sin redirección, botones compactos */
body.mhp-chat-fullscreen-body .mhp-guest-reply-form button,
.mhp-guest-app .mhp-guest-reply-form button{
    font-size:0 !important;
    background:var(--mhp-chat-brand,#173d2b) !important;
    color:#fff !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-reply-form button::before,
.mhp-guest-app .mhp-guest-reply-form button::before{
    content:'↑' !important;
    font-size:24px !important;
    line-height:1 !important;
    font-weight:900 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form{
    grid-template-columns:minmax(0,1fr) minmax(160px,.75fr) 40px !important;
    gap:8px !important;
    align-items:center !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form button{
    font-size:0 !important;
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    border-radius:999px !important;
    background:var(--mhp-chat-brand,#173d2b) !important;
    color:#fff !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form button::before{
    content:'→' !important;
    font-size:20px !important;
    font-weight:900 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form.is-saved{
    display:block !important;
    padding:10px 14px !important;
    background:#ecfdf5 !important;
    border-top:1px solid rgba(6,95,70,.12) !important;
    border-bottom:1px solid rgba(6,95,70,.12) !important;
}
body.mhp-chat-fullscreen-body .mhp-email-saved-message{
    display:block !important;
    color:#065f46 !important;
    font-size:12px !important;
    line-height:1.35 !important;
    font-weight:700 !important;
}
@media(max-width:900px){
    body.mhp-chat-fullscreen-body .mhp-guest-details-btn{
        min-width:58px !important;
        max-width:64px !important;
        height:32px !important;
        min-height:32px !important;
        padding:0 8px !important;
        font-size:11px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-title span{
        max-width:205px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form{
        grid-template-columns:minmax(0,1fr) 36px !important;
        padding:7px 10px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form span{
        grid-column:1/-1 !important;
        font-size:10.5px !important;
        line-height:1.25 !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form input{
        height:34px !important;
        min-height:34px !important;
        font-size:16px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-email-form button{
        width:36px !important;
        min-width:36px !important;
        height:36px !important;
        min-height:36px !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form{
        grid-template-columns:minmax(0,1fr) 48px !important;
        gap:8px !important;
        padding:8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form button{
        width:48px !important;
        min-width:48px !important;
        height:48px !important;
        min-height:48px !important;
        border-radius:17px !important;
        pointer-events:auto !important;
        touch-action:manipulation !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form button::before{font-size:24px !important;}
}


/* v0.3.46 — chat clean/reliable: clickable send, no overlay, visible status */
body.mhp-chat-fullscreen-body .mhp-guest-reply-form,
.mhp-guest-app .mhp-guest-reply-form{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 54px !important;
    gap:10px !important;
    align-items:end !important;
    position:sticky !important;
    bottom:0 !important;
    z-index:999 !important;
    pointer-events:auto !important;
    isolation:isolate !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-reply-form textarea,
.mhp-guest-app .mhp-guest-reply-form textarea{
    min-width:0 !important;
    width:100% !important;
    pointer-events:auto !important;
    position:relative !important;
    z-index:1 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-reply-form button,
.mhp-guest-app .mhp-guest-reply-form button{
    position:relative !important;
    inset:auto !important;
    transform:none !important;
    width:54px !important;
    height:54px !important;
    min-width:54px !important;
    min-height:54px !important;
    border-radius:20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    margin:0 !important;
    font-size:0 !important;
    line-height:1 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    touch-action:manipulation !important;
    user-select:none !important;
    -webkit-user-select:none !important;
    z-index:5 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-reply-form button::before,
.mhp-guest-app .mhp-guest-reply-form button::before{
    content:'↑' !important;
    display:block !important;
    color:#fff !important;
    font-size:28px !important;
    font-weight:900 !important;
    line-height:1 !important;
}
.mhp-chat-send-status{
    grid-column:1 / -1 !important;
    display:block !important;
    min-height:16px !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    color:#b91c1c !important;
    margin:0 4px !important;
}
.mhp-chat-send-status[hidden]{display:none!important;}
.mhp-chat-send-status.is-ok{color:#065f46!important;}
body.mhp-chat-fullscreen-body .mhp-guest-email-form{
    position:relative !important;
    z-index:10 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-email-form button{
    pointer-events:auto !important;
    touch-action:manipulation !important;
    cursor:pointer !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-message-list,
.mhp-guest-app .mhp-guest-message-list{
    position:relative !important;
    z-index:1 !important;
}
@media(max-width:900px){
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form,
    .mhp-guest-app .mhp-guest-reply-form{
        grid-template-columns:minmax(0,1fr) 52px !important;
        gap:9px !important;
        padding:9px 10px calc(9px + env(safe-area-inset-bottom)) !important;
    }
    body.mhp-chat-fullscreen-body .mhp-guest-reply-form button,
    .mhp-guest-app .mhp-guest-reply-form button{
        width:52px !important;
        height:52px !important;
        min-width:52px !important;
        min-height:52px !important;
        border-radius:18px !important;
    }
}

/* v0.3.47 — ajustes visuales del chat huésped */
body.mhp-chat-fullscreen-body .mhp-guest-context-action-top,
.mhp-guest-context-action-top{
    display:none !important;
}

/* Botón principal del chat: solo Reservar, más limpio */
body.mhp-chat-fullscreen-body .mhp-guest-quote-link,
body.mhp-chat-fullscreen-body .mhp-guest-top-reserve,
body.mhp-chat-fullscreen-body .mhp-guest-context-action,
.mhp-guest-quote-link,
.mhp-guest-top-reserve,
.mhp-guest-context-action{
    font-family:Poppins,system-ui,sans-serif !important;
}

/* Los detalles no deben verse tan pesados */
body.mhp-chat-fullscreen-body .mhp-guest-context-card dd,
.mhp-guest-context-card dd{
    font-weight:500 !important;
    color:#111827 !important;
    letter-spacing:-.01em !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-context-card dt,
.mhp-guest-context-card dt{
    font-weight:800 !important;
}

/* Mensajes del anfitrión en el chat del huésped: gris claro + texto negro */
body.mhp-chat-fullscreen-body .mhp-guest-app .mhp-bubble.is-host,
body.mhp-chat-fullscreen-body .mhp-guest-message-list .mhp-bubble.is-host,
.mhp-guest-app .mhp-bubble.is-host,
.mhp-guest-message-list .mhp-bubble.is-host{
    background:#e5e7eb !important;
    color:#111827 !important;
    border:1px solid rgba(15,23,42,.06) !important;
    box-shadow:0 10px 24px rgba(15,23,42,.08) !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-app .mhp-bubble.is-host p,
body.mhp-chat-fullscreen-body .mhp-guest-message-list .mhp-bubble.is-host p,
.mhp-guest-app .mhp-bubble.is-host p,
.mhp-guest-message-list .mhp-bubble.is-host p{
    color:#111827 !important;
}
body.mhp-chat-fullscreen-body .mhp-guest-app .mhp-bubble.is-host small,
body.mhp-chat-fullscreen-body .mhp-guest-message-list .mhp-bubble.is-host small,
.mhp-guest-app .mhp-bubble.is-host small,
.mhp-guest-message-list .mhp-bubble.is-host small{
    color:#64748b !important;
}

/* Mantener el botón final Reservar compacto en detalles */
body.mhp-chat-fullscreen-body .mhp-guest-context-card .mhp-guest-context-action,
.mhp-guest-context-card .mhp-guest-context-action{
    margin-top:14px !important;
}

@media(max-width:900px){
    body.mhp-chat-fullscreen-body .mhp-guest-context-card dd,
    .mhp-guest-context-card dd{
        font-size:14px !important;
        font-weight:500 !important;
    }
}

/* v0.3.49 — botones del chat del huésped siempre clickeables */
.mhp-public-chat-form,
.mhp-guest-email-form{
  position:relative !important;
  z-index:80 !important;
  pointer-events:auto !important;
}
.mhp-public-chat-form textarea,
.mhp-guest-email-form input{
  pointer-events:auto !important;
}
.mhp-public-chat-form button,
.mhp-guest-email-form button{
  position:relative !important;
  z-index:90 !important;
  pointer-events:auto !important;
  touch-action:manipulation !important;
  cursor:pointer !important;
}

/* v0.3.55 — Portal de anfitrión como app, sin header/footer y con PWA */
body.mhp-host-portal-body,
body.mhp-host-portal-body *{
    font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}
html.mhp-chat-fullscreen body.mhp-host-portal-body{
    min-height:100vh !important;
    overflow:hidden !important;
    background:#f3f4f6 !important;
}
.mhp-host-portal-app{
    min-height:100dvh !important;
    height:100dvh !important;
    background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%) !important;
    color:#0f172a !important;
    padding:20px 24px !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}
.mhp-host-app-topbar{
    width:min(1360px,100%) !important;
    margin:0 auto 14px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    background:#fff !important;
    color:#0f172a !important;
    border:1px solid rgba(15,23,42,.08) !important;
    border-radius:24px !important;
    box-shadow:0 18px 50px rgba(15,23,42,.08) !important;
    padding:14px 16px !important;
    flex:0 0 auto !important;
}
.mhp-host-brand{display:flex;align-items:center;gap:12px;min-width:0;}
.mhp-host-brand img{width:46px;height:46px;border-radius:999px;object-fit:cover;box-shadow:0 8px 18px rgba(15,23,42,.12);}
.mhp-host-brand strong{display:block;font-size:18px;font-weight:800;letter-spacing:-.03em;color:#0f172a;}
.mhp-host-brand span{display:block;color:#64748b;font-size:13px;font-weight:600;margin-top:1px;}
.mhp-host-actions{display:flex;align-items:center;gap:10px;}
.mhp-host-actions a,.mhp-host-install-btn{
    border:1px solid rgba(15,23,42,.10) !important;
    background:#f8fafc !important;
    color:#0f172a !important;
    text-decoration:none !important;
    border-radius:999px !important;
    padding:10px 14px !important;
    font-size:13px !important;
    font-weight:800 !important;
    cursor:pointer !important;
}
.mhp-host-title-row{
    width:min(1360px,100%) !important;
    margin:0 auto 14px !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:space-between !important;
    gap:16px !important;
    flex:0 0 auto !important;
}
.mhp-host-title-row span{display:block;color:#f97316;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:.08em;}
.mhp-host-title-row h1{margin:2px 0 0 !important;color:#0f172a !important;font-size:32px !important;line-height:1 !important;font-weight:800 !important;letter-spacing:-.04em !important;}
.mhp-host-title-row p{margin:8px 0 0 !important;color:#64748b !important;font-size:14px !important;}
.mhp-host-title-row > strong{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:999px;padding:10px 14px;color:#334155;font-size:13px;box-shadow:0 10px 30px rgba(15,23,42,.06);white-space:nowrap;}
.mhp-host-portal-app .mhp-host-chat-layout{
    width:min(1360px,100%) !important;
    margin:0 auto !important;
    flex:1 1 auto !important;
    min-height:0 !important;
    display:grid !important;
    grid-template-columns:320px minmax(440px,1fr) 340px !important;
    gap:18px !important;
    align-items:stretch !important;
}
.mhp-host-portal-app .mhp-chat-list,
.mhp-host-portal-app .mhp-chat-panel,
.mhp-host-portal-app .mhp-chat-context{
    background:#fff !important;
    color:#0f172a !important;
    border:1px solid rgba(15,23,42,.08) !important;
    border-radius:24px !important;
    box-shadow:0 18px 50px rgba(15,23,42,.08) !important;
    max-height:none !important;
    min-height:0 !important;
}
.mhp-host-portal-app .mhp-chat-list{height:100% !important;padding:14px !important;overflow-y:auto !important;}
.mhp-host-portal-app .mhp-chat-context{height:100% !important;overflow-y:auto !important;padding:0 !important;}
.mhp-host-portal-app .mhp-chat-panel[data-mhp-host-live],
.mhp-host-portal-app .mhp-chat-panel{
    height:100% !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}
.mhp-host-portal-app .mhp-chat-header{background:#fff !important;border-color:rgba(15,23,42,.08) !important;color:#0f172a !important;}
.mhp-host-portal-app .mhp-chat-header h2{color:#0f172a !important;font-size:24px !important;font-weight:800 !important;}
.mhp-host-portal-app .mhp-chat-header > strong{background:#dcfce7 !important;color:#166534 !important;border-radius:999px !important;padding:8px 12px !important;}
.mhp-host-portal-app .mhp-chat-messages{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    background:linear-gradient(180deg,#f8fafc,#eef2f7) !important;
    padding:20px !important;
}
.mhp-host-portal-app .mhp-thread-item{background:#f8fafc !important;border-color:rgba(15,23,42,.08) !important;color:#0f172a !important;}
.mhp-host-portal-app .mhp-thread-item:hover,.mhp-host-portal-app .mhp-thread-item.is-active{background:#111827 !important;color:#fff !important;border-color:#111827 !important;}
.mhp-host-portal-app .mhp-thread-item.is-active span,.mhp-host-portal-app .mhp-thread-item.is-active small,.mhp-host-portal-app .mhp-thread-item:hover span,.mhp-host-portal-app .mhp-thread-item:hover small{color:#cbd5e1 !important;}
.mhp-host-portal-app .mhp-context-card{background:transparent !important;color:#0f172a !important;box-shadow:none !important;border:0 !important;padding:18px !important;}
.mhp-host-portal-app .mhp-context-card dd{color:#0f172a !important;font-weight:700 !important;overflow-wrap:anywhere !important;}
.mhp-host-portal-app .mhp-context-card dl div{background:#f8fafc !important;border-color:rgba(15,23,42,.08) !important;}
.mhp-host-portal-app .mhp-bubble.is-host{background:#e5e7eb !important;color:#111827 !important;}
.mhp-host-portal-app .mhp-bubble.is-host p{color:#111827 !important;}
.mhp-host-portal-app .mhp-chat-reply-form{background:#fff !important;border-color:rgba(15,23,42,.08) !important;grid-template-columns:1fr auto !important;}
.mhp-host-portal-app .mhp-chat-reply-form button{
    border:0 !important;
    background:#f97316 !important;
    color:#fff !important;
    border-radius:999px !important;
    min-height:48px !important;
    align-self:end !important;
    padding:0 20px !important;
    font-weight:900 !important;
    cursor:pointer !important;
}
.mhp-host-portal-app .mhp-typing-indicator{background:#f8fafc !important;color:#64748b !important;border-color:rgba(15,23,42,.08) !important;}
@media(max-width:1100px){
    html.mhp-chat-fullscreen body.mhp-host-portal-body{overflow:auto !important;}
    .mhp-host-portal-app{height:auto !important;min-height:100dvh !important;overflow:visible !important;padding:14px !important;}
    .mhp-host-portal-app .mhp-host-chat-layout{grid-template-columns:1fr !important;}
    .mhp-host-portal-app .mhp-chat-list{max-height:260px !important;}
    .mhp-host-portal-app .mhp-chat-panel{min-height:66vh !important;}
    .mhp-host-title-row{align-items:flex-start !important;flex-direction:column !important;}
}
@media(max-width:560px){
    .mhp-host-app-topbar{border-radius:18px !important;padding:12px !important;}
    .mhp-host-brand img{width:40px;height:40px;}
    .mhp-host-brand strong{font-size:16px;}
    .mhp-host-brand span{font-size:12px;}
    .mhp-host-actions a,.mhp-host-install-btn{padding:8px 10px !important;font-size:12px !important;}
    .mhp-host-title-row h1{font-size:26px !important;}
}

/* v0.3.56 — Portal Anfitrión: pantalla completa real, scroll interno y contexto más liviano */
html.mhp-chat-fullscreen,
html.mhp-chat-fullscreen body.mhp-host-portal-body{
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  background:#f3f4f6 !important;
}
body.mhp-host-portal-body #wpadminbar,
body.mhp-host-portal-body header,
body.mhp-host-portal-body footer,
body.mhp-host-portal-body .site-header,
body.mhp-host-portal-body .site-footer,
body.mhp-host-portal-body #masthead,
body.mhp-host-portal-body #colophon,
body.mhp-host-portal-body .entry-header,
body.mhp-host-portal-body .entry-title,
body.mhp-host-portal-body .page-title,
body.mhp-host-portal-body .wp-block-post-title,
body.mhp-host-portal-body nav[aria-label="Principal"],
body.mhp-host-portal-body .wp-block-navigation{
  display:none !important;
}
body.mhp-host-portal-body .wp-site-blocks,
body.mhp-host-portal-body .entry-content,
body.mhp-host-portal-body main:not(.mhp-host-portal-app),
body.mhp-host-portal-body article,
body.mhp-host-portal-body .wp-block-group{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
.mhp-host-portal-app{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  width:100vw !important;
  height:100dvh !important;
  min-height:100dvh !important;
  max-height:100dvh !important;
  overflow:hidden !important;
  padding:14px 18px !important;
  box-sizing:border-box !important;
  background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%) !important;
}
.mhp-host-portal-app .mhp-host-app-topbar{
  margin:0 auto 10px !important;
  padding:10px 14px !important;
  border-radius:20px !important;
  max-height:72px !important;
}
.mhp-host-portal-app .mhp-host-title-row{
  margin:0 auto 10px !important;
  min-height:0 !important;
}
.mhp-host-portal-app .mhp-host-title-row h1{
  font-size:27px !important;
  line-height:1.02 !important;
}
.mhp-host-portal-app .mhp-host-title-row p{
  font-size:12px !important;
  margin-top:4px !important;
}
.mhp-host-portal-app .mhp-host-title-row > strong{
  padding:8px 12px !important;
  font-size:12px !important;
}
.mhp-host-portal-app .mhp-host-chat-layout{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  overflow:hidden !important;
}
.mhp-host-portal-app .mhp-chat-list,
.mhp-host-portal-app .mhp-chat-panel,
.mhp-host-portal-app .mhp-chat-context{
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.mhp-host-portal-app .mhp-chat-list{
  overflow-y:auto !important;
}
.mhp-host-portal-app .mhp-chat-messages{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  scroll-behavior:auto !important;
  padding:16px 18px !important;
}
.mhp-host-portal-app .mhp-chat-context{
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
}
.mhp-host-portal-app .mhp-context-card{
  padding:16px !important;
}
.mhp-host-portal-app .mhp-context-card h3{
  font-size:20px !important;
  line-height:1.05 !important;
  font-weight:500 !important;
  letter-spacing:-.03em !important;
  margin:0 0 12px !important;
}
.mhp-host-portal-app .mhp-context-card dt{
  font-size:9px !important;
  letter-spacing:.07em !important;
  color:#64748b !important;
}
.mhp-host-portal-app .mhp-context-card dd{
  font-size:13px !important;
  line-height:1.25 !important;
  font-weight:500 !important;
  color:#111827 !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
.mhp-host-portal-app .mhp-context-card dl{
  gap:8px !important;
}
.mhp-host-portal-app .mhp-context-card dl div{
  padding:9px 10px !important;
  border-radius:13px !important;
}
.mhp-host-portal-app .mhp-bubble small{
  font-size:10px !important;
}
@media(max-width:1100px){
  html.mhp-chat-fullscreen body.mhp-host-portal-body{overflow:hidden !important;}
  .mhp-host-portal-app{
    height:100dvh !important;
    min-height:100dvh !important;
    overflow:hidden !important;
    padding:12px !important;
  }
  .mhp-host-portal-app .mhp-host-chat-layout{
    grid-template-columns:1fr !important;
    overflow:hidden !important;
  }
  .mhp-host-portal-app .mhp-chat-list{max-height:22dvh !important;}
  .mhp-host-portal-app .mhp-chat-panel{height:50dvh !important;min-height:50dvh !important;}
  .mhp-host-portal-app .mhp-chat-context{max-height:22dvh !important;}
}

/* v0.3.57 — portal anfitrión: bandeja, filtros, contexto visual y botón flecha */
.mhp-host-portal-app .mhp-chat-list-head{
  align-items:center !important;
  gap:10px !important;
  margin:0 0 10px !important;
}
.mhp-host-portal-app .mhp-chat-list-head strong{font-size:15px !important;font-weight:750 !important;}
.mhp-host-portal-app .mhp-chat-list-filters{
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
  margin:0 0 12px !important;
}
.mhp-host-portal-app .mhp-chat-list-filters select,
.mhp-host-portal-app .mhp-chat-list-filters button{
  min-height:34px !important;
  border-radius:999px !important;
  border:1px solid rgba(15,23,42,.1) !important;
  background:#fff !important;
  color:#0f172a !important;
  font-family:Poppins,system-ui,sans-serif !important;
  font-size:12px !important;
  font-weight:650 !important;
  padding:0 12px !important;
  box-shadow:none !important;
}
.mhp-host-portal-app .mhp-chat-list-filters select{max-width:150px !important;}
.mhp-host-portal-app .mhp-chat-list-filters button.is-active{
  background:#111827 !important;
  color:#fff !important;
  border-color:#111827 !important;
}
.mhp-host-portal-app .mhp-thread-item{
  display:grid !important;
  grid-template-columns:1fr auto !important;
  gap:2px 10px !important;
  border-radius:18px !important;
  padding:13px 14px !important;
  margin-bottom:8px !important;
}
.mhp-host-portal-app .mhp-thread-item strong,
.mhp-host-portal-app .mhp-thread-item em{grid-column:1 / -1 !important;}
.mhp-host-portal-app .mhp-thread-item span,
.mhp-host-portal-app .mhp-thread-item small{grid-column:1 / -1 !important;}
.mhp-host-portal-app .mhp-thread-item.is-unread strong,
.mhp-host-portal-app .mhp-thread-item.is-unread span,
.mhp-host-portal-app .mhp-thread-item.is-unread small,
.mhp-host-portal-app .mhp-thread-item.is-unread em{
  font-weight:800 !important;
}
.mhp-host-portal-app .mhp-thread-item.is-read strong{font-weight:600 !important;}
.mhp-host-portal-app .mhp-thread-item.is-read span,
.mhp-host-portal-app .mhp-thread-item.is-read small,
.mhp-host-portal-app .mhp-thread-item.is-read em{font-weight:500 !important;}
.mhp-host-portal-app .mhp-thread-item.is-unread::after{
  content:'';
  width:9px;
  height:9px;
  border-radius:999px;
  background:#f97316;
  grid-column:2;
  grid-row:1;
  align-self:center;
  justify-self:end;
}
.mhp-host-portal-app .mhp-thread-empty-filter{
  color:#64748b !important;
  font-size:13px !important;
  margin:18px 6px !important;
}
.mhp-host-portal-app .mhp-context-image{
  width:100% !important;
  height:145px !important;
  object-fit:cover !important;
  border-radius:18px !important;
  display:block !important;
  margin:0 0 14px !important;
  border:1px solid rgba(15,23,42,.08) !important;
}
.mhp-host-portal-app .mhp-context-card h3{
  font-size:23px !important;
  line-height:1.05 !important;
  font-weight:500 !important;
  margin:0 0 12px !important;
}
.mhp-host-portal-app .mhp-context-card dt{font-size:9px !important;font-weight:750 !important;}
.mhp-host-portal-app .mhp-context-card dd{
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:500 !important;
  letter-spacing:0 !important;
}
.mhp-host-portal-app .mhp-context-card dl{gap:8px !important;}
.mhp-host-portal-app .mhp-context-card dl div{padding:10px 12px !important;}
.mhp-host-portal-app .mhp-chat-reply-form button{
  width:46px !important;
  min-width:46px !important;
  height:46px !important;
  min-height:46px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  font-size:22px !important;
  line-height:1 !important;
  background:#f97316 !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 16px 34px rgba(249,115,22,.22) !important;
}
.mhp-host-portal-app .mhp-chat-reply-form button:disabled{opacity:.55 !important;cursor:not-allowed !important;}
@media(max-width:760px){
  .mhp-host-portal-app .mhp-chat-list-filters{flex-wrap:wrap !important;}
  .mhp-host-portal-app .mhp-chat-list-filters select{max-width:100% !important;flex:1 1 150px !important;}
  .mhp-host-portal-app .mhp-context-image{height:120px !important;}
}

/* v0.3.58 — fixes portal/anfitrión: polling estable y fotos del contexto controladas */
.mhp-chat-wrap .mhp-context-image,
.mhp-chat-context .mhp-context-image,
.cpf-wrap .mhp-context-image{
  width:100% !important;
  height:145px !important;
  max-height:145px !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:18px !important;
  display:block !important;
  margin:0 0 14px !important;
  border:1px solid rgba(15,23,42,.08) !important;
}
.mhp-chat-wrap .mhp-context-card dd,
.cpf-wrap .mhp-context-card dd{
  font-weight:500 !important;
  font-size:13px !important;
  line-height:1.35 !important;
  overflow-wrap:anywhere !important;
}
.mhp-host-portal-app .mhp-chat-context .mhp-context-image{
  height:145px !important;
  max-height:145px !important;
  object-fit:cover !important;
}
.mhp-host-portal-app .mhp-chat-reply-form button{
  font-family:Poppins,system-ui,sans-serif !important;
  font-weight:800 !important;
}
.mhp-chat-send-status{
  grid-column:1 / -1;
  color:#dc2626;
  font-size:12px;
  margin-top:2px;
}
.mhp-chat-send-status.is-ok{color:#047857;}

/* v0.3.59 — evita doble envío en anfitrión y mantiene un solo submit por click */
