/**
 * ViaLocal Location Pages — Frontend Stylesheet (Phase 12C).
 *
 * Provides styling for the location page landing template:
 * - Hero section, backgrounds, overlays, breadcrumbs, typography
 * - Stats bar, search bar, call-to-action buttons
 * - Explore Areas cards and grid
 * - Popular Categories cards and grid
 * - WP Job Manager listing archive integration
 *
 * Supports both .vbn-* and legacy .vllp-* selector classes.
 *
 * @package ViaLocal\VBN
 */

/* ==========================================================================
   1. Location Page Container
   ========================================================================== */

.vbn-location-page-wrapper,
.vllp-location-page-wrapper {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

/* ==========================================================================
   2. Hero Section & Overlay
   ========================================================================== */

.vbn-location-hero,
.vllp-location-hero,
.vllp-hero {
	position: relative;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	min-height: 380px;
	display: flex;
	align-items: center;
	padding: 60px 0;
	color: #ffffff;
	overflow: hidden;
}

.vbn-location-hero-overlay,
.vllp-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.45);
}

.vbn-location-hero-container,
.vllp-hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

/* ==========================================================================
   3. Breadcrumbs
   ========================================================================== */

.vbn-location-breadcrumbs,
.vllp-breadcrumbs {
	margin-bottom: 20px;
	font-size: 14px;
	background: transparent;
	padding: 0;
}

.vbn-location-breadcrumbs .breadcrumb,
.vllp-breadcrumbs .breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.vbn-location-breadcrumbs .breadcrumb li a,
.vllp-breadcrumbs .breadcrumb li a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s ease;
}

.vbn-location-breadcrumbs .breadcrumb li a:hover,
.vllp-breadcrumbs .breadcrumb li a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.vbn-location-breadcrumbs .breadcrumb li.active,
.vllp-breadcrumbs .breadcrumb li.active {
	color: #ffffff;
	font-weight: 600;
}

.vbn-location-breadcrumbs .breadcrumb > li + li::before,
.vllp-breadcrumbs .breadcrumb > li + li::before {
	content: "/\00a0";
	padding: 0 4px;
	color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   4. Hero Content & Typography
   ========================================================================== */

.vbn-hero-eyebrow,
.vllp-hero-eyebrow {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin: 0 0 10px;
	opacity: 0.9;
	color: #ffffff;
}

.vbn-hero-heading,
.vllp-hero-heading {
	font-size: 40px;
	font-weight: 700;
	margin: 0 0 14px;
	line-height: 1.2;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vbn-hero-subheading,
.vllp-hero-subheading {
	font-size: 18px;
	margin: 0 0 24px;
	line-height: 1.5;
	color: #ffffff;
	opacity: 0.95;
	max-width: 720px;
}

.vbn-location-hero-content.text-center .vbn-hero-subheading,
.vbn-location-hero-content.text-center .vllp-hero-subheading {
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   5. Hero Stats Bar
   ========================================================================== */

.vbn-hero-stats,
.vllp-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	align-items: center;
}

.vbn-location-hero-content.text-center .vbn-hero-stats,
.vbn-location-hero-content.text-center .vllp-hero-stats {
	justify-content: center;
}

.vbn-stat-item,
.vllp-stat-item {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 14px;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.vbn-stat-item strong,
.vllp-stat-item strong {
	font-size: 18px;
	font-weight: 700;
}

/* ==========================================================================
   6. Hero Search Form
   ========================================================================== */

.vbn-hero-search,
.vllp-hero-search {
	max-width: 600px;
	margin-bottom: 24px;
}

.vbn-location-hero-content.text-center .vbn-hero-search,
.vbn-location-hero-content.text-center .vllp-hero-search {
	margin-left: auto;
	margin-right: auto;
}

.vbn-location-search-form .input-group,
.vllp-search-form .input-group {
	display: flex;
	width: 100%;
}

.vbn-location-search-form input.form-control,
.vllp-search-form input.form-control {
	height: 50px;
	border-radius: 25px 0 0 25px;
	border: none;
	padding: 0 22px;
	font-size: 15px;
	color: #333333;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	flex: 1;
}

.vbn-location-search-form input.form-control:focus,
.vllp-search-form input.form-control:focus {
	outline: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.vbn-location-search-form button,
.vllp-search-form button {
	height: 50px;
	border-radius: 0 25px 25px 0;
	padding: 0 28px;
	font-weight: 600;
	font-size: 15px;
	background: #0073aa;
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.vbn-location-search-form button:hover,
.vllp-search-form button:hover {
	background: #005a87;
}

/* ==========================================================================
   7. Call to Action (CTA) Button
   ========================================================================== */

.vbn-hero-cta-wrapper,
.vllp-cta-wrapper {
	margin-top: 10px;
}

.vbn-hero-cta,
.vllp-hero-cta {
	display: inline-block;
	padding: 13px 30px;
	border-radius: 25px;
	font-weight: 600;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	background: #0073aa;
	color: #ffffff;
	border: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vbn-hero-cta:hover,
.vllp-hero-cta:hover {
	background: #005a87;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
	text-decoration: none;
}

/* ==========================================================================
   8. Main Content & Section Titles
   ========================================================================== */

.vbn-location-main-content,
.vllp-location-main-content {
	padding: 40px 15px 60px;
	box-sizing: border-box;
}

.vbn-section-title,
.vllp-section-title {
	font-size: 24px;
	font-weight: 700;
	margin: 40px 0 20px;
	color: #222222;
	position: relative;
	padding-bottom: 12px;
}

.vbn-section-title::after,
.vllp-section-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 44px;
	height: 3px;
	background: #0073aa;
	border-radius: 2px;
}

/* ==========================================================================
   9. Explore Areas & Popular Categories Cards
   ========================================================================== */

.vbn-areas-grid,
.vbn-categories-grid,
.vllp-areas-grid,
.vllp-categories-grid {
	display: flex;
	flex-wrap: wrap;
	margin: -10px;
}

.vbn-area-col,
.vbn-category-col,
.vllp-area-col,
.vllp-category-col {
	padding: 10px;
	box-sizing: border-box;
}

.vbn-area-card,
.vbn-category-card,
.vllp-area-card,
.vllp-category-card {
	display: block;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	transition: all 0.25s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.vbn-area-card:hover,
.vbn-category-card:hover,
.vllp-area-card:hover,
.vllp-category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	border-color: #0073aa;
	text-decoration: none;
}

.vbn-area-name,
.vbn-category-name,
.vllp-area-name,
.vllp-category-name {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 4px;
	color: #2d3748;
}

.vbn-area-count,
.vbn-category-count,
.vllp-area-count,
.vllp-category-count {
	font-size: 13px;
	color: #718096;
}

/* ==========================================================================
   10. Premium Spotlight (Cards, Banners & Carousel)
   ========================================================================== */

.vbn-location-spotlight-section,
.vllp-spotlight-section {
	margin-bottom: 45px;
	position: relative;
	width: 100%;
}

.vbn-spotlight-header,
.vllp-spotlight-header {
	margin-bottom: 24px;
}

.vbn-spotlight-header .vbn-section-title,
.vllp-spotlight-header .vllp-section-title {
	margin-top: 0;
	margin-bottom: 6px;
}

.vbn-spotlight-header .vbn-section-subtitle,
.vllp-spotlight-header .vllp-section-subtitle {
	font-size: 15px;
	color: #5b6b85;
	margin: 0;
}

/* Carousel Container & Track */
.vbn-spotlight-carousel,
.vllp-spotlight-carousel {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 10px 0 35px;
}

.vllp-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	transition: transform 0.4s ease-in-out;
	will-change: transform;
	margin: 0 -15px;
}

/* Slide Columns */
.vbn-spotlight-col,
.vllp-spotlight-col {
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
	padding: 0 15px;
	box-sizing: border-box;
}

.vbn-spotlight-banner-col,
.vllp-spotlight-banner-col {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 0 15px;
	box-sizing: border-box;
}

/* Card Layout */
.vbn-spotlight-card,
.vllp-spotlight-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.vbn-spotlight-card:hover,
.vllp-spotlight-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Poster Image */
.vbn-spotlight-image-wrap,
.vllp-spotlight-image-wrap {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f1f5f9;
}

.vbn-spotlight-image-wrap a {
	display: block;
	width: 100%;
	height: 100%;
}

.vbn-spotlight-image-wrap img,
.vllp-spotlight-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.vbn-spotlight-card:hover .vbn-spotlight-image-wrap img,
.vllp-spotlight-card:hover .vllp-spotlight-image-wrap img {
	transform: scale(1.05);
}

/* Badge & Ribbon */
.vbn-spotlight-badge,
.vllp-spotlight-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 4px 10px;
	border-radius: 20px;
	background-color: #0073aa;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.vbn-spotlight-ribbon,
.vllp-spotlight-ribbon {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 4px;
	background-color: #e53e3e;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Card Body */
.vbn-spotlight-body,
.vllp-spotlight-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.vbn-spotlight-title,
.vllp-spotlight-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.35;
}

.vbn-spotlight-title a,
.vllp-spotlight-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.vbn-spotlight-title a:hover,
.vllp-spotlight-title a:hover {
	color: #0073aa;
	text-decoration: none;
}

.vbn-spotlight-subtitle,
.vllp-spotlight-subtitle {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 16px;
	line-height: 1.5;
	flex-grow: 1;
}

.vbn-spotlight-cta-wrap,
.vllp-spotlight-cta-wrap {
	margin-top: auto;
}

.vbn-spotlight-btn,
.vllp-spotlight-btn {
	display: inline-block;
	padding: 9px 20px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	background-color: #0073aa;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	text-align: center;
}

.vbn-spotlight-btn:hover,
.vllp-spotlight-btn:hover {
	background-color: #005a87;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Banner Layout */
.vbn-spotlight-banner,
.vllp-spotlight-banner {
	position: relative;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	margin: 0 auto;
	display: flex;
	align-items: center;
	min-height: 280px;
}

.vbn-spotlight-banner-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 1;
}

/* Banner Scrim Overlay */
.vbn-spotlight-banner::before,
.vllp-spotlight-banner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%);
	z-index: 2;
	pointer-events: none;
}

.vbn-spotlight-banner-content {
	position: relative;
	z-index: 3;
	padding: 40px;
	max-width: 60%;
	color: #ffffff;
}

.vbn-spotlight-banner .vbn-spotlight-badge,
.vllp-spotlight-banner .vllp-spotlight-badge {
	position: static;
	display: inline-block;
	margin-bottom: 12px;
}

.vbn-spotlight-banner .vbn-spotlight-title,
.vllp-spotlight-banner .vllp-spotlight-title {
	font-size: 26px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 10px;
}

.vbn-spotlight-banner .vbn-spotlight-title a,
.vllp-spotlight-banner .vllp-spotlight-title a {
	color: #ffffff;
}

.vbn-spotlight-banner .vbn-spotlight-subtitle,
.vllp-spotlight-banner .vllp-spotlight-subtitle {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 20px;
}

/* Carousel Controls (Arrows) */
.vllp-carousel-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #e2e8f0;
	color: #1a202c;
	font-size: 24px;
	line-height: 38px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vllp-carousel-control:hover {
	background: #0073aa;
	color: #ffffff;
	border-color: #0073aa;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.vllp-carousel-prev {
	left: -8px;
}

.vllp-carousel-next {
	right: -8px;
}

.vllp-carousel-control:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Carousel Dots Indicator */
.vllp-carousel-dots {
	position: absolute;
	bottom: 6px;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	z-index: 4;
}

.vllp-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cbd5e1;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	padding: 0;
}

.vllp-carousel-dot.active,
.vllp-carousel-dot:hover {
	background: #0073aa;
	transform: scale(1.25);
}

/* ==========================================================================
   11. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
	.vbn-spotlight-col,
	.vllp-spotlight-col {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.vbn-spotlight-banner-content {
		max-width: 80%;
		padding: 30px;
	}
}

@media (max-width: 767px) {
	.vbn-location-hero,
	.vllp-location-hero {
		min-height: 280px;
		padding: 36px 0;
	}

	.vbn-hero-heading,
	.vllp-hero-heading {
		font-size: 28px;
	}

	.vbn-hero-subheading,
	.vllp-hero-subheading {
		font-size: 15px;
	}

	.vbn-hero-stats,
	.vllp-hero-stats {
		gap: 8px;
	}

	.vbn-stat-item,
	.vllp-stat-item {
		font-size: 12px;
		padding: 4px 10px;
	}

	.vbn-location-search-form input.form-control,
	.vllp-search-form input.form-control {
		height: 44px;
		font-size: 14px;
	}

	.vbn-location-search-form button,
	.vllp-search-form button {
		height: 44px;
		padding: 0 18px;
	}

	.vbn-hero-cta,
	.vllp-hero-cta {
		padding: 10px 22px;
		font-size: 14px;
	}

	.vbn-spotlight-col,
	.vllp-spotlight-col {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.vbn-spotlight-banner-content {
		max-width: 100%;
		padding: 24px;
	}

	.vbn-spotlight-banner,
	.vllp-spotlight-banner {
		min-height: 220px;
	}

	.vbn-spotlight-banner .vbn-spotlight-title,
	.vllp-spotlight-banner .vllp-spotlight-title {
		font-size: 20px;
	}

	.vllp-carousel-prev {
		left: 4px;
	}

	.vllp-carousel-next {
		right: 4px;
	}
}

/* ==========================================================================
   12. Legacy Hero Docked Elements & Area Card Extensions (Phase 12G-D)
   ========================================================================== */

.vllp-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.vllp-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(11, 26, 51, 0.88) 0%, rgba(22, 48, 92, 0.82) 55%, rgba(22, 48, 92, 0.9) 100%);
	pointer-events: none;
	z-index: 1;
}

.vllp-hero--has-image .vllp-hero__overlay {
	background: linear-gradient(180deg, rgba(9, 21, 43, 0.78) 0%, rgba(16, 34, 66, 0.86) 60%, rgba(16, 34, 66, 0.94) 100%);
}

.vllp-hero__inner {
	position: relative;
	z-index: 2;
}

.vllp-hero__search-card {
	margin-top: 20px;
}

.vllp-hero__search {
	display: flex;
	width: 100%;
}

.vllp-hero__search-input-group {
	display: flex;
	width: 100%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	border-radius: 25px;
	overflow: hidden;
}

.vllp-hero__search-keywords {
	border-radius: 25px 0 0 25px !important;
	border: none !important;
	height: 50px !important;
	padding: 0 20px !important;
	background: #ffffff !important;
	color: #333333 !important;
	flex: 1;
}

.vllp-hero__search-submit {
	border-radius: 0 25px 25px 0 !important;
	border: none !important;
	height: 50px !important;
	padding: 0 25px !important;
	background: #0073aa !important;
	color: #ffffff !important;
	font-weight: 600 !important;
}

.vllp-areas__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #f1f5f9;
	margin-right: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.vllp-areas__card-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vllp-areas__card-icon-fallback {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #cbd5e1;
	display: inline-block;
}

.vllp-areas__card-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vllp-areas__card-name {
	font-weight: 600;
	color: #1e293b;
	font-size: 15px;
}

.vllp-areas__card-count {
	font-size: 13px;
	color: #64748b;
}

.vllp-premium-spotlight__banners {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vllp-premium-spotlight__banner-poster {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}
