/*
Theme Name: Catchy Labs Theme Child
Theme URI: https://catchylabs.com/
Description: Child theme for the Catchy Labs Elementor Theme WordPress theme.
Author: Bobby Danklefsen
Author URI: https://catchylabs.com/
Template: catchylabs-theme
Version: 1.0.1
Text Domain: cl-elementor
*/

:root {
   --clet-primary: #BF1D2C;
	--clet-text: #333333;
}

/* Put all custom styles here
   ========================================================================== */
   
main {
	padding-top:140px;
}

@media (max-width:1366px) {
	main {
		padding-top:143px;
	}
}

@media (max-width:1024px) {
	main {
		padding-top:154px;
	}
}

@media (max-width:768px) {
	main {
		padding-top:152px;
	}
}

/* Subnav
   ========================================================================== */

body:not(.elementor-editor-active) .subnav,
body.elementor-editor-active header .subnav {
   display:none;
}

body:not(.elementor-editor-active) .inner-menu:not(.active) {
   display:none;
}

.subnav-btn {
   cursor: pointer;
}

.subnav-btn:hover,
.subnav-btn.active {
   border-bottom-color:#F07821 !important;
}

.inner-menu-closer {
   cursor: pointer;
}

/* State Taxonomy Page Styles
   ========================================================================== */

body.tax-states main.site-main {
	max-width:1400px;
}

body.tax-states main.site-main h1.page-title {
	color: #F47721;
	font-size: 45px;
	margin-bottom: 20px;
}

.state-archive-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 0 20px;
	max-width: 100%;
	margin: 0 auto;
}

/* Map Section */
.state-map-section {
	width: 100%;
	margin-bottom: 20px;
}

.map-wrap {
	width: 100%;
	height: 700px;
	background: #ccc;
	border-radius: 8px;
	overflow: hidden;
}

.mapbox-container {
	width: 100%;
	height: 100%;
	display: flex;
}

#mapbox {
	width: 100%;
	height: 100%;
}

/* Map Marker Detail Popup */
#map-detail {
	position: fixed;
	bottom: 20px;
	left: 20px;
	max-width: 350px;
	background-color: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: none;
	z-index: 1000;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

#map-detail.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

#map-detail.right {
	left: auto;
	right: 20px;
}

#map-detail .reset {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

#map-detail .reset:hover {
	color: #333;
}

#map-detail .inner {
	padding-right: 20px;
}

#map-detail .inner strong {
	display: block;
	color: #F47721;
	font-size: 18px;
	margin-bottom: 8px;
}

#map-detail .inner span {
	display: block;
	color: #666;
	font-size: 16px;
}

/* Offices Listing Section */
.state-offices-section {
	width: 100%;
	padding: 40px 0;
}

.offices-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.offices-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.office-card {
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr;
	gap: 30px;
	padding: 25px 20px;
	border-bottom: 1px solid #333;
	align-items: flex-start;
}

.office-card:last-child {
	border-bottom: none;
}

/* Column 1: City and Link */
.office-column-1 {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.office-city {
	margin: 0;
	padding: 0;
	font-size: 25px;
	font-weight: bold;
	color: #F47721;
	line-height: 1.2;
}

.office-link {
	display: inline-block;
	color: #F47721;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	transition: opacity 0.2s ease;
	width: fit-content;
}

.office-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Column 2: Phone and Fax */
.office-column-2 {
	display: flex;
	flex-direction: column;
}

.office-contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.office-phone,
.office-fax {
	margin: 0;
	padding: 0;
	font-size: 18px;
	color: #555;
	line-height: 1.4;
}

.office-phone strong,
.office-fax strong {
	font-weight: 600;
	color: #333;
	margin-right: 4px;
}

/* Column 3: Title, Address, and Directions */
.office-column-3 {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.office-title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
}

.office-address {
	margin: 0;
	padding: 0;
	font-size: 18px;
	color: #666;
	line-height: 1;
	white-space: pre-wrap;
}

.office-directions {
	display: inline-block;
	color: #F47721;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: opacity 0.2s ease;
	width: fit-content;
}

.office-directions:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 1024px) {
	.state-archive-container {
		padding: 0 15px;
		gap: 30px;
	}

	.map-wrap {
		height: 400px;
	}

	.office-card {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.office-column-3 {
		grid-column: 1 / -1;
	}

	.office-card {
		padding: 20px 15px;
	}

	.office-city {
		font-size: 18px;
	}

	.office-title {
		font-size: 15px;
	}

	#map-detail {
		max-width: 300px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	body.tax-states main.site-main h1.page-title {
		font-size: 30px;
	}
	.state-archive-container {
		padding: 0 12px;
		gap: 25px;
	}

	.map-wrap {
		height: 350px;
		border-radius: 6px;
	}

	.office-card {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 15px 12px;
	}

	.office-column-3 {
		grid-column: 1;
	}

	.office-city {
		font-size: 16px;
	}

	.office-link {
		font-size: 13px;
	}

	.office-phone,
	.office-fax {
		font-size: 13px;
	}

	.office-title {
		font-size: 14px;
	}

	.office-address {
		font-size: 13px;
	}

	.office-directions {
		font-size: 13px;
	}

	#map-detail {
		bottom: 10px;
		left: 10px;
		right: 10px;
		max-width: none;
		padding: 15px;
		font-size: 13px;
	}

	#map-detail.right {
		left: 10px;
		right: 10px;
	}

	#map-detail .inner {
		padding-right: 15px;
	}

	#map-detail .inner strong {
		font-size: 16px;
	}

	#map-detail .inner span {
		font-size: 13px;
	}

	.state-offices-section {
		padding: 30px 0;
	}
}

/* Small Mobile Devices */
@media (max-width: 480px) {
	.state-archive-container {
		padding: 0 10px;
	}

	.map-wrap {
		height: 300px;
	}

	.office-card {
		padding: 12px 10px;
	}

	.office-city {
		font-size: 15px;
	}

	.office-link {
		font-size: 12px;
	}

	.office-phone,
	.office-fax {
		font-size: 12px;
	}

	.office-title {
		font-size: 13px;
	}

	.office-address {
		font-size: 12px;
	}

	.office-directions {
		font-size: 12px;
	}

	#map-detail {
		bottom: 5px;
		left: 5px;
		right: 5px;
		max-width: none;
		padding: 12px;
	}

	#map-detail .inner {
		padding-right: 10px;
	}

	#map-detail .inner strong {
		font-size: 14px;
		margin-bottom: 5px;
	}

	#map-detail .inner span {
		font-size: 12px;
	}
}
