/* Air Realty client portal. Colours follow the theme's tokens when present. */
.alf-portal {
	--alf-brand: var(--ar-brand, #0a74b9);
	--alf-brand-strong: var(--ar-brand-strong, #075a91);
	--alf-brand-soft: var(--ar-brand-soft, #e6f5fc);
	--alf-ink: var(--ar-ink, #0d1b2a);
	--alf-muted: var(--ar-muted, #5a6b7d);
	--alf-line: var(--ar-line, #e3e9ef);
	--alf-bg: var(--ar-surface, #ffffff);
	--alf-soft: var(--ar-soft, #f5f8fb);
	--alf-sun: var(--ar-sun, #f7dd7f);
	--alf-ok: #157f4a;
	--alf-warn: #a15c07;
	--alf-err: #b42318;
	--alf-radius: var(--ar-radius, 16px);
	--alf-shadow: var(--ar-shadow, 0 1px 2px rgba(13, 27, 42, .05), 0 8px 24px rgba(13, 27, 42, .06));
	color: var(--alf-ink);
	font-size: 16px;
	line-height: 1.55;
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 0 64px;
}
.alf-portal *, .alf-portal *::before, .alf-portal *::after { box-sizing: border-box; }
.alf-portal h1, .alf-portal h2, .alf-portal h3 { color: var(--alf-ink); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
.alf-portal p { margin: 0 0 1em; }
.alf-portal a { color: var(--alf-brand); }
.alf-muted { color: var(--alf-muted); }
.alf-small { font-size: 14px; }
.alf-h1 { font-size: clamp(26px, 3vw, 34px); }
.alf-h2 { font-size: 20px; }
.alf-h3 { font-size: 16px; }
.alf-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--alf-brand); margin-bottom: 10px; }
.alf-lead { font-size: 18px; color: var(--alf-muted); }

.alf-card { background: var(--alf-bg); border: 1px solid var(--alf-line); border-radius: var(--alf-radius); box-shadow: var(--alf-shadow); padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.alf-card--soft { background: var(--alf-soft); box-shadow: none; }
.alf-cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; align-items: start; }
.alf-cols--wide-left { grid-template-columns: 1.6fr 1fr; }
.alf-cols > .alf-card { margin-bottom: 0; }
.alf-cols + .alf-card, .alf-card + .alf-cols { margin-top: 20px; }
.alf-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* buttons */
.alf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.alf-btn--primary { background: var(--alf-brand); color: #fff !important; box-shadow: 0 6px 16px rgba(10, 116, 185, .25); }
.alf-btn--primary:hover { background: var(--alf-brand-strong); transform: translateY(-1px); }
.alf-btn--outline { background: #fff; color: var(--alf-brand) !important; border-color: var(--alf-brand); }
.alf-btn--outline:hover { background: var(--alf-brand-soft); transform: translateY(-1px); }
.alf-btn--block { width: 100%; }
.alf-btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.alf-btn:focus-visible, .alf-portal a:focus-visible, .alf-portal input:focus-visible, .alf-portal select:focus-visible, .alf-portal textarea:focus-visible { outline: 3px solid var(--alf-sun); outline-offset: 2px; }

/* forms */
.alf-form { display: grid; gap: 18px; }
.alf-form .alf-btn { justify-self: start; }
.alf-form .alf-btn--block { justify-self: stretch; }
.alf-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.alf-field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.alf-field em { font-style: normal; font-weight: 400; color: var(--alf-muted); }
.alf-field input, .alf-field select, .alf-field textarea {
	width: 100%; font: inherit; font-weight: 400; color: var(--alf-ink); background: #fff;
	border: 1px solid #cdd6df; border-radius: 12px; padding: 12px 14px; min-height: 48px;
	transition: border-color .15s, box-shadow .15s;
}
.alf-field textarea { min-height: 0; resize: vertical; }
.alf-field input:focus, .alf-field select:focus, .alf-field textarea:focus { border-color: var(--alf-brand); box-shadow: 0 0 0 4px var(--alf-brand-soft); outline: none; }
.alf-money { position: relative; display: block; }
.alf-money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--alf-muted); font-weight: 600; }
.alf-money input { padding-left: 28px; font-size: 18px; font-weight: 700; }
.alf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alf-drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 32px 20px; border: 2px dashed #b9c7d4; border-radius: var(--alf-radius); background: var(--alf-soft); cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400; }
.alf-drop:hover, .alf-drop.is-over { border-color: var(--alf-brand); background: var(--alf-brand-soft); }
.alf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.alf-drop__icon { font-size: 28px; color: var(--alf-brand); line-height: 1; }
.alf-drop__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.alf-drop__list span { background: #fff; border: 1px solid var(--alf-line); border-radius: 999px; padding: 2px 10px; font-size: 13px; }

/* notices */
.alf-notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; font-weight: 600; border: 1px solid; }
.alf-notice--success { background: #ecfdf3; border-color: #abefc6; color: var(--alf-ok); }
.alf-notice--error { background: #fef3f2; border-color: #fecdca; color: var(--alf-err); }

/* login */
.alf-login { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: 1.1fr 1fr; align-items: center; padding: clamp(8px, 3vw, 32px) 0; }
.alf-login__title { font-size: clamp(32px, 4.4vw, 48px); }
.alf-login__card { margin: 0; }
.alf-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.alf-checks li { position: relative; padding-left: 32px; }
.alf-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--alf-brand-soft); color: var(--alf-brand); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.alf-sent { text-align: center; }
.alf-sent__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--alf-brand-soft); color: var(--alf-brand); display: grid; place-items: center; font-size: 28px; margin: 0 auto 16px; }

/* signed in */
.alf-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; padding: 0 0 18px; border-bottom: 1px solid var(--alf-line); margin-bottom: 24px; }
.alf-topbar__links { display: flex; gap: 18px; }
.alf-topbar__links a { font-weight: 600; text-decoration: none; }

.alf-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.alf-hero__title { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px !important; }
.alf-hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--alf-muted); margin: 0 !important; }
.alf-hero__side { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.alf-hero__price { display: grid; text-align: right; }
.alf-hero__price span { font-size: 13px; }
.alf-hero__price strong { font-size: 28px; letter-spacing: -.02em; }

.alf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--alf-soft); color: var(--alf-muted); white-space: nowrap; }
.alf-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.alf-pill--active, .alf-pill--paid, .alf-pill--sold { background: #e7f7ee; color: var(--alf-ok); }
.alf-pill--received, .alf-pill--signing, .alf-pill--open { background: #fff4e0; color: var(--alf-warn); }
.alf-pill--conditional { background: var(--alf-brand-soft); color: var(--alf-brand-strong); }

.alf-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--alf-line); margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.alf-tabs::-webkit-scrollbar { display: none; }
.alf-tabs a { flex: none; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--alf-muted) !important; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.alf-tabs a:hover { color: var(--alf-ink) !important; }
.alf-tabs a.is-active { color: var(--alf-brand) !important; border-color: var(--alf-brand); }

.alf-steps { list-style: none; margin: 20px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.alf-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--alf-muted); }
.alf-steps li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--alf-line); z-index: 0; }
.alf-steps li:first-child::before { display: none; }
.alf-steps__dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--alf-line); }
.alf-steps li.is-done::before, .alf-steps li.is-current::before { background: var(--alf-brand); }
.alf-steps li.is-done .alf-steps__dot { background: var(--alf-brand); border-color: var(--alf-brand); }
.alf-steps li.is-done .alf-steps__dot::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; height: 100%; }
.alf-steps li.is-current { color: var(--alf-ink); }
.alf-steps li.is-current .alf-steps__dot { border-color: var(--alf-brand); box-shadow: 0 0 0 5px var(--alf-brand-soft); }

.alf-dl { margin: 0; display: grid; gap: 0; }
.alf-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--alf-line); }
.alf-dl div:last-child { border-bottom: 0; }
.alf-dl dt { color: var(--alf-muted); }
.alf-dl dd { margin: 0; font-weight: 700; text-align: right; }

.alf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alf-action { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--alf-line); border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--alf-ink) !important; text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.alf-action:hover { border-color: var(--alf-brand); background: var(--alf-brand-soft); transform: translateY(-1px); }
.alf-action__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--alf-brand-soft); color: var(--alf-brand); font-weight: 800; }

.alf-listing-card { display: block; text-decoration: none; color: inherit !important; transition: transform .15s, box-shadow .15s; }
.alf-listing-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13, 27, 42, .1); }
.alf-listing-card h2 { margin-top: 14px; font-size: 22px; }
.alf-price { font-size: 22px; font-weight: 800; margin: 8px 0 12px !important; }
.alf-link { color: var(--alf-brand); font-weight: 700; }
.alf-add-card { display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px; min-height: 220px; border: 2px dashed #b9c7d4; background: var(--alf-soft); box-shadow: none; text-decoration: none; color: inherit !important; transition: border-color .15s, background .15s; }
.alf-add-card:hover { border-color: var(--alf-brand); background: var(--alf-brand-soft); }
.alf-add-card h2 { font-size: 20px; margin: 8px 0 2px !important; }
.alf-add-card p { margin: 0 !important; max-width: 240px; }
.alf-add-card__plus { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--alf-brand); color: #fff; font-size: 28px; font-weight: 700; line-height: 1; }
.alf-empty { text-align: center; max-width: 560px; margin: 24px auto; }

.alf-timeline, .alf-files { list-style: none; margin: 0; padding: 0; }
.alf-timeline li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--alf-line); }
.alf-timeline li:last-child { border-bottom: 0; }
.alf-timeline__what { font-weight: 600; }
.alf-timeline .alf-muted { grid-column: 1; font-size: 14px; }
.alf-timeline .alf-pill { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.alf-files li { display: grid; padding: 10px 0; border-bottom: 1px solid var(--alf-line); font-size: 15px; }
.alf-files li:last-child { border-bottom: 0; }
.alf-files a { font-weight: 600; word-break: break-all; }
.alf-files .alf-muted { font-size: 13px; }

.alf-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.alf-gallery li { display: grid; gap: 6px; font-size: 13px; color: var(--alf-muted); }
.alf-gallery img, .alf-gallery__file { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--alf-line); display: grid; place-items: center; padding: 8px; word-break: break-all; text-align: center; }
.alf-gallery img { padding: 0; }

.alf-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 12px; }
.alf-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--alf-muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--alf-line); }
.alf-table td { padding: 14px 8px; border-bottom: 1px solid var(--alf-line); vertical-align: middle; }
.alf-table__links { text-align: right; white-space: nowrap; }
.alf-table__links a { font-weight: 700; margin-left: 12px; }
.alf-portal .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 860px) {
	.alf-login, .alf-cols, .alf-cols--wide-left { grid-template-columns: 1fr; }
	.alf-hero { align-items: flex-start; }
	.alf-hero__side { width: 100%; justify-content: space-between; }
	.alf-hero__price { text-align: left; }
}
@media (max-width: 560px) {
	.alf-row, .alf-actions { grid-template-columns: 1fr; }
	.alf-steps { grid-template-columns: 1fr; gap: 14px; }
	.alf-steps li { grid-template-columns: 24px 1fr; justify-items: start; text-align: left; }
	.alf-steps li::before { left: 10.5px; top: -14px; width: 3px; height: 14px; }
	.alf-steps li:first-child::before { display: none; }
	.alf-table thead { display: none; }
	.alf-table, .alf-table tbody, .alf-table tr, .alf-table td { display: block; width: 100%; }
	.alf-table tr { padding: 10px 0; border-bottom: 1px solid var(--alf-line); }
	.alf-table td { border: 0; padding: 3px 0; }
	.alf-table__links { text-align: left; }
	.alf-table__links a { margin: 0 16px 0 0; }
	.alf-form .alf-btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.alf-portal * { transition: none !important; }
}
