/* ========================================================================
   Aqar Riyadh — main theme stylesheet
   Layout, typography, components, responsive utilities. RTL-first.
   ======================================================================== */

:root {
	--c-primary:        #006C35;
	--c-primary-dark:   #00582B;
	--c-primary-light:  #1F8A52;
	--c-accent:         #C9A35D;
	--c-accent-dark:    #A88543;
	--c-accent-light:   #E0BE7A;
	--c-bg:             #F8F4EC;
	--c-bg-alt:         #FFFFFF;
	--c-text:           #1F2937;
	--c-text-muted:     #6B7280;
	--c-border:         #E5E0D5;
	--c-border-strong:  #D1CCC0;
	--c-danger:         #B91C1C;
	--c-success:        #16A34A;
	--c-warning:        #D97706;
	--c-info:           #2563EB;

	--shadow-sm: 0 1px 2px rgba(0,0,0,.04);
	--shadow:    0 2px 6px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
	--shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);

	--radius-sm: 6px;
	--radius:    12px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	--font-body: 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
	--container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--c-primary);
	text-decoration: none;
	transition: color .15s ease;
}
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-weight: 700;
	color: var(--c-text);
	line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; }

ul, ol { padding-inline-start: 1.25em; margin: 0 0 1em; }

.screen-reader-text {
	clip: rect(1px,1px,1px,1px);
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute; right: -9999px; top: 1em;
	background: var(--c-primary); color: #fff; padding: .5em 1em; z-index: 9999;
}
.skip-link:focus { right: 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ============ Buttons ============ */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .7em 1.4em; border-radius: var(--radius-pill);
	font-weight: 700; font-size: .95rem;
	border: 2px solid transparent; cursor: pointer; transition: all .15s ease;
	text-decoration: none;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #128C7E; color: #fff; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn--lg { padding: 1em 2em; font-size: 1.05rem; }
.btn--sm { padding: .5em 1em; font-size: .85rem; }
.btn .aqar-icon svg { width: 18px; height: 18px; }

/* ============ Forms ============ */
.input, input[type="text"]:not(.search-form__input), input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], select, textarea {
	width: 100%;
	padding: .7em 1em;
	border: 1.5px solid var(--c-border-strong);
	border-radius: var(--radius-sm);
	background: #fff;
	font-family: inherit;
	font-size: 1rem;
	color: var(--c-text);
	transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,108,53,.12); }
label { display: block; margin-bottom: .35em; font-weight: 600; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.form-row--4 { grid-template-columns: repeat(4, 1fr); }

/* ============ Topbar ============ */
.topbar {
	background: var(--c-primary-dark);
	color: #fff;
	font-size: .85rem;
	padding: 6px 0;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar__contact, .topbar__quick { display: flex; align-items: center; gap: 18px; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; color: #fff; opacity: .9; }
.topbar__link:hover { opacity: 1; color: #fff; }
.topbar__icon svg { width: 16px; height: 16px; }
.aqar-fav-count, .aqar-cmp-count {
	background: var(--c-accent); color: #fff; border-radius: var(--radius-pill);
	padding: 0 7px; font-size: .75rem; min-width: 20px; text-align: center; display: inline-block;
}

/* ============ Header / Nav ============ */
.site-header {
	background: var(--c-bg-alt);
	box-shadow: var(--shadow-sm);
	position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding: 14px 20px;
}
.site-title {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--c-text); font-size: 1.4rem; text-decoration: none;
}
.site-title__icon { font-size: 1.6em; }
.site-title__logo {
	width: auto; height: 56px; max-width: 80px;
	object-fit: contain; display: block;
}
.site-title__text strong { display: block; color: var(--c-primary); font-weight: 900; }
.site-title__text small { color: var(--c-text-muted); font-size: .75rem; }
.custom-logo { max-height: 64px; width: auto; }
.custom-logo-link { display: inline-block; }

.main-navigation .main-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: 6px; flex-wrap: wrap;
}
.main-menu li a {
	display: inline-block; padding: 8px 14px; border-radius: var(--radius-sm);
	color: var(--c-text); font-weight: 600;
}
.main-menu li a:hover, .main-menu .current-menu-item a { background: var(--c-bg); color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; color: var(--c-text); }
.menu-toggle .aqar-icon svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
	.main-navigation { display: none; }
	.main-navigation.is-open {
		display: block; position: absolute; top: 100%; right: 0; left: 0;
		background: #fff; padding: 16px; box-shadow: var(--shadow-lg);
	}
	.main-navigation.is-open .main-menu { flex-direction: column; gap: 4px; }
	.main-navigation.is-open .main-menu li a { display: block; padding: 12px 14px; }
	.menu-toggle { display: inline-flex; }
	.header-actions__cta { display: none; }
}

/* ============ Hero ============ */
.hero {
	position: relative;
	padding: 80px 0 100px;
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
	color: #fff;
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(circle at 80% 20%, rgba(201,163,93,.2) 0, transparent 50%),
		radial-gradient(circle at 10% 80%, rgba(255,255,255,.08) 0, transparent 40%);
	pointer-events: none;
}
.hero__inner { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.hero__eyebrow {
	display: inline-block; padding: 6px 18px; border-radius: var(--radius-pill);
	background: rgba(255,255,255,.16); color: #fff; font-size: .9rem; margin-bottom: 20px;
}
.hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; line-height: 1.15; }
.hero__subtitle { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; }
.hero__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__cta .btn { font-size: 1.05rem; padding: .9em 1.8em; }

/* ============ Quick search box ============ */
.quick-search {
	position: relative; z-index: 5;
	background: #fff;
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow-lg);
	margin-top: -50px;
}
.quick-search__title { font-size: 1.1rem; margin-bottom: 16px; color: var(--c-primary-dark); }
.quick-search__form { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
.quick-search__form .field label { font-size: .8rem; color: var(--c-text-muted); font-weight: 700; }
.quick-search__form select, .quick-search__form input { padding: .65em .8em; font-size: .95rem; }
.quick-search__form .btn { padding: .8em 1.6em; }
.quick-search__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.quick-search__tab {
	padding: 8px 18px; border-radius: var(--radius-pill);
	background: var(--c-bg); color: var(--c-text); font-weight: 700; border: 0; cursor: pointer;
}
.quick-search__tab.is-active { background: var(--c-primary); color: #fff; }
@media (max-width: 920px) {
	.quick-search__form { grid-template-columns: 1fr 1fr; }
	.quick-search__form .btn { grid-column: 1 / -1; }
}

/* ============ Sections ============ */
.section { padding: 56px 0; }
.section--alt { background: #fff; }
.section__header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__title { font-size: 1.7rem; margin: 0; color: var(--c-primary-dark); }
.section__subtitle { color: var(--c-text-muted); margin: 4px 0 0; }
.section__link { color: var(--c-primary); font-weight: 700; }

/* ============ Property card ============ */
.property-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-bg); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.property-card:hover .property-card__media img { transform: scale(1.04); }
.property-card__badges { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.property-card__badge {
	background: rgba(0,0,0,.7); color: #fff; padding: 4px 10px; border-radius: var(--radius-pill);
	font-size: .75rem; font-weight: 700; backdrop-filter: blur(4px);
}
.property-card__badge--featured { background: var(--c-accent); }
.property-card__badge--purpose { background: var(--c-primary); }
.property-card__actions { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.property-card__action {
	width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); border: 0;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: var(--shadow-sm); color: var(--c-text); transition: all .15s;
}
.property-card__action:hover { background: #fff; color: var(--c-primary); transform: scale(1.05); }
.property-card__action.is-active { background: var(--c-primary); color: #fff; }
.property-card__action svg { width: 18px; height: 18px; }

.property-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.property-card__type { font-size: .8rem; color: var(--c-text-muted); margin-bottom: 4px; }
.property-card__title { font-size: 1.05rem; margin-bottom: 6px; line-height: 1.35; }
.property-card__title a { color: var(--c-text); }
.property-card__title a:hover { color: var(--c-primary); }
.property-card__location { color: var(--c-text-muted); font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.property-card__location svg { width: 14px; height: 14px; }

.property-card__price {
	color: var(--c-primary-dark);
	font-weight: 900; font-size: 1.2rem;
	margin: 8px 0 14px;
}
.property-card__price small { font-size: .7rem; font-weight: 600; color: var(--c-text-muted); display: inline; margin-inline-start: 6px; }

.property-card__specs {
	display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid var(--c-border);
	color: var(--c-text-muted); font-size: .85rem; flex-wrap: wrap;
}
.property-card__spec { display: inline-flex; align-items: center; gap: 4px; }
.property-card__spec svg { width: 16px; height: 16px; color: var(--c-primary); }

.property-card__footer {
	display: flex; gap: 8px; margin-top: 14px;
}
.property-card__footer .btn { flex: 1; justify-content: center; }

/* Card grid */
.property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* Status badge */
.aqar-status {
	display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
	font-size: .75rem; font-weight: 700;
}
.aqar-status--available { background: rgba(22,163,74,.12); color: var(--c-success); }
.aqar-status--reserved  { background: rgba(217,119,6,.12);  color: var(--c-warning); }
.aqar-status--sold      { background: rgba(185,28,28,.12);  color: var(--c-danger); }
.aqar-status--rented    { background: rgba(37,99,235,.12);  color: var(--c-info); }

/* ============ Districts grid ============ */
.districts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}
.district-card {
	background: #fff; border-radius: var(--radius); padding: 22px 18px;
	text-align: center; border: 1.5px solid var(--c-border);
	transition: all .2s; display: block; color: var(--c-text);
}
.district-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--c-primary); }
.district-card__name { font-weight: 700; margin: 6px 0 2px; }
.district-card__count { color: var(--c-text-muted); font-size: .85rem; }

/* ============ AI agent CTA ============ */
.ai-cta {
	background: linear-gradient(120deg, #00582B 0%, #1F8A52 50%, #C9A35D 100%);
	color: #fff; border-radius: var(--radius-lg);
	padding: 48px 40px;
	position: relative; overflow: hidden;
}
.ai-cta::before {
	content: ''; position: absolute; left: -80px; top: -80px;
	width: 400px; height: 400px;
	background: radial-gradient(circle, rgba(255,255,255,.18) 0, transparent 70%);
	pointer-events: none;
}
.ai-cta__inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.ai-cta__title { color: #fff; font-size: 1.6rem; }
.ai-cta__text { color: rgba(255,255,255,.9); margin: 0 0 4px; }
@media (max-width: 820px) { .ai-cta__inner { grid-template-columns: 1fr; text-align: center; } }

/* ============ Single property ============ */
.single-property { padding: 32px 0 64px; }
.single-property__layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
@media (max-width: 940px) { .single-property__layout { grid-template-columns: 1fr; } }

.property-gallery { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.property-gallery__main { aspect-ratio: 16 / 10; background: var(--c-bg); }
.property-gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.property-gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.property-gallery__thumb {
	flex: 0 0 100px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
	cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .15s;
}
.property-gallery__thumb.is-active, .property-gallery__thumb:hover { opacity: 1; border-color: var(--c-primary); }
.property-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.property-info { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-top: 24px; }
.property-info h2 { font-size: 1.3rem; color: var(--c-primary-dark); margin-bottom: 14px; }
.property-info__description { line-height: 1.8; }

.property-specs {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px; margin: 24px 0;
}
.property-specs__item {
	background: var(--c-bg); border-radius: var(--radius-sm); padding: 14px;
	text-align: center;
}
.property-specs__icon { color: var(--c-primary); margin-bottom: 6px; display: inline-block; }
.property-specs__icon svg { width: 26px; height: 26px; }
.property-specs__label { color: var(--c-text-muted); font-size: .8rem; }
.property-specs__value { font-weight: 800; font-size: 1.1rem; color: var(--c-text); margin-top: 2px; }

.property-features { display: flex; flex-wrap: wrap; gap: 10px; }
.property-features__item {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--c-bg); padding: 8px 14px; border-radius: var(--radius-pill);
	font-size: .9rem;
}
.property-features__item svg { width: 14px; height: 14px; color: var(--c-success); }

.property-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; height: max-content; }
.property-card-side {
	background: #fff; border-radius: var(--radius); padding: 24px;
	box-shadow: var(--shadow);
}
.property-card-side__price { font-size: 1.6rem; color: var(--c-primary-dark); font-weight: 900; }
.property-card-side__price small { font-size: .8rem; color: var(--c-text-muted); font-weight: 600; }
.property-card-side__type { color: var(--c-text-muted); font-size: .9rem; margin: 6px 0 16px; }
.property-card-side__cta { display: flex; flex-direction: column; gap: 8px; }

.property-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.property-map__canvas { height: 350px; background: var(--c-bg); }

/* ============ Archive ============ */
.archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 28px 0 64px; }
@media (max-width: 940px) { .archive-layout { grid-template-columns: 1fr; } }

.filters-sidebar { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); height: max-content; position: sticky; top: 90px; }
.filters-sidebar h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--c-primary-dark); }
.filters-sidebar h3:first-child { margin-top: 0; }
.filters-sidebar__group { margin-bottom: 14px; }
.filters-sidebar__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filters-sidebar__chip {
	padding: 6px 12px; border-radius: var(--radius-pill);
	border: 1.5px solid var(--c-border-strong); background: #fff;
	font-size: .85rem; cursor: pointer; color: var(--c-text); transition: all .15s;
}
.filters-sidebar__chip.is-active, .filters-sidebar__chip:hover { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.filters-sidebar__range { display: flex; gap: 8px; }
.filters-sidebar__range input { padding: .5em .7em; font-size: .85rem; }
.filters-sidebar__actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); }

.archive-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; background: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.archive-toolbar__count { color: var(--c-text-muted); font-size: .95rem; }
.archive-toolbar__count strong { color: var(--c-primary-dark); }
.archive-toolbar__right { display: flex; gap: 10px; align-items: center; }
.view-toggle { display: inline-flex; background: var(--c-bg); border-radius: var(--radius-pill); padding: 4px; }
.view-toggle button { padding: 6px 14px; border: 0; background: transparent; border-radius: var(--radius-pill); cursor: pointer; font-weight: 700; color: var(--c-text-muted); }
.view-toggle button.is-active { background: var(--c-primary); color: #fff; }

.archive-map { background: #fff; border-radius: var(--radius); height: 600px; box-shadow: var(--shadow); display: none; }
.archive-map.is-visible { display: block; }
.archive-grid.is-hidden { display: none; }

.aqar-pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.aqar-pagination a, .aqar-pagination span {
	padding: 8px 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--c-border);
	color: var(--c-text); font-weight: 700;
}
.aqar-pagination .current, .aqar-pagination a:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ============ Pages ============ */
.page-container { padding: 32px 0 64px; }
.page-header { margin-bottom: 24px; }
.page-title { color: var(--c-primary-dark); }

.page-article { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.page-article__thumb { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.page-article__content { line-height: 1.8; }

/* Empty state */
.empty-state {
	background: #fff; border-radius: var(--radius); padding: 64px 32px; text-align: center; box-shadow: var(--shadow);
}
.empty-state--404 .empty-state__code { font-size: 6rem; font-weight: 900; color: var(--c-primary); line-height: 1; margin-bottom: 8px; }
.empty-state__title { color: var(--c-primary-dark); }
.empty-state__text { color: var(--c-text-muted); }
.empty-state__actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-footer { background: var(--c-primary-dark); color: rgba(255,255,255,.85); padding: 48px 0 24px; margin-top: 48px; }
.site-footer h4, .site-footer .footer-widget-title { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.site-footer__logo { width: 80px; height: 80px; border-radius: 16px; background: #fff; padding: 8px; object-fit: contain; margin-bottom: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__col p { color: rgba(255,255,255,.75); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: #fff; }
.site-footer__bottom { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.site-footer__credit { opacity: .7; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ============ Floating compare bar ============ */
.aqar-compare-bar {
	position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
	background: var(--c-text); color: #fff; padding: 14px 20px; border-radius: var(--radius-pill);
	box-shadow: var(--shadow-lg); display: none; align-items: center; gap: 18px; z-index: 60;
}
.aqar-compare-bar.is-active { display: inline-flex; }
.aqar-compare-bar__btn { padding: 8px 16px; border-radius: var(--radius-pill); border: 0; cursor: pointer; font-weight: 700; }
.aqar-compare-bar__btn--primary { background: var(--c-accent); color: #fff; }
.aqar-compare-bar__btn--ghost { background: transparent; color: rgba(255,255,255,.7); }

/* Comparison table */
.compare-table { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px; border-bottom: 1px solid var(--c-border); text-align: center; vertical-align: middle; }
.compare-table th { background: var(--c-bg); font-weight: 800; }
.compare-table img { width: 100%; max-width: 180px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); margin: 0 auto; }

/* Forms wrapper */
.aqar-form-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.aqar-form-card__title { color: var(--c-primary-dark); margin-bottom: 6px; }
.aqar-form-card__subtitle { color: var(--c-text-muted); margin-bottom: 24px; }
.aqar-form-card .form-field { margin-bottom: 16px; }
.aqar-form-card .form-message { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.aqar-form-card .form-message--success { background: rgba(22,163,74,.12); color: var(--c-success); }
.aqar-form-card .form-message--error { background: rgba(185,28,28,.12); color: var(--c-danger); }

/* Misc */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 24px; }

/* Search form */
.search-form { display: flex; gap: 6px; }
.search-form__input { padding: .65em 1em; border: 1.5px solid var(--c-border-strong); border-radius: var(--radius-sm); width: 100%; }
.search-form__btn { padding: 0 14px; background: var(--c-primary); color: #fff; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.search-form__btn svg { width: 18px; height: 18px; }

/* Loading state */
.aqar-loading { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--c-border); border-top-color: var(--c-primary); border-radius: 50%; animation: aqar-spin .8s linear infinite; }
@keyframes aqar-spin { to { transform: rotate(360deg); } }

/* Toast notifications */
.aqar-toast {
	position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
	background: var(--c-text); color: #fff; padding: 12px 22px; border-radius: var(--radius-pill);
	box-shadow: var(--shadow-lg); z-index: 70; opacity: 0; transition: opacity .25s;
	pointer-events: none;
}
.aqar-toast.is-visible { opacity: 1; }
.aqar-toast--success { background: var(--c-success); }
.aqar-toast--error { background: var(--c-danger); }

/* Accessibility */
*:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: var(--radius-sm); }
