/* ============================================================
   Lethouse · Panel de propietario — login, registro y
   detalle de solicitud de reserva.
   Usa los tokens de marca definidos en main.css (--lh-green, etc.)
   ============================================================ */

:root {
	--lh-green-dark: #2b7565;
	--lh-ink: #1c1c1e;
	--lh-panel-bg: #f6f7f8;
	--lh-ok: #1a7f5a;
	--lh-ok-bg: #e6f4ee;
	--lh-warn: #b25e00;
	--lh-warn-bg: #fbeede;
	--lh-neutral-bg: #eef0f2;
}

/* ---------- AUTH (login + registro) ---------- */
.lh-auth {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	min-height: 100vh;
	background: #fff;
}

.lh-auth-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 48px 56px;
	color: #fff;
	background:
		linear-gradient(150deg, rgba(20, 60, 51, 0.86), rgba(43, 117, 101, 0.82)),
		url('/images/ciudades/encarnacion.png') center/cover no-repeat;
	overflow: hidden;
}

.lh-auth-visual-logo {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.lh-auth-visual-copy {
	position: relative;
	z-index: 2;
	max-width: 440px;
}

.lh-auth-visual-copy h2 {
	font-size: 38px;
	line-height: 1.08;
	font-weight: 800;
	margin: 0 0 18px;
	color: #fff;
}

.lh-auth-visual-copy p {
	font-size: 17px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
}

.lh-auth-visual-points {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lh-auth-visual-points li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.94);
}

.lh-auth-visual-points i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	font-size: 13px;
}

.lh-auth-form {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	background: var(--lh-panel-bg);
}

.lh-auth-card {
	width: 100%;
	max-width: 420px;
}

.lh-auth-card h1 {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.4px;
	margin: 0 0 6px;
	color: var(--lh-ink);
}

.lh-auth-card .lh-auth-sub {
	font-size: 15px;
	color: var(--lh-muted);
	margin: 0 0 28px;
}

.lh-field {
	margin-bottom: 16px;
}

.lh-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--lh-ink);
	margin-bottom: 7px;
}

.lh-field input,
.lh-field select {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--lh-border);
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	color: var(--lh-ink);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.lh-field input:focus,
.lh-field select:focus {
	outline: none;
	border-color: var(--lh-green);
	box-shadow: 0 0 0 3px rgba(55, 149, 125, 0.16);
}

.lh-field-inline {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	color: var(--lh-ink);
	margin-bottom: 16px;
}

.lh-field-inline input {
	width: 17px;
	height: 17px;
	accent-color: var(--lh-green);
}

.lh-btn-primary {
	width: 100%;
	height: 52px;
	border: none;
	border-radius: 12px;
	background: var(--lh-green);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, transform 0.05s;
}

.lh-btn-primary:hover { background: var(--lh-green-dark); }
.lh-btn-primary:active { transform: translateY(1px); }

.lh-btn-google {
	width: 100%;
	min-height: 48px;
	margin: 4px 0 18px;
	border: 1px solid #d7ddd9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	background: #fff;
	color: #202724;
	font-weight: 700;
	text-decoration: none;
}

.lh-btn-google:hover { border-color: #8ea19a; color: #0c6f59; }
.lh-btn-google i { color: #4285f4; font-size: 18px; }
.lh-auth-divider { position: relative; margin: 0 0 18px; text-align: center; }
.lh-auth-divider::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: #e1e5e2; }
.lh-auth-divider span { position: relative; padding: 0 12px; background: #fff; color: #7a837f; font-size: 11px; }

.lh-auth-alt {
	text-align: center;
	font-size: 14px;
	color: var(--lh-muted);
	margin: 22px 0 0;
}

.lh-auth-alt a { color: var(--lh-green); font-weight: 600; }

.lh-auth-forgot {
	text-align: right;
	font-size: 13px;
	margin: -6px 0 18px;
}

.lh-auth-forgot a { color: var(--lh-muted); }
.lh-auth-forgot a:hover { color: var(--lh-green); }

.lh-auth-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	color: var(--lh-muted);
	font-size: 13px;
	font-weight: 650;
}

.lh-auth-back:hover {
	color: var(--lh-green);
}

.lh-auth-request {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 14px;
	margin-bottom: 24px;
	padding: 14px;
	border: 1px solid rgba(55, 149, 125, 0.25);
	border-radius: 12px;
	background: rgba(55, 149, 125, 0.07);
}

.lh-auth-request > img {
	width: 84px;
	height: 96px;
	display: block;
	border-radius: 9px;
	object-fit: cover;
}

.lh-auth-request > div {
	min-width: 0;
}

.lh-auth-request span {
	display: block;
	color: var(--lh-green-dark);
	font-size: 11px;
	font-weight: 750;
	line-height: 1.35;
	text-transform: uppercase;
}

.lh-auth-request span i {
	margin-right: 4px;
}

.lh-auth-request strong {
	display: block;
	margin-top: 5px;
	overflow: hidden;
	color: var(--lh-ink);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lh-auth-request ul {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 10px;
	margin: 7px 0;
	padding: 0;
	list-style: none;
}

.lh-auth-request li {
	color: #4d5955;
	font-size: 11px;
	line-height: 1.35;
}

.lh-auth-request li + li:before {
	content: none;
}

.lh-auth-request li + li {
	padding-left: 10px;
	border-left: 1px solid #c8d1ce;
}

.lh-auth-request small {
	display: block;
	color: var(--lh-muted);
	font-size: 11px;
	line-height: 1.4;
}

.lh-auth-owner-link {
	margin: 10px 0 0;
	color: var(--lh-muted);
	font-size: 13px;
	text-align: center;
}

.lh-auth-owner-link a {
	color: var(--lh-ink);
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lh-auth-success,
.lh-auth-expired {
	margin-bottom: 22px;
	padding: 22px;
	border-radius: 12px;
	text-align: center;
}

.lh-auth-success {
	background: var(--lh-ok-bg);
	color: var(--lh-ok);
}

.lh-auth-expired {
	background: var(--lh-warn-bg);
	color: var(--lh-warn);
}

.lh-auth-success > i,
.lh-auth-expired > i {
	font-size: 28px;
}

.lh-auth-success h1,
.lh-auth-expired h1 {
	margin-top: 10px;
}

.lh-auth-success p,
.lh-auth-expired p {
	margin: 7px 0 0;
	color: inherit;
	font-size: 14px;
	line-height: 1.55;
}

.lh-btn-as-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 900px) {
	.lh-auth { grid-template-columns: 1fr; }
	.lh-auth-visual { display: none; }
	.lh-auth-form { min-height: 100vh; }
}

@media (max-width: 520px) {
	.lh-auth-form {
		align-items: flex-start;
		padding: 28px 20px 48px;
	}

	.lh-auth-request {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.lh-auth-request > img {
		width: 68px;
		height: 86px;
	}
}

/* ---------- DETALLE DE RESERVA ---------- */
.lh-rd {
	background: var(--lh-panel-bg);
	min-height: 100vh;
}

.lh-rd-shell {
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 24px 80px;
}

.lh-rd-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lh-muted);
	margin-bottom: 18px;
}
.lh-rd-back:hover { color: var(--lh-green); }

.lh-rd-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 6px;
}

.lh-rd-head h1 {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.4px;
	margin: 0;
	color: var(--lh-ink);
}

.lh-rd-sub {
	font-size: 14px;
	color: var(--lh-muted);
	margin: 0 0 24px;
}

.lh-rd-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 22px;
	align-items: start;
}

.lh-card {
	background: #fff;
	border: 1px solid var(--lh-border);
	border-radius: 16px;
	padding: 22px 24px;
	margin-bottom: 22px;
	box-shadow: var(--lh-soft-shadow);
}

.lh-card h3 {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--lh-muted);
	margin: 0 0 16px;
}

/* Pill de estado */
.lh-state-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: var(--lh-neutral-bg);
	color: var(--lh-ink);
}
.lh-state-pill.is-pendiente { background: var(--lh-warn-bg); color: var(--lh-warn); }
.lh-state-pill.is-aprobada,
.lh-state-pill.is-pagada,
.lh-state-pill.is-enCurso,
.lh-state-pill.is-completada { background: var(--lh-ok-bg); color: var(--lh-ok); }
.lh-state-pill.is-cancelada,
.lh-state-pill.is-rechazada { background: #fbe9e9; color: #b23a3a; }

/* Datos de la reserva en grilla */
.lh-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 24px;
}
.lh-fact-label {
	font-size: 12px;
	color: var(--lh-muted);
	margin: 0 0 3px;
}
.lh-fact-value {
	font-size: 15px;
	font-weight: 600;
	color: var(--lh-ink);
	margin: 0;
}

/* Desglose económico */
.lh-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	font-size: 14px;
	color: var(--lh-ink);
	border-bottom: 1px solid var(--lh-border);
}
.lh-breakdown-row span:first-child { color: var(--lh-muted); }
.lh-breakdown-row.is-muted span { color: var(--lh-muted); font-size: 13px; }
.lh-breakdown-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 14px 0 2px;
	font-size: 17px;
	font-weight: 800;
	color: var(--lh-ink);
}
.lh-breakdown-total strong { color: var(--lh-green); }

.lh-operation-summary {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 10px 0; border-bottom: 1px solid var(--lh-border);
	font-size: 14px;
}
.lh-operation-summary span { color: var(--lh-muted); }
.lh-operation-form { display: grid; gap: 12px; margin-top: 16px; }
.lh-operation-form label {
	display: grid; gap: 6px; color: var(--lh-muted);
	font-size: 12px; font-weight: 600;
}
.lh-operation-form input,
.lh-operation-form select,
.lh-operation-form textarea {
	width: 100%; border: 1px solid var(--lh-border); border-radius: 8px;
	padding: 10px 12px; background: #fff; color: var(--lh-ink); font: inherit;
}
.lh-operation-form button {
	border: 0; border-radius: 8px; padding: 10px 14px;
	background: var(--lh-green); color: #fff; font-weight: 700; cursor: pointer;
}
.lh-operation-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lh-operation-actions button { flex: 1; }
.lh-operation-form button.is-danger { background: #a94747; }
.lh-actas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) {
	.lh-actas-grid { grid-template-columns: 1fr; }
}

/* Mensaje del huésped */
.lh-quote {
	position: relative;
	padding: 16px 18px;
	background: var(--lh-panel-bg);
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--lh-ink);
	font-style: italic;
}

/* Timeline */
.lh-timeline { list-style: none; margin: 0; padding: 0; }
.lh-timeline-step {
	position: relative;
	padding: 0 0 20px 26px;
	font-size: 14px;
	color: var(--lh-muted);
}
.lh-timeline-step:last-child { padding-bottom: 0; }
.lh-timeline-step::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 3px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--lh-border);
}
.lh-timeline-step::after {
	content: '';
	position: absolute;
	left: 11px;
	top: 14px;
	bottom: 0;
	width: 2px;
	background: var(--lh-border);
}
.lh-timeline-step:last-child::after { display: none; }
.lh-timeline-step.is-done { color: var(--lh-ink); font-weight: 600; }
.lh-timeline-step.is-done::before { background: var(--lh-green); border-color: var(--lh-green); }
.lh-timeline-step.is-current::before { box-shadow: 0 0 0 4px rgba(55, 149, 125, 0.18); }

/* ---------- TARJETA DE PERFIL DEL HUÉSPED ---------- */
.lh-guest-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}
.lh-guest-avatar {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--lh-green);
	color: #fff;
	font-size: 21px;
	font-weight: 700;
	flex-shrink: 0;
}
.lh-guest-name { font-size: 17px; font-weight: 700; color: var(--lh-ink); margin: 0 0 2px; }
.lh-guest-meta { font-size: 13px; color: var(--lh-muted); margin: 0; }

.lh-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
}
.lh-badge.is-ok { background: var(--lh-ok-bg); color: var(--lh-ok); }
.lh-badge.is-warning { background: var(--lh-warn-bg); color: var(--lh-warn); }
.lh-badge.is-neutral { background: var(--lh-neutral-bg); color: var(--lh-ink); }

.lh-badge-repeat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	background: #eef3ff;
	color: #2f5bd0;
	margin-left: 6px;
}

.lh-trust-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 18px 0;
}
.lh-trust-item {
	padding: 12px 14px;
	background: var(--lh-panel-bg);
	border-radius: 12px;
}
.lh-trust-item .num { font-size: 20px; font-weight: 800; color: var(--lh-ink); }
.lh-trust-item .lbl { font-size: 12px; color: var(--lh-muted); }

.lh-guest-warning {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	background: var(--lh-warn-bg);
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--lh-warn);
	margin: 14px 0;
}

.lh-contact-lock {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 15px;
	background: var(--lh-panel-bg);
	border: 1px dashed var(--lh-border);
	border-radius: 12px;
	font-size: 13px;
	color: var(--lh-muted);
}
.lh-contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	font-size: 14px;
	color: var(--lh-ink);
	border-bottom: 1px solid var(--lh-border);
}
.lh-contact-row:last-child { border-bottom: none; }
.lh-contact-row i { color: var(--lh-green); width: 18px; }
.lh-contact-row a { color: var(--lh-ink); font-weight: 600; }

/* Acciones aprobar / rechazar */
.lh-rd-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}
.lh-rd-actions form { flex: 1; }
.lh-btn-approve,
.lh-btn-reject {
	width: 100%;
	height: 48px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
}
.lh-btn-approve { background: var(--lh-green); color: #fff; }
.lh-btn-approve:hover { background: var(--lh-green-dark); }
.lh-btn-reject { background: #fff; color: #b23a3a; border-color: var(--lh-border); }
.lh-btn-reject:hover { border-color: #b23a3a; }

@media (max-width: 860px) {
	.lh-rd-grid { grid-template-columns: 1fr; }
	.lh-facts { grid-template-columns: 1fr; }
}

/* ---------- SWITCH DE MODALIDAD (tarjetas de publicación) ---------- */
.lh-modo-toggle {
	display: inline-flex;
	padding: 3px;
	background: var(--lh-neutral-bg);
	border-radius: 999px;
	gap: 2px;
}
.lh-modo-toggle button {
	border: none;
	background: transparent;
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--lh-muted);
	cursor: pointer;
}
.lh-modo-toggle button.is-active {
	background: #fff;
	color: var(--lh-ink);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Badge de verificación en la fila de solicitudes del dashboard */
.lh-verif-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}
.lh-verif-chip.is-ok { background: var(--lh-ok-bg); color: var(--lh-ok); }
.lh-verif-chip.is-warning { background: var(--lh-warn-bg); color: var(--lh-warn); }
.lh-verif-chip.is-neutral { background: var(--lh-neutral-bg); color: var(--lh-ink); }

/* ── Header slim del panel para la ficha de reserva ─────────────── */
.lh-rd-topbar {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 24px;
	background: #fff;
	border-bottom: 1px solid var(--lh-border);
	position: sticky; top: 0; z-index: 20;
}
.lh-rd-topbar-brand { display: flex; align-items: center; gap: 10px; }
.lh-rd-topbar-brand img { height: 24px; width: auto; }
.lh-rd-topbar-brand span {
	font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
	text-transform: uppercase; color: var(--lh-muted); padding-top: 3px;
}
.lh-rd-topbar-back {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13.5px; font-weight: 600; color: var(--lh-muted);
	padding: 8px 14px; border: 1px solid var(--lh-border); border-radius: 10px;
}
.lh-rd-topbar-back:hover { color: var(--lh-green); border-color: var(--lh-green); }
