@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Adoption Search Page Theme Overrides */
.adoption-search .content {
	padding-top: 114px;
}

.adoption-search .header__logo {
	padding-top: 33px;
    padding-bottom: 22px;
}

.adoption-search .header__logo .logo-main {
	display: none!important;
}

.adoption-search .header__logo .logo-sticky {
	display: block!important;
}

.adoption-search .header__buttons a {
	color: #000;
}

.adoption-search .header__buttons a::before,
.adoption-search .header__buttons a::after {
	background-color: #000;
}

.adoption-search .header__language a::before {
	background-color: #000;
}

.adoption-search .header__language a svg path {
	stroke: #000;
}

.adoption-search .header__search--icon svg path {
	fill: #000;
}

.adoption-search .header__menu .first-floor__item>a {
	color: #000;
}
/* End Adoption Search Page Theme Overrides */

.mspca-search-page {
	font-family: 'Montserrat', sans-serif;
}

.mspca-search-hero {
	background: #0A5689;
	color: #fff;
	padding: 60px 0;
}

/* .mspca-search-hero .container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
} */

.mspca-hero-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}

.mspca-hero-subtitle {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 2px;
	margin: 0 0 10px;
}

.mspca-hero-title {
	font-size: 82px;
	font-weight: 700;
	margin: 0 0 20px;
	line-height: 1.1;
}

.mspca-hero-description {
	font-size: 18px;
	line-height: 1.6;
	margin: 0;
    max-width: 950px;
}

.mspca-search-wrapper {
	background-color: #F3F3F3;
}

.mspca-search-container {
	max-width: 1350px;
	margin: 0 auto;
	padding: 60px 0 120px!important;
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 70px;
	align-items: start;
}

.mspca-sidebar-wrapper {
	position: sticky;
	top: 40px;
	max-width: 360px;
}

.mspca-search-sidebar {
	background: #fff;
	padding: 40px 30px;
    box-shadow: 0px 4px 8px 0px #00000017;
}

.mspca-sidebar-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #000;
}

.mspca-sidebar-subtitle {
	font-size: 18px;
	font-weight: 600;
	color: #BABABA;
	margin: 0 0 30px;
	letter-spacing: 1.5px;
}

.mspca-sidebar-subtitle:hover {
	cursor: pointer;
}

.mspca-filter-group {
	margin-bottom: 30px;
	position: relative;
}

/* Custom dropdown */
.mspca-custom-select {
	position: relative;
	width: 100%;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.mspca-select-trigger {
	width: 100%;
	padding: 5px 0;
    border-bottom: 1px solid #8F8F8F;
	background: #FFFFFF;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px;
	font-family: 'Montserrat', sans-serif;
	color: #000000;
	font-weight: 400;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.mspca-custom-select.has-value .mspca-select-trigger {
	font-weight: 700;
}

.mspca-select-trigger:hover {
	border-color: #0A5689;
}

.mspca-select-trigger svg {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
	color: #000;
	flex-shrink: 0;
	margin-left: 10px;
}

.mspca-custom-select.open .mspca-select-trigger {
	border-color: #0A5689;
}

.mspca-custom-select.open .mspca-select-trigger svg {
	transform: rotate(180deg);
}

.mspca-select-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #FFFFFF;
	border-top: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	z-index: 1000;
	box-sizing: border-box;
	padding: 15px 0;
}

.mspca-custom-select.open .mspca-select-options {
	max-height: 300px;
	opacity: 1;
	visibility: visible;
	overflow-y: auto;
}

.mspca-select-option {
	padding: 10px 20px;
	cursor: pointer;
	font-size: 16px;
	font-family: 'Montserrat', sans-serif;
	color: #000;
	transition: background-color 0.15s ease;
	background: #FFFFFF;
}

.mspca-select-option:last-child {
	border-bottom: none;
}

.mspca-select-option:hover {
	font-weight: 600;
}

.mspca-select-option.selected {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
}

/* Scrollbar styling */
.mspca-select-options::-webkit-scrollbar {
	width: 6px;
}

.mspca-select-options::-webkit-scrollbar-track {
	background: #F5F5F5;
}

.mspca-select-options::-webkit-scrollbar-thumb {
	background: #CCCCCC;
	border-radius: 3px;
}

.mspca-select-options::-webkit-scrollbar-thumb:hover {
	background: #999999;
}

.mspca-filter-group input[type="hidden"] {
	display: none;
}

.mspca-community-banner {
	margin-top: 20px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	background: #fff;
}

.mspca-community-banner:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mspca-community-banner a {
	display: block;
	line-height: 0;
}

.mspca-community-banner img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.mspca-community-banner-image {
	width: 100%;
	height: auto;
	display: block;
}

.mspca-search-main {
	min-height: 500px;
	position: relative;
}

.mspca-search-header {
	margin-bottom: 30px;
	margin-left: 15px;
}

.mspca-results-count {
	font-size: 20px;
	color: #000;
	margin: 0 0 20px;
}

.mspca-results-description {
	font-size: 15px;
	line-height: 1.6;
	color: #000;
	margin: 0;
}

.mspca-pets-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 40px;
	min-height: 600px;
}

.mspca-loading-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0A5689;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 10;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.mspca-pet-card {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	height: 400px;
	width: 100%;
}

.mspca-pet-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.mspca-pet-card-image {
	width: 100%;
	height: 400px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #f0f0f0;
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.mspca-foster-badge {
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	height: 200px;
	overflow: hidden;
	z-index: 10;
	pointer-events: none;
}

.mspca-foster-text {
	position: absolute;
	top: 35px;
	left: -75px;
	width: 280px;
	text-align: center;
	transform: rotate(-45deg);
	background: #199BD8;
	color: white;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 8px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	z-index: 11;
}

.mspca-pet-card-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.4s ease;
	z-index: 0;
}

.mspca-pet-card:hover .mspca-pet-card-image::before {
	transform: scale(1.1);
}

.mspca-pet-card-overlay {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
	width: 100%;
	padding: 25px 20px 20px;
	position: relative;
	z-index: 1;
}

.mspca-pet-name {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
	transition: text-decoration 0.3s ease;
}

.mspca-pet-card:hover .mspca-pet-name {
	text-decoration: underline;
}

.mspca-pet-meta {
	margin: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
}

.mspca-pet-location {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.9);
	display: inline-flex;
	align-items: center;
}

.mspca-pet-age {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.9);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mspca-pet-age svg {
	flex-shrink: 0;
}

.mspca-load-more-wrapper {
	text-align: center;
	margin-top: 60px;
}

.mspca-load-more-btn {
	background: #199BD8;
	color: #fff;
	border: none;
	padding: 14px 40px;
	font-size: 18px;
	font-weight: 700;
	border-radius: 30px;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	transition: background 0.3s, transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
	.mspca-load-more-btn:hover {
		background: #25a8b5;
		transform: scale(1.05);
	}
}

.mspca-load-more-btn:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: none;
}

.mspca-no-results {
	text-align: center;
	font-size: 18px;
	color: #7f8c8d;
	padding: 60px 20px;
	grid-column: 1 / -1;
}

.mspca-loading {
	text-align: center;
	padding: 40px;
	font-size: 16px;
	color: #7f8c8d;
}

@media (max-width: 1200px) {
	.mspca-search-container {
		grid-template-columns: 350px 1fr;
		gap: 40px;
		padding: 60px 30px 120px;
	}
	
	.mspca-pets-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 15px;
	}
}

@media (max-width: 1199px) {
	.adoption-search .content {
		padding-top: 153px;
	}
}

@media (max-width: 1024px) {
	.mspca-search-container {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 40px 30px 80px;
	}

	.mspca-sidebar-wrapper {
		position: static;
		width: 100%;
        max-width: unset;
        padding: 0 15px;
	}

	.mspca-pets-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.mspca-hero-title {
		font-size: 56px;
	}
	
	.mspca-hero-subtitle {
		font-size: 20px;
	}
	
	.mspca-hero-description {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.mspca-search-hero {
		padding: 40px 0;
	}
	
	/* .mspca-search-hero .container {
		padding: 0 20px;
	} */
	
	.mspca-hero-content {
		padding: 0 20px;
	}
	
	.mspca-hero-subtitle {
		font-size: 16px;
		letter-spacing: 1.5px;
		margin: 0 0 8px;
	}
	
	.mspca-hero-title {
		font-size: 40px;
		margin: 0 0 15px;
	}
	
	.mspca-hero-description {
		font-size: 14px;
		line-height: 1.5;
	}

	.mspca-search-container {
		padding: 30px 20px 60px;
	}
	
	.mspca-search-sidebar {
		padding: 30px 20px;
	}
	
	.mspca-sidebar-title {
		font-size: 20px;
	}
	
	.mspca-sidebar-subtitle {
		font-size: 16px;
		margin: 0 0 20px;
	}
	
	.mspca-select-trigger {
		font-size: 16px;
	}
	
	.mspca-select-option {
		font-size: 14px;
		padding: 10px 15px;
	}

	.mspca-pets-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		min-height: 400px;
	}
	
	.mspca-pet-card {
		height: 350px;
		max-width: 100%;
	}

	.mspca-pet-card-image {
		height: 350px;
	}
	
	.mspca-pet-name {
		font-size: 22px;
	}
	
	.mspca-pet-location,
	.mspca-pet-age {
		font-size: 16px;
	}
	
	.mspca-foster-badge {
		width: 140px;
		height: 140px;
	}
	
	.mspca-foster-text {
		font-size: 14px;
		top: 28px;
		left: -50px;
		width: 200px;
		padding: 6px 0;
	}
	
	.mspca-results-count {
		font-size: 18px;
		margin: 0 0 15px;
	}
	
	.mspca-results-description {
		font-size: 14px;
	}
	
	.mspca-load-more-wrapper {
		margin-top: 40px;
	}
	
	.mspca-load-more-btn {
		font-size: 16px;
		padding: 12px 32px;
	}
}

@media (max-width: 480px) {
	.mspca-search-hero {
		padding: 30px 0;
	}
	
	/* .mspca-search-hero .container {
		padding: 0 16px;
	} */
	
	.mspca-hero-content {
		padding: 0 16px;
	}
	
	.mspca-hero-subtitle {
		font-size: 14px;
		letter-spacing: 1px;
		margin: 0 0 6px;
	}
	
	.mspca-hero-title {
		font-size: 32px;
		margin: 0 0 12px;
	}
	
	.mspca-hero-description {
		font-size: 13px;
	}

	.mspca-search-container {
		padding: 20px 16px 40px;
	}

	.mspca-search-sidebar {
		padding: 24px 16px;
	}
	
	.mspca-sidebar-title {
		font-size: 18px;
		margin: 0 0 8px;
	}
	
	.mspca-sidebar-subtitle {
		font-size: 14px;
		margin: 0 0 20px;
		letter-spacing: 1px;
	}
	
	.mspca-filter-group {
		margin-bottom: 20px;
	}
	
	.mspca-select-trigger {
		font-size: 15px;
		padding: 8px 0;
	}
	
	.mspca-select-trigger svg {
		width: 16px;
		height: 16px;
	}
	
	.mspca-select-option {
		font-size: 14px;
		padding: 8px 12px;
	}
	
	.mspca-pets-grid {
		gap: 16px;
	}
	
	.mspca-pet-card {
		height: 320px;
	}
	
	.mspca-pet-card-image {
		height: 320px;
	}
	
	.mspca-pet-card-overlay {
		padding: 20px 16px 16px;
	}
	
	.mspca-pet-name {
		font-size: 20px;
		margin: 0 0 6px;
	}
	
	.mspca-pet-location,
	.mspca-pet-age {
		font-size: 15px;
	}
	
	.mspca-foster-badge {
		width: 120px;
		height: 120px;
	}
	
	.mspca-foster-text {
		font-size: 12px;
		top: 25px;
		left: -42px;
		width: 170px;
		padding: 5px 0;
	}
	
	.mspca-search-header {
		margin-bottom: 20px;
	}
	
	.mspca-results-count {
		font-size: 16px;
		margin: 0 0 12px;
	}
	
	.mspca-results-description {
		font-size: 13px;
	}
	
	.mspca-load-more-wrapper {
		margin-top: 30px;
	}
	
	.mspca-load-more-btn {
		font-size: 15px;
		padding: 10px 28px;
		border-radius: 25px;
	}
}

