/* Southridge listings 1.1.0. Tokens are scoped to plugin classes; Lora is loaded by the theme. */
.srl, .srl-lb {
	--srl-ridge: #004038;      /* brand green: buttons, prices, links */
	--srl-ridge-deep: #00302a;
	--srl-gold: #c8a050;       /* accents and rules only, never text on light */
	--srl-gold-ink: #7a5c22;   /* small caps labels on light */
	--srl-cream: #f6f2e9;      /* panels */
	--srl-ink: #1f2a27;        /* headings */
	--srl-text: #4a524f;       /* body */
	--srl-line: #e3ddd0;
	--srl-radius: 4px;
	--srl-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .07);
	--srl-shadow-up: 0 2px 4px rgba(0, 0, 0, .08), 0 10px 24px rgba(0, 0, 0, .10);
	--srl-head: 'Lora', Georgia, serif;
	--srl-body: 'Muli', 'Mulish', system-ui, sans-serif;
}
.srl { color: var(--srl-text); font-family: var(--srl-body); }
.srl h1, .srl h2, .srl h3 { font-family: var(--srl-head); color: var(--srl-ink); font-weight: 600; }
.srl *, .srl *::before, .srl *::after { box-sizing: border-box; }
.srl img { max-width: 100%; display: block; }
.srl a { color: var(--srl-ridge); }
.srl a:focus-visible, .srl-lb button:focus-visible { outline: 3px solid var(--srl-ridge); outline-offset: 2px; border-radius: 2px; }
.srl-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- grid ---------- */
.srl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 860px) { .srl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 560px) { .srl-grid { grid-template-columns: 1fr; } }

.srl-card { position: relative; margin: 0; background: #fff; border: 1px solid var(--srl-line); border-radius: var(--srl-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--srl-shadow); transition: box-shadow .2s ease, transform .2s ease; }
.srl-card:hover, .srl-card:focus-within { box-shadow: var(--srl-shadow-up); transform: translateY(-2px); }
.srl-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--srl-cream); overflow: hidden; flex: none; }
.srl-card__media img { width: 100%; height: 100%; object-fit: cover; }
.srl-card__nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--srl-text); font-size: 14px; }
.srl-card__body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.srl-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.srl-card__title { font-size: 24px; line-height: 1.2; margin: 0; }
.srl-card__link { color: var(--srl-ink) !important; text-decoration: none; }
.srl-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.srl-card__link:focus-visible { outline: none; }
.srl-card:focus-within { outline: 3px solid var(--srl-ridge); outline-offset: 2px; }
.srl-card__price { margin: 0; font-size: 18px; font-weight: 800; color: var(--srl-ridge); font-variant-numeric: tabular-nums; white-space: nowrap; }
.srl-card__meta { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.srl-card__courtesy { margin: 0 0 12px; font-size: 12px; }
.srl-card__cta { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--srl-line); font-size: 14px; font-weight: 700; color: var(--srl-ridge); }
.srl-card__arrow { display: inline-block; transition: transform .2s ease; }
.srl-card:hover .srl-card__arrow { transform: translateX(3px); }

.srl-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 9px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--srl-ridge); }
.srl-badge--pending { background: var(--srl-gold-ink); }

.srl-fineprint { margin: 18px 0 0; font-size: 12px; }
.srl-empty { font-size: 18px; }

/* ---------- contact (always after attribution on lot pages) ---------- */
.srl-contact { margin: 32px 0; padding: 28px 28px 26px; background: var(--srl-ridge); color: #fff; border-radius: var(--srl-radius); }
.srl .srl-contact__h { font-size: 26px; margin: 0 0 6px; color: #fff; }
.srl-contact__who { margin: 0 0 18px; color: rgba(255, 255, 255, .88); }
.srl-contact__who strong { color: #fff; }
.srl .srl-contact__who a { color: #fff; }
.srl .srl-contact a:focus-visible { outline-color: var(--srl-gold); }
.srl-contact__links { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.srl-btn { display: inline-block; padding: 11px 20px; border-radius: 3px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background-color .15s ease, color .15s ease; }
.srl .srl-btn--call { background: var(--srl-gold); border-color: var(--srl-gold); color: var(--srl-ink); }
.srl .srl-btn--call:hover { background: #d6b268; border-color: #d6b268; }
.srl .srl-btn--outline { background: transparent; border-color: #fff; color: #fff; }
.srl .srl-btn--outline:hover { background: #fff; color: var(--srl-ridge); }

/* ---------- lot page ---------- */
.srl-lot { padding: 32px 0 56px; }
.srl-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.srl-crumbs { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--srl-gold-ink); margin-bottom: 12px; }
.srl-crumbs a { color: var(--srl-ridge); text-decoration: none; }
.srl-crumbs a:hover { text-decoration: underline; }
.srl-lot__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 20px; }
.srl-lot__title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0; }
.srl-lot__sub { margin: 6px 0 0; }
.srl-lot__price { margin: 0; font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; color: var(--srl-ridge); font-variant-numeric: tabular-nums; }

/* gallery: lead (16:10) + up to 2 stacked thumbnails */
.srl-gallery { display: grid; gap: 8px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.srl-gallery--1 { grid-template-columns: 1fr; }
.srl-gallery__lead { position: relative; aspect-ratio: 16 / 10; }
.srl-gallery__thumbs { display: grid; gap: 8px; grid-auto-rows: minmax(0, 1fr); }
.srl-gallery__link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--srl-radius); background: var(--srl-cream); }
.srl-gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.srl-gallery__link:hover img { transform: scale(1.02); }
.srl-gallery__thumb img { position: absolute; inset: 0; } /* thumbs never set the row height */
.srl-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 48, 42, .62); color: #fff; font-family: var(--srl-head); font-size: 30px; }
.srl .srl-gallery__all { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 8px 14px; border-radius: 3px; background: #fff; color: var(--srl-ink); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: var(--srl-shadow); }
.srl .srl-gallery__all:hover { background: var(--srl-cream); }
.srl-gallery__nojs { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
@media (max-width: 860px) {
	.srl-gallery { grid-template-columns: 1fr; }
	.srl-gallery__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
	.srl-gallery__thumb { aspect-ratio: 16 / 10; }
}

.srl-lot__cols { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr) 340px; margin-top: 32px; }
@media (max-width: 860px) { .srl-lot__cols { grid-template-columns: 1fr; gap: 28px; } }
.srl-lot__main h2 { font-size: 24px; margin: 0 0 10px; }
.srl-lot__main h2:not(:first-child) { margin-top: 32px; }
.srl-lot__main h3 { font-family: var(--srl-body); font-size: 12px; font-weight: 800; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--srl-gold-ink); }
.srl-lot__remarks { line-height: 1.7; }
.srl-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.srl-tags li { margin: 0; padding: 6px 13px; background: var(--srl-cream); border: 1px solid var(--srl-line); border-radius: 999px; font-size: 14.5px; line-height: 1.3; color: var(--srl-ink); }
.srl-tags__k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--srl-gold-ink); margin-right: 2px; }
.srl-tags__k::after { content: " ·"; color: var(--srl-line); }

/* site-plan locator */
.srl-locator { margin: 0; }
.srl-locator__map { position: relative; border: 1px solid var(--srl-line); border-radius: var(--srl-radius); overflow: hidden; }
.srl-locator__map img { width: 100%; height: auto; filter: saturate(.7); }
.srl-locator__ring { position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%); border: 3px solid var(--srl-ridge); border-radius: 50%; background: rgba(200, 160, 80, .32); box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none; }
@media (max-width: 560px) { .srl-locator__ring { width: 34px; height: 34px; } }
.srl-locator figcaption { margin: 8px 0 0; font-size: 14px; }

/* details panel */
.srl-lot__facts { background: var(--srl-cream); border: 1px solid var(--srl-line); border-radius: var(--srl-radius); padding: 20px 22px; align-self: start; }
.srl-lot__facts h2 { font-size: 22px; margin: 0 0 8px; }
.srl-lot__facts dl { margin: 0; }
.srl-lot__facts dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--srl-line); }
.srl-lot__facts dl > div:last-child { border-bottom: 0; }
.srl-lot__facts dt { margin: 0; }
.srl-lot__facts dd { margin: 0; font-weight: 700; color: var(--srl-ink); text-align: right; }
.srl-lot__fees { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--srl-line); font-size: 13px; }

.srl-attribution { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--srl-line); }
.srl-attribution__courtesy { font-weight: 700; color: var(--srl-ink); margin: 0 0 4px; }
.srl-attribution__fine { font-size: 13px; margin: 0; }
.srl-backlink a { font-weight: 700; text-decoration: none; }
.srl-backlink a:hover { text-decoration: underline; }

/* ---------- lightbox (assets/lightbox.js) ---------- */
html.srl-lb-open { overflow: hidden; }
.srl-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 16, 14, .94); color: #fff; font-family: var(--srl-body); }
.srl-lb::backdrop { background: rgba(10, 16, 14, .94); }
.srl-lb[open] { display: grid; place-items: center; }
.srl-lb__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 140px); }
.srl-lb__img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; object-fit: contain; }
.srl-lb__count { font-size: 14px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.srl-lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.srl-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.srl-lb button:focus-visible { outline-color: var(--srl-gold); }
.srl-lb__close { top: 16px; right: 16px; }
.srl-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.srl-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
	.srl-lb__stage { max-width: 100vw; }
	.srl-lb__prev, .srl-lb__next { top: auto; bottom: 14px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.srl *, .srl-lb * { transition: none !important; }
	.srl-card:hover, .srl-card:focus-within { transform: none; }
	.srl-gallery__link:hover img, .srl-card:hover .srl-card__arrow { transform: none; }
}
