/**
 * Models Tiles Styles
 *
 * @package TamarackProperties
 */

/* =============================================================================
   TILES VIEW STYLES
   ============================================================================= */

.tamarack-models-tiles {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

.page-id-6954 .breadcumb-wrapper { display:block; }
.page-id-6954 .breadcumb-wrapper .breadcumb-menu { display:none; }

/* Page Heading - using theme's sec-title class */
.tamarack-models-tiles .sec-title {
	padding-top: 75px;
}

/* Add padding below model tiles */
.tamarack-models-tiles .models-container {
	padding-bottom: 75px;
}

/* Mobile Filter Toggle Button Container */
.mobile-filter-toggle-container {
	display: none;
	width: 100%;
	max-width: 400px;
	margin:0 auto 20px;
	padding: 20px;
	border: 1px solid #D4D9D4;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
	display: inline-block;
	background: #1B6551;
	color: white;
	border: none;
	padding: 12px 24px;
	font-size: 17px;
	font-weight: 400;
	cursor: pointer;
	border-radius: 0;
	white-space: nowrap;
}

.mobile-filter-toggle:hover {
	opacity: 0.9;
}

/* Mobile Filter Close Button */
.mobile-filter-close {
	display: none;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 40px;
	right: 0;
	background: transparent;
	border: 1px solid #667E78;
	cursor: pointer;
	padding: 0;
	width: 50px;
	height: 50px;
	z-index: 1001;
	font-size: 0;
	text-indent: -9999px;
	background-image: url('../images/x-close.svg');
	background-repeat: no-repeat;
	background-size: 75% 75%;
	background-position: center;
}

.mobile-filter-close:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

/* Filter Overlay */
.filter-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.filter-overlay.active {
	display: block;
	opacity: 1;
}

/* Filters */
.models-filters {
	background: #D4D9D4;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

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

.filters-header h3 {
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	color: #070D0A;
}

.filter-actions {
	display: flex;
	align-items: stretch;
	gap: 30px;
}

.clear-filters-btn {
	background: #1B6551;
	color: white;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 17px;
	font-weight: 400;
	border-radius: 0;
	transition: background 0.3s ease;
	height: 50px;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.clear-filters-btn:hover {
	background: #145241;
}

.filters-grid {
	display:flex;
	flex-wrap:wrap;
    gap: 25px 30px;
	margin-bottom: 15px;
	max-width:1131px;
	justify-content: space-between;
}

@media (max-width: 1060px) {
	.filters-grid { justify-content: flex-start; }
}

.filters-grid > .filter-group {
	width:100%;
}

/* Community dropdown on second row, spanning 2 columns */
.filters-grid > .filter-group:nth-child(1) {
	max-width:300px;
}
.filters-grid > .filter-group:nth-child(2) {
	max-width:227px;
}
.filters-grid > .filter-group:nth-child(3) {
	max-width:160px;
}
.filters-grid > .filter-group:nth-child(4) {
	max-width:225px;
}
.filters-grid > .filter-group:nth-child(5) {
	max-width:395px;
}

.filters-grid > div.filter-group:first-of-type label { display:flex; justify-content: space-between; }

/* Mobile Show Results Button */
.mobile-show-results-container {
	display: none;
	padding: 20px 0 80px 0;
	margin-top: 20px;
}

.tamarack-models-tiles .view-toggle-btn { padding:0; }

.mobile-show-results-btn {
	width: auto;
	background: #1B6551;
	color: white;
	border: none;
	padding: 15px 24px;
	font-size: 17px;
	font-weight: 400;
	cursor: pointer;
	border-radius: 0;
	text-align: center;
	white-space: nowrap;
}

.mobile-show-results-btn:hover {
	opacity: 0.9;
}

.filter-group {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.select-decor {
	position: relative;
	width: 100%;
}

.models-filters .select-decor::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 9px;
	background-image: url('../images/select-arrow-down.svg');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center;
	pointer-events: none;
}

.filter-group label {
	font-weight: 400;
	margin-bottom: 5px;
	color: #333;
	font-size: 17px;
	text-transform: none;
}

.models-filters input[type="radio"] ~ label { font-weight:400; }

/* Square footage range slider styling */
.filter-group input[type="range"] {
	width: 100%;
	height: 18px;
	background: transparent;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	background: white;
	border: 2px solid #1B6551;
	cursor: pointer;
	border-radius: 50%;
	margin-top: -7px;
	box-sizing: border-box;
}

.filter-group input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	background: white;
	border: 2px solid #1B6551;
	cursor: pointer;
	border-radius: 50%;
	box-sizing: border-box;
}

.filter-group input[type="range"]::-webkit-slider-runnable-track {
	background: #1B6551;
	height: 3px;
	border-radius: 1.5px;
	width: 100%;
}

.filter-group input[type="range"]::-moz-range-track {
	background: #1B6551;
	height: 3px;
	border-radius: 1.5px;
	width: 100%;
}

.filter-select {
	padding: 10px;
	border: 1px solid #ddd;
	appearance: none;
	background-image: none;
	background: white;
	background-color: white;
	cursor: pointer;
	transition: none;
	font-size: 17px;
	font-weight: 400;
	width: 100%;
	box-sizing: border-box;
	color: inherit;
	border-radius: 0;
}

.filter-select:hover,
.filter-select:focus,
.filter-select:active {
	outline: none;
	border-color: #ddd;
	background: white;
	background-color: white;
	color: inherit;
	border-radius: 0;
}

/* Ensure dropdown options inherit sizing/weight */
.filter-select option {
	font-size: 17px;
	font-weight: 400;
	background: white;
	color: #333;
}

.filter-select option:checked,
.filter-select option:active {
	background: white;
	color: #333;
}

/* Simple green-circle checkboxes and radio buttons (apply to all NON-region checkboxes and beds radios) */
.models-filters .filter-group input[type="checkbox"]:not([id^="filter-region-"]),
.models-filters .filter-group input[type="radio"][id^="filter-beds-"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
	-webkit-appearance: none;
	appearance: none;
}

.models-filters .filter-group input[type="checkbox"]:not([id^="filter-region-"]):not([id^="filter-baths-"]) + label,
.models-filters .filter-group input[type="radio"][id^="filter-beds-"] + label {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-left: 32px;
	cursor: pointer;
	margin-right: 12px;
	white-space: nowrap;
}

.models-filters .filter-group input[type="checkbox"]:not([id^="filter-region-"]) + label::before,
.models-filters .filter-group input[type="radio"][id^="filter-beds-"] + label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	display: inline-block;
	box-sizing: border-box;
	transition: none;
}

.models-filters .filter-group input[type="checkbox"]:not([id^="filter-region-"]):checked + label::before,
.models-filters .filter-group input[type="radio"][id^="filter-beds-"]:checked + label::before {
	background: radial-gradient(#1D6452 55%, white 45%);
}

.models-filters input[type="checkbox"] ~ label:before {
	border:none;
}

.models-filters input[type="checkbox"] ~ label { padding-left:10px; }

.filter-subtext { font-weight:400; }

/* Prevent any scaling/jumping on check */
.models-filters .filter-group input[type="checkbox"] + label,
.models-filters .filter-group input[type="checkbox"]:checked + label {
	transform: none;
	vertical-align: bottom;
}
.models-filters .filter-group:has(input[type="checkbox"]),
.models-filters .filter-group:has(input[type="radio"]) {
	display: block;            /* stack the heading label above */
	overflow: visible;         /* no scroll needed */
}
.models-filters .filter-group > label:first-child {
	display: block;            /* heading label on its own line */
	margin-bottom: 0px;
	white-space: normal;       /* allow heading to wrap */
	font-weight: 500;
}
.models-filters .filter-group input[type="checkbox"] + label,
.models-filters .filter-group input[type="radio"] + label {
	display: inline-flex;      /* lay out options inline in one row */
	white-space: nowrap;
	margin-right: 12px;
	flex-wrap: wrap;           /* allow wrapping if needed */
}

/* Region and Baths checkboxes: plain square boxes with green checkmark, no fill */
/* Keep only the first label (group heading) on its own row; option labels inline */
.models-filters .filter-group > label:first-child {
	display: block;
}
.models-filters .filter-group > label:not(:first-child)[for^="filter-region-"],
.models-filters .filter-group > label:not(:first-child)[for^="filter-baths-"] {
	display: inline-flex;
	align-items: center;
	margin-right: 4px;
	margin-bottom: 0;
	vertical-align: middle;
	white-space: nowrap;
}
.models-filters .filter-group > label[for^="filter-region-"]::before,
.models-filters .filter-group > label[for^="filter-baths-"]::before {
	display: none !important;
	content: none !important;
}
.models-filters .filter-group input[type="checkbox"][id^="filter-region-"],
.models-filters .filter-group input[type="checkbox"][id^="filter-baths-"] {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	width: 24px;
	height: 24px;
	margin-right: 6px; /* reduced gap between options */
	-webkit-appearance: none;
	appearance: none;
	background: #fff;               /* keep white both states */
	border: 0;                       /* no border */
	padding: 0;                      /* no padding */
	border-radius: 2px;             /* square corners */
	vertical-align: middle;
	box-sizing: border-box;
}
.models-filters .filter-group input[type="checkbox"][id^="filter-region-"]::after,
.models-filters .filter-group input[type="checkbox"][id^="filter-baths-"]::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 9px;                      /* larger tick */
	height: 16px;                    /* larger tick */
	border: solid #1D6452;           /* green checkmark */
	border-width: 0 3px 3px 0;       /* thicker stroke */
	transform: translate(-50%, -60%) rotate(45deg); /* center the checkmark */
	opacity: 0;
}
.models-filters .filter-group input[type="checkbox"][id^="filter-region-"]:checked::after,
.models-filters .filter-group input[type="checkbox"][id^="filter-baths-"]:checked::after {
	opacity: 1;
}

.models-filters input[type="checkbox"] { visibility: visible; display: inline-block; }

.models-filters .filter-group label { letter-spacing: 0px; }

/* Results count (now outside filter box) */
.results-summary {
	margin: 20px 0;
	text-align: center;
}

.results-count {
	font-size: 17px;
	font-weight: 500;
	color: #070D0A;
}

/* Models Container - Tiles View (2 columns on desktop) */
.tiles-view .models-container {
	display:flex;
	flex-wrap:wrap;
	gap: 50px 25px;
	width:100%;
}

.tiles-view .model-tile {
	background: white;
	display: flex;
	flex-direction: column;
	height: 100%;
	width:calc(50% - 12.5px);
	max-width:calc(50% - 12.5px);
	box-shadow: 0 3px 1.5px rgba(0, 0, 0, 0.1), 0 3px 1.5px rgba(0, 0, 0, 0.1);
}

/* Optional 3-column layout for models tiles */
.tiles-view.columns-3 .model-tile {
	width: calc((100% - 50px) / 3);
	max-width: calc((100% - 50px) / 3);
}
@media (max-width: 1100px) {
	/* Collapse to 2 columns on medium screens */
	.tiles-view.columns-3 .model-tile {
		width: calc(50% - 12.5px);
		max-width: calc(50% - 12.5px);
	}
}
@media (max-width: 850px) {
	/* Force 1 column on mobile for 3-column layout */
	.tiles-view.columns-3 .model-tile {
		width: 100%;
		max-width: 540px;
		margin: 0 auto;
	}
}

.tiles-view .model-image {
	position: relative;
	width: 100%;
	background: #f0f0f0;
	overflow: hidden;
}

/* Slick Slider Styles for Model Hero Images */
.model-hero-slider {
	width:100%;
	height:100%;
}

.model-hero-slider .slick-list,
.model-hero-slider .slick-track {
	height: 100% !important;
}

.model-hero-slider .slick-track {
	display: flex !important;
	align-items: center;
}

.model-hero-slider .slick-slide {
	height: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.model-hero-slider .slick-slide > div {
	height: 100% !important;
	width: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.model-hero-slider img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

/* Slick dots - styled as bars */
.model-elevation-slider.slick-slider.slick-dotted { margin-bottom:0; }

.model-elevation-slider .slick-dots {
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	display: flex !important;
	justify-content: center;
	gap: 25px;
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 10;
}

.model-elevation-slider .slick-dots li {
	margin: 0;
	padding: 0;
	width: 65px;
	height: 3px;
}

.model-elevation-slider .slick-dots li button {
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: white;
	border-radius: 0;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background 0.3s ease;
}

.model-elevation-slider .slick-dots li.slick-active button {
	background: #A08355;
}

.model-elevation-slider .slick-dots li button:before {
	content: '';
}

.tiles-view .model-info-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 20px 10px;
	background: white;
	gap: 25px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	border-bottom: none;
}
/* Inset divider line to match 10px horizontal padding */
.tiles-view .model-info-row::after {
	content: '';
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 0;
	height: 1px;
	background: #bdc4c2;
}

.tiles-view .model-info-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 17px;
	color: #070D0A;
}

.tiles-view .model-info-item img {
	width: 29px;
	height: 27px;
	flex-shrink: 0;
}

.tiles-view .model-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.tiles-view .model-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tiles-view .model-content {
	padding: 20px 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.tiles-view .model-title {
	margin: 0 0 5px 0;
	font-size: 26px;
	font-weight: 500;
}

.tiles-view .model-title a {
	color: #1B6551;
	text-decoration: none;
	transition: color 0.3s ease;
}

.tiles-view .model-title a:hover {
	color: #145241;
}

.tiles-view .model-row {
	display: flex;
	gap: 20px;
	align-items: center;
}

.tiles-view .model-details {
	flex: 1;
	margin-bottom: 0;
}

.tiles-view .model-description {
	margin-top: 10px;
	font-size: 17px;
	font-weight: 400;
	line-height: 27px;
	color: #070D0A;
	max-width:447px;
}

.tiles-view .model-description p {
	margin: 0 0 10px 0;
}

.tiles-view .model-description p:last-child {
	margin-bottom: 0;
}

.tiles-view .model-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
}

.tiles-view .learn-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	padding: 19px 44px 19px 16px;
	background: #1B6551;
	color: white;
	text-align: center;
	text-decoration: none;
	font-weight: 400;
	font-size: 17px;
	transition: background 0.3s ease;
	background-image: url('../images/full-arrow-white.svg');
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 21px 18px;
	border-radius: 0;
	border: none;
	white-space: nowrap;
}

.tiles-view .learn-more-btn:hover {
	opacity: 0.85;
}

/* Model specs at bottom of tile */
.tiles-view .model-specs {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 15px 0 0 0;
	margin-top: 15px;
}

.tiles-view .model-spec {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 8px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
}

.tiles-view .model-spec .spec-label {
	font-weight: 500;
	color: #070D0A;
}

.tiles-view .model-spec .spec-value {
	font-weight: 400;
	color: #070D0A;
}

/* No Models Message */
.no-models {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.no-models p {
	font-size: 18px;
	margin: 0;
}

/* =============================================================================
   RESPONSIVE STYLES
   ============================================================================= */

/* Medium screens - wrap filters to 2 columns */
@media (max-width: 1100px) {
	.filters-grid {
		gap: 20px;
	}
	.tiles-view .model-description {
		max-width:100%;
		margin-top:20px;
	}
}

@media (max-width: 850px) {
	.tiles-view .model-tile { width:100%; max-width:540px; margin:0 auto; }
}


@media (max-width: 768px) {
	.tamarack-models-tiles .sec-title {
		text-align: center;
		padding-top: 50px;
	}
	
	.tamarack-models-tiles .models-container {
		padding-bottom: 50px;
	}
	
	.filters-header {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
		padding-top:75px;
	}
	
	.models-filters .clear-filters-btn {
		width: auto;
	}
	
	.tiles-view .models-container {
		grid-template-columns: 1fr;
	}
	
	/* Mobile Filter Panel */
	.mobile-filter-toggle-container {
		display: flex;
	}
	
	.mobile-filter-toggle {
		display: inline-block;
	}
	
	.mobile-filter-close {
		display: flex;
	}
	
	.mobile-show-results-container {
		display: flex;
	}

	.mobile-show-results-btn {
		margin:0 auto;
	}
	
	.models-filters {
		position: fixed;
		top: 0;
		left: -100%;
		width: 85%;
		max-width: 400px;
		height: 100vh;
		overflow-y: auto;
		z-index: 1000;
		margin-bottom: 0;
		transition: left 0.3s ease;
		box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
	}
	
	.models-filters.active {
		left: 0;
	}
	
	.filters-header {
		position: relative;
		padding-right: 0;
		padding-top: 50px;
	}
	
	.filters-grid {
		gap: 30px;
		flex-direction: column;
	}
	.tiles-view .model-info-row { gap:0; padding:20px 5px; justify-content:space-between }
}

