/* Toronto Livings listing pages. Change the brand colours here. */
.tll {
	--tll-accent: #1d8a8a;        /* teal: match the homepage .dot colour */
	--tll-accent-ink: #ffffff;
	--tll-ink: #1d1d1f;
	--tll-muted: #6b6b70;
	--tll-line: #e6e4df;
	--tll-soft: #f6f4ef;
	--tll-card: #ffffff;
	--tll-radius: 10px;
	--tll-serif: "Playfair Display", Georgia, serif;
	--tll-sans: inherit;

	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 20px 64px;
	color: var(--tll-ink);
	font-family: var(--tll-sans);
	line-height: 1.6;
	box-sizing: border-box;
}
.tll *, .tll *::before, .tll *::after { box-sizing: inherit; }
.tll img { display: block; max-width: 100%; }
.tll a { color: var(--tll-accent); }

/* Typography */
.tll .tll-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tll-muted); }
.tll .tll-h1 { margin: 0; font-family: var(--tll-serif); font-weight: 600; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.01em; color: var(--tll-ink); }
.tll .tll-h2 { margin: 0 0 14px; font-family: var(--tll-serif); font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--tll-ink); }
.tll .tll-h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 600; color: var(--tll-ink); }
.tll .tll-dot { color: var(--tll-accent); }
.tll .tll-small { font-size: 13px; color: var(--tll-muted); margin: 10px 0 0; }
.tll .tll-k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--tll-muted); }

/* Breadcrumb */
.tll-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--tll-muted); margin-bottom: 16px; }
.tll-crumbs a { color: var(--tll-muted); text-decoration: none; }
.tll-crumbs a:hover { color: var(--tll-accent); }

/* Gallery */
.tll-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(280px, 48vw, 520px); border-radius: var(--tll-radius); overflow: hidden; }
.tll-gallery__item { padding: 0; margin: 0; border: 0; background: var(--tll-soft); cursor: zoom-in; overflow: hidden; }
.tll-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tll-gallery__item:hover img { transform: scale(1.03); }
.tll-gallery__item--0 { grid-row: 1 / span 2; }
.tll-gallery.is-small { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.tll-gallery.is-small .tll-gallery__item:not(.tll-gallery__item--0) { display: none; }
.tll-gallery__all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--tll-ink); font: 600 13px/1 var(--tll-sans); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.tll-gallery--empty { display: grid; place-items: center; background: var(--tll-soft); color: var(--tll-muted); height: 220px; border-radius: var(--tll-radius); }

/* Header */
.tll-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding: 28px 0 24px; border-bottom: 1px solid var(--tll-line); }
.tll-head__main { flex: 1 1 420px; min-width: 0; }
.tll-head--center { justify-content: center; text-align: center; border: 0; padding: 48px 0 24px; }
.tll-head--center .tll-head__main { max-width: 640px; }
.tll .tll-locality { margin: 6px 0 0; color: var(--tll-muted); font-size: 16px; }
.tll-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.tll-chips li { margin: 0; padding: 6px 12px; border: 1px solid var(--tll-line); border-radius: 999px; font-size: 14px; }
.tll-head__price { text-align: right; }
.tll .tll-price { margin: 0; font-family: var(--tll-serif); font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; line-height: 1.1; }
.tll .tll-price-was { margin: 4px 0 0; font-size: 13px; color: var(--tll-muted); text-decoration: line-through; }
.tll-head__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.tll-head__links a, .tll-head__links button { padding: 7px 12px; border: 1px solid var(--tll-line); border-radius: 999px; background: #fff; color: var(--tll-ink); font: 500 13px/1.2 var(--tll-sans); text-decoration: none; cursor: pointer; }
.tll-head__links a:hover, .tll-head__links button:hover { border-color: var(--tll-accent); color: var(--tll-accent); }

/* Layout */
.tll-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 32px; }
.tll-body > section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--tll-line); }
.tll-body > section:last-of-type { border-bottom: 0; }

.tll-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tll-highlights > div { padding: 16px; background: var(--tll-soft); border-radius: var(--tll-radius); }
.tll-highlights .tll-v { display: block; margin-top: 4px; font-size: 20px; font-weight: 600; }

.tll-open ul { margin: 0; padding-left: 18px; }

.tll-desc__text p { margin: 0 0 12px; }
.tll-desc__text.is-collapsed { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.tll-more { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--tll-accent); font: 600 14px var(--tll-sans); cursor: pointer; }

.tll-facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin: 0; }
.tll-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--tll-line); }
.tll-facts dt { color: var(--tll-muted); }
.tll-facts dd { margin: 0; text-align: right; font-weight: 500; }

.tll-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tll-tags li { margin: 0; padding: 6px 12px; border-radius: 6px; background: var(--tll-soft); font-size: 14px; }
.tll-tags--soft li { background: #fff; border: 1px solid var(--tll-line); }

.tll-table-wrap { overflow-x: auto; }
.tll-rooms table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tll-rooms th, .tll-rooms td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid var(--tll-line); vertical-align: top; }
.tll-rooms th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tll-muted); font-weight: 600; }
.tll-rooms td:first-child { font-weight: 500; white-space: nowrap; }

/* Calculator */
.tll-calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tll-calc__inputs { display: grid; gap: 14px; }
.tll-calc label, .tll-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--tll-ink); }
.tll-calc input[type=text], .tll-calc input[type=number], .tll-calc select,
.tll-form input[type=text], .tll-form input[type=email], .tll-form input[type=tel], .tll-form textarea {
	width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--tll-line); border-radius: 8px; background: #fff; color: var(--tll-ink); font: 15px/1.4 var(--tll-sans); box-shadow: none;
}
.tll-calc input:focus, .tll-calc select:focus, .tll-form input:focus, .tll-form textarea:focus { outline: 2px solid var(--tll-accent); outline-offset: 0; border-color: transparent; }
.tll-calc input[type=range] { accent-color: var(--tll-accent); }
.tll-calc__dp-pct { font-weight: 600; color: var(--tll-accent); }
.tll-calc__out { padding: 20px; background: var(--tll-soft); border-radius: var(--tll-radius); }
.tll-calc__total { margin: 0 0 12px; }
.tll-calc__sum { display: block; font-family: var(--tll-serif); font-size: 32px; font-weight: 600; }
.tll-calc__out ul { list-style: none; margin: 0; padding: 0; }
.tll-calc__out li[hidden] { display: none; }
.tll-calc__out li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--tll-line); font-size: 14px; margin: 0; }

.tll-map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--tll-radius); }
.tll .tll-attrib { font-size: 13px; color: var(--tll-muted); margin: 0; }

/* Sidebar form */
.tll-side { position: relative; }
.tll-card { position: sticky; top: 100px; padding: 24px; background: var(--tll-card); border: 1px solid var(--tll-line); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.tll-card .tll-h2 { font-size: 21px; }
.tll-form { display: grid; gap: 12px; margin: 0; }
.tll-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tll-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--tll-soft); border-radius: 8px; }
.tll-seg label { display: block; cursor: pointer; }
.tll-seg input, .tll-times input { position: absolute; opacity: 0; pointer-events: none; }
.tll-seg span { display: block; padding: 8px; border-radius: 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--tll-muted); }
.tll-seg input:checked + span { background: #fff; color: var(--tll-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.tll-seg input:focus-visible + span, .tll-times input:focus-visible + span { outline: 2px solid var(--tll-accent); }
.tll-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.tll-times legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 500; }
.tll-times label { display: block; cursor: pointer; }
.tll-times span { display: block; padding: 6px 12px; border: 1px solid var(--tll-line); border-radius: 999px; font-size: 13px; }
.tll-times input:checked + span { border-color: var(--tll-accent); background: var(--tll-accent); color: var(--tll-accent-ink); }
.tll-form.is-info .tll-times { display: none; }
.tll .tll-opt { font-weight: 400; color: var(--tll-muted); }
.tll-form .tll-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--tll-muted); }
.tll-check input { margin-top: 3px; accent-color: var(--tll-accent); }
.tll .tll-btn { width: 100%; padding: 13px 18px; border: 0; border-radius: 8px; background: var(--tll-accent); color: var(--tll-accent-ink); font: 600 15px/1 var(--tll-sans); cursor: pointer; }
.tll .tll-btn:hover { filter: brightness(.92); }
.tll a.tll-btn { text-decoration: none; text-align: center; }
.tll .tll-btn--inline, .tll .tll-btn--ghost { display: inline-block; width: auto; padding: 12px 20px; }
.tll .tll-btn--ghost { background: #fff; color: var(--tll-ink); border: 1px solid var(--tll-ink); }
.tll .tll-btn--ghost:hover { background: var(--tll-ink); color: #fff; filter: none; }
.tll .tll-call { margin: 14px 0 0; text-align: center; font-size: 14px; }
.tll .tll-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.tll-notice--ok { background: #e7f5ef; color: #165c3e; }
.tll-notice--err { background: #fbeceb; color: #8a2a22; }

/* Similar */
.tll-similar { margin-top: 56px; }
.tll-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tll .tll-cardlink { display: block; color: var(--tll-ink); text-decoration: none; border: 1px solid var(--tll-line); border-radius: var(--tll-radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.tll .tll-cardlink:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.tll-cardlink__img { aspect-ratio: 4 / 3; background: var(--tll-soft); }
.tll-cardlink__img img { width: 100%; height: 100%; object-fit: cover; }
/* Themes like Salient add padding under every <p>; keep plugin sections tight. */
.tll p { padding-bottom: 0; }
.tll .tll-cardlink__body { padding: 12px 14px 14px; }
.tll .tll-cardlink__body p { margin: 0; padding: 0; line-height: 1.35; }
.tll .tll-cardlink__price { font-family: var(--tll-serif) !important; font-size: 21px; font-weight: 600; line-height: 1.2; }
.tll .tll-cardlink__addr { margin-top: 4px; font-size: 15px; font-weight: 500; }
.tll .tll-cardlink__meta { margin-top: 3px; font-size: 13px; color: var(--tll-muted); }
.tll .tll-cardlink__area { margin-top: 1px; font-size: 12px; color: var(--tll-muted); }

.tll-cardlink__img { position: relative; }
.tll-badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--tll-ink); font-size: 12px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.tll-badge--drop { background: var(--tll-accent); color: var(--tll-accent-ink); }

/* "View building" link on listing pages */
.tll-inbuilding { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; margin: 0 0 32px; border: 1px solid var(--tll-line); border-radius: var(--tll-radius); font-size: 14px; }
.tll .tll-inbuilding a { font-weight: 600; text-decoration: none; }

/* Disclaimer */
.tll-disclaimer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--tll-line); }
.tll-disclaimer p { font-size: 12px; line-height: 1.55; color: var(--tll-muted); margin: 0; }

/* Lightbox */
.tll-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; background: rgba(12,12,14,.94); }
.tll-lightbox[hidden] { display: none; }
.tll-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.tll-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.tll-lightbox button:hover { background: rgba(255,255,255,.25); }
.tll-lightbox__close { top: 18px; right: 18px; }
.tll-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.tll-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.tll-lightbox .tll-lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; color: #ccc; font-size: 14px; }
body.tll-noscroll { overflow: hidden; }

/* Mobile sticky bar */
.tll .tll-mobilebar { display: none; }

/* Responsive */
@media (max-width: 960px) {
	.tll-layout { grid-template-columns: 1fr; gap: 0; }
	.tll-card { position: static; }
	.tll-calc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.tll { padding: 16px 16px 48px; }
	.tll-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 62vw; border-radius: 0; margin: 0 -16px; }
	.tll-gallery__item:not(.tll-gallery__item--0) { display: none; }
	.tll-head__price { text-align: left; }
	.tll-head__links { justify-content: flex-start; }
	.tll-lightbox__prev, .tll-lightbox__next { top: auto; bottom: 50px; transform: none; }
	.tll .tll-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--tll-line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); color: var(--tll-ink); text-decoration: none; font-weight: 600; }
	.tll-mobilebar__cta { padding: 10px 16px; border-radius: 8px; background: var(--tll-accent); color: var(--tll-accent-ink); }
	.tll-disclaimer { padding-bottom: 72px; }
}

/* Card photos always fill a 4:3 frame, whatever the photo's shape (2026-10-18). */
.tll-cardlink__img{position:relative;overflow:hidden}
.tll-cardlink__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* The theme sets img height:auto inside .row .col, so beat it here. */
.tll-cardlink__img img{height:100% !important;width:100% !important;max-width:none !important}
