/* ForSales Single Listing Kit - mobile first */
:root {
	--fs-green: #27AE60;      /* brand: logo, icons, links */
	--fs-wa: #25D366;         /* WhatsApp / contact buttons */
	--fs-submit: #00B853;     /* submit buttons */
	--fs-on-green: #062b13;   /* text on green. Use #fff for brand look (lower contrast) */
	--fs-wa-bg: #178443;      /* WhatsApp button fill: deep brand green, 4.75:1 with white text */
	--fs-wa-fg: #ffffff;      /* WhatsApp button text and icon */
	--fs-ink: #14201a;
	--fs-muted: #5b6b62;
	--fs-line: #e3e9e5;
	--fs-soft: #f3f8f5;
	--fs-card: #fff;
	--fs-radius: 14px;
	--fs-bar-h: 72px;
	--fs-sticky-top: 96px;
}

.fs-listing-page { -webkit-text-size-adjust: 100%; }
.fs-i { flex: none; vertical-align: -3px; }
.fs-notice { padding: 14px; border: 1px dashed #bbb; border-radius: 10px; color: #666; font: 14px/1.4 system-ui, sans-serif; }

/* ---------- Layout helpers (add these CSS classes in Elementor) ---------- */
@media (min-width: 1025px) {
	.fs-side { position: sticky; top: var(--fs-sticky-top); align-self: flex-start; }
	.fs-sticky-col > .elementor-widget-wrap { position: sticky; top: var(--fs-sticky-top); }
	body.admin-bar .fs-side,
	body.admin-bar .fs-sticky-col > .elementor-widget-wrap { top: calc(var(--fs-sticky-top) + 32px); }
}

/* ---------- Cards ---------- */
.fs-card { background: var(--fs-card); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); padding: 18px; color: var(--fs-ink); }
.fs-h2 { font-size: 18px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; color: var(--fs-ink); display: flex; align-items: center; gap: 8px; }
.fs-h2--lg { font-size: 22px; margin-bottom: 16px; }
.fs-fine { font-size: 13px; line-height: 1.5; color: var(--fs-muted); margin: 10px 0 0; }
.fs-link { color: var(--fs-green); font-weight: 600; text-decoration: none; font-size: 14px; }
.fs-link:hover { text-decoration: underline; }
.fs-link--btn { background: none; border: 0; padding: 12px 0 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--fs-muted); }
.fs-crumbs { font-size: 13px; color: var(--fs-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fs-crumbs a { color: var(--fs-muted); text-decoration: none; }
.fs-crumbs a:hover { color: var(--fs-green); }

/* ---------- Title block ---------- */
.fs-title-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fs-chip { display: inline-flex; gap: 6px; align-items: center; background: #e9f7ef; color: #1e7a45; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.fs-title { font-size: 26px; line-height: 1.25; font-weight: 800; margin: 0 0 8px; color: var(--fs-ink); letter-spacing: -.01em; }
.fs-price { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--fs-ink); margin: 0 0 12px; }
.fs-price--card { margin-bottom: 14px; }
.fs-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--fs-muted); }
.fs-meta li { display: inline-flex; align-items: center; gap: 6px; }
.fs-title-top { position: relative; z-index: 2; }
.fs-fav { position: relative !important; inset: auto !important; float: none !important; flex: none; margin: 0 !important; display: inline-flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--fs-line); border-radius: 50%; color: var(--fs-ink); background: #fff; cursor: pointer; transition: transform .1s ease, border-color .15s ease; -webkit-tap-highlight-color: transparent; }
.fs-fav:hover { border-color: #e5484d; color: #e5484d; }
.fs-fav:active { transform: scale(.92); }
.fs-fav[aria-pressed="true"] { color: #e5484d; border-color: #e5484d; background: #fff1f1; }
.fs-fav[aria-pressed="true"] .fs-i { fill: #e5484d; }
.fs-fav:focus-visible { outline: 3px solid #0b6b36; outline-offset: 2px; }
.fs-fav-wrap { position: relative; flex: none; }
.fs-fav-wrap * { position: static !important; }

/* ---------- Gallery ---------- */
.fs-gallery { width: 100%; }
.fs-g-main { position: relative; border-radius: var(--fs-radius); overflow: hidden; background: #0f1713; }
.fs-g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline-offset: -3px; }
.fs-g-track::-webkit-scrollbar { display: none; }
.fs-g-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; position: relative; cursor: zoom-in; }
.fs-g-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fs-g-video { cursor: pointer; background: #000; }
.fs-g-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fs-g-play { position: absolute; width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fs-g-play .fs-i { fill: #fff; margin-left: 4px; }
.fs-g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--fs-ink); display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fs-g-prev { left: 12px; } .fs-g-next { right: 12px; }
.fs-g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.fs-g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.fs-g-thumb { flex: 0 0 72px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--fs-soft); cursor: pointer; opacity: .75; display: flex; align-items: center; justify-content: center; color: var(--fs-ink); }
.fs-g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-g-thumb.is-active { border-color: var(--fs-green); opacity: 1; }
.fs-gallery--empty { aspect-ratio: 4 / 3; background: var(--fs-soft); border-radius: var(--fs-radius); display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--fs-muted); }
@media (hover: hover) and (min-width: 768px) { .fs-g-nav { display: flex; } .fs-g-slide { aspect-ratio: 16 / 10; } .fs-g-thumb { flex-basis: 96px; height: 70px; } }

/* Lightbox */
.fs-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.fs-lb.is-open { display: flex; }
.fs-lb img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.fs-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fs-lb-x { top: 14px; right: 14px; } .fs-lb-p { left: 12px; top: 50%; } .fs-lb-n { right: 12px; top: 50%; }
.fs-lb-c { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font: 14px system-ui; }

/* ---------- Facts + description ---------- */
.fs-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.fs-dl > div { padding: 12px 0; border-bottom: 1px solid var(--fs-line); }
.fs-dl dt { font-size: 13px; color: var(--fs-muted); margin: 0 0 2px; }
.fs-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.fs-prose { font-size: 16px; line-height: 1.7; color: var(--fs-ink); }
.fs-prose > :first-child { margin-top: 0; } .fs-prose > :last-child { margin-bottom: 0; }
.fs-prose img { max-width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.fs-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px; border-radius: 12px; border: 2px solid transparent; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; width: 100%; box-sizing: border-box; transition: transform .08s ease, filter .15s ease; -webkit-tap-highlight-color: transparent; }
.fs-btn:active { transform: scale(.98); }
.fs-btn:hover { filter: brightness(.96); }
.fs-btn:focus-visible, .fs-sbtn:focus-visible, .fs-g-thumb:focus-visible { outline: 3px solid #0b6b36; outline-offset: 2px; }
.fs-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.fs-btn-sub { font-weight: 500; font-size: 12px; opacity: .85; letter-spacing: .02em; }
.fs-btn--wa { background: var(--fs-wa-bg); color: var(--fs-wa-fg); border-color: var(--fs-wa-bg); font-weight: 800; font-size: 17px; box-shadow: 0 4px 14px rgba(23,132,67,.38); }
.fs-btn--wa .fs-btn-label { font-weight: 800; letter-spacing: .01em; }
.fs-btn--wa:hover { background: #126B37; border-color: #126B37; filter: none; }
.fs-btn--call { background: var(--fs-soft); color: var(--fs-ink); border-color: #cfe3d7; }
.fs-btn--call .fs-i { color: var(--fs-green); }
.fs-btn--msg { background: #fff; color: var(--fs-ink); border-color: var(--fs-line); }
.fs-btn--msg .fs-i { color: var(--fs-green); }
.fs-btn--submit { background: var(--fs-submit); color: var(--fs-on-green); margin-top: 6px; }
.fs-btn--ghost { background: #fff; color: var(--fs-ink); border-color: var(--fs-line); }
.fs-btn-stack { display: grid; gap: 10px; }
.fs-contact-card .fs-fine { display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Seller / map / share / claim / safety ---------- */
.fs-seller-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.fs-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--fs-soft); }
.fs-seller-name { font-weight: 700; font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-verified { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: #1e7a45; background: #e9f7ef; padding: 2px 8px; border-radius: 999px; }
.fs-loc-only { margin: 0 0 12px; display: flex; gap: 6px; align-items: center; color: var(--fs-muted); }
.fs-map { height: 260px; border-radius: 12px; overflow: hidden; background: var(--fs-soft); z-index: 0; }
.fs-share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fs-sbtn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--fs-line); background: #fff; color: var(--fs-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font-size: 17px; }
.fs-sbtn:hover { border-color: var(--fs-green); color: var(--fs-green); }
.fs-claim { position: relative; z-index: 0; clear: both; }
.fs-main, .fs-side { min-width: 0; }
.fs-claim-t { font-weight: 700; margin-bottom: 4px; }
.fs-claim .fs-btn { margin-top: 12px; min-height: 46px; }
.fs-safety { background: var(--fs-soft); border-color: transparent; }
.fs-safety ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--fs-muted); }

/* ---------- Similar ads ---------- */
.fs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fs-cardlink { display: block; background: #fff; border: 1px solid var(--fs-line); border-radius: var(--fs-radius); overflow: hidden; text-decoration: none; color: var(--fs-ink); transition: box-shadow .15s ease, transform .15s ease; }
.fs-cardlink:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.fs-cl-img { aspect-ratio: 4 / 3; background: var(--fs-soft); display: flex; align-items: center; justify-content: center; color: var(--fs-muted); }
.fs-cl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-cl-body { padding: 12px; }
.fs-cl-price { font-weight: 800; font-size: 17px; }
.fs-cl-title { font-size: 14px; line-height: 1.35; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-cl-loc { font-size: 12px; color: var(--fs-muted); margin-top: 6px; }

/* ---------- Sticky contact bar (phones + tablets, <= 1024px). Add ?fs_bar=1 to the URL to preview it on desktop ---------- */
.fs-bar { display: none; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--fs-line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transition: transform .2s ease; box-sizing: border-box; }
.fs-bar.is-hidden { transform: translateY(110%); }
.fs-bar .fs-btn { min-height: 48px; padding: 8px 10px; font-size: 15px; flex: 1 1 0; width: auto; }
.fs-bar .fs-btn--msg { flex: 0 0 auto; order: 1; }
.fs-bar .fs-btn--msg .fs-btn-label { display: none; }
.fs-bar .fs-btn--call { order: 2; }
.fs-bar .fs-btn--wa { flex: 1.5 1 0; order: 3; }   /* WhatsApp = last = closest to the thumb */
@media (max-width: 1024px) {
	.fs-bar { display: flex; }
	body.fs-listing-page { padding-bottom: calc(var(--fs-bar-h) + env(safe-area-inset-bottom, 0px)); }
}
body.fs-force-bar .fs-bar { display: flex; }
body.fs-force-bar.fs-listing-page { padding-bottom: calc(var(--fs-bar-h) + env(safe-area-inset-bottom, 0px)); }

/* ---------- Modals + forms ---------- */
.fs-modal { border: 0; border-radius: 18px; padding: 0; width: min(92vw, 460px); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.fs-modal::backdrop { background: rgba(10,20,15,.55); }
.fs-form { padding: 20px; display: grid; gap: 12px; color: var(--fs-ink); font-family: inherit; }
.fs-modal-head { display: flex; align-items: center; justify-content: space-between; }
.fs-modal-head h3 { margin: 0; font-size: 20px; }
.fs-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fs-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--fs-ink); }
.fs-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.fs-form input, .fs-form textarea, .fs-form select { font-family: inherit; font-size: 16px; line-height: 1.3; padding: 12px 14px; border: 1px solid #cdd8d1; border-radius: 10px; width: 100%; box-sizing: border-box; background: #fff; color: var(--fs-ink); }
.fs-form input:focus, .fs-form textarea:focus, .fs-form select:focus { outline: 3px solid rgba(39,174,96,.35); border-color: var(--fs-green); }
.fs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fs-form-status { margin: 0; font-size: 14px; min-height: 1.2em; }
.fs-form-status.is-ok { color: #1e7a45; } .fs-form-status.is-err { color: #b3261e; }
.fs-toast { position: fixed; left: 50%; bottom: calc(var(--fs-bar-h) + 20px); transform: translate(-50%, 20px); background: #14201a; color: #fff; padding: 12px 18px; border-radius: 12px; font: 14px system-ui; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100001; max-width: 90vw; }
.fs-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fs-toast a { color: #7ee2a8; font-weight: 700; margin-left: 8px; }

/* ---------- Tablet / desktop refinements ---------- */
@media (min-width: 768px) {
	.fs-title { font-size: 30px; }
	.fs-grid { grid-template-columns: repeat(3, 1fr); }
	.fs-dl { grid-template-columns: repeat(3, 1fr); column-gap: 20px; }
	.fs-map { height: 320px; }
}
@media (min-width: 1025px) { .fs-title { font-size: 32px; } .fs-toast { bottom: 28px; } .fs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
