/* EasyProperty on phones like an app (owner, 2 Nov 2026): bottom tabs, install banner, low data, page transitions.
   Design rule: flat, white, one teal for the main action; no gradients or glow. */

/* page-to-page transitions where the browser supports them (Chrome 126+); nothing changes elsewhere */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* no sideways scrolling on any page (clip, not hidden: hidden would break sticky headers) */
html { overflow-x: clip; }

/* ---------- bottom tabs (phones only) ---------- */
.ep-tabbar { display: none; }
@media (max-width: 767px) {
	.ep-tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
		display: flex; justify-content: space-around;
		background: #fff; border-top: 1px solid #e2e8f0;
		padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
	}
	.ep-tabbar a {
		flex: 1 1 0; min-width: 0; min-height: 56px;
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		color: #4f5d6b; font-size: 11px; font-weight: 600; line-height: 1.2; text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	.ep-tabbar svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.ep-tabbar a[aria-current="page"] { color: #177b85; }
	.ep-tabbar a[aria-current="page"] svg { stroke-width: 2.2; }
	.ep-tabbar a:focus-visible { outline: 2px solid #177b85; outline-offset: -4px; border-radius: 8px; }

	/* room for the tabs under the page, and the floating buttons sit above them */
	html.ep-has-tabbar body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
	html.ep-has-tabbar #ep-fb-btn, html.ep-has-tabbar #ae-btn { bottom: calc(68px + env(safe-area-inset-bottom)); }
	html.ep-has-tabbar #ep-fb-box { bottom: calc(116px + env(safe-area-inset-bottom)); }
	html.ep-has-tabbar .sr-sheet-foot { bottom: 0; z-index: 1061; }

	/* the account area already has its own tabs at the bottom */
	body:has(.epa-tabs) .ep-tabbar { display: none; }
	html.ep-has-tabbar body:has(.epa-tabs) { padding-bottom: 0; }
}

/* ---------- install banner ---------- */
.ep-install {
	position: fixed; left: 12px; right: 12px; z-index: 1050;
	bottom: calc(12px + env(safe-area-inset-bottom));
	max-width: 460px; margin: 0 auto;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
	background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 12px 12px 12px 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.ep-install[hidden] { display: none; }
html.ep-has-tabbar .ep-install { bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { html.ep-has-tabbar .ep-install { bottom: 24px; } }
.ep-install p { margin: 0; flex: 1 1 200px; font-size: 14px; line-height: 1.4; color: #334155; }
.ep-install strong { color: #0f172a; }
.ep-install-sub { display: block; color: #4f5d6b; }
.ep-install svg { vertical-align: -3px; }
.ep-install-btns { display: flex; gap: 8px; }
.ep-install button { min-height: 44px; padding: 0 16px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ep-install-go { background: #177b85; color: #fff; border: 0; }
.ep-install-no { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.ep-install.is-ios .ep-install-go { display: none; }

/* ---------- low data ---------- */
html.ep-lowdata .lm-poster { background-image: none !important; background-color: #0f1e2d; }
html.ep-lowdata .ep-skyline { display: none; }
.ep-ld-state { margin-left: 6px; font-size: 12px; font-weight: 700; color: #4f5d6b; }
.ep-lowdata-toggle { width: 100%; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }

/* ---------- offline / back online note ---------- */
.ep-net {
	position: fixed; left: 50%; transform: translateX(-50%); z-index: 1060;
	top: calc(8px + env(safe-area-inset-top));
	max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px;
	background: #0f172a; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3;
}
.ep-net.is-online { background: #177b85; }
.ep-net[hidden] { display: none; }

/* ---------- listing photo strip: one badge (camera + "1 / 8", the .lp-g-all button) ---------- */
.lp-gallery { position: relative; }
.lp-g-all .fa-camera { margin-right: 4px; }

/* ---------- no layout shift: photos keep their box while loading ---------- */
.lp-g-item img, .sr-card img, .property-listing img { background: #f1f5f9; }

/* "This is a registered business name" under an agent name field (owner, 7 Nov 2026) */
.an-biz { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 14px; color: #26414b; cursor: pointer; }
.an-biz input { width: 20px; height: 20px; margin: 0; }
