/* Viesumajas.lv — design system
   Warm, clear, photo-led. Brand: sun #FDBE20, brown #805520 (the original Viesumajas.lv colours). */

:root {
	--ink: #2b2116;
	--ink-2: #5c4f40;
	--muted: #6b5e4e;
	--subtle: #8a7c6a;
	--wood: #805520;
	--sun: #fdbe20;
	--sun-soft: #fff3cf;
	--linen: #f4f1ea;
	--linen-2: #ebe5d9;
	--paper: #fbfaf7;
	--white: #ffffff;
	--line: #e7e1d6;
	--line-strong: #d8cfbf;
	--ok: #3f6b45;
	--ok-soft: #e7f0e5;
	--err: #a2341f;
	--err-soft: #f9e6e1;
	--map: #eef0e6;

	--f-display: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
	--f-text: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 22px;
	--r-xl: 28px;
	--r-pill: 999px;

	--shadow-1: 0 1px 2px rgba(43,33,22,.06), 0 6px 20px rgba(43,33,22,.06);
	--shadow-2: 0 2px 6px rgba(43,33,22,.08), 0 18px 44px rgba(43,33,22,.12);

	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
	--ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wood); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; color: var(--ink); }
h1 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section--tight { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.bg-linen { background: var(--linen); }
.bg-paper { background: var(--paper); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--wood); letter-spacing: .01em; margin-bottom: 10px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.link-underline { font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.icon { flex: 0 0 auto; display: inline-block; vertical-align: -0.18em; }

/* ---------- Logo ---------- */

.logo-link { display: inline-flex; color: var(--ink); }
.logo-link:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo svg { display: block; height: 100%; width: auto; }
.logo--sm { height: 36px; }
.logo--md { height: 46px; }
.logo--lg { height: 64px; }
@media (max-width: 560px) { .logo--md { height: 38px; } }

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; text-decoration: none; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #3d2f20; color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #f5b30c; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--soft { background: var(--linen); color: var(--ink); }
.btn--soft:hover { background: var(--linen-2); color: var(--ink); }
.btn--danger { background: transparent; color: var(--err); border-color: #e7c3ba; }
.btn--danger:hover { background: var(--err-soft); color: var(--err); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--icon { width: 46px; min-height: 46px; padding: 0; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--linen); color: var(--ink); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--soft { background: var(--linen-2); border-color: transparent; }
.chip--soft:hover { background: #e2dace; border-color: transparent; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: var(--linen); color: var(--ink-2); }
.tag--sun { background: var(--sun); color: var(--ink); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--sun-soft); color: #7a5300; }
.tag--err { background: var(--err-soft); color: var(--err); }

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.field__error { font-size: 13px; color: var(--err); font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 140px; line-height: 1.6; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232b2116' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #bfb3a0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(253,190,32,.45); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 48px; }
.input-group__btn { position: absolute; right: 4px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.toggle-group { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-group input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-group label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.toggle-group input:checked + label { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.toggle-group input:focus-visible + label { outline: 2.5px solid var(--ink); outline-offset: 2px; }

/* ---------- Notices ---------- */

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.notice .icon { margin-top: 2px; }
.notice--ok { background: var(--ok-soft); color: #23472a; }
.notice--err { background: var(--err-soft); color: #7c2414; }
.notice--info { background: var(--linen); color: var(--ink-2); }
.notice--sun { background: var(--sun-soft); color: #5c4000; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header--linen { background: rgba(244,241,234,.94); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; gap: 30px; margin: 0 auto; font-weight: 500; font-size: 16px; }
.site-nav a { position: relative; padding: 6px 0; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sun); border-radius: 2px; }
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.fav-link { position: relative; }
.fav-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.fav-count[hidden] { display: none; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 960px) {
	.site-nav, .site-header__actions .hide-mobile { display: none; }
	.menu-toggle { display: inline-flex; }
	.site-header__inner { justify-content: space-between; gap: 12px; }
	.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--white); display: flex; flex-direction: column; padding: 18px var(--gutter) 32px; transform: translateX(100%); transition: transform .28s var(--ease); visibility: hidden; }
	.mobile-menu.is-open { transform: none; visibility: visible; }
	.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 24px; }
	.mobile-menu nav { display: flex; flex-direction: column; }
	.mobile-menu nav a { font-family: var(--f-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.mobile-menu__foot { margin-top: auto; display: grid; gap: 10px; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--white); font-size: 15px; color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(140px, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h3 { font-family: var(--f-text); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--ink); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }
.socials { display: flex; gap: 6px; margin-top: 16px; }
.socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: var(--linen); color: var(--ink); }
.socials a:hover { background: var(--sun); }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Hero ---------- */

.hero { background: var(--linen); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .97; letter-spacing: -0.048em; }
.hero .lead { margin: 22px 0 30px; max-width: 30ch; }
.hero__mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(170px, 19vw, 270px)); gap: 14px; }
.hero__mosaic > * { border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--linen-2); }
.hero__mosaic > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
.hero__mosaic > :nth-child(2), .hero__mosaic > :nth-child(3) { grid-column: span 2; }
.hero__mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero__mosaic a:hover img { transform: scale(1.035); }
.hero__badge { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.95); color: var(--ink); padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.3; }
.hero__badge strong { display: block; font-size: 14px; }
.hero__quick { margin-top: 18px; }
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } .hero__mosaic { grid-template-rows: repeat(2, 150px); } }

/* ---------- Search pill ---------- */

.search-pill { display: flex; align-items: center; gap: 4px; max-width: 660px; background: var(--white); border-radius: var(--r-pill); padding: 7px 7px 7px 10px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.search-pill__field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 6px 18px; border-radius: var(--r-pill); }
.search-pill__field + .search-pill__field { border-left: 1px solid var(--line); }
.search-pill__field label { font-size: 13px; font-weight: 600; }
.search-pill__field input, .search-pill__field select { border: 0; background: transparent; padding: 2px 0; font-size: 16px; outline: none; width: 100%; color: var(--ink); appearance: none; }
.search-pill__field input::placeholder { color: var(--subtle); }
.search-pill__submit { flex: 0 0 auto; width: 56px; height: 56px; border-radius: var(--r-pill); border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.search-pill__submit:hover { background: #3d2f20; }
.search-pill--compact { box-shadow: none; padding: 5px 5px 5px 8px; }
.search-pill--compact .search-pill__submit { width: 42px; height: 42px; }
.search-pill--compact .search-pill__field { padding: 4px 14px; }
@media (max-width: 640px) {
	.search-pill { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px; }
	.search-pill__field { flex: 1 1 100%; padding: 10px 12px; }
	.search-pill__field + .search-pill__field { border-left: 0; border-top: 1px solid var(--line); border-radius: 0; }
	.search-pill__submit { width: 100%; border-radius: var(--r-md); height: 52px; gap: 8px; }
	.search-pill__submit::after { content: "Meklēt"; font-weight: 600; }
}

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 36px 24px; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.card:hover { color: var(--ink); }
.card__media { position: relative; border-radius: 18px; overflow: hidden; background: var(--linen); aspect-ratio: 4 / 5; }
.card--square .card__media { aspect-ratio: 1 / 1; }
.card--wide .card__media { aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.card__fav:hover { transform: scale(1.08); }
.card__fav[aria-pressed="true"] svg { fill: var(--sun); stroke: var(--ink); }
.card__badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card__body { display: flex; flex-direction: column; gap: 3px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { font-family: var(--f-text); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card__meta { font-size: 15px; color: var(--muted); line-height: 1.45; }
.card__dist { font-size: 14px; color: var(--muted); white-space: nowrap; }
.img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(160deg, #fff6dc, #fde9b4); }
.img-placeholder svg { width: 34%; max-width: 110px; height: auto; opacity: .55; }

/* ---------- Mood bento ---------- */

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(200px, 20vw, 270px)); gap: 16px; }
.bento__item { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; display: flex; }
.bento__item:hover { color: #fff; }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .6s var(--ease), opacity .3s; }
.bento__item:hover img { transform: scale(1.04); opacity: .7; }
.bento__item--big { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__label { position: relative; margin-top: auto; padding: 22px 24px; font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.bento__card { position: relative; margin-top: auto; margin: auto 22px 22px; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.bento__card strong { font-family: var(--f-display); font-size: 24px; letter-spacing: -0.02em; }
.bento__card span { font-size: 15px; color: var(--muted); }
.bento__item--sun { background: var(--sun); color: var(--ink); padding: 22px; flex-direction: column; justify-content: space-between; }
.bento__item--sun:hover { color: var(--ink); background: #f8b710; }
.bento__item--sun .bento__label { padding: 0; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .bento__item { min-height: 180px; } .bento__item--big { grid-column: span 2; grid-row: auto; min-height: 300px; } }

/* ---------- Region list ---------- */

.region-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; font-size: 20px; }
.region-list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.region-list a span { font-size: 15px; color: var(--muted); }

/* ---------- Host CTA ---------- */

.host-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; }
.host-cta__text { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.host-cta h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.04em; line-height: 1.02; }
.host-cta .eyebrow { color: var(--sun); margin: 0; }
.host-cta p { color: #d9cdb9; font-size: 18px; max-width: 34ch; }
.host-cta img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.host-cta .btn--outline { border-color: #6b5a45; color: #fff; }
.host-cta .btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 860px) { .host-cta { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); }

/* ---------- Catalog ---------- */

.catalog-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.catalog-bar__inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.catalog-bar .chips { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 32px; }
.catalog-bar .chip[data-map-toggle][aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--line); }
@media (max-width: 1080px) { .catalog-bar .hide-narrow { display: none; } }
.catalog-bar .chips::-webkit-scrollbar { display: none; }
.catalog-bar__right { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
.catalog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); min-height: calc(100vh - var(--header-h) - 66px); }
.catalog__list { padding: 28px var(--gutter) 64px; min-width: 0; }
.catalog__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.catalog__head h1 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; }
.catalog__map { position: sticky; top: calc(var(--header-h) + 66px); height: calc(100vh - var(--header-h) - 66px); background: var(--map); }
.catalog.no-map { grid-template-columns: 1fr; }
.catalog.no-map .catalog__map { display: none; }
.catalog .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 32px 20px; }
.map-canvas { width: 100%; height: 100%; }
.map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; padding: 24px; text-align: center; }
.map-pin { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); box-shadow: 0 1px 4px rgba(43,33,22,.35); transform: translate(-50%, -50%); cursor: pointer; }
.map-pin__label { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: #fff; font: 600 13px/1 var(--f-text); padding: 7px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.map-pin.is-active, .map-pin:hover { z-index: 5; background: var(--ink); border-color: var(--sun); }
.map-pin.is-active .map-pin__label, .map-pin:hover .map-pin__label { opacity: 1; }
.map-toggle-mobile { display: none; }
@media (max-width: 1080px) {
	.catalog { grid-template-columns: 1fr; }
	.catalog__map { display: none; position: fixed; inset: var(--header-h) 0 0 0; height: auto; z-index: 40; }
	.catalog.map-open .catalog__map { display: block; }
	.map-toggle-mobile { display: inline-flex; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; box-shadow: var(--shadow-2); }
}
.filters-panel { position: fixed; inset: 0; z-index: 70; display: none; }
.filters-panel.is-open { display: block; }
.filters-panel__backdrop { position: absolute; inset: 0; background: rgba(43,33,22,.42); }
.filters-panel__sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-2); }
.filters-panel__head, .filters-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.filters-panel__foot { border-top: 1px solid var(--line); border-bottom: 0; margin-top: auto; }
.filters-panel__body { padding: 22px; overflow-y: auto; display: grid; gap: 28px; }
.filters-panel fieldset { border: 0; padding: 0; margin: 0; }
.filters-panel legend { font-weight: 600; margin-bottom: 12px; }
.empty-state { text-align: center; padding: 64px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }
.empty-state h2 { font-size: 24px; margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Profile ---------- */

.gallery-mosaic { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(150px, 19vw, 270px)); gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.gallery-mosaic > * { position: relative; overflow: hidden; background: var(--linen); border: 0; padding: 0; display: block; }
.gallery-mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
.gallery-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery-mosaic button:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery-mosaic--1 { grid-template-columns: 1fr; grid-template-rows: clamp(260px, 38vw, 520px); }
.gallery-mosaic--2, .gallery-mosaic--3 { grid-template-columns: 2fr 1fr; }
.gallery-mosaic--2 > :first-child, .gallery-mosaic--3 > :first-child { grid-column: span 1; }
.gallery-mosaic--2 > :nth-child(2) { grid-row: span 2; }
.gallery-mosaic > .gallery-all { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: #fff; border-radius: 999px; padding: 0 16px; overflow: visible; }
@media (max-width: 760px) { .gallery-mosaic > .gallery-all { display: inline-flex !important; } }
@media (max-width: 760px) {
	.gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: 280px; border-radius: var(--r-md); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; }
	.gallery-mosaic > :not(:first-child) { display: none; }
	.gallery-mosaic > :first-child { grid-column: auto; grid-row: auto; }
}
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 6vw, 80px); margin-top: 44px; align-items: start; }
.profile__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.profile__head h1 { font-size: clamp(36px, 5vw, 58px); }
.profile__facts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 17px; }
.profile__facts span { display: inline-flex; align-items: center; gap: 7px; }
.profile__actions { display: flex; gap: 8px; align-items: flex-start; }
.p-section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.p-section:last-child { border-bottom: 0; }
.p-section h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 18px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose p { margin-bottom: 1em; }
.prose--clamp { max-height: 15em; overflow: hidden; position: relative; }
.prose--clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.prose--clamp.is-open { max-height: none; }
.prose--clamp.is-open::after { display: none; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px 32px; }
.amenities li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.amenities .a-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--linen); color: var(--wood); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.amenity-group + .amenity-group { margin-top: 26px; }
.amenity-group h3 { font-family: var(--f-text); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px dashed var(--line-strong); font-size: 16px; }
.price-list > div:last-child { border-bottom: 0; }
.price-list dd { margin: 0; font-weight: 600; white-space: nowrap; }
.price-list dd small { font-weight: 400; color: var(--muted); }
.facts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px 28px; margin: 0; }
.facts-list > div { display: flex; flex-direction: column; gap: 2px; }
.facts-list dt { font-size: 14px; color: var(--muted); }
.facts-list dd { margin: 0; font-weight: 500; }
.map-box { position: relative; height: 340px; border-radius: var(--r-lg); overflow: hidden; background: var(--map); }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.map-box__btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; background: transparent; color: var(--ink); font-weight: 600; }
.map-box__btn .pulse { width: 58px; height: 58px; border-radius: 999px; background: rgba(253,190,32,.35); display: flex; align-items: center; justify-content: center; }
.map-box__btn .pulse::after { content: ""; width: 22px; height: 22px; border-radius: 999px; background: var(--ink); border: 4px solid #fff; }
.contact-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--linen); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-card h2 { font-size: 23px; letter-spacing: -0.02em; }
.contact-card .btn { width: 100%; }
.contact-card .btn--ghost { border-color: transparent; }
.contact-card dl { margin: 10px 0 0; padding-top: 16px; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; }
.contact-card__links { display: flex; flex-wrap: wrap; gap: 6px; }
.reveal-phone[data-revealed="false"] .phone-full { display: none; }
.reveal-phone[data-revealed="true"] .phone-hint { display: none; }
.mobile-cta { display: none; }
@media (max-width: 960px) {
	.profile { grid-template-columns: 1fr; margin-top: 24px; }
	.contact-card { position: static; }
	.mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
	.mobile-cta .btn { flex: 1; }
	body.has-mobile-cta { padding-bottom: 80px; }
}

/* ---------- Guestbook ---------- */

.entries { display: flex; flex-direction: column; gap: 26px; }
.entry { display: flex; gap: 16px; }
.avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--linen); color: var(--wood); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; text-transform: uppercase; }
.entry__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.entry__head { font-weight: 600; }
.entry__head time { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.entry__text { line-height: 1.65; overflow-wrap: anywhere; }
.entry__reply { margin-top: 6px; padding: 12px 16px; background: var(--linen); border-radius: 14px; font-size: 15px; line-height: 1.55; }
.entry__actions { display: flex; gap: 6px; }
.vote { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; }
.vote:hover { border-color: var(--ink); color: var(--ink); }
.vote[aria-pressed="true"] { background: var(--sun-soft); border-color: var(--sun); color: var(--ink); }
.vote--down svg { transform: scaleY(-1); }
.guestbook-form { margin-top: 26px; padding: 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 16px; }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,15,10,.94); display: none; }
.lightbox.is-open { display: flex; flex-direction: column; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: #fff; font-size: 15px; }
.lightbox__top .icon-btn { color: #fff; }
.lightbox__top .icon-btn:hover { background: rgba(255,255,255,.12); }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 24px; position: relative; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox__stage iframe { width: min(100%, 1100px); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 640px) { .lightbox__stage { padding: 0 0 16px; } .lightbox__nav { width: 44px; height: 44px; } }

/* ---------- Plans (advertising) ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 18px; background: #fff; position: relative; }
.plan--popular { border-color: var(--ink); box-shadow: var(--shadow-1); }
.plan__flag { position: absolute; top: -13px; left: 24px; }
.plan h3 { font-size: 24px; }
.plan__price { font-family: var(--f-display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-family: var(--f-text); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan__price del { font-size: 20px; color: var(--subtle); font-weight: 500; margin-right: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.term-switch { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--linen); gap: 2px; }
.term-switch button { border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--muted); }
.term-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(43,33,22,.12); }

/* ---------- Auth ---------- */

.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); }
.auth__card { width: 100%; max-width: 440px; display: grid; gap: 22px; }
.auth__card h1 { font-size: clamp(32px, 4vw, 44px); }
.auth__aside { position: relative; background: var(--linen); overflow: hidden; }
.auth__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__aside-quote { position: absolute; left: 32px; right: 32px; bottom: 32px; background: rgba(255,255,255,.95); border-radius: var(--r-md); padding: 18px 22px; font-size: 15px; }
.auth__alt { font-size: 15px; color: var(--muted); text-align: center; }
.auth__alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* Registration steps */
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 8px; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--subtle); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.is-done, .steps li.is-current { color: var(--ink); }
.steps li.is-done::before { background: var(--ink); }
.steps li.is-current::before { background: var(--sun); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.form-card h2 { font-size: 22px; letter-spacing: -0.02em; }
.form-card__desc { margin-top: -12px; color: var(--muted); font-size: 15px; }

/* ---------- Page (generic content) ---------- */

.page-hero { background: var(--linen); padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 14px; max-width: 52ch; }
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content img { border-radius: var(--r-md); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Offers ---------- */

.offer-meta { font-size: 14px; color: var(--muted); }

/* ---------- 404 ---------- */

.not-found { text-align: center; padding: clamp(64px, 12vw, 160px) 0; }
.not-found .vm-mark { width: 88px; height: 88px; margin: 0 auto 24px; }
.not-found h1 { margin-bottom: 14px; }

/* ---------- Utilities ---------- */

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
[hidden] { display: none !important; }
.fade-in { animation: vmfade .4s var(--ease) both; }
@keyframes vmfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: vmspin .7s linear infinite; }
@keyframes vmspin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 95; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-2); opacity: 0; transition: all .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }

/* ---------- Registration / form helpers ---------- */

.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 40px; align-items: start; }
@media (max-width: 960px) { .reg-grid { grid-template-columns: 1fr; } .reg-grid > aside { position: static !important; order: -1; } }
.js-steps [data-step] { display: none; }
.js-steps [data-step].is-active { display: grid; animation: vmfade .3s var(--ease) both; }
.map-picker { position: relative; height: 340px; border-radius: var(--r-md); overflow: hidden; background: var(--map); border: 1px solid var(--line); }
.map-picker__canvas { width: 100%; height: 100%; }
.map-picker__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); font-size: 15px; margin: 0; }
.map-picker__hint { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; pointer-events: none; }

/* ---------- Catalog: dense, scannable layout ---------- */
.catalog-bar__inner { flex-wrap: wrap; gap: 8px; }
.cbar-field { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); }
.cbar-field:focus-within { border-color: var(--ink); }
.cbar-field input, .cbar-field select { border: 0; background: transparent; font: 500 15px var(--f-text); color: var(--ink); height: 100%; outline: none; min-width: 0; }
.cbar-field select { padding-right: 4px; cursor: pointer; }
.cbar-field--q { flex: 1 1 180px; }
.cbar-field--q input { width: 100%; }
.cbar-field--num input { width: 70px; }
.cbar-submit { height: 44px; border-radius: 10px; padding: 0 20px; }
.catalog-bar .chip { height: 44px; border-radius: 10px; }
.catalog-bar__inner .chip[data-map-toggle][aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
	.catalog-bar { position: static; }
	.cbar-field { flex: 1 1 calc(50% - 4px); }
	.cbar-field--q { flex-basis: 100%; }
	.cbar-field select, .cbar-field--num input { width: 100%; }
	.cbar-submit { flex: 1 1 100%; }
}
.catalog__head { margin-bottom: 16px; }
.catalog .cards, .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.card { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.card__media, .card--square .card__media, .card--wide .card__media { aspect-ratio: 4 / 3; border-radius: 0; }
.card:hover .card__media img { transform: none; }
.card__fav { top: 8px; right: 8px; width: 34px; height: 34px; }
.card__body { padding: 12px 14px 14px; gap: 4px; flex: 1; }
.card__title { font-size: 16px; line-height: 1.3; }
.card__meta { font-size: 14px; }
.card__facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--ink-2); }
.card__facts li { display: inline-flex; align-items: center; gap: 4px; }
.card__facts .icon { color: var(--subtle); }
.card__price { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); margin-top: auto; }
.card__price strong { color: var(--ink); font-size: 16px; }
@media (max-width: 560px) {
	.catalog .cards, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.card__body { padding: 10px 10px 12px; }
	.card__title { font-size: 15px; }
	.card__meta, .card__facts, .card__price { font-size: 13px; }
	.card__facts { gap: 2px 8px; }
	.card__fav { width: 30px; height: 30px; top: 6px; right: 6px; }
	.catalog__head h1 { font-size: 20px; }
}

/* =========================================================
   v3 — original Viesumajas.lv colours: sun yellow + brown
   ========================================================= */
:root {
	--brown: #805520;
	--brown-2: #6a4518;
	--brown-deep: #3b2410;
	--page: #f6f3ee;
}
body { background: var(--page); }
.btn--primary { background: var(--brown); color: #fff; }
.btn--primary:hover { background: var(--brown-2); color: #fff; }
.btn--sun { background: var(--sun); color: var(--brown-deep); }
a:hover { color: var(--brown); }

/* Header: yellow bar like the original site */
.site-header, .site-header--linen { background: var(--sun); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: 0 1px 0 rgba(59,36,16,.08); }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(59,36,16,.18); }
.site-nav { gap: 6px; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.site-nav a { color: var(--brown-deep); padding: 10px 14px; border-radius: 10px; }
.site-nav a:hover { background: rgba(255,255,255,.35); color: var(--brown-deep); }
.site-nav a[aria-current="page"] { background: #fff; color: var(--brown); }
.site-nav a[aria-current="page"]::after { display: none; }
.site-header .icon-btn { color: var(--brown-deep); }
.site-header .icon-btn:hover { background: rgba(255,255,255,.4); }
.site-header .btn--outline { border-color: var(--brown-deep); color: var(--brown-deep); }
.site-header .btn--outline:hover { background: var(--brown-deep); color: var(--sun); }
.fav-count { background: var(--brown); color: #fff; }

/* Featured slider */
.featured { position: relative; background: var(--brown-deep); }
.featured__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.featured__track::-webkit-scrollbar { display: none; }
.featured__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; height: clamp(300px, 46vw, 560px); color: #fff; overflow: hidden; }
.featured__slide img, .featured__slide .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(30,18,6,.55) 100%); }
.featured__slide:hover { color: #fff; }
.featured__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 22px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 78px; }
.featured__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.featured__title { display: inline-block; align-self: flex-start; background: var(--sun); color: var(--brown-deep); font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.1; padding: 8px 16px; border-radius: 10px; }
.featured__meta { font-size: 16px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); padding-left: 2px; }
.featured__facts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.featured__facts > span { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: rgba(253,190,32,.92); color: var(--brown-deep); padding: 8px 14px; border-radius: 12px; }
.featured__facts .icon { grid-row: 1 / 3; }
.featured__facts b { font-size: 20px; line-height: 1; }
.featured__facts small { font-size: 12px; font-weight: 600; line-height: 1.2; }
.featured__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--brown-deep); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); }
.featured__nav:hover { background: var(--sun); }
.featured__nav--prev { left: 16px; } .featured__nav--next { right: 16px; }
.featured__dots { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.featured__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); }
.featured__dots button[aria-current="true"] { background: var(--sun); width: 26px; border-radius: 5px; }
@media (max-width: 760px) {
	.featured__caption { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 44px; }
	.featured__facts { justify-content: flex-start; gap: 6px; }
	.featured__facts > span { padding: 6px 10px; }
	.featured__facts b { font-size: 16px; }
	.featured__nav { display: none; }
}

/* Search panel: brown like the original */
.catalog-bar { position: relative; top: auto; background: transparent; border: 0; backdrop-filter: none; padding: 18px 0 6px; }
.catalog-bar__inner { background: var(--brown); border-radius: 16px; padding: 14px; max-width: var(--wrap) !important; box-shadow: 0 8px 26px rgba(59,36,16,.18); }
.featured + .catalog-bar { margin-top: -34px; z-index: 3; padding-top: 0; }
.cbar-field { border-color: transparent; border-radius: 10px; height: 48px; }
.cbar-submit { background: var(--sun); color: var(--brown-deep); height: 48px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cbar-submit:hover { background: #ffd04f; color: var(--brown-deep); }
.catalog-bar .chip { height: 48px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.catalog-bar .chip:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }
.catalog-bar__inner .chip[data-map-toggle][aria-pressed="true"] { background: var(--sun); color: var(--brown-deep); border-color: var(--sun); }
.catalog { max-width: none; }
.catalog__list { padding-top: 22px; }
.catalog__head h1 { color: var(--brown-deep); }
.catalog__head h1 .muted { color: var(--brown); }

/* Cards */
.card { border-color: #ece5d9; border-radius: 14px; }
.card:hover { border-color: var(--sun); box-shadow: 0 10px 30px rgba(59,36,16,.12); transform: translateY(-2px); }
.card { transition: box-shadow .18s, border-color .18s, transform .18s; }
.card__title a { color: var(--brown-deep); }
.card:hover .card__title a { color: var(--brown); }
.card__facts .icon { color: var(--brown); }
.card__price strong { color: var(--brown); }
.card__fav[aria-pressed="true"] svg { fill: var(--sun); stroke: var(--brown); }
.pagination .is-current { background: var(--brown); color: #fff; border-color: var(--brown); }

/* Map pins */
.map-pin { background: var(--sun); border-color: var(--brown-deep); }
.map-pin.is-active, .map-pin:hover { background: var(--brown); border-color: var(--sun); }

/* Footer: dark brown */
.site-footer { background: var(--brown-deep); color: rgba(255,255,255,.72); border-top: 4px solid var(--sun); }
.site-footer h3 { color: var(--sun); }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--sun); }
.site-footer .socials a { background: rgba(255,255,255,.1); color: #fff; }
.site-footer__bottom { border-top-color: rgba(255,255,255,.12) !important; color: rgba(255,255,255,.55); }

/* Pages */
.page-hero { background: #fff; border-bottom: 1px solid #ece5d9; }
.eyebrow { color: var(--brown); }
.contact-card { background: #fff; border: 1px solid #ece5d9; border-top: 4px solid var(--sun); }
.tag--sun { background: var(--sun); color: var(--brown-deep); }
@media (max-width: 760px) {
	.featured__slide { height: 340px; }
	.featured__caption { padding-bottom: 34px; }
	.featured__dots { bottom: 12px; }
	.featured + .catalog-bar { margin-top: 0; padding-top: 12px; }
	.catalog-bar__inner { padding: 10px; border-radius: 14px; }
}
.term-switch button { white-space: nowrap; }
