/* ==========================================================================
   Global Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* ==========================================================================
   Header & Footer
   ========================================================================== */

header {
	position: sticky;
	top: 0;
	z-index: 100;
}

header .c-logo {
	margin: -7px 0 -7px -1px;
}

header nav {
	margin-top: -6px !important;
}

header .wp-block-group:first-child,
footer .wp-block-group {
	padding-left: 28px !important;
	padding-right: 28px !important;
}

header .wp-block-group .wp-block-group:first-child,
footer .wp-block-group .wp-block-group:first-child {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

footer.wp-block-template-part,
div.wp-block-template-part {
	margin-block-start: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
}

.breadcrumbs-nav a {
	text-decoration: none;
	color: #a5a5a5;
	transition: color 0.2s ease;
}

.breadcrumbs-nav a:hover {
	color: #333;
}

.breadcrumb-separator {
	color: #a5a5a5;
}

.breadcrumb-current {
	color: #333;
}

/* ==========================================================================
   Home Page Sections
   ========================================================================== */

/* Latest Posts Section */
.section-latest-posts .wp-block-post-template.is-layout-grid,
.page-template-page-full-width .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.section-latest-posts .wp-block-post-template.is-layout-grid .wp-block-group.has-border-color,
.page-template-page-full-width .wp-block-post-template.is-layout-grid .wp-block-group.has-border-color {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: var(--wp--preset--shadow--card, 0 5px 10px rgba(0, 0, 0, 0.05));
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section-latest-posts .wp-block-post-template.is-layout-grid .wp-block-group.has-border-color:hover,
.page-template-page-full-width .wp-block-post-template.is-layout-grid .wp-block-group.has-border-color:hover {
	transform: translateY(-5px);
	box-shadow: var(--wp--preset--shadow--card-hover, 0 10px 30px rgba(0, 0, 0, 0.08));
}

.section-latest-posts .wp-block-post-template .wp-block-post-featured-image,
.page-template-page-full-width .wp-block-post-template .wp-block-post-featured-image {
	overflow: hidden;
	width: 100%;
	margin: 0;
}

.section-latest-posts .wp-block-post-template .wp-block-post-featured-image img,
.page-template-page-full-width .wp-block-post-template .wp-block-post-featured-image img {
	width: 100%;
	display: block;
	transition: transform 0.5s ease;
}

.section-latest-posts .wp-block-post-template .wp-block-group.has-border-color:hover .wp-block-post-featured-image img,
.page-template-page-full-width .wp-block-post-template .wp-block-group.has-border-color:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.section-latest-posts .wp-block-post-template .wp-block-post-title a,
.page-template-page-full-width .wp-block-post-template .wp-block-post-title a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.section-latest-posts .wp-block-post-template .wp-block-post-title a:hover,
.page-template-page-full-width .wp-block-post-template .wp-block-post-title a:hover {
	color: #a5a5a5 !important;
}

@media (max-width: 1003px) {

	.section-latest-posts .wp-block-post-template.is-layout-grid,
	.page-template-page-full-width .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
}

@media (max-width: 600px) {

	.section-latest-posts .wp-block-post-template.is-layout-grid,
	.page-template-page-full-width .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Where We've Been Section */
.section-where-been .wp-block-column .wp-block-group .wp-block-image+p a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.section-where-been .wp-block-column .wp-block-group .wp-block-image+p a:hover {
	color: #a5a5a5;
}

.section-where-been .wp-block-column .wp-block-group>figure.wp-block-image,
.section-where-been .wp-block-column .wp-block-group>figure.wp-block-image a {
	width: 100%;
	max-width: 100%;
	display: block;
}

.section-where-been .wp-block-column .wp-block-group>figure.wp-block-image img {
	width: 100%;
	max-width: 100%;
}

/* About Us Section */
.section-about-us a[href*="/about/"] {
	transition: color 0.2s ease;
}

.section-about-us a[href*="/about/"]:hover {
	color: #a5a5a5 !important;
}

.section-about-us .wp-block-columns {
	align-items: stretch;
	gap: 0;
	box-shadow: var(--wp--preset--shadow--card, 0 5px 10px rgba(0, 0, 0, 0.05));
}

.section-about-us .wp-block-columns .wp-block-column {
	flex-basis: 50% !important;
}

.section-about-us .wp-block-columns .wp-block-column>.wp-block-group,
.section-about-us .wp-block-columns .wp-block-column>figure.wp-block-image {
	height: 522px;
}

.section-about-us .wp-block-columns .wp-block-column>figure.wp-block-image img {
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1003px) {

	.section-about-us .wp-block-columns .wp-block-column>.wp-block-group,
	.section-about-us .wp-block-columns .wp-block-column>figure.wp-block-image {
		height: 100%;
		min-height: 300px;
	}
}

@media (max-width: 600px) {
	.section-about-us .wp-block-columns .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Explore the Route Section */
.section-explore-route .wp-block-columns {
	align-items: stretch;
	box-shadow: var(--wp--preset--shadow--card, 0 5px 10px rgba(0, 0, 0, 0.05));
}

.section-explore-route .wp-block-column>.wp-block-group {
	height: 522px;
	background: #fff;
}

@media (max-width: 1003px) {
	.section-explore-route .wp-block-columns {
		gap: 0;
	}

	.section-explore-route .wp-block-column {
		flex-basis: 50% !important;
	}

	.section-explore-route .wp-block-column>.wp-block-group {
		height: 100%;
		min-height: 300px;
	}
}

@media (max-width: 600px) {
	.section-explore-route .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.related-post {
	display: flex;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--card, 0 5px 10px rgba(0, 0, 0, 0.05));
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.related-post:hover {
	transform: translateY(-5px);
	box-shadow: var(--wp--preset--shadow--card-hover, 0 10px 30px rgba(0, 0, 0, 0.08));
}

.related-post>p:empty {
	display: none;
}

.related-post-image {
	display: block;
	margin-bottom: 0;
	height: 282px;
	overflow: hidden;
}

.related-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.related-post:hover .related-post-image img {
	transform: scale(1.05);
}

.related-post-content {
	padding: 25px 25px 20px;
	border-bottom: 1px solid var(--wp--preset--color--border, #e0e0e0);
}

.related-post-date {
	display: block;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #a5a5a5;
	margin-bottom: 1px;
}

.related-post-title {
	display: block;
	font-family: "Cormorant Garamond", serif;
	font-size: 24px;
	font-weight: 400;
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.related-post-title:hover {
	color: #333;
}

@media (max-width: 1180px) {
	.related-posts {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.related-post-image {
		height: 220px;
	}
}

@media (max-width: 600px) {
	.related-posts {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.related-post-image {
		height: 246px;
	}
}

/* ==========================================================================
   Archive Pages - Post Cards
   ========================================================================== */

/* Equal height grid rows */
.post-type-archive-vehicle .wp-block-post-template,
.post-type-archive-baja-house .wp-block-post-template {
	grid-auto-rows: 1fr;
	row-gap: 48px;
}

.post-type-archive-vehicle .wp-block-post-template {
	row-gap: 38px;
}

.post-type-archive-vehicle .wp-block-post-template .wp-block-post-featured-image {
	aspect-ratio: 16 / 9 !important;
}

.post-type-archive-vehicle .wp-block-post-template .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
}

/* Card container - full height */
.post-type-archive-vehicle .wp-block-post-template .wp-block-group.has-border-color,
.post-type-archive-baja-house .wp-block-post-template .wp-block-group.has-border-color {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: var(--wp--preset--shadow--card, 0 5px 10px rgba(0, 0, 0, 0.05));
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Content area - grows to fill remaining space */
.post-type-archive-vehicle .wp-block-post-template .wp-block-group.has-border-color>.wp-block-group,
.post-type-archive-baja-house .wp-block-post-template .wp-block-group.has-border-color>.wp-block-group {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* Push Read More link to bottom */
.post-type-archive-vehicle .wp-block-post-template .wp-block-read-more,
.post-type-archive-baja-house .wp-block-post-template .wp-block-read-more {
	margin-top: auto;
}

.post-type-archive-vehicle .wp-block-post-template .wp-block-group.has-border-color:hover,
.post-type-archive-baja-house .wp-block-post-template .wp-block-group.has-border-color:hover {
	transform: translateY(-5px);
	box-shadow: var(--wp--preset--shadow--card-hover, 0 10px 30px rgba(0, 0, 0, 0.08));
}

/* Post card image */
.post-type-archive-vehicle .wp-block-post-template .wp-block-post-featured-image,
.post-type-archive-baja-house .wp-block-post-template .wp-block-post-featured-image {
	overflow: hidden;
}

.post-type-archive-vehicle .wp-block-post-template .wp-block-post-featured-image img,
.post-type-archive-baja-house .wp-block-post-template .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-type-archive-vehicle .wp-block-post-template .wp-block-group.has-border-color:hover .wp-block-post-featured-image img,
.post-type-archive-baja-house .wp-block-post-template .wp-block-group.has-border-color:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

/* Post card title and read more hover */
.post-type-archive-vehicle .wp-block-post-template .wp-block-post-title a,
.post-type-archive-baja-house .wp-block-post-template .wp-block-post-title a,
.post-type-archive-vehicle .wp-block-post-template .wp-block-read-more,
.post-type-archive-baja-house .wp-block-post-template .wp-block-read-more {
	transition: color 0.2s ease;
}

.post-type-archive-vehicle .wp-block-post-template .wp-block-post-title a:hover,
.post-type-archive-baja-house .wp-block-post-template .wp-block-post-title a:hover,
.post-type-archive-vehicle .wp-block-post-template .wp-block-read-more:hover,
.post-type-archive-baja-house .wp-block-post-template .wp-block-read-more:hover {
	color: #a5a5a5 !important;
}

/* Archive Pagination */
.post-type-archive-vehicle .wp-block-query-pagination,
.post-type-archive-baja-house .wp-block-query-pagination {
	gap: 12px;
	margin-top: 50px;
}

.post-type-archive-vehicle .wp-block-query-pagination-numbers,
.post-type-archive-baja-house .wp-block-query-pagination-numbers {
	display: flex;
	gap: 12px;
}

.post-type-archive-vehicle .wp-block-query-pagination-numbers .page-numbers,
.post-type-archive-baja-house .wp-block-query-pagination-numbers .page-numbers,
.post-type-archive-vehicle .wp-block-query-pagination-previous,
.post-type-archive-baja-house .wp-block-query-pagination-previous,
.post-type-archive-vehicle .wp-block-query-pagination-next,
.post-type-archive-baja-house .wp-block-query-pagination-next {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #e9e5e1;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	color: #333;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.post-type-archive-vehicle .wp-block-query-pagination-numbers .page-numbers.current,
.post-type-archive-baja-house .wp-block-query-pagination-numbers .page-numbers.current {
	background: #efebe2;
	border-color: #efebe2;
	font-weight: 500;
}

.post-type-archive-vehicle .wp-block-query-pagination-numbers .page-numbers:hover:not(.current),
.post-type-archive-baja-house .wp-block-query-pagination-numbers .page-numbers:hover:not(.current),
.post-type-archive-vehicle .wp-block-query-pagination-previous:hover,
.post-type-archive-baja-house .wp-block-query-pagination-previous:hover,
.post-type-archive-vehicle .wp-block-query-pagination-next:hover,
.post-type-archive-baja-house .wp-block-query-pagination-next:hover {
	background: #efebe2;
	border-color: #efebe2;
}


/* ==========================================================================
   Navigation
   ========================================================================== */

.wp-block-navigation a {
	transition: color 0.2s ease;
}

.wp-block-navigation a:hover {
	color: #a5a5a5 !important;
}

/* ==========================================================================
   Page Template
   ========================================================================== */

.page .wp-block-post-content a {
	color: #4a6354;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.page .wp-block-post-content a:hover {
	opacity: 0.7;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.is-style-404-button .wp-block-button__link {
	transition: background-color 0.2s ease;
}

.is-style-404-button .wp-block-button__link:hover {
	background-color: #e5e0d6 !important;
}

/* ==========================================================================
   Single Post - Hero Cover
   ========================================================================== */

.single .wp-container-core-group-is-layout-d663e90f> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 780px;
}

/* Vehicle manufacturer label */
.c-manufacturer {
	font-family: "DM Sans", sans-serif;
	font-size: 0.706rem;
	line-height: 1.8;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.176rem;
	display: block;
}

/* Single vehicle hero */
.single-vehicle .wp-block-cover .c-manufacturer {
	text-align: center;
	color: rgba(255, 255, 255, 0.7) !important;
	margin-top: 15px;
}

/* Archive card excerpts */
.c-post .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-type-archive-vehicle .c-post .wp-block-post-excerpt__excerpt {
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.post-type-archive-baja-house .c-post .wp-block-post-excerpt__excerpt {
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.post-type-archive-vehicle .wp-block-post-template .c-manufacturer {
	color: #a5a5a5;
	margin-bottom: 12px;
}

@media (max-width: 600px) {

	.post-type-archive-vehicle .wp-block-post-template .wp-block-group.has-border-color,
	.post-type-archive-baja-house .wp-block-post-template .wp-block-group.has-border-color {
		height: auto;
	}

	.c-post .info {
		flex-grow: 0 !important;
		padding-bottom: 33px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

.single .wp-block-cover {
	margin-top: 0 !important;
}

.single .wp-block-cover .wp-block-cover__inner-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 100px 28px 60px !important;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
	text-align: center;
	box-sizing: border-box;
}

.wp-block-cover .wp-block-post-title {
	color: #fff !important;
}

.wp-block-cover .wp-block-post-terms a {
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: none !important;
}

.wp-block-cover .wp-block-post-terms a:not(:last-child)::after {
	content: ",";
	margin-right: 0.3em;
}

.wp-block-cover .wp-block-post-terms__separator {
	display: none;
}

.wp-block-cover .wp-block-group p:empty {
	display: none;
}

.wp-block-cover .wp-block-post-date,
.wp-block-cover .wp-block-group p {
	color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================================
   Single Post - Content
   ========================================================================== */

.single .wp-block-post-content {
	max-width: 780px !important;
	font-weight: 300;
}

.single .wp-block-post-content a:not(.wp-block-button__link):not(.wp-block-post-terms a) {
	color: #4a6354;
	text-decoration: none;
	border-bottom: 1px solid #4a6354;
	transition: opacity 0.2s ease;
}

.single .wp-block-post-content a:not(.wp-block-button__link):not(.wp-block-post-terms a):hover {
	opacity: 0.7;
}

.single .wp-block-post-content strong,
.single .wp-block-post-content b {
	font-weight: 600;
}

/* ==========================================================================
   Single Post - Images & Captions
   ========================================================================== */

.wp-block-image figcaption {
	margin-top: 0.7em;
	font-size: 16px;
	line-height: 28px;
}

/* ==========================================================================
   Single Post - Blockquote
   ========================================================================== */

.single .wp-block-post-content blockquote {
	border-left: 3px solid #e9e5e1;
	padding-left: 30px;
	margin: 45px 0;
	font-family: "Cormorant Garamond", serif;
	font-size: 28px;
	font-style: italic;
	color: #555;
	line-height: 1.5;
}

/* ==========================================================================
   Single Post - Tags
   ========================================================================== */

.taxonomy-post_tag.wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.taxonomy-post_tag.wp-block-post-terms a {
	font-family: "DM Sans", sans-serif;
	font-size: 14px !important;
	color: #333 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	padding: 10px 20px;
	background: #efebe2;
	transition: background 0.2s ease;
}

.taxonomy-post_tag.wp-block-post-terms a:hover {
	background: #e9e5e1;
}

.taxonomy-post_tag .wp-block-post-terms__separator {
	display: none;
}

/* ==========================================================================
   Single Post - Post Navigation
   ========================================================================== */

/* Navigation link styling */
.nav-arrow {
	font-size: 15px;
}

.nav-content {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nav-label {
	margin-bottom: -9px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #333;
}

.nav-title {
	font-size: 20px;
	color: #333;
}

/* Post navigation buttons with borders */
.post-nav-prev,
.post-nav-next {
	width: 375px;
	border: 1px solid #e9e5e1;
	padding: 18px 25px 14px;
	transition: background 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

a.post-nav-prev,
a.post-nav-next {
	text-decoration: none;
	color: inherit;
}

.post-navigation .post-nav-next {
	margin-left: auto !important;
}

.post-nav-prev>p,
.post-nav-next>p {
	font-size: 15px !important;
}

.post-nav-next .nav-content {
	align-items: flex-end;
}

.post-nav-next.is-layout-flex {
	justify-content: flex-end !important;
}

a.post-nav-prev:hover,
a.post-nav-next:hover {
	background: #efebe2;
	border-color: #efebe2;
}

/* Hide navigation link when empty */
.wp-block-post-navigation-link:empty {
	display: none;
}

/* Hide prev/next button when no link exists */
.post-nav-prev:has(.wp-block-post-navigation-link:empty),
.post-nav-next:has(.wp-block-post-navigation-link:empty) {
	display: none;
}

/* ==========================================================================
   Single Post - Subscribe Form
   ========================================================================== */

.subscribe-section {
	padding-left: 140px !important;
	padding-right: 140px !important;
	max-width: none !important;
}

.subscribe-section .is-content-justification-center {
	width: 100%;
	max-width: 780px;
	margin-top: 20px !important;
}

.subscribe-form {
	display: flex;
	gap: 12px;
	width: 100%;
}

.subscribe-form input[type="email"] {
	height: 47px;
	padding: 16px 20px;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	border: none;
	background: #fff;
	flex: 1;
	color: #333;
}

.subscribe-form input[type="email"]::placeholder {
	color: #a5a5a5;
}

.subscribe-form input[type="email"]:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(74, 99, 84, 0.2);
}

.subscribe-form button[type="submit"] {
	height: 47px;
	padding: 16px 23px;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	line-height: 16px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	background: #8B8578;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.subscribe-form button[type="submit"]:hover {
	background: #7a756a;
}

/* ==========================================================================
   Single Post - Comments Section
   ========================================================================== */

/* Comments header */
.wp-block-comments h3.wp-block-heading,
.single h3.wp-block-heading {
	font-family: "DM Sans", sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* Hide the default WordPress comments title */
.wp-block-comments-title {
	display: none !important;
}

/* Comments count */
.comments-count {
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	color: #a5a5a5;
}

/* Comment list container */
.wp-block-comment-template {
	margin-top: 5px;
	padding: 0;
	list-style: none;
}

/* Individual comment */
.wp-block-comment-template>li {
	padding: 30px 0 0;
	border-bottom: 1px solid #e9e5e1;
}

.wp-block-comment-template>li:last-child {
	border-bottom: none;
}

/* Comment avatar - circular with initials style */
.wp-block-avatar img {
	border-radius: 50% !important;
	background: #e9e5e1;
}

/* Comment author name */
.wp-block-comment-author-name {
	font-size: 16px !important;
	font-weight: 600 !important;
}

.wp-block-comment-author-name a {
	text-decoration: none;
	color: #333;
}

/* Comment date */
.wp-block-comment-date {
	color: #a5a5a5;
}

.wp-block-comment-date a {
	text-decoration: none;
	color: inherit;
}

/* Comment content */
.wp-block-comment-content {
	margin-top: 10px;
}

.wp-block-comment-content p {
	margin: 0;
	line-height: 1.7;
}

.wp-block-post-comments-form .comment-reply-title {
	margin-bottom: 34px;
}

/* Reply link */
.wp-block-comment-reply-link {
	margin-top: 12px;
}

.wp-block-comment-reply-link a {
	font-size: 14px;
	color: #a5a5a5;
	text-decoration: none;
}

.wp-block-comment-reply-link a:hover {
	color: #333;
}

/* Comment form - Leave a Comment */
.wp-block-post-comments-form {
	margin-top: 50px;
	padding-top: 40px;
	border-top: 1px solid #e9e5e1;
}

.wp-block-post-comments-form h3,
.comment-reply-title {
	font-family: "DM Sans", sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 30px;
}

/* Hide logged in as text */
.wp-block-post-comments-form .logged-in-as {
	display: none;
}

/* Form fields container */
.wp-block-post-comments-form .comment-form {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* Name and Email fields side by side */
.wp-block-post-comments-form .comment-form-author,
.wp-block-post-comments-form .comment-form-email {
	flex: 1;
	min-width: 200px;
}

/* Comment textarea full width */
.wp-block-post-comments-form .comment-form-comment {
	flex-basis: 100%;
	margin-bottom: 0;
}

/* Labels */
.single label,
.wp-block-post-comments-form label {
	display: block;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	margin-bottom: 10px;
	color: #333;
}

/* Input and textarea styling */
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"],
.wp-block-post-comments-form textarea {
	width: 100%;
	padding: 16px 20px;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	border: 1px solid #e9e5e1;
	background: #fff;
	color: #333;
	box-sizing: border-box;
}

.wp-block-post-comments-form input[type="text"]:focus,
.wp-block-post-comments-form input[type="email"]:focus,
.wp-block-post-comments-form input[type="url"]:focus,
.wp-block-post-comments-form textarea:focus {
	outline: none;
	border-color: #d5d0c7;
}

.wp-block-post-comments-form input::placeholder,
.wp-block-post-comments-form textarea::placeholder {
	color: #a5a5a5;
}

.wp-block-post-comments-form textarea {
	min-height: 180px;
	resize: vertical;
}

/* Submit button */
.wp-block-post-comments-form .form-submit {
	flex-basis: 100%;
	margin-top: 0;
}

.wp-block-post-comments-form input[type="submit"],
.wp-block-post-comments-form .submit {
	width: 194px;
	height: 51px;
	padding: 0;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #333;
	background: #efebe2;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wp-block-post-comments-form input[type="submit"]:hover,
.wp-block-post-comments-form .submit:hover {
	background: #e5e0d5;
}

/* ==========================================================================
   Responsive - Mobile (max-width: 1003px)
   ========================================================================== */

@media (max-width: 1003px) {

	/* All main sections - mobile padding */
	.single .wp-block-group.has-background,
	.wp-block-cover {
		padding-left: 30px !important;
		padding-right: 30px !important;
	}

	/* Subscribe Section */
	.subscribe-section {
		padding-left: 30px !important;
		padding-right: 30px !important;
	}

	/* Subscribe Form */
	.subscribe-form {
		flex-direction: column;
		width: 100%;
	}

	.subscribe-form input[type="email"] {
		width: 100%;
	}

	.subscribe-form button[type="submit"] {
		width: 100%;
		height: auto;
		padding: 16px 23px;
	}

	/* Post Navigation */
	.post-nav-prev,
	.post-nav-next {
		width: 100%;
	}

	/* Comment Form */
	.wp-block-post-comments-form .comment-form-author,
	.wp-block-post-comments-form .comment-form-email {
		flex-basis: 100%;
	}

	/* Header */
	header {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	header .wp-block-group:first-child {
		padding-left: 30px !important;
		padding-right: 30px !important;
	}

	header .c-logo {
		margin: 0 0 0 -1px;
	}

	/* Navigation */
	.wp-block-navigation__container {
		gap: 17px 22px;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		padding-left: 30px !important;
		padding-right: 30px !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 34px !important;
	}

	/* Footer */
	footer .wp-block-group:first-child {
		flex-wrap: wrap;
		padding: 10px 0 28px !important;
		justify-content: center;
	}

	footer .wp-block-group .wp-block-group:first-child {
		padding-bottom: 0 !important;
	}

	footer .wp-block-group:first-child>.wp-block-group:first-child {
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}

	footer .wp-block-group:first-child img {
		margin-bottom: 7px;
	}

	footer .wp-block-group:first-child .wp-block-navigation {
		width: 100%;
		justify-content: center;
	}

	/* Baja House - 2 columns on tablet */
	.post-type-archive-baja-house .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {

	/* Baja House - 1 column on mobile */
	.post-type-archive-baja-house .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   Baja House Sort Toggle
   ========================================================================== */

.sort-toggle {
	display: flex;
}

.sort-toggle .sort-btn {
	padding: 10px 18px;
	border: 1px solid #e9e5e1;
	background: #fff;
	font-family: var(--wp--preset--font-family--body), 'DM Sans', sans-serif;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	transition: background 0.2s ease;
}

.sort-toggle .sort-btn:first-child {
	border-radius: 2px 0 0 2px;
}

.sort-toggle .sort-btn:last-child {
	border-left: none;
	border-radius: 0 2px 2px 0;
}

.sort-toggle .sort-btn.active,
.sort-toggle .sort-btn:hover {
	background: #efebe2;
}

/* ==========================================================================
   Contact Page - Form Styles
   ========================================================================== */

.contact-form-card .wpcf7 {
	float: left;
	width: 100%;
	margin-top: 10px !important;
}

/* Form group spacing */
.contact-form-card .wp-block-group,
.contact-form-card p {
	margin-bottom: 27px;
}

.contact-form-card p:last-of-type {
	margin-bottom: 0;
}

/* Form labels */
.contact-form-card label {
	display: block;
	float: left;
	width: 100%;
	margin-bottom: 10px !important;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	text-transform: capitalize;
}

/* Form inputs and textareas */
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card input[type="url"],
.contact-form-card textarea {
	width: 100%;
	padding: 16px 20px;
	border: 1px solid #e9e5e1;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	color: #333;
	background: #faf8f5;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	box-sizing: border-box;
}

.contact-form-card input[type="text"]:focus,
.contact-form-card input[type="email"]:focus,
.contact-form-card input[type="tel"]:focus,
.contact-form-card input[type="url"]:focus,
.contact-form-card textarea:focus {
	outline: none;
	border-color: #4a6354;
	background: #ffffff;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
	color: #a5a5a5;
}

.contact-form-card textarea {
	min-height: 180px;
	height: 190px;
	resize: vertical;
	line-height: 1.7;
}

/* Submit button */
.contact-form-card input[type="submit"],
.contact-form-card button[type="submit"],
.contact-form-card .wpcf7-submit,
.contact-form-card .wp-block-button__link {
	width: 100%;
	padding: 18px 30px;
	background: var(--wp--preset--color--background-alt);
	color: #333;
	border: none;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.contact-form-card input[type="submit"]:hover,
.contact-form-card button[type="submit"]:hover,
.contact-form-card .wpcf7-submit:hover,
.contact-form-card .wp-block-button__link:hover {
	background: #e5e0d5;
}

/* Contact Form 7 specific styles */
.contact-form-card .wpcf7-form-control-wrap {
	display: block;
}

.contact-form-card .wpcf7-not-valid-tip {
	color: #dc3232;
	font-size: 14px;
	margin-top: 8px;
}

.contact-form-card .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 15px 20px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border: none;
	text-align: center;
}

.contact-form-card .wpcf7-mail-sent-ok {
	border-color: #4a6354;
	background: rgba(74, 99, 84, 0.1);
}

.contact-form-card .wpcf7-validation-errors {
	border-color: #dc3232;
	background: rgba(220, 50, 50, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.contact-form-card {
		padding: 35px 25px !important;
	}
}


/* =============================================
   LOGIN PAGE
   ============================================= */

.login-forms-container {
	max-width: 1100px;
	margin: 0 auto;
}

.login-form-panel {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	background: #ffffff;
	padding: 45px 45px !important;
	border: 1px solid #e9e5e1;
}

.login-request-panel {
	background: #efebe2 !important;
	border-color: #e9e5e1;
}

.login-request-panel h3 {
	font-size: var(--wp--preset--font-size--sub-heading) !important;
}

.login-form-panel-header {
	text-align: center;
	margin-bottom: 33px;
}

.login-form-panel-header h3 {
	font-family: "Outfit", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #a5a5a5;
	text-transform: uppercase;
	letter-spacing: 3px;
	margin-bottom: 12px;
}

.login-form-panel-header h4 {
	margin-top: 14px;
}

.login-form-panel-header h4,
.login-form-panel-header .wp-block-heading {
	font-family: "Cormorant Garamond", serif;
	font-size: 28px !important;
	font-weight: 400;
	color: #333;
	line-height: 1.2;
}

.login-form-panel-header p {
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	color: #666;
	margin-top: 12px;
	line-height: 1.7;
}

.login-request-panel h3 {
	letter-spacing: 0;
	text-transform: none;
}

/* Login form fields */
.login-form-group {
	margin-bottom: 16px;
}

.login-panel form {
	margin-top: 0;
}

.login-panel h4 {
	margin-bottom: 0;
}

.login-panel input[type="submit"],
.login-submit-btn {
	background: var(--wp--preset--color--background-alt);
}

.login-panel input[type="submit"]:hover {}

.login-form-group:last-of-type {
	margin-bottom: 25px;
}

.login-form-group label {
	display: block;
	margin-bottom: 6px;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #333;
}

.login-form-group input[type="text"],
.login-form-group input[type="password"],
.login-form-group input[type="email"] {
	width: 100%;
	padding: 14px 18px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	color: #333;
	background: #faf8f5;
	border: 1px solid #e9e5e1;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.login-request-panel .login-form-group input,
.login-request-panel .login-form-group textarea {
	background: #ffffff;
}

.login-form-group input:focus {
	outline: none;
	border-color: #4a6354;
	background: #ffffff;
}

.login-form-group input::placeholder {
	color: #a5a5a5;
}

/* Remember me + Forgot password row */
.login-form-extras {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: -15px;
	margin-bottom: 25px;
}

.login-remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
}

.login-remember-me input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #4a6354;
	cursor: pointer;
}

.login-remember-me label {
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

.login-forgot-password {
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	color: #a5a5a5;
	text-decoration: none;
	transition: color 0.2s ease;
}

.login-forgot-password:hover {
	color: #333;
}

/* Login submit button */
.login-submit-btn {
	width: 100%;
	margin-top: -8px;
	padding: 16px 28px;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #333;
	background-color: var(--wp--preset--color--background-alt);
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.login-submit-btn:hover {
	background-color: #e5e0d5;
}

/* Login error message */
.login-error {
	background: rgba(220, 50, 50, 0.08);
	border: 1px solid rgba(220, 50, 50, 0.3);
	color: #dc3232;
	padding: 12px 18px;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	margin-bottom: 20px;
	text-align: center;
}

/* Login form note */
.login-form-note {
	float: left;
	width: 100%;
	margin-top: -13px !important;
	text-align: center;
}

/* Request to Join panel — CF7 form overrides */
.login-request-panel .wpcf7-form p {
	float: left;
	width: 100%;
	margin: 0;
}

.login-request-panel .wpcf7-form label {
	display: block;
	float: left;
	width: 100%;
	margin-bottom: 15px !important;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	text-transform: capitalize;
	margin-bottom: 8px;
}

.login-request-panel .wpcf7-form input[type="text"],
.login-request-panel .wpcf7-form input[type="email"],
.login-request-panel .wpcf7-form textarea {
	width: 100%;
	margin-top: 5px;
	padding: 14px 18px 16px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	color: #333;
	background: #ffffff;
	border: 1px solid #e9e5e1;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.login-request-panel .wpcf7-form input:focus,
.login-request-panel .wpcf7-form textarea:focus {
	outline: none;
	border-color: #4a6354;
	background: #ffffff;
}

.login-request-panel .wpcf7-form input::placeholder,
.login-request-panel .wpcf7-form textarea::placeholder {
	color: #a5a5a5;
}

.login-request-panel .wpcf7-form textarea {
	min-height: 100px;
	height: 111px;
	resize: vertical;
	line-height: 1.7;
}

.login-request-panel .wpcf7-form input[type="submit"],
.login-request-panel .wpcf7-form .wpcf7-submit {
	width: 100%;
	padding: 16px 28px;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #ffffff;
	background-color: #8b8578;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.login-request-panel .wpcf7-form input[type="submit"]:hover,
.login-request-panel .wpcf7-form .wpcf7-submit:hover {
	background-color: #746e63;
}

.login-request-panel .wpcf7-not-valid-tip {
	color: #dc3232;
	font-size: 14px;
	margin-top: 8px;
	text-transform: none;
}

.login-request-panel .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 15px 20px;
}

/* Login page responsive */
@media (max-width: 900px) {
	.login-forms-container {
		flex-direction: column;
		max-width: 500px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.login-form-panel {
		padding: 30px 25px !important;
	}

	.login-form-extras {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-top: 15px;
	}
}


/* =============================================
   BLOG PAGE
   ============================================= */

.blog-main-content {
	display: flex;
	gap: 60px;
}

/* Sidebar */
.blog-sidebar {
	width: 280px;
	flex-shrink: 0;
}

.blog-filter-section {
	margin-bottom: 35px;
	background-color: #ffffff;
	padding: 19px 24px 26px;
}

.blog-filter-header {
	margin-bottom: 24px;
}

.blog-filter-header h3 {
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* FacetWP search input override */
.blog-filter-section .facetwp-search {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #e9e5e1;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	color: #333;
	background-color: #faf8f5;
	outline: none;
	transition: border-color 0.3s ease;
}

.blog-filter-section .facetwp-search:focus {
	border-color: #333;
}

.blog-filter-section .facetwp-search::placeholder {
	color: #a5a5a5;
}

.facetwp-facet input.facetwp-search,
.facetwp-facet input.facetwp-location {
	min-width: 228px !important;
}

.blog-filter-section .facetwp-icon::before {
	display: inline-block;
	content: '';
	width: 36px;
	height: 100%;
	background-position: 50% 50%;
	background-size: 15px auto;
	background-repeat: no-repeat;
}

.blog-filter-section .facetwp-icon {
	right: 0;
	cursor: pointer;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.blog-filter-section .facetwp-icon:hover {
	opacity: 0.8;
}

/* FacetWP checkbox facet overrides */
.blog-filter-section .facetwp-facet[data-type="checkboxes"] {
	min-width: 228px;
	width: 100%;
}

.blog-filter-section .facetwp-facet {
	margin-bottom: 0;
}

.blog-filter-section .facetwp-input-wrap {
	width: 100%;
}

.blog-filter-section .facetwp-facet .facetwp-checkbox {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	color: #333;
	margin-bottom: 14px;
	transition: color 0.2s ease;
}

.facetwp-facet .facetwp-checkbox {
	padding-left: 30px;
}

.facetwp-facet .facetwp-checkbox.checked {
	background-size: 18px auto;
}

.facetwp-facet .facetwp-checkbox:not(.checked) {
	background: transparent url('assets/images/ui_checkbox.png') 0 50% no-repeat;
	background-size: 18px auto;
}

.blog-filter-section .facetwp-facet .facetwp-checkbox:hover {
	color: #555;
}

.blog-filter-section .facetwp-facet .facetwp-counter {
	color: #a5a5a5;
	font-size: 15px;
}

/* Content area */
.blog-content-area {
	flex: 1;
	min-width: 0;
}

.blog-content-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 35px;
}

.blog-results-count,
.blog-results-count .facetwp-counts {
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	color: #a5a5a5;
}

/* Hidden FacetWP sort select */
.facetwp-sort-hidden {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Blog sort toggle buttons */
.blog-sort-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
}

.blog-sort-toggle .blog-sort-label {
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	color: #a5a5a5;
}

.blog-sort-toggle .sort-btn {
	padding: 11px 20px;
	border: 1px solid #e9e5e1;
	background: #fff;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
}

.blog-sort-toggle .sort-btn:hover {
	background: #faf8f5;
}

.blog-sort-toggle .sort-btn.active {
	background: var(--wp--preset--color--background-alt);
	border-color: var(--wp--preset--color--background-alt);
}

/* Blog grid */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.blog-card {
	background: #fff;
	overflow: hidden;
	border: 1px solid #e9e5e1;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	transform: translateY(-3px);
}

.blog-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.blog-card-image {
	position: relative;
	aspect-ratio: 3/4;
	overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
	transform: scale(1.03);
}

.blog-card-content {
	padding: 2px 22px 12px;
	background-color: #ffffff;
}

.blog-card-content h3 {
	font-family: "Cormorant Garamond", serif;
	font-size: 22px;
	font-weight: 400;
	color: #333;
	margin-bottom: 6px;
	line-height: 1.3;
}

.blog-card-date {
	display: block;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	color: #a5a5a5;
	margin-bottom: 12px;
}

.blog-card-content p {
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	color: #333;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* No results */
.blog-no-results {
	text-align: center;
	padding: 60px 30px;
}

.blog-no-results p {
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	color: #a5a5a5;
}

/* Blog pagination — FacetWP pager override */
.blog-pagination {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

.blog-pagination .facetwp-pager {
	display: flex;
	gap: 12px;
}

.blog-pagination .facetwp-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #e9e5e1;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	color: #333;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.blog-pagination .facetwp-page.active {
	background: #efebe2;
	border-color: #efebe2;
	font-weight: 500;
}

.blog-pagination .facetwp-page:hover:not(.active) {
	background: #efebe2;
	border-color: #efebe2;
}

/* Blog page responsive */
@media (max-width: 1350px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blog-card-image {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 900px) {
	.blog-main-content {
		flex-direction: column;
	}

	.blog-sidebar {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		gap: 30px;
	}

	.blog-filter-section {
		width: calc(50% - 15px);
		margin-bottom: 0;
	}

	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blog-page-content {
		padding-left: 30px !important;
		padding-right: 30px !important;
	}
}

@media (max-width: 620px) {
	.blog-filter-section {
		width: 100%;
	}

	.blog-page-content {
		padding-top: 78px !important;
		padding-bottom: 76px !important;
	}
}

@media (max-width: 600px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-content-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

}