/* Stayly Host Dashboard */
:root {
	--sh-brand: var(--stayly-brand, #0f766e);
	--sh-text: #111827;
	--sh-muted: #6b7280;
	--sh-line: #e5e7eb;
	--sh-soft: #f9fafb;
	--sh-radius: 12px;
}

.stayly-host * { box-sizing: border-box; }
.stayly-host { color: var(--sh-text); max-width: 1120px; margin: 0 auto; padding: 24px 16px; font-size: 14px; }

/* Header */
.stayly-host__header {
	display: flex; justify-content: space-between; align-items: center;
	padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--sh-line);
	flex-wrap: wrap; gap: 12px;
}
.stayly-host__hello { color: var(--sh-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: block; }
.stayly-host__welcome strong { font-size: 20px; }
.stayly-host__header-actions { display: flex; align-items: center; gap: 14px; }
.stayly-host__logout { color: var(--sh-muted); text-decoration: none; font-size: 13px; }
.stayly-host__logout:hover { color: var(--sh-text); text-decoration: underline; }

/* Body layout */
.stayly-host__body { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
@media (max-width: 900px) { .stayly-host__body { grid-template-columns: 1fr; } }

/* Nav */
.stayly-host__nav {
	display: flex; flex-direction: column; gap: 4px;
	background: var(--sh-soft); border-radius: var(--sh-radius); padding: 8px;
}
@media (max-width: 900px) {
	.stayly-host__nav { flex-direction: row; overflow-x: auto; padding: 6px; gap: 2px; }
	.stayly-host__nav-item { white-space: nowrap; }
}
.stayly-host__nav-item {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; border-radius: 8px;
	color: var(--sh-text); text-decoration: none; font-weight: 500;
	transition: background .15s ease, color .15s ease;
}
.stayly-host__nav-item:hover { background: #fff; color: var(--sh-brand); }
.stayly-host__nav-item.is-active { background: var(--sh-brand); color: #fff; }
.stayly-host__nav-icon { font-size: 16px; }

/* Main */
.stayly-host__main { min-width: 0; }
.stayly-host__section-title { margin: 0 0 12px; font-size: 22px; }
.stayly-host__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stayly-host__empty { padding: 24px; text-align: center; background: var(--sh-soft); border-radius: var(--sh-radius); color: var(--sh-muted); }

/* Stats */
.stayly-host__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stayly-stat { background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 16px; }
.stayly-stat--accent { background: color-mix(in srgb, var(--sh-brand) 8%, white); border-color: color-mix(in srgb, var(--sh-brand) 20%, white); }
.stayly-stat__label { display: block; font-size: 12px; color: var(--sh-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.stayly-stat__value { font-size: 24px; font-weight: 700; color: var(--sh-text); }

/* Filters */
.stayly-host__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.stayly-host__filter { padding: 6px 12px; border-radius: 999px; background: var(--sh-soft); color: var(--sh-text); text-decoration: none; font-size: 13px; }
.stayly-host__filter.is-active { background: var(--sh-brand); color: #fff; }

/* Property cards */
.stayly-host__properties { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.stayly-host-property { background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); overflow: hidden; display: flex; flex-direction: column; }
.stayly-host-property__media { position: relative; aspect-ratio: 4/3; background: var(--sh-soft); }
.stayly-host-property__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stayly-host-property__placeholder { display: grid; place-items: center; height: 100%; font-size: 48px; color: var(--sh-muted); }
.stayly-host-property__status { position: absolute; top: 8px; left: 8px; background: #10b981; color: #fff; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stayly-host-property__status--draft { background: #6b7280; }
.stayly-host-property__body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.stayly-host-property__body h3 { margin: 0; font-size: 15px; }
.stayly-host-property__price { margin: 0; color: var(--sh-muted); font-size: 13px; }
.stayly-host-property__price strong { color: var(--sh-brand); }
.stayly-host-property__actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.stayly-host-property__delete { color: #ef4444; text-decoration: none; font-size: 12px; margin-left: auto; }
.stayly-host-property__delete:hover { text-decoration: underline; }

/* Property form */
.stayly-host-form { max-width: 720px; }
.stayly-host-form fieldset { border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 16px; margin: 0 0 16px; }
.stayly-host-form legend { padding: 0 8px; font-weight: 700; color: var(--sh-brand); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.stayly-host-form label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.stayly-host-form label > span { font-size: 12px; font-weight: 600; color: var(--sh-muted); letter-spacing: .02em; }
.stayly-host-form input[type="text"],
.stayly-host-form input[type="number"],
.stayly-host-form input[type="email"],
.stayly-host-form input[type="tel"],
.stayly-host-form input[type="password"],
.stayly-host-form input[type="file"],
.stayly-host-form textarea,
.stayly-host-form select {
	width: 100%; padding: 9px 11px;
	border: 1px solid var(--sh-line); border-radius: 8px;
	font: inherit; background: #fff; color: var(--sh-text);
}
.stayly-host-form input:focus,
.stayly-host-form textarea:focus,
.stayly-host-form select:focus { outline: 2px solid var(--sh-brand); outline-offset: 1px; border-color: transparent; }
.stayly-host-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.stayly-host-form__amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; margin-bottom: 8px; }
.stayly-host-form__checkbox { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; }
.stayly-host-form__checkbox input { width: auto !important; margin: 0; }
.stayly-host-form__hint { font-size: 12px; color: var(--sh-muted); margin: 6px 0 0; }
.stayly-host-form__thumb { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.stayly-host-form__thumb img { border-radius: 8px; max-width: 100px; }
.stayly-host-form__submit { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.stayly-host__cancel { color: var(--sh-muted); text-decoration: none; }
.stayly-host__cancel:hover { color: var(--sh-text); text-decoration: underline; }
.stayly-host__notice { padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
.stayly-host__notice.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Booking rows */
.stayly-host__list { display: flex; flex-direction: column; gap: 12px; }
.stayly-host-booking { background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 16px; }
.stayly-host-booking__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.stayly-host-booking__title { margin: 0; font-size: 15px; }
.stayly-host-booking__property { margin: 2px 0 0; color: var(--sh-muted); font-size: 13px; }
.stayly-host-booking__status { color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stayly-host-booking__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 10px; }
.stayly-host-booking__grid dt { color: var(--sh-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.stayly-host-booking__grid dd { margin: 0; font-weight: 500; }
.stayly-host-booking__grid strong { color: var(--sh-brand); }
.stayly-host-booking__contact { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; padding-block: 8px; border-top: 1px dashed var(--sh-line); }
.stayly-host-booking__contact a { color: var(--sh-text); }
.stayly-host-booking__notes { margin: 8px 0; padding: 8px 12px; background: var(--sh-soft); border-radius: 8px; font-style: italic; color: var(--sh-muted); }
.stayly-host-booking__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Auth screen */
.stayly-host-auth { max-width: 440px; margin: 40px auto; padding: 24px; background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); }
.stayly-host-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sh-soft); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.stayly-host-auth__tab { padding: 8px 12px; border: 0; background: transparent; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; color: var(--sh-muted); }
.stayly-host-auth__tab.is-active { background: #fff; color: var(--sh-brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stayly-host-auth__form { display: none; flex-direction: column; gap: 10px; }
.stayly-host-auth__form.is-active { display: flex; }
.stayly-host-auth__form h2 { margin: 0; font-size: 20px; }
.stayly-host-auth__lead { margin: 0 0 8px; color: var(--sh-muted); font-size: 13px; }
.stayly-host-auth__form label { display: flex; flex-direction: column; gap: 3px; }
.stayly-host-auth__form label > span { font-size: 12px; color: var(--sh-muted); font-weight: 600; }
.stayly-host-auth__form input {
	width: 100%; padding: 10px 12px;
	border: 1px solid var(--sh-line); border-radius: 8px; font: inherit;
}
.stayly-host-auth__form input:focus { outline: 2px solid var(--sh-brand); outline-offset: 1px; }
.stayly-host-auth__remember { flex-direction: row !important; align-items: center; gap: 6px; font-size: 13px; }
.stayly-host-auth__remember input { width: auto !important; }
.stayly-host-auth__message { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.stayly-host-auth__message.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.stayly-host-auth__message.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.stayly-host-auth [hidden] { display: none !important; }

/* Empty state */
.stayly-host__empty-state { padding: 32px; text-align: center; background: var(--sh-soft); border-radius: var(--sh-radius); margin-top: 24px; }
.stayly-host__empty-state h3 { margin: 0 0 6px; }
.stayly-host__empty-state p { color: var(--sh-muted); margin: 0 0 12px; }

/* Overview meta */
.stayly-host__meta { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 12px 0 0; }
.stayly-host__meta dt { color: var(--sh-muted); font-size: 13px; }
.stayly-host__meta dd { margin: 0; }
.stayly-host__view-all { color: var(--sh-brand); text-decoration: none; font-weight: 600; }
.stayly-host__hint { color: var(--sh-muted); font-size: 12px; margin-top: 12px; }
