/*
 * ShelterSync Blocks: default styling for the animal blocks, the search tabs and the appointment form.
 *
 * Moved here from ShelterSync Core's stylesheet so the plugin looks right with any theme. It reads the
 * theme's CSS variables (colours, radius, spacing) with fallbacks; a design restyles by overriding those
 * variables or by adding rules in its own stylesheet, which loads after this one.
 */

[type=search]{-webkit-appearance:textfield;outline-offset:-2px}
[type=search]::-webkit-search-decoration{-webkit-appearance:none}
/* Animals */
/* Animals Singular */
body.animals-template-default {
	header.wp-block-template-part {
		& + section, & + main {
			margin-top: 0;
		}
	}
	/* Container layout for multiple pills (if applicable) */
	.sheltersync-attributes-container {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin-top: 10px;
	}

	/* Base Pill Styling */
	.sheltersync-attribute-pill {
		display: inline-flex;
		align-items: center;
		justify-content: center;

		/* Reset native button styles since we upgraded the HTML tag */
		background: none;
		border: none;
		margin: 0;
		width: auto;
		overflow: visible;
		-webkit-appearance: none;

		/* Typography matching your clean theme fonts */
		font-family: inherit;
		font-size: 0.85rem;
		font-weight: 600;
		line-height: 1;
		color: var(--ssc-ink-navy, #2c3e50); /* Deep off-black/navy for crisp readability */

		/* Shape and spacing */
		background-color: var(--ssc-surface-alt, #f1f5f9); /* Soft, clean neutral background */
		padding: 8px 16px;
		border-radius: 100px; /* Perfect pill rounded edges */
		border: 1px solid var(--ssc-border, #e2e8f0);

		/* Performance optimized transition states */
		transform: translateY(0);
		transition: background-color 0.2s ease-in-out,
			border-color 0.2s ease-in-out,
			color 0.2s ease-in-out,
			transform 0.2s ease-in-out,
			box-shadow 0.2s ease-in-out;
		cursor: default;
		user-select: none;
	}

	/* Interactive States for Single Animal Filters */
	.sheltersync-attribute-pill.sheltersync-interactive-pill {
		cursor: pointer;
	}

	.sheltersync-attribute-pill.sheltersync-interactive-pill:hover {
		color: var(--ssc-slate-800, #1e293b); /* Slightly darker text on hover */
		background-color: var(--ssc-border, #e2e8f0); /* Darker slate shade */
		border-color: var(--ssc-border-strong, #cbd5e1);
		transform: translateY(-1px); /* Micro-lift effect */
	}

	.sheltersync-attribute-pill.sheltersync-interactive-pill:active {
		transform: translateY(1px); /* Tactile click response */
	}

	/* Accessibility: Ensure safe keyboard focus indications */
	.sheltersync-attribute-pill.sheltersync-interactive-pill:focus-visible {
		outline: 2px solid var(--ssc-focus, #3b82f6); /* Modern blue focus ring */
		outline-offset: 2px;
	}
}
/* Card Image Container */
.sheltersync-image-wrapper {
	width: 100%;
	/*! background-color: var(--blue-light, #f0f4f8); */
	/* allow badge to bleed out */
	position: relative;
}
.sheltersync-image-wrapper .image-frame {
	width: 100%;
	aspect-ratio: var(--aspect-ratio-animal-cards);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sheltersync-image-wrapper .animal-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	transform: scale(1);
}
.is-fallback-image .sheltersync-animal-image-link {
	border: 3px solid;
}
.sheltersync-image-wrapper:not(.is-fallback-image):hover .animal-card-img {
	transform: scale(1.14);
}
/* Fallback Branding Styles - Restores full height aspect ratio */
.sheltersync-image-wrapper.is-fallback-image {
	display: flex;
	flex-direction: column;
}
.sheltersync-image-wrapper.is-fallback-image .image-frame {
	aspect-ratio: var(--aspect-ratio-animal-cards);
	height: auto;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	text-decoration: none;
}
.sheltersync-image-wrapper.is-fallback-image .animal-card-img {
	object-fit: contain;
	width: 50%;
	height: auto;
	max-height: 45%;
	opacity: 0.85;
	filter: grayscale(10%);
}
.sheltersync-fallback-notice-box {
	padding: 8px 16px;
	text-align: center;
	background: rgba(74, 144, 226, 0.08);
	border: 1px dashed rgba(74, 144, 226, 0.3);
	border-radius: 20px;
	display: inline-block;
	margin-top: 0;
}
p.sheltersync-fallback-notice {
	margin: 0;
	font-size: 0.8rem;
	color: var(--text);
	text-align: center;
	line-height: 1.3;
	font-weight: 500;
}
.sheltersync-animal-image-link {
	text-decoration: none;
	border-radius: 25px;
	overflow: hidden;
	display: block;
}
.sheltersync-fallback-heading {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}
.sheltersync-image-wrapper .no-photo-placeholder {
	color: var(--ssc-text-soft);
	font-weight: 600;
	font-size: 0.95rem;
	text-align: center;
}
/* Base Heart Action Overlay Layout */
.shelterluv-favorite-toggle {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;

	/* Clean button normalization defaults */
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	outline: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;

	/* Smooth scaling transition effect */
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Target the SVG icon details */
.shelterluv-favorite-toggle .favorite-icon {
	width: 28px;
	height: 28px;
	color: var(--orange);
	filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3)); /* Drop shadow to ensure high visibility against bright animal photos */
	transition: fill 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
/* Hover micro-interactions */
.shelterluv-favorite-toggle:hover {
	transform: scale(1.15);
}
/* Active clicked state fallback pattern helper */
.shelterluv-favorite-toggle.is-active .favorite-icon {
	fill: var(--ssc-favorite-active, #ff007f); /* Completely fills out the heart upon interaction/activation */
}
/* 1. Universal Setup for the Main Content Container */
.single-animals main.main-content {
	position: relative; /* Gives the pseudo-gradient a baseline layout block */
}
.single-animals main.main-content::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 350px; /* Controls how deep the colored glow goes down the page */
	pointer-events: none; /* Allows clicks to pass straight through to buttons/links */
	z-index: 0; /* Keeps it behind text and images */
}
/* Ensure inner content blocks sit securely over the gradient wrapper */
.single-animals main.main-content > * {
	position: relative;
	z-index: 1;
	padding-top: 200px;
}
/* 2. ♀️ Female Animal Profile Page Accent (brand accent: green) */
.single-animals.gender-female main.main-content::before {
	background: linear-gradient(to bottom, var(--green) 0%, transparent 100%);
}
/* 3. ♂️ Male Animal Profile Page Accent (brand accent: teal/blue) */
.single-animals.gender-male main.main-content::before {
	background: linear-gradient(to bottom, var(--blue) 0%, transparent 100%);
}
/* Component Grid Wrappers */
.wp-block-sheltersync-related-animals-wrapper {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px dashed var(--ssc-border-strong);
}
.related-animals-header {
	display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.related-animals-title {
	margin-bottom: 0;
	font-size: 1.5rem;
	color: var(--text);
}
.related-animals-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}
/* Individual Card Styling */
.related-animal-card {
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-animal-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
/* Image Aspect-Ratio Box */
.related-card-image-wrapper {
	position: relative;
	width: 100%;
	padding-top: 75%; /* Forces a clean 4:3 Aspect Ratio standard shape */
	background-color: var(--ssc-surface-alt, #f1f5f9);
	overflow: hidden;
}
.related-card-image-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Card Metadata Text Content */
.related-card-content {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.related-card-name {
	margin: 0 0 10px 0;
	font-size: 1.2rem;
}
.related-card-name a {
	text-decoration: none;
	color: var(--ssc-ink);
}
.related-card-name a:hover {
	color: var(--ssc-accent-dark, #2b7a91); /* Highlight with theme blue on link hovers */
}
/* Inline Pills Layout for Cards */
.related-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto; /* Pushes meta tags down cleanly to the baseline */
}
.related-meta-item {
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--ssc-surface-alt);
	color: var(--ssc-text-muted);
	padding: 4px 8px;
	border-radius: 4px;
}
/* Container and Hero Image */
.animal-gallery-wrapper .main-hero-container {
	position: relative;
	overflow: hidden;
}
.animal-gallery-wrapper .main-animal-hero {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 25px;
}
/* Navigation Arrows */
.animal-gallery-wrapper .nav-prev,
.animal-gallery-wrapper .nav-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	background: rgba(255, 255, 255, 0.7);
	border: none;
	padding: 10px;
	z-index: 10;
}
.animal-gallery-wrapper .nav-prev { left: 10px; }
.animal-gallery-wrapper .nav-next { right: 10px; }
/* Thumbnail Navigation */
.animal-gallery-wrapper .thumbnail-slider-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
	overflow-x: auto;
}
.animal-gallery-wrapper .thumb-btn {
	cursor: pointer;
	padding: 0;
	border-radius: 8px;
	border: 2px solid transparent; /* Default state */
	transition: 0.3s;
	flex-shrink: 0;
}
.animal-gallery-wrapper .thumb-btn img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}
/* Active State for visual feedback */
.animal-gallery-wrapper .thumb-btn.is-active {
	border-color: var(--ssc-accent-alt, #0073aa); /* Matches your theme accent color */
	opacity: 1;
}
.animal-gallery-wrapper .thumb-btn:not(.is-active) {
	opacity: 0.6;
}
/* Container holds a 3-column grid structure */
.animal-meta-wrapper.is-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	width: 100%;
}
/* Stacking fallback option */
.animal-meta-wrapper.is-stacked {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
/* Base Card Styles */
.animal-meta-wrapper .meta-item {
	display: flex;
	flex-direction: column;
	background-color: var(--blue-light);
	border-radius: 6px;
	padding: 12px 16px;
	justify-content: flex-start;
}
/* Small, Uppercased Grid Labels */
.animal-meta-wrapper .meta-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ssc-gray-500, #6b7280); /* Neutral slate-gray */
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}
/* Bold Primary Data Display */
.animal-meta-wrapper .meta-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--ssc-gray-900, #111827); /* Rich near-black color */
	line-height: 1.25;
}
/* Secondary calculated dynamic age text displayed under the DOB */
.animal-meta-wrapper .meta-extra {
	font-size: 13px;
	font-weight: 500;
	color: var(--ssc-text-muted, #4b5563); /* Slightly softer gray to represent calculated status */
	margin-top: 2px;
	line-height: 1.2;
}
/* Smooth responsiveness transitions for smaller viewports */
.animal-title-age-stack {
	display: flex;
	flex-direction: column;
	gap: 4px; /* Tight spacing between Title and Age */
	margin-bottom: 20px;
}
/* Big bold pet name */
.animal-title-age-stack .animal-stacked-title {
	font-size: 3rem; /* Adjust size to fit your theme's scale */
	font-weight: 800;
	color: var(--ssc-gray-900, #111827); /* Deep near-black */
	margin: 0;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
/* Pink, capitalized calculated age */
.animal-title-age-stack .animal-stacked-age {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--blue);
	letter-spacing: 0.05em;
	line-height: 1.2;
}
/* Badge Layout Container */
.sheltersync-badge-container {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 10;
}
/* Base Badge Trigger */
.sheltersync-badge-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: help;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.sheltersync-badge-link {
	text-decoration: none;
}
.sheltersync-badge-link .sheltersync-badge-trigger {
	cursor: pointer;
}
/* Ensure SVG Icons display & scale properly */
.sheltersync-badge-trigger svg {
	width: 14px;
	height: 14px;
	display: block;
	/*! fill: currentColor; */
}
/* --- Badge colors ---
   Every badge reads --ss-badge-bg / --ss-badge-fg. A rule's own colors (Pro > Display > Highlight Badges)
   are set inline on the container and win; the two starter rules below only supply defaults. */
.sheltersync-badge-container {
	--ss-badge-bg: var(--blue);
	--ss-badge-fg: var(--white);
}
.sheltersync-badge-trigger,
.sheltersync-badge-tooltip,
.sheltersync-badge-tooltip .tooltip-arrow {
	background-color: var(--ss-badge-bg);
	color: var(--ss-badge-fg);
}
.sheltersync-badge-trigger:hover {
	filter: brightness(0.92);
}
/* Starter rule: "FOSTER ME!" */
.sheltersync-badge-container.badge-foster-me {
	--ss-badge-bg: var(--yellow);
	--ss-badge-fg: var(--ssc-ink);
}
/* Starter rule: "IN FOSTER" */
.sheltersync-badge-container.badge-in-foster {
	--ss-badge-bg: var(--blue);
	--ss-badge-fg: var(--blue-light);
}
/* --- JS-Toggled Tooltip Engine --- */
.sheltersync-badge-tooltip {
	position: absolute;
	bottom: calc(100% + 10px); /* Hangs directly above the badge */
	left: 0;
	width: 260px; /* Expanded width for better text wrapping */
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	padding: 10px 14px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	pointer-events: none;

	/* Hidden initial state */
	opacity: 0;
	transform: translateY(5px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 9999;
}
/* Tooltip Arrow */
.sheltersync-badge-tooltip .tooltip-arrow {
	position: absolute;
	bottom: -6px;
	left: 18px;
	width: 12px;
	height: 12px;
	transform: rotate(45deg);
}
/* Standard Click/Tap Reveal (Controlled via JS .is-active class) */
.sheltersync-badge-container.is-active .sheltersync-badge-tooltip {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
/* --- Gallery Wrapper Overrides (Downward Tooltip) --- */
.animal-gallery-wrapper .sheltersync-badge-tooltip {
	bottom: auto;
	top: calc(100% + 10px);
	transform: translateY(-5px);
}
.animal-gallery-wrapper .sheltersync-badge-tooltip .tooltip-arrow {
	bottom: auto;
	top: -6px;
}
/* Gallery Click/Tap Reveal Override */
.animal-gallery-wrapper .sheltersync-badge-container.is-active .sheltersync-badge-tooltip {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
/* Tooltip Actionable CTA Styling */
.sheltersync-badge-tooltip .tooltip-cta {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	font-weight: 700;
}
/* Hide favorites query wrapper on initial load to prevent content flashing */
.favorites-query-wrapper {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}
/* Class injected by JS once filtering calculations complete */
.favorites-query-wrapper.is-loaded {
	opacity: 1;
	visibility: visible;
}
/* =========================================================================
ShelterSync Custom Animal Filters - Premium Card Layout
========================================================================= */
.sheltersync-filter-bar-container {
	width: 100%;
	max-width: 1300px; /* Aligns with your site content layout wrapper */
	margin: -40px auto 0 auto; /* Negative margin pulls it up into the banner area slightly if wanted, adjust as needed */
	padding: 0;
	position: relative;
	z-index: 10;
}
/* The White Floating Card Module */
.sheltersync-filter-bar-card {
	background: var(--white);
	border-radius: 16px;
	padding: 24px 32px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
	display: flex;
	gap: 32px;
	align-items: flex-end;
}
/* Individual Dropdown Wrapper Blocks */
.sheltersync-filter-bar-card .filter-group {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1; /* Makes them fill out space evenly */
}
/* Hard constraint sizes to mimic the example design widths */
.sheltersync-filter-bar-card .filter-group:nth-child(1),
.sheltersync-filter-bar-card .filter-group:nth-child(2) {
	flex: 0 1 240px;
}
/* Small Uppercase Headers over Dropdowns */
.sheltersync-filter-bar-card .filter-group label {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--ssc-ink);
	margin-bottom: 8px;
	letter-spacing: 0.5px;
}
/* Minimalist Bottom Border Input Text Field */
.sheltersync-filter-bar-card select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: transparent !important;
	border: none !important;
	border-bottom: 2px solid var(--ssc-ink) !important;
	border-radius: 0;
	padding: 8px 24px 8px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
	width: 100%;
	transition: border-color 0.2s ease;
	font-family: var(--fontTheme);
}
/* Custom dropdown icon anchor arrow indicator placement rules */
.sheltersync-filter-bar-card .filter-group::after {
	content: "";
	position: absolute;
	right: 4px;
	bottom: 14px;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--ssc-ink);
	pointer-events: none;
}
/* Focus and Active States */
.sheltersync-filter-bar-card select:focus {
	outline: none;
	border-bottom-color: var(--ssc-focus-accent, #4f46e5); /* Accent color change on active focus */
}
/* =========================================================================
ShelterSync Suggested Filters & Results Meta Panel Layout
========================================================================= */
/* 1. Meta Actions Container */
.sheltersync-filter-meta-actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 20px;
	padding: 0 35px;
}
/* 2. Structural Parent Layout Wrapper (Anti-CLS Baseline Space) */
.sheltersync-suggested-filters-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	min-height: 48px; /* Prevents Cumulative Layout Shift while JS populates pills */
}
.pill-count {
	margin-left: 3px;
}
body:has(.favorites-query-wrapper) .sheltersync-suggested-filters-wrapper {
	min-height: unset; /* Prevents Cumulative Layout Shift while JS populates pills */
}
/* Standalone Dimension Filters Row (Size & Age) */
.sheltersync-dimensions-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 28px;
	width: 100%;
}
.dimension-group {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.dimension-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ssc-text-muted);
	font-family: var(--fontTheme);
	white-space: nowrap;
}
.dimension-pills-list {
	display: inline-flex;
	align-items: center;
	gap: 8px 10px;
	flex-wrap: wrap;
}
@media (max-width: 768px) {
.sheltersync-dimensions-row {
		gap: 12px;
	}
}
/* 3. Collapsible Container Clamping Base */
#pet-suggested-filters-container,
.suggested-filters-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	width: 100%;
	min-height: 70px;
	max-height: 70px; /* Clamps layout space to 1 row of pills */
	overflow: hidden;
	will-change: max-height;
	transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Expanded Accordion Override State via JS */
#pet-suggested-filters-container.is-expanded,
.suggested-filters-inner.is-expanded {
	max-height: 600px;
}
/* 4. Section Label Styling */
.suggested-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ssc-text-muted);
}
/* 5. Pills List Flex Wrapper */
.suggested-pills-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
}
/* 6. Individual Interactive Pill Buttons */
.suggested-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	font-family: var(--fontTheme);
	font-size: 13px;
	font-weight: 600;
	color: var(--ssc-link);
	background-color: var(--blue-light);
	border: none;
	border-radius: 20px;
	box-sizing: border-box;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}
.suggested-pill:hover {
	color: var(--ssc-link);
	background-color: var(--blue-light);
}
/* Selected Active Highlight State */
.suggested-pill.is-active {
	color: var(--white);
	background-color: var(--orange);
	box-shadow: 0 2px 8px rgba(217, 70, 239, 0.3);
}
/* 7. Accordion Toggle Button ("Show All" / "Hide") */
.sheltersync-toggle-filters-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 0;
	font-family: var(--fontTheme);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: var(--ssc-link);
	background: transparent;
	border: none;
	box-shadow: none;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}
.sheltersync-toggle-filters-btn:hover,
.sheltersync-toggle-filters-btn:focus {
	color: var(--ssc-link);
	background: transparent;
	outline: none;
	text-decoration: underline;
}
/* 8. Structural Chevron Icon Animation */
.sheltersync-toggle-filters-btn .chevron {
	display: inline-block;
	flex-shrink: 0;
	transform: rotate(0deg);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sheltersync-toggle-filters-btn[aria-expanded="true"] .chevron {
	transform: rotate(180deg);
}
/* 2. Entrance Animation: Keyframe trigger when grid content loads */
/* 3. Replaced Style Implementations for Cleaned Animal Meta Container */
.sheltersync-animal-meta-wrapper {
	text-decoration: none;
	display: flex;
	gap: 12px;
}
.sheltersync-animal-meta-wrapper .meta-item.meta-weight::after,
.meta-weight .meta-value::after {
	content: ' lb.';
}
.sheltersync-animal-meta-wrapper.is-layout-inline {
	flex-wrap: wrap;
	align-items: center;
	margin: 0 10px;
}
.sheltersync-animal-meta-wrapper.is-layout-stacked {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
/* 4. Meta Labels Badges Formatting */
.sheltersync-animal-meta-wrapper .meta-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	/* Typography matching your clean theme fonts */
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	color: var(--ssc-ink-navy, #2c3e50); /* Deep off-black/navy for crisp readability */

	/* Shape and spacing */
	background-color: var(--ssc-surface-alt, #f1f5f9); /* Soft, clean neutral background */
	padding: 8px 12px;
	border-radius: 100px; /* Perfect pill rounded edges */
	border: 1px solid var(--ssc-border, #e2e8f0);

	/* Smooth hover effect */
	transform: translateY(0);
	transition: all 0.2s ease-in-out;
	cursor: default;
	user-select: none;
}
/* Interactive subtle lift when hovered */
.sheltersync-animal-meta-wrapper .meta-item:hover {
	background-color: var(--ssc-border);
	color: var(--black);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* ==========================================================================
ShelterSync Pet Card Typography & Proximity Adjustments
========================================================================== */
/* 1. Eliminate the huge default spacing between the image and title */
.pet-card .wp-block-post-title {
	margin-top: 12px;    /* Forces WordPress core layout overrides down */
	margin-bottom: 6px;   /* Pulls the meta labels row up closer to the name */
	font-size: 1.4rem;              /* Clean up size scaling if needed */
	line-height: 1.2;
}
/* 2. Anchor link styling inside the H3 title */
.pet-card .wp-block-post-title a {
	color: var(--ssc-ink-alt, #1a1a1a);                 /* Clean dark title */
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-block;
}
/* 3. Subtle interactive feedback when someone hovers anywhere near the name */
.pet-card .wp-block-post-title a:hover {
	color: var(--ssc-accent-alt, #0073aa);                 /* Matches your theme or target link hover color */
	text-decoration: underline;     /* Optional: adds classic visual indicator */
}
/* Note: weight badge display on pet cards is controlled dynamically via block attributes (showWeight) */
/* .sheltersync-pet-card .meta-item.meta-badge.meta-weight { display: none; } */
/* ==========================================================================
ShelterSync Single Animal Profile Attribute Badges
========================================================================== */
/* Outer Layout block containment layer */
.sheltersync-attributes-container {
	margin-top: 15px;
	margin-bottom: 15px;
}
/* Attributes Header Configuration */
.sheltersync-attributes-label {
	margin: 10px 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ssc-text-muted);
	font-weight: 700;
	width: 100%;
}
/* Dynamic Flex layout track rows */
.sheltersync-attributes-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	width: 100%;
}
/* =========================================================================
ShelterSync Standalone Animal Sorter Dropdown Layout
========================================================================= */
.sheltersync-sort-container .sheltersync-sort-select:focus {
	outline: none;
	box-shadow: none;
}
/* =========================================================================
ShelterSync Bottom Counter & Sorting Row Actions Track
========================================================================= */
/* The Parent Wrapper Row: Stays perfectly balanced across the horizontal track */
.sheltersync-filter-meta-counter-row {
	border-top: 1px solid var(--ssc-surface-alt);
	padding-top: 20px;
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 24px;
	box-sizing: border-box;
}
/* -------------------------------------------------------------------------
ShelterSync Sticky Counter & Actions Bar (Pure JS Clone Method)
------------------------------------------------------------------------- */
.sheltersync-sticky-bar-clone {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9990;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	border-bottom: 1px solid var(--ssc-border, #e2e8f0);
	margin: 0;
	padding: 10px calc(max(24px, (100% - 1300px) / 2));
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;

	/* Default off-screen state (exact same mechanism as .ssc-sticky-header-clone) */
	transform: translateY(-120%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.sheltersync-sticky-bar-clone.is-active {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.sheltersync-sticky-bar-clone .filter-results-count-heading {
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
}
.sheltersync-sticky-bar-clone .filter-results-count-heading:hover {
	color: var(--wp--preset--color--orange, #e66245);
}
/* Sticky Dimensions Row (Size & Age) */
.sheltersync-sticky-bar-clone .sticky-dimensions-row {
	display: inline-flex;
	align-items: center;
	gap: 12px 18px;
	flex: 1 1 auto;
	justify-content: center;
	margin: 0 10px;
	width: auto;
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .dimension-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .dimension-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ssc-text-muted);
	white-space: nowrap;
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .dimension-pills-list {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .suggested-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-family: var(--fontTheme);
	font-size: 13px;
	font-weight: 600;
	color: var(--ssc-link);
	background-color: var(--blue-light);
	border: none;
	border-radius: 20px;
	box-sizing: border-box;
	white-space: nowrap;
	cursor: pointer;
	line-height: 1.2;
	min-height: 30px;
	transition: all 0.2s ease-in-out;
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .suggested-pill:hover {
	color: var(--ssc-link);
	background-color: var(--blue-light);
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .suggested-pill.is-active {
	color: var(--white);
	background-color: var(--orange);
	box-shadow: 0 2px 8px rgba(217, 70, 239, 0.3);
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .suggested-pill .pill-count {
	margin-left: 3px;
	opacity: 0.85;
}
.sheltersync-sticky-bar-clone .sticky-dimensions-row .suggested-pill.is-active .pill-count {
	color: var(--white);
	opacity: 0.95;
}
/* Sticky Reset Button */
.sheltersync-sticky-bar-clone .sticky-reset-btn {
	min-height: 38px;
	height: 38px;
	padding: 4px 14px;
	font-size: 13px;
}
.sheltersync-sticky-bar-clone .sticky-reset-btn:not(.is-active) {
	display: none !important;
}
.sheltersync-sticky-bar-clone .sheltersync-filter-meta-right-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
@media (max-width: 1100px) {
.sheltersync-sticky-bar-clone .sticky-dimensions-row {
		overflow-x: auto;
		justify-content: flex-start;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
.sheltersync-sticky-bar-clone .sticky-dimensions-row::-webkit-scrollbar {
		display: none;
	}
}
@media (max-width: 860px) {
.sheltersync-sticky-bar-clone .sticky-dimensions-row {
		display: none !important;
	}
}
@media (max-width: 768px) {
.sheltersync-sticky-bar-clone {
		padding: 6px 14px;
		gap: 8px;
		justify-content: space-between;
	}
.sheltersync-sticky-bar-clone .filter-results-count-heading {
		font-size: 14px;
		width: auto !important;
		flex-shrink: 0;
		text-align: left;
		margin: 0;
	}
.sheltersync-sticky-bar-clone .sheltersync-filter-meta-right-actions {
		display: flex !important;
		align-items: center;
		gap: 8px;
		width: auto !important;
		flex-shrink: 0;
		margin-left: auto;
	}
.sheltersync-sticky-bar-clone .sticky-reroll-btn {
		display: none !important;
	}
.sheltersync-sticky-bar-clone #sticky-pet-favorites-link {
		display: none !important;
	}
.sheltersync-sticky-bar-clone .sheltersync-sort-label {
		display: none !important;
	}
.sheltersync-sticky-bar-clone .sheltersync-sort-container {
		min-height: 34px;
		height: 34px;
		padding: 2px 10px;
		border-radius: 9999px;
	}
.sheltersync-sticky-bar-clone .sheltersync-sort-select {
		font-size: 12px;
		max-width: 140px;
	}
.sheltersync-sticky-bar-clone .sticky-reset-btn {
		min-height: 34px;
		height: 34px;
		padding: 2px 10px;
		font-size: 12px;
	}
}
@media (max-width: 480px) {
.sheltersync-sticky-bar-clone {
		padding: 6px 10px;
		gap: 6px;
	}
.sheltersync-sticky-bar-clone .filter-results-count-heading {
		font-size: 13px;
	}
.sheltersync-sticky-bar-clone .sheltersync-sort-container {
		padding: 2px 8px;
	}
.sheltersync-sticky-bar-clone .sheltersync-sort-select {
		font-size: 11px;
		max-width: 125px;
	}
.sheltersync-sticky-bar-clone .sticky-reset-btn {
		padding: 2px 8px;
		font-size: 11px;
	}
}
/* Page Favorites */
.page-favorites  {
	.no-favorites-message .wp-block-button__link.wp-element-button {
		padding: 12px 32px;
		height: unset;
	}
	.sheltersync-suggested-filters-wrapper {
		display: none;
	}
	.sheltersync-filter-meta-counter-row {
		border-top: none;
	}
}
/* Left Grouping: Dynamic Counter Results Heading */
.filter-results-count-heading {
	font-size: 22px;
	font-weight: 700;
	color: var(--ssc-ink);
	margin: 0;
	padding: 0;
	font-family: var(--fontTheme);
	line-height: 1.2;
}
/* All Sort Logic Below Here */
/* Right Side Actions Track */
.sheltersync-filter-meta-right-actions {
	display: flex;
	align-items: center;
	gap: 12px; /* Clean spacing across Clear button, Dice, and Sorter */
}
/* -------------------------------------------------------------------------
Clear All Reset Trigger Action Link
------------------------------------------------------------------------- */
.sheltersync-filter-actions {
	display: inline-flex;
	align-items: center;
}
#pet-filter-reset,
.sticky-reset-btn {
	background-color: var(--ssc-error-bg, #fee2e2); /* Soft pill container red background layout */
	color: var(--ssc-error-text, #991b1b);
	border: 2px solid var(--ssc-error-border, #fecaca);
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 9999px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--fontTheme);
	white-space: nowrap;

	/* Hidden layout preparation until filters change */
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, background-color 0.2s ease, border-color 0.2s ease;
}
#pet-filter-reset:hover,
.sticky-reset-btn:hover {
	background-color: var(--ssc-error-border, #fecaca);
	border-color: var(--ssc-error-accent, #f87171);
	color: var(--ssc-error-text-strong, #7f1d1d);
	text-decoration: none;
}
/* Triggered layout active display setup via runtime JavaScript targeting block */
#pet-filter-reset.is-active,
.sticky-reset-btn.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}
/* -------------------------------------------------------------------------
Reroll / Shuffle Dice Button
------------------------------------------------------------------------- */
.sheltersync-reroll-btn {
	background: var(--white, #ffffff);
	border: 2px solid var(--ssc-border, #e2e8f0);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: none; /* Hidden by default until sort === 'rand' */
	align-items: center;
	justify-content: center;
	line-height: 1;
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	flex-shrink: 0;
}
.sheltersync-reroll-btn:hover {
	border-color: var(--ssc-text-soft);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px) scale(1.08);
}
.sheltersync-reroll-btn:active {
	transform: scale(0.95);
}
/* Visibility state toggle */
.sheltersync-reroll-btn.is-visible {
	display: inline-flex;
}
.reroll-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 20px;
}
/* One-shot 360-degree dice tumble animation */
.reroll-icon.is-spinning {
	animation: sheltersync-dice-tumble 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}
.reroll-icon img.emoji {
	width: 100%;
	height: 100%;
	vertical-align: middle;
	pointer-events: none;
}
/* -------------------------------------------------------------------------
Unified Inline Sorter Dropdown Component (Elevated Pill Badge)
------------------------------------------------------------------------- */
.sheltersync-sort-container {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--white);
	border: 2px solid var(--ssc-border);
	border-radius: 9999px;
	padding: 8px 18px 8px 16px;
	min-height: 44px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	cursor: pointer;
	box-sizing: border-box;
}
.sheltersync-sort-container:hover {
	border-color: var(--ssc-text-soft);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
	transform: translateY(-1px);
}
.sheltersync-sort-container:focus-within {
	border-color: var(--wp--preset--color--orange, #e66245);
	box-shadow: 0 0 0 3px rgba(230, 98, 69, 0.18), 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}
.sheltersync-sort-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ssc-text-soft, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-family: var(--fontTheme);
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	pointer-events: none; /* Clicking anywhere on the label triggers the container button */
	display: inline-flex;
	align-items: center;
}
/* Styled Minimal Dropdown inside Elevated Pill */
.sheltersync-sort-select {
	flex: 1;
	height: 100%;
	padding: 4px 26px 4px 2px;
	border: none !important;
	border-radius: 0;
	background-color: transparent !important;
	font-size: 15px;
	font-weight: 700;
	color: var(--ssc-slate-900, #0f172a);
	cursor: pointer;
	font-family: var(--fontTheme);
	outline: none !important;
	box-shadow: none !important;
	transition: color 0.15s ease-in-out;
	line-height: 1.3;

	/* Clean custom native arrow layout setup */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
	background-repeat: no-repeat;
	background-position: calc(100% - 2px) center;
}
.sheltersync-sort-select:focus {
	outline: none !important;
	box-shadow: none !important;
}
select.sheltersync-sort-select > option {
	padding: 8px 12px;
	font-weight: 600;
	color: var(--ssc-ink);
	background: var(--white);
}
/* All Sort Logic Above Here */
/* =========================================================================
ShelterSync Branded Dynamic Card Enhancements
========================================================================= */
.pet-card {
	/*! background-color: #ffffff; */
	/*! border-radius: 12px; */
	/*! padding-bottom: 16px; */
	/*! transform: translateY(0); */
	/* Transition Layering for standard hovers */
	/*! transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
	box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); */
	/*! will-change: transform, box-shadow; */
}
/* Replicating the exact brand hover from your style sheet */
.pet-card:hover {
	/*! transform: translateY(-4px); */
	/*! box-shadow: var(--box-shadow); */
}
/* Text Layout Fix (Padding Alignment) */
.pet-card h3,
.pet-card .pet-name,
.pet-card .filter-results-count-heading {
	padding-left: 16px;
	padding-right: 16px;
	margin-top: 12px;
}
.pet-card .pet-meta-tags-row {
	padding-left: 16px;
	padding-right: 16px;
	margin-top: 8px;
}
/* Target only the inner card inputs wrapper and suggested tags on the favorites page */
body.page-favorites .sheltersync-filter-bar-card,
body.page-favorites #pet-suggested-filters-container,
body.page-favorites #toggleFiltersBtn {
	display: none;
}
/* Ensure the results row remains visible and neatly spaced */
body.page-favorites .pet-filter-results-counter-row {
	margin-top: 2rem;
}
/* ==========================================================================
ShelterSync Search Bar Brand Styling
========================================================================== */
/* Container Alignment & Spacing */
.sheltersync-search-bar {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 18px;
	margin-bottom: 24px;
	width: 100%;
	max-width: 100%; /* Aligns neatly alongside the filter bar width */
}
/* Label matching upper filter typography */
.sheltersync-search-bar label {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ssc-ink);
}
/* Input Wrapper for Icon Position Scope */
.sheltersync-search-bar .search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}
/* Decorative Search Icon */
.sheltersync-search-bar .search-input-wrapper::before {
	content: "";
	position: absolute;
	left: 14px;
	width: 16px;
	height: 16px;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b6b94' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z' /%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0.75;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Search Input Styling */
.sheltersync-search-bar input[type="search"].sheltersync-search-input {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 40px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ssc-ink) !important;
	background-color: var(--blue-light, #f0f7fa) !important;
	border: 2px solid transparent !important;
	border-radius: 22px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	outline: none;
	transition: all 0.25s ease-in-out;
	-webkit-appearance: none;
	appearance: none;
}
/* Placeholder Styling */
.sheltersync-search-bar input[type="search"].sheltersync-search-input::placeholder {
	color: var(--ssc-blue-gray, #78909c);
	font-weight: 400;
}
/* Hover State */
.sheltersync-search-bar input[type="search"].sheltersync-search-input:hover {
	background-color: var(--blue-light);
}
/* Focus State (Active Typing) */
.sheltersync-search-bar input[type="search"].sheltersync-search-input:focus {
	background-color: var(--white);
	border-color: var(--blue, #3399cc);
	box-shadow: 0 0 0 4px rgba(51, 153, 204, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05);
}
.sheltersync-search-bar:focus-within .search-input-wrapper::before {
	opacity: 1;
	transform: scale(1.05);
}
/* Hide Webkit Clear / Cancel X button for clean alignment */
.sheltersync-search-bar input[type="search"]::-webkit-search-decoration,
.sheltersync-search-bar input[type="search"]::-webkit-search-cancel-button,
.sheltersync-search-bar input[type="search"]::-webkit-search-results-button,
.sheltersync-search-bar input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}
/* Favorites Block Container */
.custom-favorites-block {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	line-height: 1;
	display: none;
}
/* Link Anchor */
.custom-favorites-block .favorites-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	color: var(--orange, #e05a47); /* Uses theme orange CSS var with fallback */
	background: transparent;
	text-decoration: none;
	border: none;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Hover & Focus Interaction */
.custom-favorites-block .favorites-link-button:hover,
.custom-favorites-block .favorites-link-button:focus {
	opacity: 0.8;
	transform: scale(1.08);
}
/* SVG Rendering Controls */
/* Custom Favorites Block - Base SVG (Outline) */
.custom-favorites-block .favorites-link-button svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	transition: fill 0.25 ease, transform 0.2s ease;
}
/* Filled Heart state when user has 1+ favorites saved */
.custom-favorites-block .favorites-link-button.has-favorites svg {
	fill: currentColor; /* Fills in the heart with your theme orange/accent color */
}
/* ==========================================================================
FAVORITES ENGINE ANIMATIONS
========================================================================== */
/* 1. Card Heart Toggle Animation */
.shelterluv-favorite-toggle {
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: pointer;
}
.shelterluv-favorite-toggle:hover {
	transform: scale(1.15);
}
.shelterluv-favorite-toggle:active {
	transform: scale(0.85);
}
/* Play burst effect when favorited class is added */
.shelterluv-favorite-toggle.is-favorited svg {
	animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* 2. Custom Favorites Footer Block Animation Updates */
.custom-favorites-block .favorites-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	color: var(--orange, #e05a47);
	background: transparent;
	text-decoration: none;
	border: none;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.custom-favorites-block .favorites-link-button:hover,
.custom-favorites-block .favorites-link-button:focus {
	opacity: 0.85;
	transform: scale(1.12);
}
.custom-favorites-block .favorites-link-button svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	transition: fill 0.3s ease, stroke 0.3s ease, transform 0.2s ease;
}
/* Trigger subtle pulse animation on footer heart when user has saved pets */
.custom-favorites-block .favorites-link-button.has-favorites svg {
	fill: currentColor;
	animation: footerHeartBeat 0.5s ease-in-out;
}
/* Gallery Grid Layout */
.sheltersync-gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
	gap: var(--gallery-gap, 12px);
	margin-top: 15px;
}
/* Gallery Card Style */
.sheltersync-gallery-card {
	border: 1px solid var(--ssc-border-strong);
	border-radius: 8px;
	overflow: hidden;
	background: var(--white);
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sheltersync-gallery-link {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.sheltersync-gallery-img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}
.sheltersync-gallery-card:hover .sheltersync-gallery-img {
	transform: scale(1.04);
}
/* Fallback Logo Styling in Gallery Grid */
.sheltersync-gallery-card.is-fallback-image {
	background-color: var(--ssc-surface-alt);
	display: flex;
	align-items: center;
	justify-content: center;
}
.sheltersync-gallery-card.is-fallback-image .sheltersync-gallery-img {
	object-fit: contain;
	padding: 20px;
	opacity: 0.8;
}
/* Admin Message Placeholder */
.sheltersync-no-gallery.admin-placeholder {
	background: var(--ssc-surface-alt);
	border: 1px dashed var(--ssc-border-strong);
	padding: 30px;
	text-align: center;
	color: var(--ssc-gray-700, #50575e);
	border-radius: 6px;
	font-size: 13px;
}
/* Fallback Outer Layout */
.animal-gallery-wrapper.is-fallback-display {
	width: 100%;
}
.animal-gallery-wrapper.is-fallback-display .main-hero-container {
	background-color: var(--ssc-surface-subtle, #f8fafc);
	border-radius: 25px;
	min-height: 380px;
	display: flex;
	flex-direction: column; /* Stacks image and notice text vertically */
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	box-sizing: border-box;
	position: relative; /* Keeps Foster Badge and Heart aligned */
}
/* Fallback Logo */
.animal-gallery-wrapper.is-fallback-display .main-animal-hero {
	width: auto;
	max-width: 65%;
	max-height: 180px;
	object-fit: contain;
	margin: 0 auto;
	border-radius: 0;
}
/* Cute Visual Feedback Text */
.sheltersync-fallback-notice {
	margin-top: 18px;
	font-size: 0.95rem;
	color: var(--ssc-text-soft);
	text-align: center;
	max-width: 80%;
	line-height: 1.4;
	font-weight: 500;
}
.sheltersync-fallback-notice span {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 4px;
}
.top-bar .custom-favorites-block svg {
	width: 20px;
	height: 20px;
}
/* ==========================================================================
Single Pet Video Section Layout & Responsiveness
========================================================================== */
.sheltersync-animal-video-wrapper {
	margin-top: 1.75rem;
	margin-bottom: 1.75rem;
	width: 100%;
}
.sheltersync-video-title {
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.sheltersync-video-item {
	margin-bottom: 1.25rem;
	width: 100%;
}
/* Responsive 16:9 Aspect Ratio Container for iFrames */
.sheltersync-video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 ratio */
	height: 0;
	overflow: hidden;
	max-width: 100%;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	background-color: var(--black, #000);
}
.sheltersync-video-container iframe,
.sheltersync-video-container object,
.sheltersync-video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
/* Native HTML5 Video styling */
.sheltersync-native-video {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* Fallback Text Link Styling */
.sheltersync-video-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	background-color: var(--blue);
	color: var(--white);
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out;
}
.sheltersync-video-link:hover {
	background-color: var(--blue);
}
.custom-back-button,
.wp-block-button__link.custom-pet-donate-button {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	background: var(--blue);
	color: var(--blue-light);
	border: 0;
	svg {
		fill: var(--orange);
		stroke: var(--orange);
	}
	&:hover {
		background: var(--orange);
		svg {
			fill: var(--blue);
			stroke: var(--blue);
		}
	}
}
.custom-back-button svg {
	color: var(--text) !important;
	stroke: var(--text) !important;
	fill: var(--blue-light) !important;
}
/* ==========================================================================
ShelterSync - Share & Print Block Component
========================================================================== */
.sheltersync-share-block-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 20px 0;
	text-align: center;
}
.pet-share-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.pet-share-bar .share-label {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ssc-text-muted);
}
.pet-share-bar .share-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.pet-share-bar .share-icons a,
.pet-share-bar .share-icons .share-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ssc-text-muted);
	transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
	text-decoration: none;
}
.pet-share-bar .share-icons a:hover {
	color: var(--ssc-ink);
	transform: translateY(-2px);
}
.pet-print-profile {
	margin-top: 4px;
}
.print-pet-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
	cursor: pointer;
}
.print-pet-link:hover {
	text-decoration: underline;
}
.print-pet-link svg {
	fill: currentColor;
}
/* ==========================================================================
ShelterSync - Explore Popular Results Block
========================================================================== */
.sheltersync-popular-results-wrapper {
	margin: 2rem 0;
}
.sheltersync-popular-results-wrapper .popular-results-card {
	background-color: var(--blue-light);
	border-radius: 24px;
	padding: 36px 24px;
	text-align: center;
	margin-bottom: 1.75rem;
}
.sheltersync-popular-results-wrapper .popular-results-heading {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--black);
	margin: 0 0 24px 0;
}
.sheltersync-popular-results-wrapper .popular-results-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	max-width: 860px;
	margin: 0 auto;
}
.sheltersync-popular-results-wrapper .popular-result-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 50px;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
	transform: translateY(0);
	color: var(--text);
	cursor: pointer;
	background-color: var(--white);
}
/* Outlined Pills (Standard Options) */
.sheltersync-popular-results-wrapper .popular-result-pill.pill-outline {
	background-color: var(--white);
	border: 1.5px solid var(--blue-border);
}
.sheltersync-popular-results-wrapper .popular-result-pill.pill-highlight,
.sheltersync-popular-results-wrapper .popular-result-pill.pill-outline:hover {
	background-color: var(--blue);
	color: var(--white, #fff);
	/*! border-color: var(--orange); */
	/*! box-shadow: var(--box-shadow); */
	/*! transform: translateY(-2px); */

}
/* Filled / Highlighted Pills ("See All" Options) */
.sheltersync-popular-results-wrapper .popular-result-pill.pill-highlight {
	background-color: var(--green);
	color: var(--text);
}
.sheltersync-popular-results-wrapper .popular-result-pill.pill-highlight:hover {
	/*! background-color: #4199ae; */
	/*! border-color: var(--text); */
}
/* Active Dynamic Filter Badge (Injected below 'Our Available Dogs') */
.sheltersync-active-filter-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	margin-bottom: 20px;
	padding: 6px 14px;
	background-color: var(--ssc-surface-alt);
	border: 1px solid var(--ssc-border-cool, #d0dbe5);
	border-radius: 20px;
	font-size: 0.9rem;
	color: var(--text);
}
.sheltersync-active-filter-badge .filter-label {
	color: var(--ssc-text-soft);
	font-weight: 500;
}
.sheltersync-active-filter-badge .filter-value {
	font-weight: 700;
	color: var(--ssc-ink);
}
.sheltersync-active-filter-badge .clear-filter-btn {
	background: var(--ssc-border-cool-2, #e0e6ed);
	border: none;
	border-radius: 12px;
	padding: 2px 8px;
	margin-left: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--orange);
	cursor: pointer;
	transition: all 0.2s ease;
}
.sheltersync-active-filter-badge .clear-filter-btn:hover {
	background: var(--orange);
	color: var(--white);
}
/* Offset anchor targets so the filter bar remains visible at top of viewport */
#dogs,
#cats,
#critters,
.page-section-pet-cards {
	scroll-margin-top: var(--anchor-offset); /* Adjust px to match filter bar height + padding */
}
/* Adopt a Pet Page Headings */
.page-section-pet-cards h2.wp-block-heading,
.page-section-pet-cards h2,
#dogs h2,
#cats h2,
#critters h2 {
	font-size: 2rem;
	line-height: 1.25;
	margin-top: 8px;
	margin-bottom: 12px;
}
/* ShelterSync Filter Notice Banner Styles - Hidden to streamline layout */
.sheltersync-filter-text-notice {
	display: none !important;
	margin-top: 10px;
	margin-bottom: 18px;
	font-size: 1.15rem;
	color: var(--ssc-text-muted);
	font-weight: 500;
	align-items: center;
	gap: 8px;
	clear: both;
}
.sheltersync-filter-text-notice .sheltersync-filter-text-highlight {
	color: var(--ssc-ink);
}
.sheltersync-filter-text-notice .sheltersync-notice-dismiss {
	background: none;
	border: none;
	padding: 0 4px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--ssc-text-soft);
	transition: color 0.15s ease;
}
.sheltersync-filter-text-notice .sheltersync-notice-dismiss:hover {
	color: var(--ssc-danger, #ef4444);
}
/* ==========================================================================
ShelterSync Dynamic Pet Grid & Loader Overlay
========================================================================== */
/* 1. Outer Wrapper (Acts as the fixed anchor for the loader) */
.sheltersync-grid-loader-wrapper {
	position: relative;
	width: 100%;
	min-height: 450px; /* Locks height during fetch so page footer doesn't jump */
}
/* 2. Floating Zero-Impact Loader Overlay */
.sheltersync-loader-overlay {
	position: absolute;
	top: 120px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 50;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sheltersync-loader-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}
/* Spinner Graphic */
.sheltersync-spinner {
	width: 40px;
	height: 40px;
	border: 3.5px solid rgba(0, 0, 0, 0.08);
	border-top-color: currentColor; /* Inherits parent accent color */
	border-radius: 50%;
	animation: shelterSyncSpin 0.7s infinite linear;
}
/* 3. Dynamic Pet Grid Base Layout */
.sheltersync-pet-grid {
	display: grid;
	gap: 1.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;

	/* Fallback column count variable */
	--sheltersync-grid-cols: 3;
	grid-template-columns: repeat(var(--sheltersync-grid-cols), minmax(0, 1fr));

	/* Layout containment prevents children swaps from disturbing outside elements */
	/*! contain: layout paint; */
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* -------------------------------------------------------------------------- */
/* Lifecycle State 1: Updating Grid (Dimmed during fetch)                     */
/* -------------------------------------------------------------------------- */
.sheltersync-pet-grid.is-updating {
	opacity: 0.25;
	pointer-events: none;
}
/* -------------------------------------------------------------------------- */
/* Lifecycle State 2: Active Grid State                                       */
/* -------------------------------------------------------------------------- */
.sheltersync-pet-grid.is-loaded {
	opacity: 1;
}
/* ==========================================================================
ShelterSync Selected Attributes Tags Container
========================================================================== */
.selected-tags-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.selected-tags-container .filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background-color: var(--ssc-cyan, #00bcd4); /* Cyan accent color matching your MVP pill style */
	color: var(--white, #ffffff);
	font-size: 13px;
	font-weight: 600;
	border-radius: 20px;
	line-height: 1.2;
	transition: background-color 0.2s ease;
	position: relative;
	cursor: pointer;
}
.remove-tag::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.selected-tags-container .filter-tag:hover {
	background-color: var(--ssc-cyan-dark, #0097a7);
}
.selected-tags-container .filter-tag .remove-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 4px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.selected-tags-container .filter-tag .remove-tag:hover {
	opacity: 1;
	transform: scale(1.2);
}
/* Hide "Favorited First" option on Favorites page */
body.page-favorites #pet-sort-dropdown option[value="favorited"] {
	display: none;
}
/* -------------------------------------------------------------------------
Saved Favorites Quick Link Pill Button
------------------------------------------------------------------------- */
.sheltersync-favs-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: var(--ssc-danger-bg, #ffe4e6); /* Soft rose background */
	color: var(--ssc-danger-strong, #e11d48);           /* Bold red-rose text */
	border: none;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 20px;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--fontTheme);
	white-space: nowrap;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.15s ease-in-out;
	transform: translateY(0);
	display: none !important;
}
.page-favorites .sheltersync-favs-btn {
	display: none;
}
.sheltersync-favs-btn:hover {
	background-color: var(--ssc-danger-border, #fecdd3);
	color: var(--ssc-danger-text, #be123c);
	transform: translateY(-1px);
}
.sheltersync-favs-btn:active {
	transform: translateY(0);
}
.sheltersync-favs-btn .fav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	line-height: 1;
}
.sheltersync-favs-btn .fav-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}
.view-all-animals-columns {
	.wp-block-group.is-relative {
		position: relative;
	}
	.wp-block-image {
		img {
			border: 5px solid var(--orange);
		}
	}
	.wp-block-heading {
		a {
			text-decoration: none;
		}
		a::after {
			content: '';
			display: block;
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			width: 100%;
			height: 100%;
		}
	}
}
/* ==========================================================================
2-Column Grid Layout (Mobile Stack Reversed / Desktop Side-by-Side)
========================================================================== */
.appointment-layout-grid {
	display: flex;
	flex-direction: column-reverse; /* Pet Card renders ABOVE form on mobile */
	gap: 2rem;
	margin-top: 1.5rem;
}
@media (min-width: 768px) {
.appointment-layout-grid {
		flex-direction: row;
		align-items: flex-start;
	}
.appointment-col-form {
		flex: 1 1 60%;
	}
.appointment-col-card {
		flex: 0 0 300px;
		position: sticky;
		top: 2rem;
	}
}
/* ==========================================================================
Pet Card Component
========================================================================== */
.appointment-pet-card {
	background: var(--white);
	border-radius: 12px;
	border: 1px solid var(--ssc-border);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
	overflow: hidden;
	text-align: center;
}
.pet-card-image-wrapper {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--ssc-surface-alt);
}
.pet-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pet-card-info {
	padding: 1.25rem;
}
.pet-card-info h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--text);
}
.pet-card-info .pet-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--primary);
	background-color: var(--ssc-teal-tint, #e6fffa);
	border-radius: 9999px;
}
/* Auto-filled Pet Name Field */
#animal-input {
	background-color: var(--ssc-surface-alt);
	font-weight: 600;
}
/* Appointment flow tabs ([shelter_appointment]): pill tabs above the form. */
.ssb-appt__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
}
.ssb-appt__tab {
	font: inherit;
	font-weight: 600;
	padding: 0.55rem 1.25rem;
	color: var(--blue);
	background: transparent;
	border: 2px solid var(--blue);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ssb-appt__tab:hover {
	background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.ssb-appt__tab[aria-selected="true"] {
	color: var(--white);
	background: var(--blue);
}
.ssb-appt__tab:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent);
	outline-offset: 2px;
}
.ssb-appt__heading {
	margin-top: 0;
}
.ssb-appt__note[hidden],
.ssb-appt .wpcf7-form label[hidden] {
	display: none;
}
.animal-adopt-row {
	align-items: flex-start;
	gap: clamp(1rem, 3vw, 2.25rem);
}
/* Species cards (View All Animals): three equal round photos with a title under each. */
.animal-adopt-row > .is-relative {
	flex: 1 1 0;
	min-width: 0;
}
.animal-adopt-row .wp-block-image {
	margin: 0 0 0.85rem;
}
.animal-adopt-row .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
}
.animal-adopt-row .wp-block-heading {
	margin: 0;
	font-size: clamp(1rem, 1.6vw, 1.3rem);
}
.view-all-animals-columns .wp-block-heading a {
	color: var(--blue);
}
.view-all-animals-columns {
	margin-top: 2.5rem;
	align-items: center;
}
/* ==========================================================================
Search Results Page & Navigation Tabs
========================================================================== */
/* Search Label & Dynamic H1 Title */
.search-page-label {
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--dark, #333333);
}
.search-results-heading {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	margin: 1.5rem 0 2rem;
	color: var(--wp--preset--color--dark, #222222);
}
/* Filter Navigation Tabs */
.search-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 1.25rem 0;
	align-items: center;
}
.search-tab-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	color: var(--wp--preset--color--dark, #333333);
	background-color: var(--wp--preset--color--light-gray, #f0f0f0);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
	cursor: pointer;
}
.search-tab-button:hover,
.search-tab-button:focus-visible {
	background-color: var(--wp--preset--color--gray-hover, #e0e0e0);
	color: var(--wp--preset--color--dark, #111111);
	text-decoration: none;
}
.search-tab-button.is-active {
	background-color: var(--blue, #008080);
	color: var(--white);
}
.search-tab-button.is-active:hover,
.search-tab-button.is-active:focus-visible {
	background-color: var(--blue, #006666);
}
/* Search Results Grid Cards */
.section-search-results ul.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.75rem;
	list-style: none;
	padding: 0;
	margin: 2rem 0;
}
.section-search-results ul.wp-block-post-template li.wp-block-post {
	position: relative; /* Anchor for the absolute pseudo-element */
	display: flex;
	flex-direction: column;
	background-color: var(--white, #ffffff);
	border: 1px solid var(--ssc-border, #e2e8f0);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Stretched Link: Expands title link to cover the full card area */
.section-search-results .wp-block-post-title a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}
/* Elevate card on hover */
.section-search-results ul.wp-block-post-template li.wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
	border-color: var(--wp--preset--color--primary, #008080);
	cursor: pointer;
}
/* Card Titles (H3) */
.section-search-results .wp-block-post-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.75rem 0;
	line-height: 1.3;
}
.section-search-results .wp-block-post-title a {
	color: var(--orange, #008080);
	text-decoration: none;
	transition: color 0.15s ease;
}
.section-search-results ul.wp-block-post-template li.wp-block-post:hover .wp-block-post-title a {
	color: var(--blue, #005555);
	text-decoration: underline;
}
/* Card Featured Image */
.section-search-results .wp-block-post-featured-image {
	margin: -1.5rem -1.5rem 1rem -1.5rem;
	overflow: hidden;
	border-top-left-radius: 11px;
	border-top-right-radius: 11px;
}
.section-search-results .wp-block-post-featured-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.section-search-results ul.wp-block-post-template li.wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}
/* Card Excerpt */
.section-search-results .wp-block-post-excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ssc-text-muted);
}
.section-search-results .wp-block-post-excerpt__excerpt {
	margin: 0;
}
/* ==========================================================================
Search Form Bar Styling
========================================================================== */
form.wp-block-search {
	margin-bottom: 1.5rem;
}
.wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: 100%;
	border-radius: 50px;
	overflow: hidden;
	background-color: var(--white);
	border: 2px solid var(--ssc-border);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Highlight border on input focus */
.wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary, #008080);
	box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}
/* Search Input Field */
.wp-block-search__input {
	flex: 1;
	border: none !important;
	outline: none !important;
	padding: 0.75rem 1.25rem !important;
	font-size: 1rem;
	color: var(--wp--preset--color--dark, #333333);
	background: transparent;
	box-shadow: none !important;
}
.wp-block-search__input::placeholder {
	color: var(--ssc-text-soft);
}
/* Search Submit Button */
.wp-block-search__button {
	border: none !important;
	background-color: var(--wp--preset--color--primary, #e26444) !important; /* Theme Accent/Primary Button */
	color: var(--white, #ffffff) !important;
	padding: 0.75rem 1.75rem !important;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 50px !important;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease !important;
}
.wp-block-search__button:hover,
.wp-block-search__button:focus-visible {
	background-color: var(--wp--preset--color--primary-dark, #d05333) !important;
	text-decoration: none;
}
/* Mobile Scroll Support */
@media (max-width: 600px) {
.search-filter-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
.search-filter-tabs::-webkit-scrollbar {
		display: none;
	}
.search-tab-button {
		white-space: nowrap;
		flex-shrink: 0;
	}
}
@media (min-width: 1201px) and (max-width: 1400px) {
.page-section.page-section-pet-cards > .wp-block-group {
		padding-inline: var(--padding-standard);
	}
}
/* Header Mobile Menu  */
@media (max-width: 1200px) {
.single-animals main.main-content > * {
		padding-top: 80px;
	}
}
/* Official Mobile Styling */
@media (max-width: 960px) {
.pet-content-columns .custom-back-button-wrapper,
	.hide-on-mobile {
		display: none !important;
	}
.page-section-pet-cards h2.wp-block-heading {
		font-size: 1.75rem;
	}
.filter-results-count-heading {
		font-size: 1rem;
	}
.related-animals-grid-container ul.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
.sheltersync-filter-bar-container {

	}
.sheltersync-filter-bar-card {
		margin: 0 35px;
	}
.page-section.page-section-pet-cards > .wp-block-group {
		padding-inline: 35px !important;
	}
}
@media (max-width: 992px) {
.sheltersync-pet-grid {
		grid-template-columns: repeat(min(var(--sheltersync-grid-cols), 2), minmax(0, 1fr));
	}
}
/* Guttenberg Mobile */
@media (max-width: 781px) {
.block-on-mobile {
		display: block !important;
	}
.custom-favorites-block .favorites-link-button:hover,
	.custom-favorites-block .favorites-link-button:focus {
		opacity: 1;
		transform: scale(1);
	}
.custom-favorites-block {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin: 0;
		line-height: 1;
		border-right: 1px solid var(--mobile-overlay-border-color, #dbe8ed);
		border-left: 1px solid var(--mobile-overlay-border-color, #dbe8ed);
		display: none;
	}
footer .custom-favorites-block {
		border-left: 0;
		border-right: 0;
	}
}
@media (max-width: 768px) {
.sheltersync-filter-bar-container {
		width: 100%;
		max-width: 100%;       /* Ensures it never exceeds the mobile viewport */
		margin: -20px auto 0 auto;
		padding: 0;       /* Keeps 16px gutter off screen edges */
		box-sizing: border-box;
	}
.sheltersync-filter-bar-card {
		width: 97%;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 20px 16px;
		box-sizing: border-box;
		overflow: hidden;      /* Clips any rogue child elements */
		margin: 0 auto;
	}
.sheltersync-filter-bar-card .filter-group,
	.sheltersync-filter-bar-card .filter-group:nth-child(1),
	.sheltersync-filter-bar-card .filter-group:nth-child(2) {
		width: 100%;
		flex: 1 1 auto;
		box-sizing: border-box;
	}
.sheltersync-filter-bar-card select {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
.sheltersync-suggested-filters-wrapper {
		min-height: auto;
		width: 100%;
	}
.sheltersync-suggested-filters-list,
	.sheltersync-suggested-filters-wrapper > div {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
.sheltersync-filter-meta-counter-row {
		/*! flex-direction: column; */
		/*! align-items: flex-start; */
		/*! gap: 16px; */
		/*! padding-top: 16px; */
		/*! margin-top: 16px; */
	}
.filter-results-count-heading {
		/*! font-size: 18px; */
		/*! width: 100%; */
	}
.sheltersync-filter-meta-right-actions {
		/*! width: 100%; */
		/*! justify-content: flex-end; */
		/*! flex-wrap: wrap; */
		/*! gap: 12px; */
	}
.sheltersync-sort-container select {
		max-width: 100%;
	}
.animal-meta-wrapper.is-grid {
		grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
	}
}
@media (max-width: 690px) {
.view-all-animals-columns {
		> .wp-block-column {
			text-align: center;
			margin-bottom: 1.75rem;
		}
		.wp-block-buttons {
			justify-content: center;
		}
	}
.animal-adopt-row.stack-on-mobile {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 60px;
		img {
			max-width: 300px;
		}
	}
.related-animals-header {
		.related-animals-title {width: 100%;text-align: center;}
		.related-animals-back-btn {
			display: none;
		}

	}
}
@media (max-width: 670px) {
footer .site-footer-badges {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 30px;
	}
footer .site-footer-badges .wp-block-image {
		margin: 0;
	}
footer .site-footer-badges .wp-block-image img {
		max-width: 180px;
	}
.site-footer-bottom-row .site-footer-badges::after {
		display: none !important;
	}
}
@media (max-width: 640px) {
.sheltersync-popular-results-wrapper .popular-result-pill.pill-highlight {
		width: 100%;
		display: block;

	}
.page-section-pet-cards h2.wp-block-heading {
		width: 100%;
		text-align: center;
	}
.sheltersync-filter-meta-counter-row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
.sheltersync-filter-meta-counter-row .filter-results-count-heading {
		width: auto;
		text-align: left;
		margin-bottom: 0;
		font-size: 16px;
	}
.sheltersync-filter-meta-counter-row .sheltersync-filter-meta-right-actions {
		width: auto;
		justify-content: flex-end;
		display: flex;
		align-items: center;
		gap: 8px;
	}
.sheltersync-reroll-btn {
		display: none !important;
	}
.related-animals-grid-container ul.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
.animal-title-age-stack .animal-stacked-title {
		font-size: 2.25rem;
	}
.animal-title-age-stack .animal-stacked-age {
		font-size: 12px;
	}
.related-animals-grid-container ul.columns-4 {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 576px) {
.sheltersync-pet-grid {
		/*grid-template-columns: 1fr;*/
	}
}
@media (max-width: 480px) {
.animal-meta-wrapper.is-grid {
		grid-template-columns: 1fr; /* Stacks to single column on mobile */
	}
}
/* Print Styles Override */
@media print {
.pet-print-qr-code {
		display: block;
		text-align: center;
		margin-top: 20px;
	}
.pet-print-qr-code img {
		width: 120px;
		height: 120px;
	}
.pet-print-qr-code p {
		font-size: 10px;
		color: var(--text);
		margin-top: 4px;
	}
}
@keyframes sheltersync-dice-tumble {
	0% {
		transform: rotate(0deg) scale(1);
	}
	50% {
		transform: rotate(180deg) scale(1.25);
	}
	100% {
		transform: rotate(360deg) scale(1);
	}
}
@keyframes heartPop {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.35) rotate(-8deg);
	}
	75% {
		transform: scale(0.9) rotate(3deg);
	}
	100% {
		transform: scale(1) rotate(0deg);
	}
}
@keyframes footerHeartBeat {
	0% {
		transform: scale(1);
	}
	25% {
		transform: scale(1.25);
	}
	40% {
		transform: scale(1);
	}
	60% {
		transform: scale(1.18);
	}
	100% {
		transform: scale(1);
	}
}
@keyframes shelterSyncSpin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
Narrow-screen safety: nothing here assumes a design, it only stops the results bar from
pushing the page wider than the screen.
--------------------------------------------------------------------------- */
.sheltersync-filter-meta-counter-row {
	flex-wrap: wrap;
	row-gap: 12px;
}
.sheltersync-filter-meta-right-actions {
	flex-wrap: wrap;
	max-width: 100%;
}

/* Apply to Adopt + Donate pair (single animal) */
.custom-pet-donate-wrapper.has-apply{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;}
.custom-pet-donate-wrapper.has-apply>.wp-block-button__link{flex:1 1 180px;text-align:center;justify-content:center;display:inline-flex;align-items:center;gap:8px;}
.custom-pet-donate-wrapper.has-apply .is-secondary{background:transparent;color:inherit;border:2px solid currentColor;}
.custom-pet-donate-wrapper.has-apply .is-secondary svg{stroke:currentColor!important;fill:none!important;}
.custom-pet-donate-wrapper.has-apply{align-items:stretch;}
.custom-pet-donate-wrapper.has-apply>.wp-block-button__link{box-sizing:border-box;min-height:52px;margin:0;padding:12px 24px;line-height:1.2;align-self:stretch;}
