/* ================================================================
   SBNY HMS Certified Listings Directory
   ================================================================ */

:root {
	--sbny-navy: #1b365d;
	--sbny-navy-dark: #002046;
	--sbny-cream: #fcf9f2;
	--sbny-card-bg: #f6f3ec;
	--sbny-text-dark: #1c1c18;
	--sbny-text-muted: rgba(28, 28, 24, 0.7);
	--sbny-text-light: rgba(28, 28, 24, 0.5);
	--sbny-text-faint: rgba(28, 28, 24, 0.4);
	--sbny-border: rgba(196, 198, 207, 0.3);
	--sbny-border-light: rgba(196, 198, 207, 0.2);
	--sbny-navy-10: rgba(27, 54, 93, 0.1);
	--sbny-navy-20: rgba(27, 54, 93, 0.2);
	--sbny-navy-muted: rgba(0, 32, 70, 0.7);
	--sbny-navy-label: rgba(0, 32, 70, 0.6);
	--sbny-navy-border: rgba(0, 32, 70, 0.2);
	--sbny-white-20: rgba(255, 255, 255, 0.2);
	--sbny-font-heading: 'Marcellus', Georgia, serif;
	--sbny-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--sbny-radius-sm: 4px;
	--sbny-radius-md: 8px;
	--sbny-radius-pill: 12px;
}

/* ── Reset for shortcode container ──────────────────────────────── */

.sbny-directory *,
.sbny-directory *::before,
.sbny-directory *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.sbny-directory {
	background: var(--sbny-cream);
	color: var(--sbny-text-dark);
	font-family: var(--sbny-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.sbny-directory img {
	max-width: 100%;
	height: auto;
}

.sbny-directory a {
	text-decoration: none;
	color: inherit;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.sbny-hero {
	position: relative;
	background-color: #0b1729;
	background-image: url('/wp-content/uploads/2026/04/hms-listing-page.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 96px 32px;
	overflow: hidden;
}

.sbny-hero__gradient {
	position: absolute;
	inset: 0;
	background: rgba(11, 23, 41, 0.8);
	pointer-events: none;
}

.sbny-hero__inner {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.sbny-hero__title {
	font-family: var(--sbny-font-heading);
	font-size: 72px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -1.8px;
	color: #fff;
	text-align: center;
}

.sbny-hero__subtitle {
	font-family: var(--sbny-font-body);
	font-size: 24px;
	font-weight: 400;
	line-height: 32px;
	color: #fff;
	opacity: 0.9;
	text-align: center;
	max-width: 672px;
	padding-bottom: 24px;
}

/* Search bar */

.sbny-search {
	display: flex;
	gap: 8px;
	align-items: stretch;
	max-width: 896px;
	width: 100%;
	background: var(--sbny-cream);
	border-radius: var(--sbny-radius-md);
	padding: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	position: relative;
}

.sbny-search__field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0 8px;
}

.sbny-search__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--sbny-text-faint);
}

.sbny-search__input {
	flex: 1;
	border: none;
	background: transparent;
	font-family: var(--sbny-font-body);
	font-size: 16px;
	color: var(--sbny-text-dark);
	padding: 18px 0;
	outline: none;
}

.sbny-search__input::placeholder {
	color: var(--sbny-text-faint);
}

.sbny-search__btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	background: var(--sbny-navy);
	color: #fff;
	font-family: var(--sbny-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	border: none;
	border-radius: var(--sbny-radius-sm);
	padding: 0 32px;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.sbny-directory .sbny-search__btn:hover,
.sbny-directory .sbny-search__btn:focus,
.sbny-directory .sbny-search__btn:active {
	background: var(--sbny-navy-dark);
	color: #fff;
}

/* Autocomplete dropdown */

.sbny-autocomplete {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border-radius: var(--sbny-radius-md);
	box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08);
	max-height: 420px;
	overflow-y: auto;
	z-index: 100;
	border: 1px solid var(--sbny-border);
}

.sbny-autocomplete.open {
	display: block;
}

.sbny-autocomplete__group {
	padding: 0;
}

.sbny-autocomplete__group + .sbny-autocomplete__group {
	border-top: 1px solid var(--sbny-border-light);
}

.sbny-autocomplete__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px 6px;
	font-family: var(--sbny-font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--sbny-navy-label);
	pointer-events: none;
}

.sbny-autocomplete__heading-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: var(--sbny-navy-label);
}

.sbny-autocomplete__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px 10px 42px;
	cursor: pointer;
	transition: background 0.1s;
}

.sbny-autocomplete__item:last-child {
	padding-bottom: 12px;
}

.sbny-autocomplete__item:hover,
.sbny-autocomplete__item.highlighted {
	background: var(--sbny-card-bg);
}

.sbny-autocomplete__item-text {
	flex: 1;
	font-family: var(--sbny-font-body);
	font-size: 14px;
	line-height: 20px;
	color: var(--sbny-text-dark);
}

.sbny-autocomplete__item-text mark {
	background: transparent;
	color: var(--sbny-navy);
	font-weight: 700;
}

.sbny-autocomplete__item-sub {
	font-family: var(--sbny-font-body);
	font-size: 12px;
	line-height: 16px;
	color: var(--sbny-text-muted);
	white-space: nowrap;
}

.sbny-autocomplete__item-badge {
	display: inline-block;
	padding: 2px 8px;
	background: rgba(0, 32, 70, 0.08);
	border-radius: 2px;
	font-family: var(--sbny-font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--sbny-navy);
	white-space: nowrap;
}

.sbny-autocomplete__empty {
	padding: 20px;
	text-align: center;
	font-family: var(--sbny-font-body);
	font-size: 14px;
	color: var(--sbny-text-muted);
}

.sbny-autocomplete__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 20px;
	font-family: var(--sbny-font-body);
	font-size: 13px;
	color: var(--sbny-text-muted);
}

.sbny-autocomplete__loading .sbny-spinner {
	width: 16px;
	height: 16px;
	border-width: 2px;
}

/* Category pills */

.sbny-pills {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	padding-top: 8px;
}

.sbny-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 25px;
	border: 1px solid var(--sbny-white-20);
	border-radius: var(--sbny-radius-pill);
	background: transparent;
	color: #fff;
	font-family: var(--sbny-font-body);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	line-height: 20px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	white-space: nowrap;
}

.sbny-directory .sbny-pill:hover,
.sbny-directory .sbny-pill:focus,
.sbny-directory .sbny-pill.active {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.sbny-directory .sbny-pill.active {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

/* ================================================================
   MAIN LISTINGS SECTION
   ================================================================ */

.sbny-listings {
	background: var(--sbny-cream);
	padding: 80px 32px;
}

.sbny-listings__inner {
	max-width: 1536px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* CTA Banner */

.sbny-cta-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	padding: 25px;
	background: var(--sbny-navy-10);
	border: 1px solid var(--sbny-navy-20);
}

.sbny-cta-banner__left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sbny-cta-banner__icon {
	flex-shrink: 0;
	width: 25px;
	height: 25px;
	color: var(--sbny-navy);
	align-self: center;
}

.sbny-cta-banner__text h4 {
	font-family: var(--sbny-font-heading);
	font-size: 20px;
	font-weight: 400;
	line-height: 25px;
	color: var(--sbny-navy);
	margin: 0;
	padding: 0;
}

.sbny-cta-banner__text p {
	font-family: var(--sbny-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--sbny-navy-muted);
	margin: 0;
	padding: 0;
}

.sbny-directory .sbny-cta-banner a.sbny-cta-banner__link {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	background: var(--sbny-navy);
	color: #fff !important;
	font-family: var(--sbny-font-body);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	line-height: 24px;
	padding: 12px 32px;
	transition: background 0.2s;
	white-space: nowrap;
}

.sbny-directory .sbny-cta-banner a.sbny-cta-banner__link:hover,
.sbny-directory .sbny-cta-banner a.sbny-cta-banner__link:focus,
.sbny-directory .sbny-cta-banner a.sbny-cta-banner__link:active,
.sbny-directory .sbny-cta-banner a.sbny-cta-banner__link:visited {
	background: var(--sbny-navy-dark);
	color: #fff !important;
}

/* Directory header */

.sbny-dir-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.sbny-dir-header__left {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sbny-dir-header__label {
	font-family: var(--sbny-font-body);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	line-height: 16px;
	color: var(--sbny-text-light);
}

.sbny-dir-header__title {
	font-family: var(--sbny-font-heading);
	font-size: 36px;
	font-weight: 400;
	line-height: 40px;
	color: var(--sbny-navy);
}

.sbny-dir-header__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sbny-dir-header__count {
	font-family: var(--sbny-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: rgba(28, 28, 24, 0.6);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sbny-dir-header__divider {
	width: 1px;
	height: 24px;
	background: rgba(196, 198, 207, 0.3);
}

.sbny-sort-select {
	font-family: var(--sbny-font-body);
	font-size: 16px;
	color: var(--sbny-navy);
	line-height: 24px;
	padding: 8px 40px 8px 12px;
	border: none;
	background: transparent;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231b365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 24px;
}

.sbny-sort-select:focus {
	outline: 2px solid var(--sbny-navy);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ================================================================
   CARD GRID
   ================================================================ */

.sbny-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.sbny-grid--empty {
	grid-template-columns: 1fr;
	text-align: center;
	padding: 60px 20px;
}

.sbny-grid__empty-msg {
	font-family: var(--sbny-font-body);
	font-size: 18px;
	color: var(--sbny-text-muted);
}

/* Card */

.sbny-card {
	background: var(--sbny-card-bg);
	border-left: 4px solid var(--sbny-navy-border);
	padding: 32px 32px 32px 36px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: border-left-color 0.2s;
}

.sbny-card:hover {
	border-left-color: #2f8f4e;
}

.sbny-card__top {
	display: flex;
	align-items: flex-start;
}

.sbny-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: rgba(0, 32, 70, 0.1);
	border-radius: 2px;
	font-family: var(--sbny-font-body);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 15px;
	color: var(--sbny-navy);
}

.sbny-card__name {
	font-family: var(--sbny-font-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 32px;
	color: var(--sbny-navy);
	padding-top: 8px;
}

.sbny-card__details {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sbny-card__detail {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sbny-card__detail-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 20px;
	color: var(--sbny-text-muted);
}

.sbny-card__detail-icon svg {
	width: 12px;
	height: 14px;
}

.sbny-card__detail-icon--phone svg {
	width: 11px;
	height: 11px;
}

.sbny-card__detail-text {
	font-family: var(--sbny-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--sbny-text-muted);
}

.sbny-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-top: 16px;
	font-family: var(--sbny-font-heading);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--sbny-navy);
	transition: opacity 0.2s;
}

.sbny-card__link:hover {
	opacity: 0.7;
}

.sbny-card__link-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 24px;
}

.sbny-card__link-arrow svg {
	width: 16px;
	height: 12px;
}

/* Pagination */

.sbny-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-top: 16px;
	min-height: 56px;
	box-sizing: border-box;
}

.sbny-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--sbny-border);
	border-radius: var(--sbny-radius-sm);
	background: transparent;
	font-family: var(--sbny-font-body);
	font-size: 14px;
	color: var(--sbny-navy);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sbny-directory .sbny-pagination__btn:hover:not(:disabled):not(.active) {
	background: var(--sbny-navy-10);
	border-color: var(--sbny-navy) !important;
	color: var(--sbny-navy) !important;
}

.sbny-directory .sbny-pagination__btn:focus-visible:not(:disabled):not(.active) {
	outline: 2px solid var(--sbny-navy);
	outline-offset: 2px;
	border-color: var(--sbny-navy) !important;
	color: var(--sbny-navy) !important;
}

.sbny-directory .sbny-pagination__btn.active,
.sbny-directory .sbny-pagination__btn.active:hover,
.sbny-directory .sbny-pagination__btn.active:focus {
	background: var(--sbny-navy);
	color: #fff;
	border-color: var(--sbny-navy);
}

.sbny-pagination__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.sbny-pagination__ellipsis {
	font-family: var(--sbny-font-body);
	font-size: 14px;
	color: var(--sbny-text-muted);
	padding: 0 4px;
}

/* ================================================================
   MAP + FILTER SECTION
   ================================================================ */

.sbny-map-section {
	border-top: 1px solid var(--sbny-border-light);
	padding-top: 64px;
}

.sbny-map-layout {
	display: flex;
	gap: 32px;
	align-items: stretch;
	min-height: 599px;
}

/* Filter sidebar */

.sbny-filter-sidebar {
	flex-shrink: 0;
	width: 295px;
	background: var(--sbny-card-bg);
	border: 1px solid var(--sbny-border);
	padding: 25px 25px 57px;
}

.sbny-filter-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sbny-filter-sidebar__title {
	font-family: var(--sbny-font-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 32px;
	color: var(--sbny-navy);
	padding-bottom: 13px;
	border-bottom: 1px solid var(--sbny-navy-border);
}

.sbny-filter-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sbny-filter-group__heading {
	font-family: var(--sbny-font-body);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	line-height: 16px;
	color: var(--sbny-navy-label);
}

.sbny-filter-checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sbny-checkbox-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-family: var(--sbny-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: rgba(28, 28, 24, 0.8);
	transform-origin: left center;
	transition: transform 0.2s ease;
	will-change: transform;
}

.sbny-checkbox-label:hover {
	transform: scale(1.03);
}

.sbny-checkbox-label:active {
	transform: scale(1.01);
}

.sbny-checkbox-label:focus-within {
	transform: scale(1.03);
}

.sbny-checkbox-label input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border: 1px solid #c4c6cf;
	border-radius: 2px;
	background: #fff;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
}

.sbny-checkbox-label input[type="checkbox"]:checked {
	background: var(--sbny-navy);
	border-color: transparent;
}

.sbny-checkbox-label input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.sbny-checkbox-label input[type="checkbox"]:checked + span {
	color: var(--sbny-navy);
	font-weight: 600;
}

/* Region dropdown */

.sbny-region-select {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 48px;
	font-family: var(--sbny-font-body);
	font-size: 14px;
	color: var(--sbny-text-dark);
	line-height: 1.5;
	padding: 12px 43px 14px 13px;
	border: 1px solid var(--sbny-border);
	border-radius: 0;
	background-color: var(--sbny-cream);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	overflow: visible;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24' fill='none' stroke='%231c1c18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
	background-size: 21px;
}

.sbny-region-select:focus {
	outline: none;
}

.sbny-region-select:focus-visible {
	outline: 2px solid var(--sbny-navy);
	outline-offset: 2px;
}

/* Toggle switch */

.sbny-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sbny-toggle-row__label {
	font-family: var(--sbny-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: rgba(28, 28, 24, 0.8);
}

.sbny-toggle {
	position: relative;
	width: 40px;
	height: 24px;
	flex-shrink: 0;
}

.sbny-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.sbny-toggle__track {
	position: absolute;
	inset: 0;
	background: #c4c6cf;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.2s;
}

.sbny-toggle__track::after {
	content: '';
	position: absolute;
	top: -4px;
	left: -4px;
	width: 32px;
	height: 32px;
	background: #fff;
	border-radius: 50%;
	border: 4px solid transparent;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s, background 0.2s;
}

.sbny-toggle input:checked + .sbny-toggle__track {
	background: var(--sbny-navy);
}

.sbny-toggle input:checked + .sbny-toggle__track::after {
	transform: translateX(16px);
	background: #2563eb;
	border-color: transparent;
}

/* Reset button */

.sbny-reset-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 1px;
	border: 1px solid var(--sbny-navy-border);
	background: transparent;
	font-family: var(--sbny-font-body);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	line-height: 16px;
	color: var(--sbny-navy);
	cursor: pointer;
	transition: background 0.15s;
}

.sbny-reset-btn:hover {
	background: var(--sbny-navy-10);
}

.sbny-locate-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0px;
	padding: 13px 1px;
	border: 1px solid var(--sbny-navy-border);
	background: transparent;
	font-family: var(--sbny-font-body);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	line-height: 16px;
	color: var(--sbny-navy);
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.sbny-locate-btn:hover:not(:disabled) {
	background: var(--sbny-navy-10);
}

.sbny-locate-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

/* Map info popup styles live in sbny-map-popup.css */

/* Map container */

.sbny-map-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-height: 500px;
	position: relative;
	overflow: hidden;
	background: #e5e2db;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sbny-map-container__map {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
}

.sbny-map-container__no-key {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 500px;
	font-family: var(--sbny-font-body);
	font-size: 16px;
	color: var(--sbny-text-muted);
	text-align: center;
	padding: 40px;
}

/* Regional density overlay */

.sbny-density-card {
	position: absolute;
	top: 24px;
	left: 24px;
	background: rgba(255, 255, 255, 0.95);
	border-left: 4px solid var(--sbny-navy);
	padding: 16px 16px 16px 20px;
	max-width: 320px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	z-index: 10;
}

.sbny-density-card__title {
	font-family: var(--sbny-font-heading);
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	color: var(--sbny-navy);
}

.sbny-density-card__subtitle {
	font-family: var(--sbny-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: rgba(28, 28, 24, 0.6);
}

.sbny-density-card__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}

.sbny-density-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 5px;
	border-bottom: 1px solid rgba(196, 198, 207, 0.1);
}

.sbny-density-card__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sbny-density-card__region {
	font-family: var(--sbny-font-body);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: var(--sbny-text-dark);
}

.sbny-density-card__count {
	font-family: var(--sbny-font-heading);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: var(--sbny-text-dark);
}

/* Map zoom controls */

.sbny-map-controls {
	position: absolute;
	bottom: 16px;
	right: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 10;
}

.sbny-map-controls__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: #fff;
	border: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	font-size: 18px;
	color: var(--sbny-text-dark);
	padding: 0;
	line-height: 1;
}

.sbny-map-controls__btn:hover {
	background: #f5f5f5;
}

/* Loading state */

.sbny-grid.sbny-grid--loading {
	position: relative;
}

.sbny-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	grid-column: 1 / -1;
	min-height: 220px;
}

.sbny-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--sbny-border);
	border-top-color: var(--sbny-navy);
	border-radius: 50%;
	animation: sbny-spin 0.8s linear infinite;
}

@keyframes sbny-spin {
	to { transform: rotate(360deg); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1200px) {
	.sbny-hero__title {
		font-size: 52px;
	}

	.sbny-hero__subtitle {
		font-size: 20px;
	}
}

@media (max-width: 1024px) {
	.sbny-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sbny-map-layout {
		flex-direction: column;
	}

	.sbny-filter-sidebar {
		width: 100%;
	}

	.sbny-filter-sidebar__inner {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 24px;
	}

	.sbny-filter-sidebar__title {
		width: 100%;
	}

	.sbny-filter-group {
		flex: 1;
		min-width: 200px;
	}

	.sbny-map-container {
		min-height: 400px;
	}

	.sbny-map-container__map {
		min-height: 400px;
	}

	.sbny-cta-banner {
		flex-direction: column;
		align-items: stretch;
	}

	.sbny-cta-banner__link {
		text-align: center;
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.sbny-hero {
		padding: 64px 20px;
	}

	.sbny-hero__title {
		font-size: 36px;
		letter-spacing: -0.8px;
	}

	.sbny-hero__subtitle {
		font-size: 16px;
		line-height: 24px;
		padding-bottom: 0;
	}

	.sbny-search {
		flex-direction: column;
		gap: 16px;
	}

	.sbny-search__field {
		padding: 0 0 0 12px;
	}

	.sbny-search__input {
		padding: 14px 0;
	}

	.sbny-search__btn {
		padding: 14px 24px;
		justify-content: center;
	}

	.sbny-dir-header__right {
		justify-content: space-between;
		gap: 24px;
		width: 100%;
	}

	.sbny-dir-header__count {
		white-space: nowrap;
	}

	.sbny-dir-header__right .sbny-sort-select {
		margin-left: 0;
	}

	/* Full-width category pills (hero inner is align-items: center, so stretch this row) */
	.sbny-hero__inner .sbny-pills {
		width: 100%;
		max-width: 100%;
		align-self: stretch;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.sbny-hero__inner .sbny-pill {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		justify-content: center;
		padding: 10px 16px;
		font-size: 12px;
	}

	.sbny-listings {
		padding: 48px 20px;
	}

	.sbny-dir-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.sbny-dir-header__right {
		width: 100%;
		align-self: stretch;
	}

	.sbny-dir-header__right .sbny-sort-select {
		margin-left: 0;
	}

	.sbny-dir-header__title {
		font-size: 28px;
		line-height: 34px;
	}

	.sbny-grid {
		grid-template-columns: 1fr;
	}

	.sbny-card {
		padding: 24px 24px 24px 28px;
	}

	.sbny-map-section {
		padding-top: 40px;
	}

	.sbny-map-container {
		min-height: 300px;
	}

	.sbny-map-container__map {
		min-height: 300px;
		order: 1;
		flex: 1 1 auto;
	}

	.sbny-density-card {
		position: static;
		order: 2;
		width: 100%;
		max-width: none;
		align-self: stretch;
		margin: 0;
		box-sizing: border-box;
	}
}

@media (max-width: 480px) {
	.sbny-hero__title {
		font-size: 28px;
	}
}
