/**
 * Listings: property cards, Home carousel, Find Housing, property detail, maps, cities.
 * Loaded only where listings appear (inc/listings.php).
 */

/* ---------- Property card ---------- */
.tf-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius-card); box-shadow: var(--tf-shadow-card); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.tf-card:hover { box-shadow: var(--tf-shadow-raised); }
.tf-card:focus-within { box-shadow: 0 0 0 3px var(--tf-navy-600); }
.tf-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--tf-bg); overflow: hidden; }
.tf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tf-card:hover .tf-card__media img { transform: scale(1.03); }
.tf-badge { position: absolute; right: 10px; bottom: 10px; padding: 4px 12px; border-radius: var(--tf-radius-pill); background: #FFF4D6; color: #6B4C00; font-size: 13px; font-weight: 600; line-height: 1.4; box-shadow: 0 2px 6px rgba(7, 31, 69, .18); }
.tf-badge--now { background: var(--tf-green-700); color: #fff; }
.tf-badge--inline { position: static; display: inline-block; box-shadow: none; }
.tf-card__demo { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: var(--tf-radius-pill); background: var(--tf-navy-900); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; z-index: 2; }
.tf-card__demo[hidden] { display: none; }
.tf-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tf-card__body p { margin: 0; }
.tf-card__city { display: flex; align-items: center; gap: 6px; color: var(--tf-text-muted); font-size: 14px; }
.tf-card__city .tf-icon { width: 16px; height: 16px; color: var(--tf-navy-800); }
.tf-card__title { margin: 0; font-size: 18px; font-weight: 600; }
.tf-card__title a { color: var(--tf-navy-800); text-decoration: none; }
.tf-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* Whole card clickable. */
.tf-card__title a:focus-visible { outline: none; }
.tf-card__facts { list-style: none; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--tf-text); }
.tf-card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.tf-card__facts li[hidden] { display: none; }
.tf-card__facts .tf-icon { width: 17px; height: 17px; color: var(--tf-navy-600); }
.tf-card__avail { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #7A5600; }
.tf-card__avail .tf-icon { width: 17px; height: 17px; }
.tf-card__avail.is-now { color: var(--tf-green-700); }
.tf-card__rent { margin-top: auto !important; padding-top: 6px; font-family: var(--tf-font-heading); font-weight: 600; color: var(--tf-navy-800); }
.tf-card__rent.is-hidden-price { font-family: var(--tf-font-body); font-weight: 500; font-size: 14px; color: var(--tf-text-muted); }

/* List variant (Find Housing) */
.tf-card--list .tf-badge { display: none; }
.tf-card--list .tf-card__avail { display: inline-flex; }
@media (min-width: 600px) {
	.tf-card--list { flex-direction: row; }
	.tf-card--list .tf-card__media { flex: 0 0 240px; aspect-ratio: auto; min-height: 160px; }
	.tf-card--list .tf-card__body { padding: 16px 20px; }
}

.tf-card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tf-card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 20px; }

/* ---------- Home carousel ---------- */
.tf-carousel { position: relative; }
.tf-carousel__track { list-style: none; margin: 0; padding: 4px 4px 16px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.tf-carousel__track::-webkit-scrollbar { display: none; }
.tf-carousel__track:focus-visible { outline: 3px solid var(--tf-navy-600); outline-offset: 2px; border-radius: var(--tf-radius-card); }
.tf-carousel__item { flex: 0 0 82%; scroll-snap-align: start; }
@media (min-width: 600px) { .tf-carousel__item { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 1024px) { .tf-carousel__item { flex-basis: calc((100% - 40px) / 3); } }
.tf-carousel__btn {
	position: absolute; top: 34%; z-index: 3; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: #fff; color: var(--tf-navy-800); box-shadow: var(--tf-shadow-raised); cursor: pointer;
}
.tf-carousel__btn .tf-icon { width: 22px; height: 22px; }
.tf-carousel__btn--prev { left: -8px; }
.tf-carousel__btn--next { right: -8px; }
.tf-carousel__btn:disabled { opacity: .35; cursor: default; }
@media (min-width: 1280px) { .tf-carousel__btn--prev { left: -22px; } .tf-carousel__btn--next { right: -22px; } }

/* ---------- Map ---------- */
.tf-map { position: relative; overflow: hidden; border-radius: var(--tf-radius-card); background: #EEF3FA; }
.tf-map__canvas { position: relative; width: 100%; }
.tf-map__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tf-map__pin { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; text-decoration: none; }
.tf-map__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--tf-navy-800); border: 3px solid var(--tf-gold-500); box-shadow: 0 0 0 4px rgba(247, 181, 0, .25); transition: transform .15s ease; }
.tf-map__pin:hover .tf-map__dot, .tf-map__pin:focus-visible .tf-map__dot, .tf-map__pin.is-current .tf-map__dot { transform: scale(1.35); background: var(--tf-gold-500); border-color: var(--tf-navy-800); }
.tf-map__label {
	position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap;
	padding: 3px 8px; border-radius: 6px; background: var(--tf-navy-900); color: #fff; font-size: 12px; font-weight: 600;
	opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
/* Labels stay inside the map: below the dot near the top edge, aligned inwards near the sides */
.tf-map__pin--below .tf-map__label { bottom: auto; top: calc(100% + 2px); }
.tf-map__pin--start .tf-map__label { left: 4px; transform: none; }
.tf-map__pin--end .tf-map__label { left: auto; right: 4px; transform: none; }
.tf-map__pin--right .tf-map__label { left: calc(100% - 2px); bottom: auto; top: 50%; transform: translateY(-50%); }
.tf-map__pin--left .tf-map__label { left: auto; right: calc(100% - 2px); bottom: auto; top: 50%; transform: translateY(-50%); }
.tf-map__pin:hover .tf-map__label, .tf-map__pin:focus-visible .tf-map__label, .tf-map__pin.is-current .tf-map__label, .tf-map__pin.is-active .tf-map__label { opacity: 1; }
.tf-map__pin.is-active .tf-map__dot { transform: scale(1.35); background: var(--tf-gold-500); border-color: var(--tf-navy-800); }
.tf-map__pin:focus-visible { outline: none; }
.tf-map__pin:focus-visible .tf-map__dot { outline: 3px solid var(--tf-navy-600); outline-offset: 3px; }
.tf-map__area { position: absolute; z-index: 2; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(247, 181, 0, .28); border: 2px solid var(--tf-gold-600); }
.tf-map--zoom .tf-map__canvas { transform-origin: var(--tf-fx) var(--tf-fy); transform: translate(calc(50% - var(--tf-fx)), calc(50% - var(--tf-fy))) scale(var(--tf-zoom)); }
.tf-map--zoom .tf-map__pin, .tf-map--zoom .tf-map__area { scale: calc(1 / var(--tf-zoom)); }
.tf-map--zoom .tf-map__area { width: 24%; }
.tf-map--zoom .tf-map__img { filter: saturate(1.1); }

/* ---------- Dark map (Home "Where we help") ---------- */
.tf-map--dark { background: transparent; overflow: visible; }
.tf-map--dark .tf-map__dot { width: 14px; height: 14px; background: var(--tf-gold-500); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(247, 181, 0, .28), 0 0 18px rgba(247, 181, 0, .55); }
.tf-map--dark .tf-map__pin::before { /* slow pulse */
	content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
	background: rgba(247, 181, 0, .45); animation: tf-pin-pulse 3.2s ease-out infinite; animation-delay: calc(var(--i, 0) * 320ms); pointer-events: none;
}
@keyframes tf-pin-pulse { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
.tf-map--dark .tf-map__label { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--tf-navy-800); font-family: var(--tf-font-heading); font-size: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.tf-map--dark .tf-map__pin:hover .tf-map__dot, .tf-map--dark .tf-map__pin:focus-visible .tf-map__dot, .tf-map--dark .tf-map__pin.is-active .tf-map__dot { background: #fff; border-color: var(--tf-gold-500); }
.tf-map--dark .tf-map__pin:hover .tf-map__label, .tf-map--dark .tf-map__pin:focus-visible .tf-map__label, .tf-map--dark .tf-map__pin.is-active .tf-map__label { background: var(--tf-gold-500); color: var(--tf-navy-800); }
.tf-map--dark .tf-map__pin:hover, .tf-map--dark .tf-map__pin:focus-visible, .tf-map--dark .tf-map__pin.is-active { z-index: 3; }
.tf-map--dark .tf-map__pin:focus-visible .tf-map__dot { outline-color: #fff; }
/* Always-visible labels where the map is wide enough (container query); hover/focus only below that */
.tf-coverage__card { container-type: inline-size; }
@container (min-width: 440px) { .tf-map--labels .tf-map__label { opacity: 1; } }
/* Pins pop in one after another when the map scrolls into view */
.tf-reveal-on .tf-coverage__map:not(.is-in) .tf-map__pin { opacity: 0; }
.tf-reveal-on .tf-coverage__map.is-in .tf-map__pin { animation: tf-pin-in .55s cubic-bezier(.3, 1.6, .5, 1) calc(400ms + var(--i, 0) * 110ms) backwards; }
@keyframes tf-pin-in { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }

/* ---------- Home coverage ---------- */
.tf-coverage__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 1024px) { .tf-coverage__grid { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
.tf-coverage__card {
	position: relative; padding: clamp(58px, 7vw, 68px) clamp(14px, 3vw, 32px) clamp(18px, 3vw, 32px); border-radius: 20px; overflow: hidden;
	background:
		radial-gradient(120% 90% at 80% 0%, rgba(30, 74, 140, .55), transparent 60%),
		linear-gradient(160deg, var(--tf-navy-800), var(--tf-navy-900));
	box-shadow: var(--tf-shadow-raised);
}
.tf-coverage__card::before { /* faint grid lines */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 40px 40px;
}
.tf-coverage__card .tf-map { position: relative; }
.tf-coverage__chip {
	position: absolute; top: clamp(12px, 2vw, 20px); left: clamp(14px, 3vw, 32px); z-index: 4; margin: 0;
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13px; font-weight: 600;
}
.tf-coverage__chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tf-gold-500); box-shadow: 0 0 0 3px rgba(247, 181, 0, .3); }
.tf-coverage__text > p:not(.tf-eyebrow):not(.tf-btn-row) { color: var(--tf-text-muted); font-size: 17px; line-height: 1.6; }
.tf-city-list { list-style: none; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tf-city-list li { margin: 0; }
.tf-city-chip {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; height: 100%;
	padding: 10px 12px; border: 1px solid var(--tf-border); border-radius: 12px; background: var(--tf-surface); color: var(--tf-navy-800); text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tf-city-chip:hover, .tf-city-chip:focus-visible, .tf-city-chip.is-active { border-color: var(--tf-navy-600); box-shadow: var(--tf-shadow-card); transform: translateY(-1px); }
.tf-city-chip__icon { grid-row: span 2; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #FFF4D6; color: var(--tf-gold-text); }
.tf-city-chip__name { font-family: var(--tf-font-heading); font-weight: 600; font-size: 15px; line-height: 1.3; }
.tf-city-chip__count { font-size: 13px; color: var(--tf-text-muted); }
.tf-city-chip__count.has-homes { color: var(--tf-green-700); font-weight: 600; }
@media (max-width: 380px) { .tf-city-list { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tf-map--dark .tf-map__pin::before { animation: none; opacity: 0; } .tf-city-chip { transition: none; } .tf-city-chip:hover { transform: none; } }

/* ---------- Find Housing ---------- */
.tf-searchbar {
	display: grid; gap: 10px; padding: 14px; margin-bottom: 24px; background: var(--tf-surface);
	border: 1px solid var(--tf-border); border-radius: var(--tf-radius-card); box-shadow: var(--tf-shadow-card);
}
@media (min-width: 768px) { .tf-searchbar { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; } }
.tf-searchbar__field { display: grid; gap: 4px; }
.tf-searchbar__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tf-navy-800); }
.tf-searchbar__label .tf-icon { width: 16px; height: 16px; color: var(--tf-navy-600); }
.tf-search select, .tf-search input[type="date"], .tf-input {
	width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--tf-text);
	background: #fff; border: 1px solid #B9C2D0; border-radius: var(--tf-radius-control);
}
.tf-searchbar__submit { min-height: 46px; }
.tf-results-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) { .tf-results-layout { grid-template-columns: 260px minmax(0, 1fr); } .tf-filters { position: sticky; top: 70px; } }
.tf-filters__box { background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius-card); padding: 4px 18px 16px; }
.tf-filters__summary { cursor: pointer; padding: 12px 0; font-family: var(--tf-font-heading); font-weight: 600; font-size: 17px; color: var(--tf-navy-800); }
@media (min-width: 1024px) { .tf-filters__summary { cursor: default; pointer-events: none; list-style: none; } .tf-filters__summary::-webkit-details-marker { display: none; } }
.tf-filters__group { border: 0; padding: 12px 0 0; margin: 0; border-top: 1px solid #EDF0F5; }
.tf-filters__group legend, .tf-filters__legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--tf-text); }
.tf-check-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 15px; cursor: pointer; }
.tf-check-row input { width: 18px; height: 18px; accent-color: var(--tf-navy-800); }
.tf-filters__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 0; }
.js .tf-filters [data-tf-apply] { display: none; }
.tf-results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tf-results__count { margin: 0; font-size: 17px; color: var(--tf-text); }
.tf-results__count strong { font-family: var(--tf-font-heading); color: var(--tf-navy-800); }
.tf-results__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.tf-results__sort select { width: auto; min-width: 180px; }
.tf-results__list { display: grid; gap: 16px; transition: opacity .15s ease; }
.tf-results__list[aria-busy="true"] { opacity: .55; }
.tf-results__empty, .tf-empty-box { padding: 28px; text-align: center; border: 2px dashed var(--tf-border); border-radius: var(--tf-radius-card); background: var(--tf-surface); }
.tf-results__empty[hidden] { display: none; }
.tf-results__empty h2 { font-size: 20px; }
.tf-results__empty .tf-btn-row { justify-content: center; }
.tf-btn--ghost { background: #fff; color: var(--tf-navy-800); border: 2px solid var(--tf-border); }
.tf-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tf-pagination__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--tf-border); border-radius: var(--tf-radius-control); text-decoration: none; font-weight: 600; color: var(--tf-navy-800); background: #fff; }
.tf-pagination__link.is-current { background: var(--tf-navy-800); border-color: var(--tf-navy-800); color: #fff; }

/* ---------- Property detail ---------- */
.tf-crumbbar { background: var(--tf-bg); border-bottom: 1px solid var(--tf-border); padding-block: 10px; }
.tf-crumbbar .tf-breadcrumbs ol { margin: 0; }
.tf-crumbbar .tf-breadcrumbs li { color: var(--tf-text-muted); }
.tf-crumbbar .tf-breadcrumbs a { color: var(--tf-navy-600); }
.tf-property { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 48px; }
.tf-property__gallery, .tf-property__tabs, .tf-property__aside { min-width: 0; }
.tf-property__tabs .tf-tabs { margin-top: 0; }
@media (min-width: 1024px) {
	.tf-property { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "gallery aside" "tabs aside"; align-items: start; column-gap: 28px; }
	.tf-property__gallery { grid-area: gallery; }
	.tf-property__tabs { grid-area: tabs; }
	.tf-property__aside { grid-area: aside; position: sticky; top: 70px; }
}
.tf-gallery__stage { position: relative; border-radius: var(--tf-radius-card); overflow: hidden; background: var(--tf-navy-900); }
.tf-gallery__slides:focus-visible { outline: 3px solid var(--tf-navy-600); outline-offset: -3px; }
@supports selector(:has(*)) {
	.tf-gallery__stage:has(.tf-gallery__slides:focus-visible) { outline: 3px solid var(--tf-navy-600); outline-offset: 3px; }
	.tf-gallery__slides:focus-visible { outline: none; }
}
.tf-gallery__slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 3 / 2; }
.tf-gallery__slides::-webkit-scrollbar { display: none; }
.tf-gallery__slide { flex: 0 0 100%; scroll-snap-align: center; }
.tf-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.tf-gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--tf-navy-800); box-shadow: var(--tf-shadow-raised); cursor: pointer; }
.tf-gallery__btn .tf-icon { width: 22px; height: 22px; }
.tf-gallery__btn--prev { left: 12px; }
.tf-gallery__btn--next { right: 12px; }
.tf-gallery__counter { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 3px 10px; border-radius: var(--tf-radius-pill); background: rgba(7, 31, 69, .8); color: #fff; font-size: 13px; font-weight: 600; }
.tf-gallery__thumbs { list-style: none; margin: 10px 0 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.tf-gallery__thumb { display: block; width: 104px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; border: 3px solid transparent; opacity: .75; }
.tf-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tf-gallery__thumb.is-current, .tf-gallery__thumb:hover { border-color: var(--tf-gold-500); opacity: 1; }
.tf-summary { padding: 22px; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius-card); box-shadow: var(--tf-shadow-card); }
.tf-summary p { margin: 0 0 12px; }
.tf-summary__city { display: flex; align-items: center; gap: 6px; color: var(--tf-text-muted); font-size: 14px; }
.tf-summary__city .tf-icon { width: 16px; height: 16px; color: var(--tf-gold-600); }
.tf-summary__title { font-size: clamp(24px, 3vw, 30px); margin: 4px 0 12px; }
.tf-summary__facts { list-style: none; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.tf-summary__facts li { display: inline-flex; align-items: center; gap: 6px; }
.tf-summary__facts .tf-icon { width: 18px; height: 18px; color: var(--tf-navy-600); }
.tf-summary__rent { font-family: var(--tf-font-heading); font-weight: 700; font-size: 26px; color: var(--tf-navy-800); }
.tf-summary__rent.is-hidden-price { font-family: var(--tf-font-body); font-weight: 600; font-size: 16px; color: var(--tf-text-muted); }
.tf-summary .tf-btn--block { width: 100%; margin-bottom: 12px; min-height: 50px; font-size: 16px; }
.tf-summary__note { font-size: 13px; color: var(--tf-text-muted); }
.tf-summary__call { font-size: 15px; margin-bottom: 0 !important; }
.tf-summary__call a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.tf-summary__call .tf-icon { width: 16px; height: 16px; }

/* Tabs */
.tf-tabs { margin-top: 28px; }
.tf-tabs__list { display: flex; gap: 4px; border-bottom: 2px solid var(--tf-border); overflow-x: auto; }
.tf-tabs__tab { flex: none; padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; font: inherit; font-family: var(--tf-font-heading); font-weight: 600; font-size: 15px; color: var(--tf-text-muted); cursor: pointer; }
.tf-tabs__tab[aria-selected="true"] { color: var(--tf-navy-800); border-bottom-color: var(--tf-gold-500); }
.tf-tabs__tab:hover { color: var(--tf-navy-800); }
.tf-tabs__panel { padding-top: 20px; }
.tf-tabs__panel[hidden] { display: none; }
.js .tf-tabs--ready .tf-tabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tf-tabs__panel:focus-visible { outline: 3px solid var(--tf-navy-600); outline-offset: 4px; border-radius: 4px; }
.tf-keyfacts { list-style: none; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tf-keyfacts li { padding: 10px 14px; border-radius: var(--tf-radius-control); background: var(--tf-bg); }
.tf-keyfacts span { display: block; font-size: 13px; color: var(--tf-text-muted); }
.tf-keyfacts strong { color: var(--tf-navy-800); }
.tf-amenities { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.tf-amenities li { display: flex; align-items: center; gap: 8px; }
.tf-amenities .tf-icon { width: 18px; height: 18px; color: var(--tf-green-600); }
.tf-terms { margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.tf-terms div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EDF0F5; }
.tf-terms dt { color: var(--tf-text-muted); }
.tf-terms dd { margin: 0; font-weight: 600; color: var(--tf-navy-800); text-align: right; }
#tf-tab-location .tf-map { max-width: 640px; margin-bottom: 14px; }

/* ---------- Cities ---------- */
.tf-cities-top { margin-bottom: 28px; }
.tf-city-cards { list-style: none; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tf-city-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius-card); box-shadow: var(--tf-shadow-card); text-decoration: none; }
.tf-city-card a:hover { box-shadow: var(--tf-shadow-raised); }
.tf-city-card__name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--tf-font-heading); font-weight: 600; font-size: 18px; color: var(--tf-navy-800); }
.tf-city-card__name span { font-weight: 500; color: var(--tf-text-muted); }
.tf-city-card__name .tf-icon { width: 18px; height: 18px; color: var(--tf-gold-600); }
.tf-city-card__count { font-size: 14px; color: var(--tf-text-muted); }
.tf-city-card[hidden] { display: none; }
.tf-link-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) {
	.tf-carousel__track, .tf-gallery__slides { scroll-behavior: auto; }
	.tf-card, .tf-card__media img, .tf-map__dot { transition: none; }
}

/* Scroll strips are positioning containers, so absolutely positioned children (e.g. screen-reader
   text inside thumbnails) are clipped by the strip instead of widening the page. */
.tf-carousel__track, .tf-gallery__slides, .tf-gallery__thumbs, .tf-tabs__list { position: relative; }

/* ---------- Favourites (heart on every card; saved in the browser by listings.js) ---------- */
.tf-fav {
	position: absolute; top: 10px; right: 10px; z-index: 2; /* above the whole-card link */
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid rgba(217, 222, 231, .9); border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--tf-navy-800);
	box-shadow: 0 2px 8px rgba(7, 31, 69, .16); cursor: pointer; transition: transform .15s ease, color .15s ease, background-color .15s ease;
}
.tf-fav[hidden] { display: none; }
.tf-fav:hover { color: var(--tf-red-600); transform: scale(1.06); }
.tf-fav:focus-visible { outline: 3px solid var(--tf-navy-600); outline-offset: 2px; }
.tf-fav__icon { width: 22px; height: 22px; }
.tf-fav[aria-pressed="true"] { color: var(--tf-red-500); --tf-icon-fill: currentColor; }
@media (min-width: 600px) {
	.tf-card--list .tf-fav { top: 14px; right: 14px; box-shadow: none; }
	.tf-card--list .tf-card__body { padding-right: 68px; }
}

/* "Saved homes" view toggle (Find Housing results head) */
.tf-results__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tf-saved-toggle {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
	border: 2px solid var(--tf-navy-800); border-radius: var(--tf-radius-control); background: #fff; color: var(--tf-navy-800);
	font-family: var(--tf-font-heading); font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.tf-saved-toggle[hidden] { display: none; }
.tf-saved-toggle .tf-icon { width: 20px; height: 20px; color: var(--tf-red-500); }
.tf-saved-toggle:hover { background: var(--tf-bg); }
.tf-saved-toggle:focus-visible { outline: 3px solid var(--tf-navy-600); outline-offset: 2px; }
.tf-saved-toggle__count { min-width: 26px; padding: 2px 8px; border-radius: var(--tf-radius-pill); background: var(--tf-bg); color: var(--tf-navy-800); font-size: 13px; text-align: center; }
.tf-saved-toggle[aria-pressed="true"] { background: var(--tf-navy-800); color: #fff; --tf-icon-fill: currentColor; }
.tf-saved-toggle[aria-pressed="true"] .tf-icon { color: var(--tf-gold-500); }
.tf-saved-toggle[aria-pressed="true"] .tf-saved-toggle__count { background: rgba(255, 255, 255, .18); color: #fff; }
@media (prefers-reduced-motion: reduce) { .tf-fav, .tf-saved-toggle { transition: none; } .tf-fav:hover { transform: none; } }

/* "Save homes to your account" dialog (hearts for visitors who are not signed in) */
.tf-save-prompt { width: min(440px, calc(100vw - 32px)); padding: 28px 26px 24px; border: 0; border-radius: var(--tf-radius-card); box-shadow: 0 24px 60px rgba(7, 31, 69, .28); color: var(--tf-text); }
.tf-save-prompt::backdrop { background: rgba(7, 31, 69, .55); }
.tf-save-prompt h2 { margin: 0 32px 10px 0; font-size: 22px; color: var(--tf-navy-800); }
.tf-save-prompt p { margin: 0 0 18px; line-height: 1.6; }
.tf-save-prompt .tf-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tf-save-prompt__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tf-bg); color: var(--tf-navy-800); font-size: 24px; line-height: 1; cursor: pointer; }
.tf-save-prompt__close:hover { background: #E3E8F0; }

/* City page: "Areas we cover around …" */
.tf-city-areas { margin: 28px 0 32px; }
.tf-city-areas .tf-muted { margin: 0 0 12px; }
.tf-city-areas__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tf-city-areas__list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--tf-border); border-radius: 999px; background: var(--tf-bg); color: var(--tf-text); font-size: 14px; }
.tf-city-areas__list svg { width: 14px; height: 14px; color: var(--tf-navy-600); }

/* Cities We Serve: when your city is not listed */
.tf-coverage-how { margin-top: clamp(40px, 6vw, 64px); }
.tf-coverage-how__steps { display: grid; gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: tf-step; }
@media (min-width: 800px) { .tf-coverage-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf-coverage-how__steps li { position: relative; display: grid; align-content: start; gap: 4px; padding: 18px 18px 18px 64px; border: 1px solid var(--tf-border); border-radius: var(--tf-radius-card, 12px); background: var(--tf-surface); counter-increment: tf-step; }
.tf-coverage-how__steps li::before { content: counter(tf-step); position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tf-navy-800); color: #fff; font-weight: 700; }
.tf-coverage-how__steps strong { color: var(--tf-navy-800); font-family: var(--tf-font-heading); }
.tf-coverage-how__steps span { color: var(--tf-text-muted); }
.tf-coverage-how__abroad { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; color: var(--tf-text); }
.tf-coverage-how__abroad svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--tf-navy-600); }
.tf-page-body > .tf-page-faqs { margin-top: clamp(40px, 6vw, 56px); }
