/**
 * Dealer SEO Location Pages Styles
 * Moved from inline styles for performance and maintainability
 * Affects 297 location pages
 *
 * @since 4.3.1
 */

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.tcl-seo-location-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 128px 20px 40px 20px;
	overflow-x: hidden;
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.tcl-location-header {
	margin-bottom: 48px;
	position: relative;
}

/* Breadcrumbs */
.tcl-breadcrumbs {
	margin-bottom: 24px;
	font-size: 14px;
	color: var(--tcl-gray);
}

.tcl-breadcrumbs a {
	color: var(--tcl-primary);
	text-decoration: none;
	font-weight: 500;
}

.tcl-breadcrumbs span {
	margin: 0 8px;
	color: var(--tcl-text-gray);
	font-weight: 500;
}

/* Header Title Section */
.tcl-location-header > div {
	position: relative;
	padding: 32px 0;
	border-bottom: 3px solid var(--tcl-primary);
}

.tcl-location-header h1 {
	font-size: 38px;
	font-weight: 800;
	margin: 0 0 16px;
	color: var(--tcl-white);
	letter-spacing: -0.5px;
}

.tcl-location-header > div > p {
	font-size: 19px;
	line-height: 1.6;
	color: var(--tcl-gray-lighter);
	margin: 0;
	font-weight: 400;
}

/* ==========================================================================
   Dealers Section
   ========================================================================== */

.tcl-dealers-section {
	margin-bottom: 56px;
}

.tcl-dealers-section h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 32px;
	color: var(--tcl-white);
	position: relative;
	padding-bottom: 12px;
}

.tcl-dealers-section h2 span {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: var(--tcl-primary);
}

/* Dealers Grid */
.tcl-dealers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 28px;
}

/* Dealer Cards */
.tcl-dealer-seo-card {
	background: linear-gradient(to bottom, var(--tcl-bg-card) 0%, var(--tcl-bg-lighter) 100%);
	border: 2px solid var(--tcl-border);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

/* Card accent decoration */
.tcl-card-accent {
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	height: 100px;
	background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
}

/* Dealer Logo */
.tcl-dealer-logo {
	margin-bottom: 16px;
	position: relative;
}

.tcl-dealer-logo img {
	max-height: 50px;
	max-width: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	background: var(--tcl-bg-lighter);
}

.tcl-dealer-seo-card h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--tcl-white);
	position: relative;
}

.tcl-dealer-seo-card > p {
	font-size: 14px;
	color: var(--tcl-gray-light);
	margin: 0 0 16px;
	line-height: 1.6;
}

/* Distance Badge */
.tcl-dealer-distance {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 20px;
}

.tcl-dealer-distance span {
	width: 6px;
	height: 6px;
	background: #fff;
	border-radius: 50%;
}

/* Dealer Actions */
.tcl-dealer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	position: relative;
}

.tcl-dealer-actions a {
	display: inline-flex;
	align-items: center;
	padding: 11px 18px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
}

/* Call Button */
.tcl-dealer-actions a[href^="tel:"] {
	background: linear-gradient(135deg, var(--tcl-primary) 0%, #991b1b 100%);
	color: var(--tcl-white);
	box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* Website Button */
.tcl-dealer-actions a[target="_blank"]:not([href*="google.com"]):not([href*="webstore"]) {
	background: var(--tcl-bg-dark);
	color: var(--tcl-white);
}

/* Web Store Button */
.tcl-dealer-actions a[href*="webstore"],
.tcl-dealer-actions a[href*="store"] {
	background: #8b5cf6;
	color: var(--tcl-white);
	box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

/* Directions Button */
.tcl-dealer-actions a[href*="google.com"] {
	background: var(--tcl-bg-lighter);
	color: var(--tcl-white);
	border: 2px solid var(--tcl-border);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.tcl-services-section {
	background: linear-gradient(135deg, var(--tcl-bg-dark) 0%, var(--tcl-bg-lighter) 100%);
	border-radius: 20px;
	padding: 48px 40px;
	margin-bottom: 56px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Decorative Elements */
.tcl-services-section > div:first-child {
	position: absolute;
	top: -50px;
	right: -50px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
}

.tcl-services-section > div:nth-child(2) {
	position: absolute;
	bottom: -80px;
	left: -80px;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
}

.tcl-services-section h2 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 24px;
	color: var(--tcl-white);
	position: relative;
	display: inline-block;
}

.tcl-services-section h2 span {
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 80px;
	height: 3px;
	background: var(--tcl-primary);
}

.tcl-services-section p {
	font-size: 17px;
	line-height: 1.8;
	color: var(--tcl-gray-light);
	margin: 0 0 20px;
	position: relative;
}

.tcl-services-section p:last-of-type {
	margin: 0;
}

/* Service Areas Grid (for state hub pages) */
.tcl-service-areas-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	position: relative;
}

.tcl-service-area-link {
	display: inline-block;
	padding: 10px 18px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--tcl-gray-lighter);
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.tcl-service-area-link:hover {
	background: rgba(220, 38, 38, 0.2);
	border-color: var(--tcl-primary);
	color: var(--tcl-white);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.tcl-cta-section {
	text-align: center;
	padding: 56px 32px;
	background: linear-gradient(135deg, var(--tcl-primary) 0%, var(--tcl-primary-dark) 50%, #991b1b 100%);
	border-radius: 20px;
	color: var(--tcl-white);
	position: relative;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4);
}

/* Decorative Element */
.tcl-cta-section > div:first-child {
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.tcl-cta-section h2 {
	font-size: 36px;
	font-weight: 800;
	margin: 0 0 20px;
	position: relative;
	letter-spacing: -0.5px;
}

.tcl-cta-section p {
	font-size: 19px;
	margin: 0 0 32px;
	opacity: 0.95;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
	position: relative;
}

.tcl-cta-section a {
	display: inline-block;
	padding: 16px 40px;
	background: var(--tcl-bg-light);
	color: var(--tcl-primary);
	font-size: 17px;
	font-weight: 700;
	border-radius: 12px;
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
	transition: all 0.3s;
	position: relative;
}

.tcl-cta-section a:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
	.tcl-seo-location-page {
		padding: 100px 15px 30px 15px;
	}

	.tcl-location-header h1 {
		font-size: 28px;
	}

	.tcl-location-header > div > p {
		font-size: 16px;
	}

	/* Horizontal swipeable cards on mobile */
	.tcl-dealers-section {
		margin-left: -15px;
		margin-right: -15px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.tcl-dealers-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 16px;
		padding-bottom: 16px;
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* IE/Edge */
	}

	.tcl-dealers-grid::-webkit-scrollbar {
		display: none; /* Chrome/Safari */
	}

	.tcl-dealer-seo-card {
		flex: 0 0 min(85%, calc(100vw - 60px));
		min-width: 0;
		max-width: 320px;
		scroll-snap-align: start;
		padding: 20px;
	}

	.tcl-dealer-logo img {
		max-height: 40px;
	}

	.tcl-dealer-seo-card h3 {
		font-size: 18px;
	}

	.tcl-services-section {
		padding: 32px 24px;
	}

	.tcl-services-section h2 {
		font-size: 24px;
	}

	.tcl-services-section p {
		font-size: 15px;
	}

	.tcl-cta-section {
		padding: 40px 20px;
	}

	.tcl-cta-section h2 {
		font-size: 28px;
	}

	.tcl-cta-section p {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.tcl-dealer-actions {
		flex-direction: column;
	}

	.tcl-dealer-actions a {
		width: 100%;
		justify-content: center;
	}
}
