/* ==========================================================================
   Siriniwasa theme — main stylesheet
   Design tokens and components ported from the Siriniwasa prototype.
   Every component class is prefixed `sw-` so it never collides with
   WordPress core, Elementor or plugin styles.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--color-primary: #0F766E;
	--color-primary-hover: #0B5B54;
	--color-primary-rgb: 15, 118, 110;
	--color-primary-tint: #E0E1FA;
	--color-secondary: #20970B;
	--color-neutral: #9C9C9C;
	--color-muted-text: #757575;
	--color-bg: #FAFAFA;
	/* Page background (1.2.0): body and footer only. Components keep their own
	   surfaces (white cards, boxes, chips, tables, forms, buttons). */
	--color-page: #F6F5F4;
	--color-surface: #FFFFFF;
	--color-text-primary: #0A0A0A;
	--color-text-secondary: #6B6B6B;
	--color-border: #E8E8EC;
	--color-success: #10B981;
	--color-warning: #F59E0B;
	--color-error: #EF4444;
	--color-urgent: #DC2626;
	--color-logout: #2E7D32;

	--font-display: 'Siriniwasa Display', 'DM Sans', system-ui, sans-serif;
	--font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--font-sinhala: 'Noto Sans Sinhala', 'Iskoola Pota', var(--font-display);

	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 14px;
	--radius-full: 9999px;

	--shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
	--shadow-panel: 0 8px 30px rgba(0, 0, 0, 0.05);
	--shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.25);
	--ring: 0 0 0 3px rgba(var(--color-primary-rgb), 0.22);

	--container: 1200px;
	--gutter: 24px;
	--header-h: 64px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--color-page);
	color: var(--color-text-primary);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
img, svg, video { max-width: 100%; }
img { height: auto; }
::selection { background: var(--color-primary-tint); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.sinh { font-family: var(--font-sinhala); }
[hidden] { display: none !important; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.sw-skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--color-surface); color: var(--color-text-primary);
	padding: 10px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-panel);
	font-weight: 600; transition: top .15s;
}
.sw-skip-link:focus { top: 12px; }
.sw-site:focus { outline: none; }

/* Honeypot */
.sw-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* JS / no-JS helpers (html.js is set by the theme, html.sw-js by the plugin). */
html:not(.js):not(.sw-js) .sw-js-only { display: none !important; }
html.js .sw-nojs-only, html.sw-js .sw-nojs-only { display: none !important; }

/* ---------- 3. Layout ---------- */
.sw-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sw-page { padding-top: 24px; padding-bottom: 56px; }
.sw-page--narrow { max-width: 820px; }
.sw-page--detail { max-width: 1120px; }
.sw-elementor-content { width: 100%; }
.sw-elementor-content > .elementor { width: 100%; }
.sw-app-page { min-height: 40vh; }
.sw-center { text-align: center; }
.sw-grow { flex: 1; }
.sw-nowrap { white-space: nowrap; }
.sw-mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-text-secondary); white-space: nowrap; }
.sw-muted { color: var(--color-text-secondary); }
.sw-small { font-size: 13px; }
.sw-mb { margin-bottom: 16px; }
.sw-mb-lg { margin-bottom: 24px !important; }

/* ---------- 4. Typography ---------- */
.sw-h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 6px; }
.sw-h1--xl { font-size: 34px; }
.sw-h1--results { margin-bottom: 6px; }
.sw-h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
.sw-h2--sm { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 14px; }
.sw-h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.3; }
.sw-h3--icon { display: flex; align-items: center; gap: 10px; }
.sw-h3--icon svg { color: var(--color-primary); }
.sw-display { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; }
.sw-lead { font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); margin: 0 auto; max-width: 620px; }
.sw-lead--sm { font-size: 15px; line-height: 1.5; }
.sw-overline { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); font-weight: 600; margin-bottom: 6px; }
.sw-body-muted { font-size: 15px; line-height: 1.7; color: var(--color-text-secondary); margin: 0 0 14px; }
.sw-body-muted:last-child { margin-bottom: 0; }
.sw-text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; min-height: 24px; }

/* ---------- 5. Header ---------- */
.sw-header {
	position: sticky; top: 0; z-index: 40;
	background: var(--color-surface); /* 1.3.0: solid white, never tinted by the page colour. */
	border-bottom: 1px solid var(--color-border);
}
.admin-bar .sw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sw-header { top: 0; } }
.sw-header__inner {
	max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sw-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text-primary); text-decoration: none; }
.sw-brand:hover { color: var(--color-text-primary); }
.sw-brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--color-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-brand__text { display: flex; flex-direction: column; line-height: 1; }
.sw-brand__word { font-size: 21px; font-weight: 700; letter-spacing: 0; }
.sw-brand__sub { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); margin-top: 3px; font-weight: 600; }
.sw-brand--footer .sw-brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.sw-brand--footer .sw-brand__word { font-size: 19px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 44px; width: auto; }

.sw-nav { display: flex; align-items: center; gap: 4px; }
.sw-nav__link {
	padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
	color: var(--color-text-secondary); transition: background .15s, color .15s;
}
.sw-nav__link:hover, .sw-nav__link.is-current { background: var(--color-bg); color: var(--color-text-primary); }
.sw-nav__logout, .sw-mnav__link.sw-nav__logout { color: var(--color-logout); font-weight: 600; }
.sw-nav__logout:hover { background: rgba(76, 175, 80, 0.12); color: var(--color-logout); }
.sw-nav__cta { margin-left: 8px; }
.sw-plus { font-size: 17px; line-height: 1; margin-top: -1px; }

.sw-burger {
	display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
	border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface);
	color: var(--color-text-primary); cursor: pointer; flex-shrink: 0; padding: 0;
}
.sw-burger__close { display: none; }
.sw-burger[aria-expanded="true"] .sw-burger__open { display: none; }
.sw-burger[aria-expanded="true"] .sw-burger__close { display: block; }
.sw-mnav {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
	background: var(--color-surface); border-bottom: 1px solid var(--color-border);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); padding: 12px 16px 18px;
	animation: sw-slide-down .18s ease;
}
.sw-mnav nav { display: flex; flex-direction: column; gap: 2px; }
.sw-mnav__link {
	display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--radius-md);
	font-size: 15px; font-weight: 500; color: var(--color-text-primary);
}
.sw-mnav__link:hover { background: var(--color-bg); color: var(--color-text-primary); }
.sw-mnav__cta { margin-top: 10px; min-height: 50px; font-size: 15px; }

/* ---------- 6. Footer ---------- */
.sw-footer { border-top: 1px solid var(--color-border); background: var(--color-page); }
.sw-footer__inner { max-width: var(--container); margin: 0 auto; padding: 44px var(--gutter); }
.sw-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.sw-footer__about .sw-brand { margin-bottom: 12px; }
.sw-footer__about p { font-size: 13px; line-height: 1.6; color: var(--color-text-secondary); margin: 0; max-width: 300px; }
.sw-footer__title { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); font-weight: 600; margin: 0 0 14px; }
.sw-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sw-footer__links a { font-size: 14px; color: var(--color-text-primary); }
.sw-footer__links a:hover { color: var(--color-primary); }
.sw-footer__links a.is-current, .sw-footer__links .current-menu-item > a { color: var(--color-primary); font-weight: 700; }
.sw-footer__bottom {
	margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-border);
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	font-size: 13px; color: var(--color-text-secondary);
}

/* ---------- 7. Buttons ---------- */
.sw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 42px; padding: 0 18px; border-radius: var(--radius-md); border: 1.5px solid transparent;
	font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1;
	cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background .16s, transform .16s, box-shadow .16s, border-color .16s, color .16s;
}
.sw-btn--primary { background: var(--color-primary); color: #fff; }
.sw-btn--primary:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.28); }
.sw-btn--outline { background: var(--color-surface); color: var(--color-text-primary); border-color: var(--color-border); }
.sw-btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.sw-btn--danger { background: var(--color-error); color: #fff; }
.sw-btn--danger:hover { background: #DC2626; color: #fff; }
.sw-btn--danger-hover:hover { border-color: var(--color-error); color: var(--color-error); }
.sw-btn--ghost { background: var(--color-bg); color: var(--color-muted-text); border-color: var(--color-border); }
.sw-btn.is-disabled, .sw-btn:disabled { cursor: not-allowed; }
.sw-btn--primary:disabled { background: var(--color-neutral); transform: none; box-shadow: none; }
.sw-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.sw-btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }
.sw-btn--xl { height: 52px; font-size: 15px; }
.sw-btn--block { width: 100%; }
.sw-btn--grow { flex: 1; }
.sw-btn--grow2 { flex: 1.4; }
.sw-btn.is-busy::before {
	content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
	border-radius: var(--radius-full); animation: sw-spin .7s linear infinite;
}
.sw-header .sw-btn, .sw-mnav .sw-btn { height: 40px; border-radius: var(--radius-sm); }

.sw-pill-btn {
	height: 42px; padding: 0 22px; border-radius: var(--radius-full); border: 1px solid var(--color-border);
	background: var(--color-surface); font-family: var(--font-body); font-size: 14px; font-weight: 600;
	color: var(--color-primary); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .16s;
}
.sw-pill-btn:hover { border-color: var(--color-primary); }
.sw-chevron { transition: transform .16s; }
[aria-expanded="true"] > .sw-chevron { transform: rotate(180deg); }

.sw-back-wrap { display: flex; margin: 0 0 22px; }
.sw-back-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
	border-radius: var(--radius-md); border: 1.5px solid var(--color-primary); background: var(--color-surface);
	font-size: 14px; font-weight: 600; color: var(--color-primary); white-space: nowrap;
}
.sw-back-pill:hover { background: var(--color-primary); color: #fff; }
.sw-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--color-primary); margin-bottom: 16px; }
.sw-back-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--radius-full);
	border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-primary);
	font-size: 13px; font-weight: 600; transition: all .16s;
}
.sw-back-chip:hover { border-color: var(--color-primary); }

/* ---------- 8. Form controls ---------- */
.sw-input, .sw-select {
	width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-md);
	border: 1.5px solid var(--color-border); background: var(--color-surface);
	font-family: var(--font-body); font-size: 14px; color: var(--color-text-primary);
	outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
	margin: 0;
}
.sw-input::placeholder { color: var(--color-muted-text); opacity: 1; }
.sw-input:focus, .sw-select:focus { border-color: var(--color-primary); box-shadow: var(--ring); }
.sw-input.is-invalid, .sw-select.is-invalid, .sw-input-group.is-invalid { border-color: var(--color-error); }
.sw-input[disabled], .sw-input[readonly] { background: var(--color-bg); color: var(--color-text-secondary); cursor: not-allowed; }
.sw-textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 140px; }
.sw-select {
	padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239C9C9C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.sw-select[disabled] { opacity: .55; cursor: not-allowed; }
.sw-select--sm { height: 38px; font-size: 13px; padding: 0 30px 0 12px; background-position: right 10px center; border-width: 1px; }
.sw-search .sw-input, .sw-search .sw-select { height: 44px; border-width: 1px; border-radius: var(--radius-sm); }
.sw-search .sw-select--native { padding-left: 14px; }

.sw-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--color-text-primary); }
.sw-label__hint { font-weight: 500; color: var(--color-muted-text); }
.sw-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.sw-label-row .sw-label { margin-bottom: 0; }
.sw-req { color: var(--color-error); }
.sw-counter { font-size: 12px; color: var(--color-muted-text); }
.sw-counter.is-near { color: #B45309; }
.sw-field-error { display: block; font-size: 12px; color: #C81E1E; margin-top: 6px; }
.sw-form-group { margin-bottom: 18px; }
.sw-form-group--tight { margin-bottom: 12px; }
.sw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sw-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.sw-form-row--between { justify-content: space-between; margin-bottom: 22px; }
.sw-form-row--h46 { min-height: 46px; }

.sw-input-group { display: flex; align-items: stretch; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); overflow: hidden; background: var(--color-surface); transition: border-color .15s, box-shadow .15s; }
.sw-input-group:focus-within { border-color: var(--color-primary); box-shadow: var(--ring); }
.sw-input-group .sw-input { border: 0; border-radius: 0; height: 44px; box-shadow: none; flex: 1; min-width: 0; }
.sw-input-group__addon { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--color-bg); font-size: 14px; color: var(--color-text-secondary); border-right: 1px solid var(--color-border); flex-shrink: 0; }
.sw-input-group--suffix .sw-input-group__addon { order: 2; border-right: 0; border-left: 1px solid var(--color-border); min-width: 80px; font-size: 13px; }
.sw-input-group__ok { display: inline-flex; align-items: center; padding: 0 12px; color: var(--color-success); }
.sw-land { display: flex; gap: 10px; }
.sw-land > * { flex: 1; min-width: 0; }

.sw-input-icon { position: relative; }
.sw-input-icon > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--color-neutral); pointer-events: none; }
.sw-input-icon .sw-input { padding-left: 40px; }
.sw-input-icon--noicon .sw-input { padding-left: 14px; }
.sw-input-icon--toggle .sw-input { padding-right: 44px; }
.sw-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--color-neutral); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.sw-pw-toggle[aria-pressed="true"] { color: var(--color-primary); }

.sw-check { display: inline-flex; align-items: center; gap: 10px; min-height: 24px; cursor: pointer; font-size: 14px; color: var(--color-text-primary); }
.sw-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; }
.sw-check--top { align-items: flex-start; font-size: 13px; line-height: 1.5; }
.sw-check--top input { margin-top: 1px; }
.sw-check--top a { font-weight: 600; }
.sw-check--sm { font-size: 12px; gap: 6px; }
.sw-check--sm input { width: 14px; height: 14px; }

/* Combobox (JS-upgraded select) */
.sw-combo { position: relative; width: 100%; }
.sw-combo__native { position: absolute !important; opacity: 0; pointer-events: none; inset: 0; width: 100%; height: 100%; }
.sw-combo__btn {
	width: 100%; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 0 14px; border-radius: var(--radius-md); border: 1.5px solid var(--color-border);
	background: var(--color-surface); font-family: var(--font-body); font-size: 14px; color: var(--color-text-primary);
	text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.sw-search .sw-combo__btn { height: 44px; border-width: 1px; border-radius: var(--radius-sm); }
.sw-combo__btn:focus-visible { outline: none; border-color: var(--color-primary); box-shadow: var(--ring); }
.sw-combo__btn.is-invalid { border-color: var(--color-error); }
.sw-combo__btn:disabled { opacity: .55; cursor: not-allowed; color: var(--color-muted-text); }
.sw-combo__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-combo__chev { color: var(--color-neutral); flex-shrink: 0; transition: transform .16s; }
.sw-combo.is-open .sw-combo__chev { transform: rotate(180deg); }
.sw-combo__pop {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 51;
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16); padding: 8px; max-height: 300px; display: flex; flex-direction: column;
}
.sw-combo__search { position: relative; margin-bottom: 6px; flex-shrink: 0; }
.sw-combo__search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--color-neutral); }
.sw-combo__search input {
	width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 7px; border: 1px solid var(--color-border);
	background: var(--color-bg); font-family: var(--font-body); font-size: 13px; color: var(--color-text-primary); outline: none;
}
.sw-combo__search input:focus { border-color: var(--color-primary); }
.sw-combo__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sw-combo__opt { padding: 9px 12px; border-radius: 7px; font-size: 14px; cursor: pointer; color: var(--color-text-primary); }
.sw-combo__opt:hover, .sw-combo__opt.is-active { background: var(--color-bg); }
.sw-combo__opt.is-selected { background: var(--color-primary-tint); color: var(--color-primary-hover); font-weight: 600; }
.sw-combo__empty { padding: 14px; text-align: center; font-size: 13px; color: var(--color-muted-text); }

/* ---------- 9. Cards, panels, alerts ---------- */
.sw-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.sw-card--pad { padding: 24px; }
.sw-card--hover { transition: transform .16s, box-shadow .16s, border-color .16s; }
.sw-card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.sw-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-panel); }
.sw-panel--search { margin-bottom: 24px; }

.sw-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; margin-bottom: 18px; }
.sw-alert svg { flex-shrink: 0; margin-top: 2px; }
.sw-alert--error { background: #FCE8E8; color: #B93030; }
.sw-alert--info { background: var(--color-primary-tint); color: var(--color-primary-hover); }
.sw-alert--info a { font-weight: 700; color: inherit; text-decoration: underline; }
.sw-msg { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.sw-msg--success { background: #E4F8EF; color: #0E7A50; }
.sw-msg--error { background: #FCE8E8; color: #B93030; }
.sw-admin-hint { margin: 16px 0; padding: 12px 14px; border: 1px dashed var(--color-primary); border-radius: 10px; background: var(--color-primary-tint); color: var(--color-primary-hover); font-size: 13px; }

.sw-icon-tile { width: 44px; height: 44px; border-radius: 11px; background: var(--color-primary-tint); color: var(--color-primary-hover); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-icon-tile--soft { width: 40px; height: 40px; border-radius: 10px; background: var(--color-bg); color: var(--color-primary); }
.sw-icon-tile--lg { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px; }
.sw-icon-tile--xl { width: 52px; height: 52px; border-radius: 13px; }
.sw-card .sw-icon-tile:not(.sw-icon-tile--lg):not(.sw-icon-tile--soft) { margin-bottom: 16px; }

/* ---------- 10. Home ---------- */
.sw-hero { background: var(--color-page); /* 1.3.0: solid page colour; its boxes keep their white surface. */ border-bottom: 1px solid var(--color-border); }
.sw-hero__inner { padding-top: 56px; padding-bottom: 40px; }
.sw-hero__copy { max-width: 820px; } /* 1.6.0: the one-sentence intro fits on one line on computers. */
.sw-hero__title { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.sw-hero__text { font-size: 17px; line-height: 1.5; color: var(--color-text-secondary); margin: 0; }
.sw-hero__search { margin: 20px 0 0; }

.sw-cat-split { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sw-cat-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; }
.sw-cat-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.sw-rule { flex: 1; height: 1px; background: var(--color-border); }
.sw-chip-rows { display: flex; flex-direction: column; gap: 8px; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-chip {
	padding: 8px 14px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface);
	font-size: 13px; font-weight: 500; color: var(--color-text-primary); display: inline-flex; align-items: center; gap: 7px;
	white-space: nowrap; transition: all .16s;
}
.sw-chip__icon { color: var(--color-text-secondary); transition: color .16s; }
.sw-chip:hover { border-color: var(--color-primary); color: var(--color-primary); background: #fff; }
.sw-chip:hover .sw-chip__icon { color: var(--color-primary); }

.sw-search__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.sw-search__row + .sw-search__row { margin-top: 12px; }
/* No JavaScript: the district field also holds "Show cities", so line the fields up at the top (1.1.3). */
html:not(.js):not(.sw-js) .sw-search__row:first-of-type { align-items: start; }
.sw-form-group > [data-sw-nojs-control] { margin-top: 8px; }
.sw-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sw-field__label { font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
.sw-field--span2 { grid-column: span 2; }
.sw-price-range { display: flex; align-items: center; gap: 8px; }
.sw-price-range__sep { color: var(--color-text-secondary); font-size: 13px; }
.sw-search__submit { height: 44px; font-size: 15px; border-radius: var(--radius-sm); }

.sw-home-section { padding: 48px 0 8px; }
.sw-home-section + .sw-home-section { padding-top: 40px; }
.sw-home .sw-home-section:last-child { padding-bottom: 56px; }
.sw-section-head { margin-bottom: 20px; }
.sw-section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.sw-district-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sw-district {
	text-align: left; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
	padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--color-text-primary);
	transition: transform .16s, box-shadow .16s, border-color .16s;
}
.sw-district:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: transparent; color: var(--color-text-primary); }
.sw-district__icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.sw-district__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.sw-district__count { font-size: 12px; color: var(--color-text-secondary); }
html.sw-js .sw-district.is-extra { display: none; }
html.sw-js .sw-district-grid.is-expanded .sw-district.is-extra { display: flex; }
html:not(.sw-js) .sw-district-toggle { display: none; }
.sw-district-toggle { margin-top: 20px; }

.sw-popular { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-popular__chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); transition: all .16s; }
.sw-popular__chip:hover { border-color: var(--color-primary); }
.sw-popular__chip:hover .sw-popular__label { color: var(--color-primary); }
.sw-popular__label { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.sw-popular__count { font-size: 12px; color: var(--color-text-secondary); }

.sw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; padding: 48px var(--gutter) 8px; }
.sw-stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.sw-stat__value { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; color: var(--color-primary); }
.sw-stat__label { font-size: 13px; color: var(--color-text-secondary); margin-top: 4px; }

/* ---------- 11. Listing cards ---------- */
.sw-badge {
	position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
	border-radius: var(--radius-full); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; z-index: 2;
}
.sw-badge--urgent { left: 12px; top: 12px; background: var(--color-urgent); color: #fff; }
.sw-badge--highlighted { left: 12px; top: 12px; background: #00B958; color: #fff; } /* 1.5.0: badge colours chosen by the owner. */
.sw-badge--featured { background: #1F91EB; color: #fff; } /* Featured ad (1.2.0): Highlighted look, own badge. */
.sw-badge--photos { left: 12px; bottom: 12px; padding: 4px 9px; background: rgba(10, 10, 10, 0.62); color: #fff; font-weight: 600; letter-spacing: 0; }
.sw-badge--sample { right: 12px; top: 12px; background: #FEF3DC; color: #7A4E06; border: 1px solid #F3D9A4; }
.sw-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Whole photo, never cropped (1.3.1): fitted inside the card over a blurred copy of itself. */
.sw-lcard__media, .sw-ccard__media, .sw-saved__media { overflow: hidden; }
.sw-cover--fit { object-fit: contain; }
.sw-cover-back { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(16px) saturate(1.15) brightness(.92); pointer-events: none; }
.sw-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: absolute; inset: 0; }

.sw-lcard-list { display: flex; flex-direction: column; gap: 16px; }
.sw-lcard {
	position: relative; display: grid; grid-template-columns: 280px 1fr; background: var(--color-surface);
	border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
	transition: transform .16s, box-shadow .16s, border-color .16s;
}
.sw-lcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.sw-lcard.is-urgent { background: #FEF6F6; border-color: #F3C9C9; }
.sw-lcard.is-highlighted { background: var(--color-primary-tint); border-color: var(--color-primary); }
/* Tinted premium cards: darker secondary text so it keeps a 4.5:1 contrast. */
.sw-lcard.is-urgent, .sw-lcard.is-highlighted { --color-text-secondary: #545454; --color-muted-text: #545454; }
.sw-lcard.is-urgent .sw-cat-label, .sw-lcard.is-highlighted .sw-cat-label { color: #0B5E58; }
.sw-lcard__media { position: relative; background: var(--sw-tint, #EEF0FF); min-height: 200px; }
.sw-lcard__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sw-lcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sw-lcard__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
.sw-lcard__title a, .sw-ccard__title a { color: var(--color-text-primary); }
.sw-lcard__desc { font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-lcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.sw-lcard__save { position: relative; z-index: 3; flex-shrink: 0; }
.sw-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sw-stretched:focus-visible { outline: none; }
.sw-stretched:focus-visible::after { outline: 2px solid var(--color-primary); outline-offset: -2px; border-radius: var(--radius-lg); }
.sw-meta-line { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--color-text-secondary); flex-wrap: wrap; }
.sw-cat-label { font-size: 11px; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.sw-dot-sep { width: 3px; height: 3px; border-radius: var(--radius-full); background: var(--color-neutral); }
.sw-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-secondary); }
.sw-loc svg { flex-shrink: 0; }
.sw-price { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--color-text-primary); }
.sw-specs { font-size: 12px; color: var(--color-muted-text); }
.sw-view-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-size: 14px; font-weight: 600; white-space: nowrap; }

.sw-save-form { margin: 0; }
.sw-save-icon {
	width: 38px; height: 38px; border-radius: var(--radius-full); border: 1px solid var(--color-border);
	background: var(--color-surface); color: var(--color-neutral); cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: all .16s; padding: 0;
}
.sw-save-icon:hover { color: var(--color-primary); border-color: var(--color-primary); }
.sw-save-icon.is-saved { background: var(--color-primary-tint); color: var(--color-primary-hover); }

.sw-ccard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sw-ccard-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sw-ccard { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s; }
.sw-ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.sw-ccard.is-urgent { border-color: #F3C9C9; }
.sw-ccard.is-highlighted { border-color: var(--color-primary); }
.sw-ccard__media { position: relative; aspect-ratio: 4 / 3; background: var(--sw-tint, #EEF0FF); }
.sw-ccard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.sw-ccard__body .sw-meta-line { margin-bottom: 0; }
.sw-ccard__title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-ccard__price { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; margin-top: 4px; }

/* ---------- 12. Results page ---------- */
.sw-breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.sw-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-secondary); }
.sw-breadcrumb li + li::before { content: "›"; color: var(--color-neutral); }
.sw-breadcrumb a { font-weight: 500; }
.sw-breadcrumb [aria-current] { font-weight: 600; }
.sw-results__head { margin-bottom: 20px; }
.sw-results__head p { margin: 0; font-size: 14px; }
.sw-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 18px;
}
.sw-toolbar__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw-filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: var(--radius-full); background: var(--color-primary-tint); color: var(--color-primary-hover); font-size: 12px; font-weight: 600; }
.sw-filter-chip__x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--radius-full); background: rgba(0, 0, 0, 0.06); color: inherit; font-size: 12px; line-height: 1; }
.sw-filter-chip__x:hover { background: rgba(0, 0, 0, 0.14); color: inherit; }
.sw-clear-all { color: var(--color-text-secondary); font-size: 12px; font-weight: 600; text-decoration: underline; }
.sw-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.sw-sort__label { font-size: 13px; color: var(--color-text-secondary); }
.sw-sort .sw-select { width: auto; min-width: 140px; }

.sw-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.sw-pager .page-numbers, .sw-pager__btn, .sw-pager__num {
	min-width: 40px; height: 40px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
	background: var(--color-surface); font-size: 14px; font-weight: 600; color: var(--color-text-primary);
	display: inline-flex; align-items: center; justify-content: center;
}
.sw-pager .page-numbers.prev, .sw-pager .page-numbers.next, .sw-pager__btn { font-weight: 500; }
.sw-pager .page-numbers.current, .sw-pager__num.is-current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sw-pager a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.sw-pager .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }
.sw-pager__btn.is-disabled { opacity: .4; cursor: default; }
.sw-pager--sm { margin-top: 0; justify-content: flex-end; gap: 6px; }
.sw-pager--sm .sw-pager__btn, .sw-pager--sm .sw-pager__num { height: 36px; min-width: 36px; font-size: 13px; border-radius: 7px; }
.sw-pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.sw-empty { text-align: center; padding: 64px 24px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.sw-empty--page { padding: 80px 24px; max-width: 720px; margin: 24px auto; }
.sw-empty__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.sw-empty p { margin: 0 0 20px; font-size: 14px; }
.sw-empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sw-empty .sw-icon-tile { margin: 0 auto 16px; }
.sw-404 { font-family: var(--font-display); font-weight: 700; font-size: 72px; letter-spacing: -0.04em; color: var(--color-primary); line-height: 1; margin-bottom: 8px; }

/* ---------- 13. Property detail ---------- */
.sw-detail__head { margin-bottom: 20px; }
.sw-detail__tags { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.sw-tag { padding: 3px 9px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700; line-height: 1.5; }
.sw-tag--featured { background: #00B958; color: #fff; }
.sw-tag--urgent { background: var(--color-urgent); color: #fff; }
.sw-tag--featured-ad { background: #1F91EB; color: #fff; }
.sw-tag--sample { background: #FEF3DC; color: #7A4E06; }
.sw-detail__title { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; margin: 0 0 12px; line-height: 1.1; }
.sw-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--color-text-secondary); }
.sw-detail__by, .sw-detail__date { display: inline-flex; align-items: center; gap: 7px; }
.sw-detail__by strong { color: var(--color-text-primary); font-weight: 600; }
.sw-avatar { width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--color-primary-tint); color: var(--color-primary-hover); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sw-detail__main { max-width: 720px; }

.sw-gallery { border-radius: 14px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); max-width: 100%; min-width: 0; }
/* Main photo: the whole picture is shown (no cropping or stretching); portrait
   and odd-shaped photos get neutral bands instead of being cut off. */
.sw-gallery__hero { position: relative; aspect-ratio: 3 / 2; max-height: 72vh; width: 100%; background: var(--sw-tint, #EEF0FF); }
.sw-gallery__open { position: absolute; inset: 0; cursor: zoom-in; display: block; background: #F1F1F3; }
.sw-gallery__img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.sw-placeholder--lg { position: absolute; inset: 0; }
.sw-gallery__counter { position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: var(--radius-full); background: rgba(10, 10, 10, 0.6); color: #fff; font-size: 13px; font-weight: 600; z-index: 2; }
.sw-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: var(--radius-full); border: 0;
	background: rgba(255, 255, 255, 0.92); color: #0A0A0A; cursor: pointer; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); z-index: 2; padding: 0;
}
.sw-gallery__nav--prev { left: 14px; }
.sw-gallery__nav--next { right: 14px; }
.sw-gallery__zoom { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.92); color: var(--color-text-primary); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; z-index: 2; pointer-events: none; }
.sw-gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.sw-gallery__thumb { flex: 0 0 auto; width: 84px; height: 60px; border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .15s, border-color .15s; display: block; background: #F1F1F3; }
.sw-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sw-gallery__thumb.is-active, .sw-gallery__thumb:hover { opacity: 1; }
.sw-gallery__thumb.is-active { border-color: var(--color-primary); }

.sw-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 10, 10, 0.94); display: flex; flex-direction: column; color: #fff; }
.sw-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.sw-lightbox__title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-lightbox__right { display: flex; align-items: center; gap: 18px; }
.sw-lightbox__count { font-size: 14px; opacity: .8; }
.sw-lightbox__close { width: 40px; height: 40px; border-radius: var(--radius-full); border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.sw-lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 24px 24px; }
.sw-lightbox__img { max-width: min(1000px, 100%); max-height: 100%; object-fit: contain; border-radius: 10px; flex: 1; min-width: 0; }
.sw-lightbox__nav { width: 52px; height: 52px; border-radius: var(--radius-full); border: 0; background: rgba(255, 255, 255, 0.14); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sw-lightbox__thumbs { display: flex; gap: 8px; padding: 0 24px 22px; justify-content: center; overflow-x: auto; }
.sw-lightbox__thumb { flex: 0 0 auto; width: 72px; height: 50px; border-radius: 6px; border: 2px solid transparent; background: #333 center / cover no-repeat; opacity: .6; cursor: pointer; padding: 0; }
.sw-lightbox__thumb.is-active { border-color: #fff; opacity: 1; }

.sw-detail__summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 24px 0 18px; }
.sw-detail__price-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 2px; }
.sw-detail__price { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.03em; line-height: 1; }
.sw-call-btn {
	height: 52px; padding: 0 26px; border-radius: var(--radius-full); background: var(--color-primary); color: #fff;
	font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 11px;
	box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.28); transition: background .16s, transform .16s;
}
.sw-call-btn:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); }
.sw-spec-table { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin: 0; }
.sw-spec-table__row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.sw-spec-table__row:nth-child(even) { background: var(--color-bg); }
.sw-spec-table__row:last-child { border-bottom: 0; }
.sw-spec-table dt { padding: 13px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); border-right: 1px solid var(--color-border); }
.sw-spec-table dd { margin: 0; padding: 13px 18px; font-size: 15px; font-weight: 600; }
.sw-detail__desc { margin-top: 28px; }
.sw-detail__desc-body { font-size: 15.5px; line-height: 1.7; }
.sw-detail__desc-body p { margin: 0 0 14px; }
.sw-detail__desc-body.is-clamped { max-height: 108px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.sw-highlights { font-size: 15px; line-height: 1.7; margin-top: 4px; }
.sw-highlights__title { font-weight: 600; margin-bottom: 8px; }
.sw-highlights ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--color-text-secondary); }
.sw-readmore { margin-top: 14px; border: 0; background: none; color: var(--color-primary); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px; }
.sw-detail__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.sw-detail__actions .sw-btn, .sw-views { height: 46px; padding: 0 22px; font-size: 15px; gap: 9px; }
.sw-save-btn.is-saved { border-color: var(--color-primary); background: var(--color-primary-tint); color: var(--color-primary-hover); }
.sw-report-btn:hover { border-color: var(--color-error); color: var(--color-error); }
.sw-views { border-radius: var(--radius-md); border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-primary); font-weight: 600; display: inline-flex; align-items: center; }
.sw-safety { margin-top: 16px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--color-warning); background: #FEF9EE; border-radius: 10px; font-size: 12.5px; line-height: 1.55; font-weight: 600; }
.sw-safety__icon { color: var(--color-warning); flex-shrink: 0; margin-top: 2px; }
.sw-safety__lead { font-weight: 700; }
.sw-related { margin-top: 48px; }

/* ---------- 14. Modals ---------- */
.sw-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 24px; }
.sw-modal:target, .sw-modal.is-open { display: flex; }
.sw-modal__scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.5); }
.sw-modal__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--color-surface); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-modal); animation: sw-pop .16s ease; }
.sw-modal__box--sm { max-width: 420px; }
.sw-modal__box--md { max-width: 540px; }
.sw-modal__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--color-primary-tint); color: var(--color-primary-hover); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sw-modal__icon--warn { background: #FEF3DC; color: #966008; }
.sw-modal__icon--err { background: #FCE8E8; color: var(--color-error); }
.sw-modal__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 6px; }
.sw-modal__titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sw-modal__x { width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid var(--color-border); color: var(--color-text-secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-modal__ref { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; color: var(--color-text-secondary); }
.sw-modal__ref code { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--color-text-primary); background: var(--color-bg); padding: 3px 10px; border-radius: 6px; }
.sw-modal__text { font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); margin: 0 0 18px; }
.sw-modal__text p { margin: 0 0 8px; font-size: 13.5px; }
.sw-modal__subject { font-size: 13px; color: var(--color-text-secondary); margin: -8px 0 18px; font-weight: 600; }
.sw-modal__quote { font-size: 14.5px; line-height: 1.6; padding: 14px 16px; background: var(--color-bg); border-radius: 10px; margin-bottom: 20px; }
.sw-modal__actions { display: flex; gap: 10px; }
.sw-modal__actions form { margin: 0; }
html.sw-modal-open { overflow: hidden; }
.sw-plan-options { border: 0; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sw-plan-option { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-lg); border: 1.5px solid var(--color-border); cursor: pointer; align-items: flex-start; }
.sw-plan-option input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; }
.sw-plan-option.is-urgent input { accent-color: var(--color-urgent); }
.sw-plan-option.is-highlighted input { accent-color: var(--color-primary); }
.sw-plan-option.is-urgent:has(input:checked) { border-color: var(--color-urgent); background: #FEF6F6; }
.sw-plan-option.is-highlighted:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-tint); }
.sw-plan-option.is-featured input { accent-color: #0A0A0A; }
.sw-plan-option.is-featured:has(input:checked) { border-color: #0A0A0A; background: #F6F5F4; }
.sw-plan-option__body { flex: 1; min-width: 0; }
.sw-plan-option__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sw-plan-option__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.sw-plan-option__price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.sw-plan-option__desc { display: block; font-size: 13px; line-height: 1.45; color: var(--color-text-secondary); margin-top: 4px; }

/* ---------- 15. Toasts ---------- */
.sw-flashes { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100001; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.sw-toast { pointer-events: auto; background: var(--color-text-primary); color: #fff; padding: 12px 20px; border-radius: var(--radius-full); font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); display: flex; align-items: center; gap: 10px; animation: sw-pop .18s ease; transition: opacity .3s, transform .3s; }
.sw-toast.is-leaving { opacity: 0; transform: translateY(8px); }
.sw-toast__dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--color-success); flex-shrink: 0; }
.sw-toast--error .sw-toast__dot { background: var(--color-error); }
.sw-toast--info .sw-toast__dot { background: #60A5FA; }

/* ---------- 16. Account & forms ---------- */
.sw-account { max-width: 1120px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.sw-account--md { max-width: 960px; padding-top: 40px; }
.sw-account--lg { max-width: 1120px; }
.sw-account--saved { max-width: 1040px; }
.sw-account--sm { max-width: 640px; }
.sw-account--form { max-width: 760px; padding-top: 40px; }
.sw-account__head { margin-bottom: 32px; }
.sw-auth { padding: 32px var(--gutter) 56px; }
.sw-back-wrap--wide { max-width: 1232px; margin: 0 auto 0; }
.sw-auth__inner { max-width: 420px; margin: 24px auto 0; }
.sw-auth__inner--wide { max-width: 460px; }
.sw-auth__head { text-align: center; margin-bottom: 28px; }
.sw-auth__head .sw-h1 { margin-bottom: 8px; }
.sw-auth__alt { text-align: center; font-size: 14px; color: var(--color-text-secondary); margin: 22px 0 0; }
.sw-auth__alt a, .sw-link-strong { font-weight: 600; font-size: 13px; }
.sw-auth__alt a { font-size: 14px; }
.sw-form-card { padding: 28px; border-radius: var(--radius-xl); box-shadow: var(--shadow-panel); margin: 0; }
.sw-form-card--section { padding: 26px; margin-bottom: 20px; box-shadow: none; }
.sw-form-card--section .sw-h3 { margin-bottom: 18px; }
.sw-form-card--wide { padding: 28px; }
.sw-form-foot { text-align: center; font-size: 12.5px; color: var(--color-text-secondary); margin: 14px 0 0; }

.sw-pw-meter { margin: 0 0 16px; }
.sw-pw-meter__bars { display: flex; gap: 5px; margin-bottom: 10px; }
.sw-pw-meter__bars span { flex: 1; height: 5px; border-radius: var(--radius-full); background: var(--color-border); }
.sw-pw-meter__bars .is-err { background: var(--color-error); }
.sw-pw-meter__bars .is-warn { background: var(--color-warning); }
.sw-pw-meter__bars .is-ok { background: var(--color-success); }
.sw-pw-meter__bars .is-great { background: var(--color-secondary); }
.sw-pw-meter__label { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-secondary); margin-bottom: 10px; }
.sw-pw-meter__label .is-err { color: #C81E1E; }
.sw-pw-meter__label .is-warn { color: #B45309; }
.sw-pw-meter__label .is-ok, .sw-pw-meter__label .is-great { color: #0E7A50; }
.sw-pw-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sw-pw-rules li { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--color-muted-text); }
.sw-pw-rules li.is-ok { color: #0E7A50; }

.sw-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sw-tile {
	text-align: left; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 28px;
	display: flex; flex-direction: column; gap: 14px; color: var(--color-text-primary);
	transition: transform .16s, box-shadow .16s, border-color .16s;
}
.sw-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: transparent; color: var(--color-text-primary); }
.sw-tile__text { display: flex; flex-direction: column; gap: 6px; }
.sw-tile__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.sw-tile__desc { font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); }
.sw-tile__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-size: 14px; font-weight: 600; }
.sw-otp-card { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.sw-otp-card__body { flex: 1; }
.sw-inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 10px; }
.sw-input--otp { max-width: 220px; text-align: center; letter-spacing: 0.3em; font-family: var(--font-mono); font-weight: 700; }
.sw-inline-form .sw-field-error { flex-basis: 100%; }

.sw-stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.sw-stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px; }
.sw-stat-card__icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.sw-stat-card__icon.is-ok { background: #E4F8EF; color: #0E7A50; }
.sw-stat-card__icon.is-warn { background: #FEF3DC; color: #966008; }
.sw-stat-card__icon.is-err { background: #FCE8E8; color: #B93030; }
.sw-stat-card__icon.is-muted { background: #EDEDF0; color: #6B6B75; }
.sw-stat-card__value { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.sw-stat-card__label { font-size: 13px; color: var(--color-text-secondary); margin-top: 2px; }

.sw-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sw-search-mini { position: relative; margin: 0; width: 300px; max-width: 100%; }
.sw-search-mini--saved { width: 340px; margin-bottom: 18px; }
.sw-search-mini svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-neutral); pointer-events: none; }
.sw-search-mini .sw-input { height: 42px; padding-left: 36px; border-width: 1px; }
.sw-table-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.sw-table-scroll { overflow-x: auto; }
.sw-table-scroll:focus-visible { outline-offset: -2px; }
.sw-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 880px; }
.sw-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-secondary); white-space: nowrap; border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.sw-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); color: var(--color-text-secondary); vertical-align: middle; }
.sw-table tbody tr:last-child td { border-bottom: 0; }
.sw-table tbody tr:hover { background: var(--color-bg); }
.sw-table__title { font-weight: 600; max-width: 260px; color: var(--color-text-primary) !important; }
.sw-table__title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-table__title.is-urgent { color: var(--color-urgent) !important; }
.sw-table__title.is-highlighted { color: #0E7A50 !important; }
.sw-table__title.is-featured { color: #0A0A0A !important; }
.sw-table__title.is-requested { color: #2563EB !important; }
.sw-table-empty { padding: 48px; text-align: center; color: var(--color-text-secondary); font-size: 14px; }
.sw-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.sw-plan-text { font-size: 12px; font-weight: 600; white-space: nowrap; }
.sw-plan-text.is-urgent { color: var(--color-urgent); }
.sw-plan-text.is-highlighted { color: #0E7A50; }
.sw-plan-text.is-featured { color: #0A0A0A; }
.sw-plan-text.is-requested { color: #2563EB; }
.sw-premium-btn { height: 30px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--color-primary); background: var(--color-primary-tint); color: var(--color-primary-hover); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.sw-premium-btn:hover { background: var(--color-primary); color: #fff; }
.sw-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sw-status.is-active { background: #E4F8EF; color: #0E7A50; }
.sw-status.is-pending { background: #FEF3DC; color: #966008; }
.sw-status.is-rejected { background: #FCE8E8; color: #B93030; }
.sw-status.is-expired, .sw-status.is-inactive, .sw-status.is-withdrawn { background: #EDEDF0; color: #5F5F69; }
/* 1.6.1: countdown under an expired ad's status (amber; red in the last 7 days) and the note under My ads. */
.sw-expiry-countdown { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #966008; }
.sw-expiry-countdown.is-soon { color: #B93030; }
.sw-myads__note { margin: 12px 2px 10px; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); }
.sw-row-actions { display: flex; align-items: center; gap: 6px; }
.sw-icon-btn { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-secondary); display: flex; align-items: center; justify-content: center; }
.sw-icon-btn:hover { border-color: currentColor; }
.sw-icon-btn.is-primary { color: var(--color-primary); }
.sw-icon-btn.is-danger { color: var(--color-error); }

.sw-saved-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.sw-saved { display: grid; grid-template-columns: 180px 1fr auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.sw-saved__media { position: relative; background: var(--sw-tint, #EEF0FF); min-height: 140px; }
.sw-saved.is-unavailable .sw-saved__media { opacity: .5; }
.sw-saved__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.sw-saved__body .sw-meta-line { margin-bottom: 0; }
.sw-saved__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
.sw-saved__actions { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 200px; }
.sw-saved__actions form { margin: 0; }
.sw-saved__actions .sw-btn { height: 40px; font-size: 13.5px; width: 100%; }

.sw-dropzone {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 20px;
	border: 1.5px dashed var(--color-border); border-radius: 10px; background: var(--color-bg); cursor: pointer; text-align: center;
	transition: border-color .16s; position: relative;
}
.sw-dropzone:hover, .sw-dropzone:focus-within { border-color: var(--color-primary); }
.sw-dropzone.is-invalid { border-color: var(--color-error); }
.sw-dropzone__title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.sw-dropzone__hint { font-size: 12.5px; color: var(--color-text-secondary); }
.sw-dropzone__note { font-size: 11.5px; color: var(--color-text-secondary); }
.sw-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
html:not(.sw-js) .sw-file { position: static; opacity: 1; margin-top: 8px; width: auto; height: auto; }
.sw-photo-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: flex-start; }
.sw-photo-list--existing { margin: 0 0 12px; }
.sw-photo-keep { width: 96px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.sw-photo-keep img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.sw-photo { position: relative; width: 96px; }
.sw-photo__img { width: 96px; height: 72px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg) center / cover no-repeat; }
.sw-photo__size { font-size: 10.5px; color: var(--color-text-secondary); margin-top: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.sw-photo__x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: var(--radius-full); border: 1.5px solid var(--color-surface); background: var(--color-error); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.sw-photo--busy { height: 72px; border-radius: var(--radius-md); border: 1.5px dashed var(--color-border); background: var(--color-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--color-text-secondary); }
.sw-spinner { width: 16px; height: 16px; border-radius: var(--radius-full); border: 2px solid var(--color-primary-tint); border-top-color: var(--color-primary); animation: sw-spin .7s linear infinite; }
.sw-photo-saving { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: var(--radius-md); background: var(--color-primary-tint); color: var(--color-primary-hover); font-size: 12px; font-weight: 600; }

/* ---------- 17. Content pages (About, Contact, FAQ, Legal, Sitemap) ---------- */
.sw-app-page > .sw-back-wrap, .sw-app-page .sw-back-wrap { max-width: 1232px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.sw-app-page .sw-back-wrap + * { margin-top: 22px; }
.sw-page-body { margin: 0 auto; padding: 0 var(--gutter) 64px; }
.sw-container--md { max-width: 1080px; margin: 0 auto; }
.sw-container--sm { max-width: 960px; }
.sw-container--xs { max-width: 820px; }
.sw-container--legal { max-width: 860px; }
.sw-section { padding: 44px var(--gutter); }
.sw-section-cta { padding: 0 var(--gutter) 56px; }
.sw-section .sw-section-head { margin-bottom: 28px; }
.sw-hero-band { background: linear-gradient(180deg, #fff 0%, var(--color-page) 100%); border-bottom: 1px solid var(--color-border); }
.sw-hero-band__inner { max-width: 860px; margin: 0 auto; padding: 56px var(--gutter) 44px; }
.sw-badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--color-primary-tint); color: var(--color-primary-hover); font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.sw-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--color-primary); }
.sw-page-head { max-width: 640px; margin: 0 auto 36px; }
.sw-page-head .sw-h1 { font-size: 38px; margin: 0 0 12px; }
.sw-page-head .sw-lead { font-size: 16px; }
.sw-grid { display: grid; gap: 16px; }
.sw-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sw-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.sw-split .sw-h2 { margin-bottom: 16px; }
.sw-mission { background: var(--color-primary); border-radius: 16px; padding: 32px; color: #fff; }
.sw-mission__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; }
.sw-mission p { font-size: 16px; line-height: 1.6; margin: 0; opacity: .92; }
.sw-value { display: flex; gap: 16px; padding: 22px; }
.sw-value .sw-icon-tile { margin-bottom: 0 !important; }
.sw-value .sw-h3 { font-size: 16px; margin-bottom: 6px; }
.sw-value .sw-body-muted { font-size: 14px; line-height: 1.6; }
.sw-grid--3 .sw-body-muted { font-size: 14px; line-height: 1.6; }
.sw-step-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--color-primary); letter-spacing: -0.03em; display: block; line-height: 1.1; }
.sw-grid--4 .sw-h3 { font-size: 16px; margin: 6px 0 8px; }
.sw-hours { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--color-text-secondary); }
.sw-hours div { display: flex; justify-content: space-between; gap: 12px; }
.sw-hours dd { margin: 0; color: var(--color-text-primary); font-weight: 600; }
.sw-hours dd.is-closed { color: var(--color-muted-text); font-weight: 400; }
.sw-faq { display: flex; flex-direction: column; gap: 14px; }
.sw-faq__q { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 10px; display: flex; align-items: flex-start; gap: 12px; }
.sw-faq__mark { width: 26px; height: 26px; border-radius: var(--radius-md); background: var(--color-primary-tint); color: var(--color-primary-hover); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.sw-faq__a { font-size: 14.5px; line-height: 1.7; color: var(--color-text-secondary); margin: 0; padding-left: 38px; }
.sw-cta-band { margin-top: 28px; background: var(--color-primary); border-radius: var(--radius-xl); padding: 28px; text-align: center; color: #fff; }
.sw-cta-band h2, .sw-cta-band h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; }
.sw-cta-band p { font-size: 15px; line-height: 1.6; margin: 0 0 18px; opacity: .92; }
.sw-cta-band a { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: var(--radius-md); background: #fff; color: var(--color-primary-hover); font-size: 14px; font-weight: 600; }
.sw-legal { padding: 40px; border-radius: 16px; box-shadow: var(--shadow-panel); }
.sw-legal__intro { font-size: 15.5px; line-height: 1.7; color: var(--color-text-secondary); margin: 0 0 28px; }
.sw-legal__section { margin-bottom: 30px; }
.sw-legal__section h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.sw-legal__num { color: var(--color-primary); font-size: 14px; font-family: var(--font-mono); }
.sw-legal__section p { font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.sw-legal__section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.sw-legal__section li { font-size: 14.5px; line-height: 1.6; color: var(--color-text-secondary); }
.sw-legal__contact { margin-top: 36px; padding: 20px 22px; background: var(--color-bg); border-radius: var(--radius-lg); display: flex; gap: 14px; align-items: flex-start; }
.sw-legal__contact .sw-icon-tile { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 0 !important; }
.sw-legal__contact-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.sw-legal__contact p { font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); margin: 0; }
.sw-sitemap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.sw-sitemap__head { max-width: 720px; margin: 0 0 40px; }
.sw-sitemap__head .sw-h1 { font-size: 38px; margin-bottom: 12px; }
.sw-sitemap__head .sw-lead { margin: 0; font-size: 16px; }
.sw-sitemap__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sw-sitemap .sw-card--pad { padding: 22px; }
.sw-link-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sw-link-list a { font-size: 14px; font-weight: 500; }

/* Blog / generic content */
.sw-entry__header { margin: 8px 0 24px; }
.sw-prose { font-size: 16px; line-height: 1.75; }
.sw-prose > * { max-width: 760px; }
.sw-prose > .alignwide { max-width: 1100px; }
.sw-prose > .alignfull { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.sw-prose a { text-decoration: underline; text-underline-offset: 2px; }
.sw-prose h2, .sw-prose h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.25; }
.sw-entry__thumb { margin: 0 0 24px; }
.sw-entry__thumb img { border-radius: var(--radius-lg); }
.sw-post-list { display: flex; flex-direction: column; gap: 16px; }
.sw-post-card { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.sw-post-card:not(:has(.sw-post-card__thumb)) { grid-template-columns: 1fr; }
.sw-post-card__thumb img { border-radius: var(--radius-md); width: 100%; height: 150px; object-fit: cover; }
.sw-searchform { display: flex; gap: 8px; max-width: 480px; margin: 16px auto 0; }
.sw-comments { margin-top: 48px; }
.sw-comment-list { padding-left: 20px; }
.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--color-text-secondary); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky, .bypostauthor { display: block; }

/* ---------- 18. Animations ---------- */
@keyframes sw-spin { to { transform: rotate(360deg); } }
@keyframes sw-pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sw-slide-down { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1000px) {
	.sw-district-grid { grid-template-columns: repeat(3, 1fr); }
	.sw-stat-cards, .sw-grid--4, .sw-stats, .sw-ccard-grid { grid-template-columns: repeat(2, 1fr); }
	.sw-grid--3, .sw-ccard-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.sw-lcard { grid-template-columns: 220px 1fr; }
	.sw-saved { grid-template-columns: 160px 1fr; }
	.sw-saved__actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; padding-top: 0; }
	.sw-saved__actions > * { flex: 1; }
	.sw-footer__grid { grid-template-columns: 1fr 1fr; }
	.sw-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.sw-nav { display: none; }
	.sw-burger { display: inline-flex; }
	html:not(.js) .sw-mnav { display: block !important; position: static; box-shadow: none; animation: none; }
	html:not(.js) .sw-burger { display: none; }
}

@media (max-width: 760px) {
	:root { --gutter: 16px; }
	.sw-hero__inner { padding-top: 32px; padding-bottom: 28px; }
	.sw-hero__title { font-size: 34px; line-height: 1.1; }
	.sw-hero__text { font-size: 16px; }
	.sw-cat-split { grid-template-columns: 1fr; margin-top: 24px; gap: 14px; }
	.sw-cat-panel { padding: 17px; }
	.sw-search__row { grid-template-columns: 1fr; }
	.sw-field--span2 { grid-column: auto; }
	.sw-district-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.sw-home-section { padding-top: 32px; }
	.sw-h2 { font-size: 23px; }
	.sw-h1, .sw-page-head .sw-h1, .sw-sitemap__head .sw-h1 { font-size: 26px; }
	.sw-h1--xl { font-size: 28px; }
	.sw-display { font-size: 31px; }
	.sw-lcard { grid-template-columns: 1fr; }
	.sw-lcard__media { min-height: 0; aspect-ratio: 16 / 10; }
	.sw-lcard__body { padding: 16px; }
	.sw-lcard__foot { flex-wrap: wrap; }
	.sw-toolbar { padding: 12px; }
	.sw-sort { width: 100%; justify-content: flex-end; }
	.sw-detail__title { font-size: 26px; }
	.sw-gallery__hero { aspect-ratio: 4 / 3; }
	.sw-gallery__thumb { width: 72px; height: 54px; }
	.sw-detail__price { font-size: 30px; }
	.sw-detail__summary { align-items: stretch; }
	.sw-call-btn { width: 100%; justify-content: center; }
	.sw-spec-table__row { grid-template-columns: 1fr; }
	.sw-spec-table dt { border-right: 0; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
	.sw-spec-table dd { padding-top: 8px; }
	.sw-detail__actions > *, .sw-detail__actions .sw-save-form { flex: 1 1 100%; }
	.sw-detail__actions .sw-save-btn { width: 100%; }
	.sw-ccard-grid, .sw-ccard-grid--3, .sw-grid--2, .sw-grid--3, .sw-tiles, .sw-split, .sw-form-grid { grid-template-columns: 1fr; }
	.sw-grid--4, .sw-stats, .sw-stat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
	.sw-stats { padding-top: 28px; }
	.sw-tile { padding: 22px; }
	.sw-form-card, .sw-form-card--wide { padding: 20px; }
	.sw-legal { padding: 22px; }
	.sw-section { padding: 30px var(--gutter); }
	.sw-hero-band__inner { padding: 32px var(--gutter) 28px; }
	.sw-saved { grid-template-columns: 1fr; }
	.sw-saved__media { min-height: 0; aspect-ratio: 16 / 9; }
	.sw-saved__actions { padding-top: 0; }
	.sw-list-toolbar .sw-btn, .sw-search-mini, .sw-search-mini--saved { width: 100%; }
	.sw-table-foot { justify-content: center; }
	.sw-pager--sm { justify-content: center; }
	.sw-footer__inner { padding: 32px var(--gutter); }
	.sw-modal { align-items: flex-start; overflow-y: auto; padding: 16px; }
	.sw-modal__box { padding: 22px; }
	.sw-lightbox__stage { padding: 0 8px 12px; gap: 8px; }
	.sw-lightbox__nav { width: 40px; height: 40px; }
	.sw-post-card { grid-template-columns: 1fr; }
	.sw-faq__a { padding-left: 0; }
	.sw-otp-card { flex-direction: column; }
}

@media (max-width: 460px) {
	.sw-footer__grid { grid-template-columns: 1fr; }
	.sw-pw-rules { grid-template-columns: 1fr; }
	.sw-land { flex-direction: column; }
	.sw-brand__word { font-size: 19px; }
	.sw-modal__actions { flex-direction: column-reverse; }
}

/* ---------- 19b. Siriniwasa 1.1 additions ---------- */
/* Pricing Method option boxes (submit form). */
.sw-pricing { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.sw-pricing[hidden] { display: none; }
.sw-pricing > legend.sw-label { padding: 0; float: left; width: 100%; }
.sw-pricing__options { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sw-pricing__option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--color-text-primary); transition: border-color .15s, background-color .15s; }
.sw-pricing__option input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--color-primary); cursor: pointer; }
.sw-pricing__option:hover { border-color: var(--color-primary); }
.sw-pricing__option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-tint); }
.sw-pricing__option:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (max-width: 520px) { .sw-pricing__options { grid-template-columns: 1fr; } }
/* Per-perch / per-acre totals. */
.sw-price-total { font-size: 13px; color: var(--color-text-secondary); margin-top: 2px; }
.sw-detail__price-total { font-size: 14px; color: var(--color-text-secondary); margin-top: 6px; }
/* Notices and contact links. */
.sw-alert--success { background: #E4F8EF; color: #0E7A50; }
.sw-contact-link { display: inline-flex; align-items: center; min-height: 24px; }
.sw-grid--1 { grid-template-columns: minmax(0, 1fr); }

/* My ads: search / Show All / sorting / pagination run in the browser.
   Desktop: a fixed-layout table that fits the page width (no sideways
   scrolling). Tablet and mobile (up to 1024px): each ad is a card. */
.sw-myads-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; flex: 1 1 auto; min-width: 0; }
.sw-myads-search .sw-search-mini { flex: 0 1 300px; }
.sw-myads-search__btn { height: 42px; padding: 0 18px; }
.sw-myads-search__btn[hidden] { display: none; }
.sw-myads [data-sw-ad][hidden] { display: none !important; }
.sw-sort-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0; margin: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.sw-sort-btn:hover, .sw-sort-btn.is-sorted { color: var(--color-primary-hover, var(--color-primary)); }
.sw-sort-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
.sw-sort-btn__icon { flex-shrink: 0; }
/* My ads sort symbols (1.3.0): ↕ not sorted, ↑ ascending, ↓ descending — big and bold. */
.sw-sort-sym { font-size: 17px; font-weight: 900; line-height: 1; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; min-width: 12px; text-align: center; }
.sw-sort-btn.is-sorted .sw-sort-sym { color: var(--color-primary); }
.sw-sort-btn__up, .sw-sort-btn__down { opacity: .45; }
.sw-sort-btn.is-asc .sw-sort-btn__up, .sw-sort-btn.is-desc .sw-sort-btn__down { opacity: 1; }
.sw-sort-btn.is-asc .sw-sort-btn__down, .sw-sort-btn.is-desc .sw-sort-btn__up { opacity: 0; }
.sw-myads-sortbar { display: none; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; }
.sw-myads-sortbar__label { color: var(--color-text-secondary); font-weight: 600; }
.sw-myads-sortbar__hint { color: var(--color-text-secondary); font-size: 12.5px; }
.sw-sort-btn--chip { height: 36px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text-primary); font-size: 13px; font-weight: 600; }
.sw-sort-btn--chip.is-sorted { border-color: var(--color-primary); background: var(--color-primary-tint); }
.sw-table--myads { min-width: 0; table-layout: fixed; }
.sw-table--myads th, .sw-table--myads td { padding-left: 12px; padding-right: 12px; }
.sw-table--myads .sw-col-id { width: 92px; }
.sw-table--myads .sw-col-premium { width: 140px; }
.sw-table--myads .sw-col-city { width: 104px; }
.sw-table--myads .sw-col-date { width: 112px; }
.sw-table--myads .sw-col-status { width: 96px; }
.sw-table--myads .sw-col-actions { width: 170px; }
.sw-table--myads .sw-icon-btn { flex-shrink: 0; }
.sw-table--myads .sw-table__title { max-width: none; }
.sw-table--myads td { overflow-wrap: anywhere; }
.sw-table--myads .sw-plan-text { white-space: normal; }
.sw-table--myads .sw-plan-text__until { display: block; font-weight: 500; }
.sw-table--myads .sw-plan-text__sep { display: none; }
.sw-table--myads .sw-premium-btn { padding: 0 10px; }
@media (max-width: 1024px) {
	.sw-myads-sortbar { display: flex; }
	html:not(.js):not(.sw-js) .sw-myads-sortbar { display: none; }
	.sw-myads .sw-table-card { background: none; border: 0; border-radius: 0; overflow: visible; }
	.sw-myads .sw-table-scroll { overflow: visible; }
	.sw-table--myads, .sw-table--myads tbody { display: block; width: 100%; }
	.sw-table--myads colgroup, .sw-table--myads thead { display: none; }
	.sw-table--myads tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px; margin-bottom: 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
	.sw-table--myads tbody tr:hover { background: var(--color-surface); }
	.sw-table--myads td { display: block; padding: 0; border: 0; min-width: 0; }
	.sw-table--myads td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-family: var(--font-body, inherit); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-secondary); }
	.sw-table--myads .sw-myads__ref { order: -2; grid-column: 1 / -1; }
	.sw-table--myads .sw-myads__ref::before { display: inline !important; margin-right: 6px; }
	.sw-table--myads .sw-table__title { order: -1; grid-column: 1 / -1; font-size: 15px; }
	.sw-table--myads .sw-table__title span { white-space: normal; overflow: visible; }
	.sw-table--myads .sw-myads__premium { grid-column: 1 / -1; }
	.sw-table--myads .sw-plan-text__until { display: inline; }
	.sw-table--myads .sw-plan-text__sep { display: inline; }
	.sw-table--myads .sw-myads__actions { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--color-border); }
	.sw-table--myads .sw-row-actions { flex-wrap: wrap; gap: 8px; }
	.sw-table--myads .sw-icon-btn { width: 40px; height: 40px; }
	.sw-table--myads .sw-icon-btn--label { width: auto; padding: 0 12px; } /* 1.6.1: the Repost button kept its icon-button width on phones. */
	.sw-myads .sw-table-empty { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
}
@media (max-width: 760px) {
	.sw-myads-search { width: 100%; }
	.sw-myads-search .sw-search-mini { flex: 1 1 100%; width: 100%; }
	.sw-myads-search__btn { flex: 1 1 0; }
}

/* Submit an ad: progress / status while the ad is sent and saved. */
.sw-submit-status { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-primary-tint); color: var(--color-text-primary); font-size: 14px; font-weight: 500; }
.sw-submit-status[hidden] { display: none; }
.sw-submit-status.is-error { background: #FCE8E8; color: #B93030; }
.sw-submit-status.is-ok { background: #E4F8EF; color: #0E7A50; }
.sw-submit-status__bar { height: 6px; margin-bottom: 8px; border-radius: 3px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.sw-submit-status__bar[hidden] { display: none; }
.sw-submit-status__bar span { display: block; height: 100%; width: 0; background: var(--color-primary); transition: width .2s; }

/* ---------- 20. Print ---------- */
@media print {
	.sw-header, .sw-footer, .sw-detail__actions, .sw-gallery__nav, .sw-gallery__thumbs, .sw-flashes, .sw-modal, .sw-panel--search, .sw-toolbar { display: none !important; }
	body { background: #fff; }
}

/* Home "Latest properties": wrapper for the rotating Featured cards (1.2.0). */
.sw-feat-slot { display: contents; }
.sw-feat-slot[hidden] { display: none; }

/* ---------- Header: Loan Calculator link (1.3.0) ---------- */
.sw-header__start { display: flex; align-items: center; gap: 22px; min-width: 0; }
.sw-header__tool { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--color-text-primary); white-space: nowrap; transition: background .15s, color .15s; }
.sw-header__tool svg { color: var(--color-primary); }
.sw-header__tool:hover, .sw-header__tool.is-current { background: var(--color-bg); color: var(--color-text-primary); }
.sw-mnav__link--tool { display: flex; align-items: center; gap: 8px; }
.sw-mnav__link--tool svg { color: var(--color-primary); }
@media (max-width: 860px) { .sw-header__tool { display: none; } }

/* ---------- Loan Calculator (1.3.0) ---------- */
.sw-loan { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.sw-loan__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sw-loan__form, .sw-loan__result { padding: 26px; border-radius: 16px; box-shadow: var(--shadow-panel); }
.sw-loan__form .sw-form-group { margin-bottom: 18px; }
.sw-loan__types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 0 0 22px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-bg); }
.sw-loan__type { position: relative; }
.sw-loan__type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sw-loan__type span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--radius-full); font-weight: 600; font-size: 14px; color: var(--color-text-secondary); transition: background .15s, color .15s; }
.sw-loan__type input:checked + span { background: var(--color-primary); color: #fff; }
.sw-loan__type input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.sw-input--lg { font-size: 18px; font-weight: 600; min-height: 50px; }
.sw-loan__hint { margin-top: 6px; font-size: 13px; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.sw-loan__range { display: grid; grid-template-columns: 1fr 84px; gap: 12px; align-items: center; }
.sw-loan__range input[type="range"] { width: 100%; accent-color: var(--color-primary); }
.sw-loan__range input[type="range"][hidden] + .sw-loan__years { grid-column: 1 / -1; }
.sw-loan__methods { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.sw-loan__methods legend { margin-bottom: 8px; padding: 0; }
.sw-loan__method { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; background: var(--color-surface); }
.sw-loan__method input { margin-top: 3px; accent-color: var(--color-primary); }
.sw-loan__method span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sw-loan__method small { color: var(--color-text-secondary); font-size: 12.5px; line-height: 1.45; }
.sw-loan__method:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-tint); }
html.sw-js .sw-loan__submit { margin-top: 4px; }
.sw-loan__result { position: sticky; top: calc(var(--header-h) + 16px); }
.sw-loan__result:focus { outline: none; }
.sw-loan__result-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.sw-loan__big { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; color: var(--color-primary); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.sw-loan__sub { margin: 0 0 18px; font-size: 13.5px; color: var(--color-text-secondary); }
.sw-loan__figures { margin: 0 0 18px; display: grid; gap: 10px; }
.sw-loan__figures > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.sw-loan__figures dt { color: var(--color-text-secondary); font-size: 14px; }
.sw-loan__figures dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sw-loan__split { height: 12px; border-radius: 999px; background: #F59E0B; overflow: hidden; }
.sw-loan__split-p { display: block; height: 100%; background: var(--color-primary); border-right: 2px solid var(--color-surface); transition: width .25s ease; }
.sw-loan__legend { display: flex; gap: 18px; margin-top: 8px; font-size: 13px; color: var(--color-text-secondary); }
.sw-loan__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-loan__legend i.is-p { background: var(--color-primary); }
.sw-loan__legend i.is-i { background: #F59E0B; }
.sw-loan__legend b { color: var(--color-text-primary); }
.sw-loan__schedule { margin-top: 18px; }
.sw-loan__schedule summary { cursor: pointer; font-weight: 600; color: var(--color-primary); font-size: 14px; }
.sw-loan__terms { margin: 18px 0 0; font-size: 12.5px; color: var(--color-text-secondary); text-align: center; }
.sw-rate-table-wrap { overflow-x: auto; margin: 10px 0 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.sw-rate-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; background: var(--color-surface); }
.sw-rate-table th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--color-text-secondary); background: var(--color-bg); border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.sw-rate-table td { padding: 9px 12px; border-bottom: 1px solid var(--color-border); }
.sw-rate-table tr:last-child td { border-bottom: 0; }
.sw-loan-info { margin-top: 28px; padding: 28px; border-radius: 16px; }
.sw-loan-info .sw-h2 { margin: 0 0 8px; }
.sw-loan-info .sw-h3 { margin: 22px 0 6px; }
.sw-loan-info p, .sw-loan-info li { font-size: 15px; line-height: 1.65; color: var(--color-text-secondary); }
.sw-loan-info__intro { margin-top: 0; }
@media (max-width: 860px) {
	.sw-loan__grid { grid-template-columns: 1fr; }
	.sw-loan__result { position: static; }
	.sw-loan__big { font-size: 34px; }
	.sw-loan__form, .sw-loan__result, .sw-loan-info { padding: 20px; }
}

/* ---------- 1.4.0: ad spaces, sharing, social, forms, loan limits ---------- */
/* Ad spaces: only printed when switched on; "Advertisement" label; room is
   reserved so the page does not jump when the ad loads. */
.sw-adspace { margin: 20px 0; text-align: center; }
.sw-adspace__label { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-secondary); }
.sw-adspace__slot { min-height: 90px; display: flex; align-items: center; justify-content: center; overflow: hidden; max-width: 100%; }
.sw-adspace__slot > * { max-width: 100%; }
.sw-adspace--home { margin: 16px 0 16px; }
.sw-adspace--results-1, .sw-adspace--results-2 { margin: 0; padding: 12px 16px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.sw-adspace--results-1 .sw-adspace__slot, .sw-adspace--results-2 .sw-adspace__slot { min-height: 120px; }
.sw-adspace--detail { margin: 0; }
.sw-adspace--detail .sw-adspace__slot { min-height: 250px; }
.sw-adspace--empty .sw-adspace__slot { border: 2px dashed #C9CDD6; border-radius: var(--radius-md); padding: 16px; font-size: 13px; color: var(--color-text-secondary); background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(15,118,110,.04) 12px 24px); }
.sw-adspace--results-1.sw-adspace--empty, .sw-adspace--results-2.sw-adspace--empty { padding: 12px; }
/* Ad page: ad beside the photos on wide screens, below the details otherwise. */
.sw-detail__layout.has-aside { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 336px); gap: 40px; align-items: start; }
.sw-detail__aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1100px) {
	.sw-detail__layout.has-aside { display: block; }
	.sw-detail__aside { position: static; margin-top: 28px; max-width: 720px; }
}

/* Home page agreement line */
.sw-agree { margin: 0 0 4px; padding: 14px 0 0; text-align: center; font-size: 13px; color: var(--color-text-secondary); }
.sw-agree a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sw-form-foot a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Footer social icons */
.sw-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sw-social__link { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-primary); background: var(--color-surface); border: 1px solid var(--color-border); transition: color .15s, background .15s, border-color .15s, transform .15s; }
.sw-social__link:hover, .sw-social__link:focus-visible { color: #fff; transform: translateY(-2px); }
.sw-social__link--youtube:hover, .sw-social__link--youtube:focus-visible { background: #E62117; border-color: #E62117; }
.sw-social__link--facebook:hover, .sw-social__link--facebook:focus-visible { background: #1877F2; border-color: #1877F2; }
.sw-social__link--instagram:hover, .sw-social__link--instagram:focus-visible { background: #D62976; border-color: #D62976; }
.sw-social__link--linkedin:hover, .sw-social__link--linkedin:focus-visible { background: #0A66C2; border-color: #0A66C2; }
.sw-social__link--x:hover, .sw-social__link--x:focus-visible, .sw-social__link--tiktok:hover, .sw-social__link--tiktok:focus-visible { background: #111; border-color: #111; }
@media (max-width: 760px) { .sw-footer__bottom { justify-content: center; text-align: center; } .sw-footer__bottom .sw-social { order: -1; width: 100%; } }

/* Share this ad (1.4.1): WhatsApp and Facebook buttons. Neutral class names so
   content blockers' "social" filters do not hide them. */
.sw-sendad { margin-top: 24px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.sw-sendad__label { font-size: 14px; font-weight: 700; color: var(--color-text-primary); }
.sw-sendad__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sw-sendad__btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 7px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sw-sendad__btn:hover, .sw-sendad__btn:focus-visible { box-shadow: 0 4px 12px rgba(10,10,10,.08); transform: translateY(-1px); color: var(--color-text-primary); }
.sw-sendad__btn--wa:hover, .sw-sendad__btn--wa:focus-visible { border-color: #25D366; }
.sw-sendad__btn--fb:hover, .sw-sendad__btn--fb:focus-visible { border-color: #1877F2; }
.sw-sendad__icon { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.sw-sendad__btn--wa .sw-sendad__icon { background: #25D366; }
.sw-sendad__btn--fb .sw-sendad__icon { background: #1877F2; }
@media (max-width: 760px) {
	.sw-sendad__btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.sw-sendad__btn { justify-content: flex-start; }
}

/* Submit an ad: short Bedrooms / Bathrooms, checkboxes stacked on the right */
.sw-rooms-row { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.sw-rooms-row__nums { display: flex; gap: 16px; }
.sw-rooms-row__nums[hidden] { display: none; }
.sw-rooms-row__num { margin-bottom: 0; }
.sw-rooms-row__num .sw-label { white-space: nowrap; }
.sw-rooms-row__num .sw-input { width: 96px; }
.sw-rooms-row__checks { display: flex; flex-direction: column; gap: 6px; padding-bottom: 2px; }
/* Title generator link */
.sw-label-row--gen { justify-content: flex-start; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sw-title-gen { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; color: #0E766D; }
.sw-title-gen:hover, .sw-title-gen:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sw-title-gen__spark { font-size: 15px; line-height: 1; }
.sw-title-gen__note { margin: 0 0 6px; color: var(--color-error); }
@keyframes sw-flash-in { from { box-shadow: 0 0 0 4px rgba(14, 118, 109, .25); } to { box-shadow: 0 0 0 0 rgba(14, 118, 109, 0); } }
.sw-input.sw-flash-in { animation: sw-flash-in .9s ease-out; }

/* Loan calculator: limit messages and the year table as cards on phones */
.sw-loan__errors { padding: 4px 0; }
.sw-loan__errors[hidden] { display: none; }
.sw-loan__errors-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: #B42318; margin-bottom: 10px; }
.sw-loan__errors ul { margin: 0; padding: 12px 14px 12px 32px; background: #FEF3F2; border: 1px solid #FECDCA; border-radius: var(--radius-md); color: #912018; font-size: 14px; line-height: 1.6; }
.sw-loan__body[hidden] { display: none; }
.sw-loan__hint--flash { animation: sw-hint-flash 1.2s ease-out; }
@keyframes sw-hint-flash { 0%, 40% { color: #B42318; font-weight: 700; } 100% { color: var(--color-text-secondary); } }
@media (max-width: 640px) {
	.sw-loan__schedule .sw-rate-table-wrap { overflow: visible; border: 0; background: none; }
	.sw-loan__table, .sw-loan__table tbody { display: block; background: none; }
	.sw-loan__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sw-loan__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
	.sw-loan__table td { display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; font-weight: 600; font-size: 14px; }
	.sw-loan__table td::before { content: attr(data-label); font-size: 11.5px; font-weight: 500; color: var(--color-text-secondary); }
	.sw-loan__table td:first-child { grid-column: 1 / -1; flex-direction: row; gap: 6px; font-size: 15px; font-weight: 700; color: var(--color-primary); padding-bottom: 6px; border-bottom: 1px solid var(--color-border); }
	.sw-loan__table td:first-child::before { font-size: 15px; font-weight: 700; color: var(--color-primary); }
	.sw-loan__table tr:last-child td { border-bottom: 0; }
	.sw-loan__table tr:last-child td:first-child { border-bottom: 1px solid var(--color-border); }
}

/* ---------- 1.5.0: app install bar, install steps, ad-blocker notice, gallery video ---------- */
/* Install bar (phones and tablets that have not installed the app) */
.sw-appbar { position: relative; z-index: 41; display: flex; align-items: stretch; background: linear-gradient(100deg, #0B5B54 0%, #0F766E 45%, #139A8C 100%); color: #fff; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12); overflow: hidden; }
.sw-appbar[hidden] { display: none !important; }
.sw-appbar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent); transform: skewX(-18deg); animation: sw-appbar-shine 5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes sw-appbar-shine { 0% { left: -40%; } 30%, 100% { left: 130%; } }
.sw-appbar__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px 6px 9px var(--gutter); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sw-appbar__icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.sw-appbar__text { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.2; }
.sw-appbar__btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 8px 14px; border-radius: var(--radius-full); background: #fff; color: #0B5B54; font-size: 13.5px; font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.sw-appbar__main:active .sw-appbar__btn { transform: scale(.97); }
.sw-appbar__main:focus-visible, .sw-appbar__close:focus-visible { outline: 3px solid #fff; outline-offset: -4px; border-radius: 10px; }
.sw-appbar__close { flex-shrink: 0; width: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: rgba(255, 255, 255, .85); cursor: pointer; padding: 0 8px 0 0; }
.sw-appbar__close:hover { color: #fff; }
@media (max-width: 380px) { .sw-appbar__text { font-size: 14px; } .sw-appbar__btn { padding: 7px 11px; font-size: 12.5px; } .sw-appbar__main { gap: 9px; } }
@media (prefers-reduced-motion: reduce) { .sw-appbar::after { display: none; } }

/* Install steps (iPhone / browsers without an install dialog) */
.sw-appsheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 10, 10, .45); animation: sw-fade-in .2s ease-out; }
.sw-appsheet__panel { width: 100%; max-width: 480px; background: var(--color-surface); border-radius: 22px 22px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); text-align: center; animation: sw-sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
.sw-appsheet__icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); margin-bottom: 12px; }
.sw-appsheet__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }
.sw-appsheet__steps { list-style: none; counter-reset: sws; margin: 0 0 20px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.sw-appsheet__steps li { counter-increment: sws; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.sw-appsheet__steps li::before { content: counter(sws); flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--radius-full); background: rgba(var(--color-primary-rgb), .1); color: var(--color-primary); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sw-appsheet__glyph { display: inline-block; vertical-align: -4px; margin: 0 2px; color: #0A84FF; }
.sw-appsheet__ok { width: 100%; padding: 14px; border: 0; border-radius: var(--radius-full); background: var(--color-primary); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.sw-appsheet__ok:focus-visible { box-shadow: var(--ring); outline: none; }
@media (min-width: 560px) { .sw-appsheet { align-items: center; } .sw-appsheet__panel { border-radius: 22px; } }
@keyframes sw-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sw-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Ad-blocker notice (1.5.1: centred pop-up) */
.sw-kindnote { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(10, 10, 10, .42); opacity: 0; transition: opacity .2s ease; }
.sw-kindnote[hidden] { display: none !important; }
.sw-kindnote.is-in { opacity: 1; }
.sw-kindnote__card { position: relative; width: 100%; max-width: 384px; padding: 40px 32px 34px; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); text-align: center; transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.sw-kindnote.is-in .sw-kindnote__card { transform: none; }
.sw-kindnote__card:focus { outline: none; }
.sw-kindnote__badge { display: block; margin: 0 auto 18px; }
.sw-kindnote__title { margin: 0 0 12px; font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: #4A4A4A; }
.sw-kindnote__text { margin: 0 auto 26px; max-width: 290px; font-size: 15px; line-height: 1.55; color: #6E6E6E; }
.sw-kindnote__help { margin: -12px 0 22px; padding: 14px 16px; text-align: left; background: #F6F5F4; border-radius: 10px; font-size: 14px; line-height: 1.5; color: #3F3F3F; }
.sw-kindnote__help[hidden] { display: none; }
.sw-kindnote__help ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.sw-kindnote__go { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; max-width: 100%; min-height: 46px; padding: 12px 28px; border: 0; border-radius: var(--radius-full); background: #15803D; color: #fff; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 16px rgba(21, 128, 61, .22); transition: background .15s, transform .1s; }
.sw-kindnote__go:hover { background: #166534; }
.sw-kindnote__go:active { transform: scale(.98); }
.sw-kindnote__x { position: absolute; top: -13px; right: -13px; width: 32px; height: 32px; border: 3px solid #fff; border-radius: var(--radius-full); background: #EF7F7F; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.sw-kindnote__x:hover { background: #E25D5D; }
.sw-kindnote button:focus-visible { outline: 3px solid #15803D; outline-offset: 3px; }
.sw-kindnote__x:focus-visible { outline-color: #E25D5D; }
@media (max-width: 420px) { .sw-kindnote__card { padding: 34px 22px 28px; } .sw-kindnote__title { font-size: 22px; } .sw-kindnote__x { top: -10px; right: -6px; } }
@media (prefers-reduced-motion: reduce) { .sw-kindnote, .sw-kindnote__card { transition: none; } .sw-appsheet, .sw-appsheet__panel { animation: none; } }

/* YouTube video: first item of the ad gallery */
.sw-gallery__video { position: absolute; inset: 0; z-index: 1; background: #000; display: none; }
.sw-gallery.is-video .sw-gallery__video { display: block; }
.sw-gallery__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.sw-gallery.is-video .sw-gallery__open, .sw-gallery.is-video .sw-gallery__zoom { visibility: hidden; }
.sw-gallery.is-video .sw-gallery__counter { top: auto; bottom: 64px; right: 14px; }
.sw-gallery__thumb--video { position: relative; background: #000; }
.sw-gallery__thumb--video img { object-fit: cover; }
.sw-gallery__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
/* Result card: "Video included" */
.sw-lcard__chip { flex-shrink: 0; align-self: center; margin-left: auto; }
.sw-video-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text-primary); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sw-yt { display: block; flex-shrink: 0; }
@media (max-width: 640px) {
	.sw-lcard__top { flex-wrap: wrap; }
	.sw-lcard__top > div:first-child { flex: 1 1 0; min-width: 0; }
	.sw-lcard__chip { order: 3; flex-basis: 100%; margin-left: 0; margin-top: -2px; }
}

/* ---------- 1.6.0: Support Siriniwasa link (dashboard) and Support Us page ---------- */
.sw-account__titlerow { display: flex; align-items: center; flex-wrap: wrap; column-gap: 32px; row-gap: 4px; margin-bottom: 6px; }
.sw-account__titlerow .sw-h1 { margin: 0; }
.sw-support-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 17px; color: var(--color-primary); overflow: hidden; isolation: isolate; transition: color .2s ease, background-color .25s ease, box-shadow .25s ease; }
.sw-support-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .9) 45%, rgba(94, 234, 212, .55) 50%, rgba(255, 255, 255, .9) 55%, transparent 80%); transform: translateX(-120%); }
.sw-support-link:hover, .sw-support-link:focus-visible { color: var(--color-primary); background-color: rgba(var(--color-primary-rgb), .08); box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), .06), 0 0 22px rgba(20, 184, 166, .45); text-shadow: 0 0 10px rgba(20, 184, 166, .45); }
.sw-support-link:hover::before, .sw-support-link:focus-visible::before { transform: translateX(120%); transition: transform .9s ease; }
@media (max-width: 640px) { .sw-support-link { font-size: 15px; padding: 4px 12px; margin-left: -12px; } }
@media (prefers-reduced-motion: reduce) { .sw-support-link, .sw-support-link::before { transition: none; } .sw-support-link:hover::before { transform: translateX(-120%); } }
.sw-support { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.sw-support .sw-page-head .sw-lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.sw-support__cards { margin: 8px 0 28px; }
.sw-support__cards .sw-h3 { margin: 14px 0 6px; }
.sw-support__more { margin-bottom: 24px; }
.sw-support__more .sw-legal__section h2 { padding-left: 0; }
.sw-support__thanks { margin: 0 0 8px; }
.sw-support .sw-section-cta { padding: 28px 0 0; }
.sw-icon-btn--label { width: auto; padding: 0 10px; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sw-alert--warn { background: #FEF6E4; color: #8A5A00; }
/* 1.6.0: landing-page introduction and related searches (Siriniwasa Core 1.7.0). */
.sw-results__intro { margin: 8px 0 0; max-width: 820px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }
.sw-related-searches { margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid var(--color-border); }
