/*
 * LAYOUT — Shared page structure and component sizing/behavior.
 * Find a section below to edit panels, header, footer, account navigation,
 * business pages, shared listing cards, RENTAL CARD, or JOB CARD.
 * Rental and job card CSS stays together here; their HTML stays in fragment/.
 * Use Bootstrap classes in the markup for layout and spacing wherever possible.
 */

/* ==========================================================================
   PAGE SPACING — Single source of padding for .container elements.
   Templates inherit these values without Bootstrap padding utilities or local
   container-padding overrides. Cards and other components own their inner spacing.
   ========================================================================== */
.container {
	max-width: 1200px;
}

/* Full-width sections reuse page spacing without the centered content limit. */
.container,
.page-container-wide {
	padding-top: 3rem;
	padding-bottom: 3rem;
	padding-right: 1rem;
	padding-left: 1rem;
}

/* @media ( min-width : 992px) {
	.container {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
} */

/* Main content title, followed by section titles within that content.
 * Fluid rem sizes respect browser text scaling: 24–32px and 20–24px
 * at the default 16px root size. Use semantic h1/h2 levels in markup.
 */
.container-header, .section-header {
	font-family: var(--app-font-heading);
	font-weight: 600;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.container-header {
	/* font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); */
	line-height: 1.2;
	margin-bottom: 1rem;
	font-family: var(--app-font-display);
}

.section-header {
	font-family: var(--app-font-display);
	/* font-size: clamp(1.25rem, 1.125rem + .5vw, 1.5rem); */
	line-height: 1.3;
	margin-bottom: .75rem;
}

/* Reusable discovery-section title; card titles retain the shared Inter font. */
.content-section-title {
	font-family: var(--app-font-display);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

.card-title {
	font-size: 18px !important;
	font-weight: 600;
	font-family: var(--app-font-display);
}

/* ==========================================================================
   PANELS & SIDEBAR — Responsive widths and workspace navigation
   ========================================================================== */

/* Reusable narrow panel: Bootstrap has no exact 400px responsive width utility.
   Match Bootstrap's md breakpoint; xs/sm panels occupy the full screen width. */
.panel-narrow {
	width: 100%;
}

@media ( min-width : 768px) {
	.panel-narrow {
		width: 400px;
	}
}

/* Reusable sidebar width and flex-content shrinkability. Bootstrap supplies sticky,
   collapse, dropdown placement, spacing, and the lg breakpoint's display utilities. */
.panel-sidebar {
	width: 100%;
}

/* Shared workspace navigation: viewport height on desktop, Bootstrap collapse on mobile. */
.workspace-options {
	max-height: 40dvh;
}

@media ( min-width : 992px) {
	.panel-sidebar {
		position: sticky;
		width: var(--panel-sidebar-width, 300px);
		top: var(--navigation-offset, 0px);
		height: calc(100dvh - var(--navigation-offset, 0px));
	}
	.panel-sidebar .sidebar-collapse {
		height: 100%;
	}
	.panel-sidebar .navigation-middle {
		min-height: 0;
	}
	.panel-sidebar .navigation-middle>.nav {
		min-height: 0;
	}
}

/* ==========================================================================
   FOOTER — Shared footer link appearance
   ========================================================================== */

.site-footer {
    background-color: var(--color-pearl-white);
}
.site-footer-logo {
    display: block;
    width: 22.5rem;
    max-width: 100%;
    height: auto;
}
.site-footer-heading {
    font-family: var(--app-font-display);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}
.footer-nav-link {
    color: var(--color-black);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.footer-nav-link:hover,
.footer-nav-link:focus-visible {
    color: var(--color-burgundy);
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* ==========================================================================
   HEADER — Shared search layout
   ========================================================================== */

/* Header search layout shared with the existing header fragment. */
.site-header-search {
	flex: 1 1 100%;
	min-width: 0;
}

.site-header-links {
	flex-basis: 100% !important;
}

@media ( min-width : 992px) {
	.site-header-search {
		flex-basis: 0;
		max-width: 760px;
		min-width: 300px;
		margin-right: auto;
	}
}

/* ==========================================================================
   BUSINESS PAGES — Registration, profile, directory results, and map
   ========================================================================== */

/* Business onboarding uses Bootstrap layout and normal input focus states. */
.business-registration {
	max-width: 56rem;
}

.business-category-suggestions {
	z-index: 1050;
	max-height: 18rem;
	overflow-y: auto;
}

.business-category-option {
	cursor: pointer;
}

.business-cover {
	height: clamp(180px, 28vw, 380px);
}

.business-avatar {
	width: 144px;
	height: 144px;
	margin-top: -44px;
}

.business-dashboard-profile {
	isolation: isolate;
}

.business-map-canvas {
	height: 380px;
	min-height: 280px;
}

.business-search-page [data-site-header] {
	position: sticky;
	top: 0;
	z-index: 1020;
}

.business-search-filters {
	margin: -1.5rem -1rem 1.5rem;
}

.business-search-thumbnail {
	width: 180px;
	height: 160px;
}

.business-search-result {
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
	scroll-margin-top: calc(var(--directory-header-height, 0px)+ 1rem);
}

.business-search-map {
	scroll-margin-top: var(--directory-header-height, 0px);
}

.business-search-result:hover, .business-search-result.is-map-active {
	border-color: var(--bs-secondary-color) !important;
	box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.07);
}

.business-search-description {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.business-search-map [data-business-map] {
	border-radius: 0;
	margin: 0 !important;
	padding: 0;
	overflow: hidden;
}

.business-search-map [data-map-canvas] {
	height: 360px;
	min-height: 300px;
}

.business-map-search-area {
	position: absolute;
	bottom: 42px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	white-space: nowrap;
}

.business-search-pin {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid white;
	background: #212529;
	color: white;
	font-weight: 600;
	box-shadow: 0 2px 6px #0004;
	cursor: pointer;
}

.business-search-pin.is-map-active {
	background: var(--bs-primary);
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

@media ( min-width : 992px) {
	.business-search-map {
		position: sticky;
		top: var(--directory-header-height, 180px);
	}
	.business-search-map [data-business-map] {
		height: calc(100dvh - var(--directory-header-height, 180px));
		min-height: 380px;
	}
	.business-search-map [data-map-canvas] {
		height: 100%;
		flex: 1;
	}
	.business-search-map [data-map-status] {
		position: absolute;
		top: 12px;
		left: 12px;
		max-width: calc(100% - 68px);
		padding: 0.5rem 0.75rem;
		background: white;
		border-radius: 0.5rem;
		box-shadow: 0 2px 6px #0002;
	}
	.business-search-map [data-map-status]:empty {
		display: none;
	}
	.business-search-map h2 {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

@media ( min-width : 1200px) {
	.business-search-filters {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}
}

@media ( max-width : 575.98px) {
	/* Keep section headings and Explore together; mobile uses touch scrolling. */
	.content-section-header :is(h2, h3) {
		min-width: 0;
		font-size: clamp(1.125rem, 4.5vw, 1.375rem);
		line-height: 1.3;
	}
	.content-section-header .btn-dark {
		padding: .5rem .75rem;
		font-size: .875rem;
	}
	.business-search-thumbnail {
		width: 100%;
		height: 190px;
	}
}

.community-listing-description {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* ==========================================================================
   LISTING CARDS — Rules shared by rental and job cards
   ========================================================================== */

/* Light DOM lets Bootstrap and Font Awesome style both custom elements. */
lac-rental-card, lac-job-card {
	display: block;
	height: 100%;
	min-width: 0;
}

.listing-card {
	overflow-wrap: anywhere;
}

/* Bootstrap display utilities can override the native hidden attribute. */
.listing-card [hidden] {
	display: none !important;
}

/* ==========================================================================
   RENTAL CARD — Photos and horizontal row controls
   ========================================================================== */

/* Cover and row styles are shared by rental and job cards. */
.listing-card-cover {
	aspect-ratio: 1;
}

.listing-row {
	scroll-snap-type: x mandatory;
}

.listing-row>div {
	scroll-snap-align: start;
}

.listing-row:focus-visible {
	outline: 2px solid var(--bs-primary);
	outline-offset: 4px;
}

/* ==========================================================================
   JOB CARD — Compact text-first card; industry icon styles are in utilities.css.
   Edit fragment/jobCardFrag.html for job-specific content and metadata.
   ========================================================================== */

/* Bootstrap supplies spacing, flex layout, borders, and action placement. */

/* ==========================================================================
   DETAIL PAGES — Rental gallery, sticky summary, and contact/application dialog.
   Bootstrap handles the grid, spacing, typography, and component appearance.
   ========================================================================== */
.detail-gallery {
	height: clamp(16rem, 42vw, 32rem);
}

/* Editorial images and reading measures used by community pages.
   Bootstrap handles their grids, typography, colors, and responsive spacing. */
.community-hero-photo {
	height: clamp(20rem, 35vw, 32rem);
}

.editorial-cover {
	aspect-ratio: 16/10;
	height: auto;
}

.editorial-feature {
	height: clamp(17rem, 32vw, 28rem);
}

.editorial-banner {
	height: clamp(17rem, 35vw, 34rem);
}

.community-heading {
	max-width: 56rem;
}

.article-reading {
	max-width: 48rem;
}

.community-note-body {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.community-notice {
	width: max-content;
	max-width: calc(100vw - 2rem);
	z-index: 1080;
}

.detail-thumbnail {
	width: 5rem;
	height: 3.75rem;
}

.detail-thumbnail[aria-pressed="true"] {
	outline: 2px solid var(--bs-body-color);
	outline-offset: 2px;
}

.detail-list li+li {
	margin-top: 0.75rem;
}

.listing-dialog {
	width: min(32rem, calc(100% - 2rem));
	max-height: calc(100dvh - 2rem);
}

.listing-dialog::backdrop {
	background: rgba(15, 23, 42, 0.45);
}

@media ( min-width : 992px) {
	.detail-sidebar {
		position: sticky;
		top: 1.5rem;
	}
}

/* ==========================================================================
   HOME HERO SLIDER — Full-width photos, absolute text overlay, white update panel.
   Homepage auto-advance is configured in markup; Bootstrap handles manual controls.
   ========================================================================== */
.home-hero {
	background: var(--color-ocean);
}

.home-hero .carousel-item {
	height: clamp(32rem, 43vw, 42rem);
	isolation: isolate;
}

.hero-banner-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.hero-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(15, 23, 42, .7),
		rgba(15, 23, 42, .15) 85%),
		linear-gradient(transparent 65%, rgba(15, 23, 42, .55));
}

.hero-banner-content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding-bottom: 5rem;
}

.hero-community-intro {
	display: block;
	max-width: 40rem;
	color: white;
	text-decoration: none;
}

.hero-community-intro:hover {
	color: white;
}

.hero-community-intro h1 {
	font-size: clamp(3.5rem, 7vw, 6rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.025em;
	margin-bottom: 1.5rem;
}

.hero-community-intro p {
	font-size: clamp(1.125rem, 2vw, 1.35rem);
	line-height: 1.6;
	max-width: 32rem;
	margin: 0;
}

.hero-content-panel {
	max-width: 31rem;
	padding: clamp(1.5rem, 3vw, 3rem);
	background: white;
	border-radius: 1rem;
}

.hero-content-panel h2 {
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	line-height: 1.05;
}

.home-hero-controls {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	z-index: 2;
}

.home-slide-dot {
	width: .7rem;
	height: .7rem;
	padding: 0;
	border: 1px solid white;
	border-radius: 50%;
	background: transparent;
}

.home-slide-dot.active {
	background: white;
}

.home-slide-dot:focus-visible, .hero-community-intro:focus-visible {
	outline: 2px solid white;
	outline-offset: 5px;
}

/* Reusable horizontal content rail: padding and thin dark scrollbars on any page. */
.content-scroll-row {
	overflow-x: auto;
	margin-inline: 0;
	padding: .5rem .5rem 1.5rem;
	scrollbar-width: auto;
	scrollbar-color: auto;
}

.content-scroll-row::-webkit-scrollbar {
	height: 6px;
	background: transparent;
}

.content-scroll-row::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 999px;
	margin-inline: .75rem;
}

.content-scroll-row::-webkit-scrollbar-thumb {
	background: var(--color-black);
	border: 1px solid #f0f0f0;
	border-radius: 999px;
	background-clip: padding-box;
}

.content-scroll-row::-webkit-scrollbar-thumb:hover {
	background-color: #343434;
}

.content-scroll-row::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}

/* Firefox uses standard colors; Chromium keeps the rounded styling above. */
@supports not selector(::-webkit-scrollbar) {
	.content-scroll-row {
	scrollbar-width:thin;
	scrollbar-color: var(--color-black) #f0f0f0;
}

}

/* One community-card component: only media shape and outer presentation vary. */
.community-card {
	min-width: 0;
}

.community-card-image {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1200/630;
	overflow: hidden;
	background: var(--bs-tertiary-bg);
	color: var(--bs-secondary-color);
}

.community-card-image>img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.community-card[data-image="circle"] {
	max-width: 17rem;
	margin-inline: auto;
}

.community-card[data-image="circle"] .community-card-image {
	aspect-ratio: 1;
	border: 2px solid var(--bs-border-color);
	border-radius: 50%;
}
/* Compact account lists reuse the same card, media and identity markup. */
.community-card[data-image="compact"] {
	display: flex;
	width: 100%;
	flex-direction: row;
	align-items: center;
	gap: .75rem;
	padding: 0;
}

.community-card[data-image="compact"] .community-card-image {
	width: 2.5rem;
	aspect-ratio: 1;
	border: 1px solid var(--bs-border-color);
	border-radius: 50%;
}

.community-card[data-image="compact"] .community-card-name {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.community-card-name {
	font-family: var(--app-font-body);
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.community-card-name, .community-card-type {
	line-height: 1.2;
}

.community-card-type {
	text-transform: uppercase;
	font-weight: 500;
}

.community-card-image:hover>img {
	transform: scale(1.04);
}

.community-card a:focus-visible {
	outline: 3px solid var(--color-burgundy);
	outline-offset: 4px;
}

@media ( max-width : 575.98px) {
	.home-hero .carousel-item {
		height: 36rem;
	}
	.hero-banner-content {
		padding-bottom: 5.5rem;
	}
}

/* Mobile panel: 16px bottom inset + normal 38px controls + 20px clear gap.
   The full-width wrapper has no bottom padding below md. */
@media (max-width: 767.98px) {
	.home-hero .hero-banner-content {
		padding-bottom: calc(1rem + 2.375rem + 20px);
	}
}

@media ( prefers-reduced-motion : reduce) {
	.community-card-image>img {
		transition: none;
	}
	.home-hero .carousel-item {
		transition: none;
	}
}

/* ==========================================================================
   GENERIC HERO — Standalone designs; the parent page owns carousel markup.
   .hero-banner-overlay and .hero-banner-panel select pre-authored HTML variants.
   ========================================================================== */
.hero-banner {
	position: relative;
	isolation: isolate;
	height: clamp(32rem, 43vw, 42rem);
	background: var(--color-ocean);
}

.home-hero .hero-banner {
	height: 100%;
}

/* Contained hero: the parent supplies .container; content stays in normal flow
   so longer city/state names and translated copy can grow on small screens. */
.hero-banner-contained {
	height: auto;
	min-height: clamp(25rem, 36vw, 33rem);
}

/* COMPONENT MODES — Shared media sizing only; mode structure stays in HTML.
   Compact: cards/rows. Favorited: saved-item list. Side: narrow sidebar.
   Details: expanded content. Parent Bootstrap grid determines width. */
.component-list-thumbnail {
	width: 7rem;
	height: 7rem;
	flex-shrink: 0;
}

.component-detail-image {
	height: clamp(12rem, 28vw, 22rem);
}

/* DETAIL CONTENT & SIDEBAR — Used by rental-details.html and job-details.html.
   Parent uses d-block d-md-flex. Sidebar stacks full-width below md, then
   stays 300px wide; larger desktops use 400px. */
.detail-main {
	min-width: 0;
}

.detail-aside {
	width: 100%;
}

@media ( min-width : 768px) {
	.detail-main {
		flex-basis: 0;
	}
	.detail-aside {
		width: 300px;
	}
}

@media ( min-width : 1200px) {
	.detail-aside {
		width: 400px;
	}
}

/* COMMUNITY HERO — 1200:630 cover; counters above, title below, membership outside. */
.hero-banner-community {
	height: auto;
	aspect-ratio: 1200/630;
}

.hero-banner-community h1 {
	font-size: clamp(1.25rem, 4vw, 4rem);
}

/* Round the hero overlay to match the cover. Membership menus are outside it. */
.hero-banner-community::after {
	border-radius: inherit;
	background: linear-gradient(transparent 55%, rgba(15, 23, 42, .35));
}

/* LANDMARK DETAILS — Photo crops and embedded-map sizing; page layout uses Bootstrap. */
.landmark-gallery {
	height: clamp(21rem, 39vw, 33rem);
}

.landmark-gallery-secondary {
	flex: 1 1 0;
	min-height: 0;
}

.landmark-map {
	height: 15rem;
}

.landmark-lightbox-image {
	height: min(65vh, 42rem);
}

@media ( min-width : 992px) {
	.landmark-info-panel {
		max-height: calc(100dvh - 3rem);
		overflow-y: auto;
	}
}

.landmark-actions [aria-pressed="true"] {
	background-color: var(--color-burgundy);
	border-color: var(--color-burgundy);
	color: white;
}
