/* Pet Adoption Marketplace Frontend Styles - Ziggy Inspired */

:root {
	--pet-primary-color: #77bec9;
	--pet-secondary-color: #4ecdc4;
	--pet-text-color: #2d3436;
	--pet-bg-color: #f9f9f9;
	--pet-card-bg: #ffffff;
	--pet-border-radius: 12px;
	--pet-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pet-adoption-archive,
.pet-adoption-single,
.pet-adoption-user-dashboard {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--pet-text-color);
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Filters */
.pet-filters {
	background: var(--pet-card-bg);
	padding: 25px;
	border-radius: var(--pet-border-radius);
	box-shadow: var(--pet-shadow);
	margin-bottom: 40px;
}

.pet-search-form {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.pet-search-form input,
.pet-search-form select {
	padding: 12px 15px;
	border: 1px solid #dfe6e9;
	border-radius: 8px;
	flex: 1;
	min-width: 200px;
}

/* Grid & Cards */
.pet-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.pet-card {
	background: var(--pet-card-bg);
	border-radius: var(--pet-border-radius);
	overflow: hidden;
	box-shadow: var(--pet-shadow);
	transition: transform 0.3s ease;
}

.pet-card:hover {
	transform: translateY(-5px);
}

.pet-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.pet-content {
	padding: 20px;
}

.pet-title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	font-weight: 700;
}

.pet-title a {
	text-decoration: none;
	color: inherit;
}

.pet-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #636e72;
	margin-bottom: 15px;
}

.pet-status {
	display: inline-block;
	padding: 4px 12px;
	background: var(--pet-secondary-color);
	color: #fff;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 15px;
}

.pet-cta {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--pet-primary-color);
	color: #fff;
	padding: 12px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.3s ease;
}

.pet-cta:hover {
	background: #fa5252;
}

/* ============================================================
   SINGLE PET — Popup-style two-column layout
   ============================================================ */

.pet-adoption-single {
	max-width: 1040px;
	margin: 32px auto;
	padding: 0 16px 60px;
}

/* Two-column grid */
.pet-detail-container {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 0;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0,0,0,0.12);
	border: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 820px) {
	.pet-detail-container {
		grid-template-columns: 1fr;
		border-radius: 14px;
	}
}

/* ── Image column ────────────────────────── */
.pet-detail-img-col {
	display: flex;
	flex-direction: column;
	background: #FAEEDA;
	min-height: 540px;
}

@media (max-width: 820px) {
	.pet-detail-img-col {
		min-height: 280px;
	}
}

.pet-detail-img-wrap {
	flex: 1;
	position: relative;
	overflow: hidden;
}

.pet-detail-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Gallery compat alias */
.pet-gallery img {
	width: 100%;
	border-radius: var(--pet-border-radius);
	box-shadow: var(--pet-shadow);
}

.pet-detail-type-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #F5C4B3;
	color: #712B13;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 20px;
	z-index: 2;
}

/* Name bar */
.pet-detail-namebar {
	background: #D85A30;
	padding: 20px 24px;
}

.pet-detail-name {
	font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
	font-weight: 700 !important;
	color: #FAECE7 !important;
	margin: 0 0 5px !important;
	line-height: 1.2 !important;
}

.pet-detail-subtitle {
	font-size: 13px;
	color: #F5C4B3;
	margin: 0;
	line-height: 1.5;
}

/* ── Info column ─────────────────────────── */
.pet-detail-info-col {
	padding: 28px 30px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	overflow-y: auto;
	max-height: 700px;
}

@media (max-width: 820px) {
	.pet-detail-info-col {
		max-height: none;
		padding: 22px 20px;
	}
}

/* Section label */
.pet-detail-section-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: #b2bec3;
	margin: 0 0 10px;
}

/* Section divider */
.pet-detail-section {
	border-top: 1px solid #f1f1f1;
	padding-top: 20px;
}

/* ── Pills ───────────────────────────────── */
.pet-detail-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pet-detail-pill {
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pill-loc    { background: #E1F5EE; color: #085041; }
.pill-age    { background: #EAF3DE; color: #27500A; }
.pill-gender { background: #EEEDFE; color: #3C3489; }
.pill-size   { background: #FAEEDA; color: #633806; }
.pill-vac    { background: #E6F1FB; color: #0C447C; }
.pill-ste    { background: #FAECE7; color: #712B13; }

/* Backward compat for meta-item (used elsewhere) */
.pet-meta-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.meta-item {
	background: #f8f8f6;
	border-radius: 10px;
	padding: 10px 16px;
	border: 1px solid rgba(0,0,0,0.06);
}
.meta-item strong {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #b2bec3;
	font-weight: 700;
	margin-bottom: 3px;
}
.meta-item span {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
}

/* ── Contact buttons ─────────────────────── */
.pet-detail-contact-btns {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pet-detail-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s;
}

.pet-detail-cta-btn:hover {
	opacity: 0.85;
	text-decoration: none;
}

.cta-call { background: #E1F5EE; color: #085041 !important; }
.cta-wa   { background: #EAF3DE; color: #27500A !important; }

/* ── Description ─────────────────────────── */
.pet-description-body {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
}

.pet-description-body p { margin-bottom: 0.6em; }
.pet-description-body p:last-child { margin-bottom: 0; }

/* ── Health grid ─────────────────────────── */
.pet-health-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.pet-health-card {
	background: #f8f8f6;
	border-radius: 10px;
	padding: 11px 14px;
	border: 1px solid rgba(0,0,0,0.05);
}

.pet-health-card .hc-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #b2bec3;
	font-weight: 700;
	margin: 0 0 4px;
}

.pet-health-card .hc-val {
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

/* ── Adoption form ───────────────────────── */
.pet-adoption-form-container {
	background: #FAECE7;
	border-radius: 14px;
	padding: 20px 22px;
	border: none;
}

.pet-owner-notice p {
	font-size: 14px;
	font-weight: 600;
	color: #712B13;
	margin: 0;
}

/* Form inputs override — coral theme */
.pet-adoption-form-container .form-group {
	margin-bottom: 12px;
}

.pet-adoption-form-container .form-group label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 700;
	color: #993C1D;
	margin-bottom: 5px;
}

.pet-adoption-form-container .form-group label .required {
	color: #D85A30;
	text-decoration: none;
}

.pet-adoption-form-container .woocommerce-Input,
.pet-adoption-form-container .pet-textarea {
	border: 1.5px solid #F5C4B3 !important;
	border-radius: 9px !important;
	background: #fff !important;
	font-size: 14px !important;
	padding: 10px 13px !important;
	color: #1a1a1a !important;
	width: 100% !important;
	box-shadow: none !important;
	transition: border-color 0.15s !important;
}

.pet-adoption-form-container .woocommerce-Input:focus,
.pet-adoption-form-container .pet-textarea:focus {
	border-color: #D85A30 !important;
	outline: none !important;
}

.pet-adoption-form-container .pet-textarea {
	resize: vertical;
}

.pet-request-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (max-width: 480px) {
	.pet-request-row { grid-template-columns: 1fr; }
}

/* Submit button */
.adoption-submit-btn.pet-propose-btn {
	width: 100%;
	background: #D85A30 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 13px 20px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background 0.15s, transform 0.1s;
	margin-top: 6px;
	letter-spacing: 0.02em;
}

.adoption-submit-btn.pet-propose-btn:hover {
	background: #993C1D !important;
	transform: translateY(-1px);
}

.adoption-submit-btn.pet-propose-btn:active {
	transform: translateY(0);
}

/* Alert response */
.adoption-request-response.pet-notice {
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 12px;
}

.adoption-request-response.success {
	background: #EAF3DE;
	color: #27500A;
	border: 1px solid #C0DD97;
}

.adoption-request-response.error {
	background: #FAECE7;
	color: #712B13;
	border: 1px solid #F5C4B3;
}

.pet-submit-info {
	font-size: 11px;
	color: #993C1D;
	text-align: center;
	margin-top: 10px;
	opacity: 0.8;
}

/* Login CTA */
.pet-login-cta p {
	font-size: 14px;
	color: #712B13;
	margin: 0;
}

.pet-login-cta a {
	color: #D85A30;
	font-weight: 700;
}

/* Species badge (header) — keep compat */
.pet-species-badge {
	display: inline-block;
	background: #D85A30;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 20px;
}

/* Forms */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid #dfe6e9;
	border-radius: 8px;
}

.form-group textarea {
	height: 120px;
}

/* Dashboard */
.dashboard-section {
	background: var(--pet-card-bg);
	padding: 30px;
	border-radius: var(--pet-border-radius);
	box-shadow: var(--pet-shadow);
	margin-bottom: 40px;
}

.dashboard-section h2 {
	margin-top: 0;
	margin-bottom: 20px;
}

/* ============================================================
   MY ACCOUNT — PROPOSER UN ANIMAL
   Piggybacks on WooCommerce / Ziggy theme base styles.
   Only adds what WooCommerce doesn't already provide.
   ============================================================ */

.pet-adoption-propose {
	font-family: inherit;
}

/* Page heading */
.pet-propose-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #2d3436;
	margin: 0 0 6px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 18px;
}

.pet-propose-icon {
	font-size: 1.6rem;
}

.pet-propose-intro {
	color: #636e72;
	margin-bottom: 32px;
	font-size: 0.95rem;
}

/* Notice / response box */
.pet-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-size: 0.95rem;
	font-weight: 500;
}

.pet-notice.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.pet-notice.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Form sections */
.pet-form-section {
	background: #fafbfc;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 24px 26px;
	margin-bottom: 24px;
}

.pet-form-section-title {
	font-size: 1rem;
	font-weight: 700;
	color: #2d3436;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e9ecef;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* Two-column row inside a section */
.pet-form-row,
.pet-request-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

@media (max-width: 640px) {

	.pet-form-row,
	.pet-request-row {
		grid-template-columns: 1fr;
	}
}

/* Individual field wrapper */
.pet-form-group {
	margin-bottom: 16px;
}

.pet-form-group label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	margin-bottom: 6px;
	color: #444;
}

/* Required star */
.pet-form-group abbr.required {
	color: #e74c3c;
	text-decoration: none;
	margin-left: 2px;
}

/* Full-width field */
.pet-form-full {
	grid-column: 1 / -1;
}

/* Inputs — extends Ziggy/WC base */
.pet-propose-form .woocommerce-Input,
.pet-propose-form .input-text,
.pet-propose-form select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #dfe6e9;
	border-radius: 7px;
	font-size: 0.95rem;
	color: #2d3436;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	box-sizing: border-box;
}

.pet-propose-form .woocommerce-Input:focus,
.pet-propose-form .input-text:focus,
.pet-propose-form select:focus {
	border-color: #4ecdc4;
	box-shadow: 0 0 0 3px rgba(78, 205, 196, .15);
	outline: none;
}

/* Textarea */
.pet-propose-form .pet-textarea {
	resize: vertical;
	min-height: 100px;
}

/* ---- Upload area ---- */
.pet-upload-area {
	position: relative;
	border: 2px dashed #dfe6e9;
	border-radius: 10px;
	padding: 36px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	background: #fff;
}

.pet-upload-area:hover {
	border-color: #4ecdc4;
	background: #f0fffe;
}

.pet-upload-inner {
	pointer-events: none;
}

.pet-upload-icon {
	font-size: 2.5rem;
	display: block;
	margin-bottom: 8px;
}

.pet-upload-area p {
	margin: 0 0 4px;
	font-weight: 600;
	color: #2d3436;
}

.pet-upload-hint {
	font-size: 0.8rem;
	color: #aaa;
}

/* The actual file input, positioned over the entire area */
.pet-upload-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

/* Preview */
.pet-upload-preview {
	position: relative;
	display: inline-block;
	margin-top: 12px;
}

.pet-upload-preview img {
	max-width: 160px;
	max-height: 160px;
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.pet-upload-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #e74c3c;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-size: 0.75rem;
	line-height: 24px;
	text-align: center;
	padding: 0;
}

/* ---- Submit area ---- */
.pet-form-submit {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 8px;
}

.pet-propose-btn {
	background: #4ecdc4 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 14px 34px !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background .25s, transform .15s;
	letter-spacing: .3px;
}

.pet-propose-btn:hover {
	background: #77bec9 !important;
	transform: translateY(-1px);
}

.pet-propose-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none !important;
}

.pet-submit-info {
	font-size: 0.82rem;
	color: #888;
	margin: 0;
}

/* ============================================================
   MODAL SPECIFIC STYLES (Ziggy Inspired)
   ============================================================ */
.pet-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(4px);
}

.pet-modal-content {
	background: var(--pet-card-bg);
	border-radius: var(--pet-border-radius, 12px);
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: petModalFadeIn 0.3s ease;
}

@keyframes petModalFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pet-modal-close {
	position: absolute;
	top: 18px;
	right: 24px;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #b2bec3;
	z-index: 10;
	transition: color 0.2s;
}

.pet-modal-close:hover {
	color: #d63031;
}

.pet-modal-body {
	padding: 30px;
}

.pet-modal-body .pet-adoption-single {
	margin: 0;
	padding: 0;
	box-shadow: none;
}

@media (max-width: 768px) {
	.pet-modal-content {
		max-height: 95vh;
	}

	.pet-modal-body {
		padding: 20px;
	}

	.pet-modal-close {
		top: 10px;
		right: 15px;
	}
}


/* =============================================================
   LISTING — Filtres, grille, cartes, pagination (Ziggy compat)
   ============================================================= */

/* ---- Wrapper global ---- */
.pet-listing-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
	font-family: inherit;
}

/* ---- Header résultats ---- */
.pet-listing-header {
	margin-bottom: 16px;
	min-height: 28px;
}

.pet-results-count {
	font-size: .9rem;
	color: #636e72;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.pet-reset-filters {
	font-size: .8rem;
	color: #e74c3c;
	text-decoration: none;
	border: 1px solid #e74c3c;
	border-radius: 20px;
	padding: 2px 10px;
	transition: all .2s;
}

.pet-reset-filters:hover {
	background: #e74c3c;
	color: #fff;
}

/* ---- Barre de filtres ---- */
.pet-filters-bar {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
	padding: 20px 24px;
	margin-bottom: 36px;
}

.pet-filters-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.pet-filter-group {
	position: relative;
	flex: 1 1 180px;
	min-width: 160px;
	display: flex;
	align-items: center;
}

.pet-filter-group.pet-filter-search {
	flex: 2 1 240px;
}

.pet-filter-icon {
	position: absolute;
	left: 12px;
	font-size: 1rem;
	pointer-events: none;
	z-index: 1;
}

.pet-filter-input,
.pet-filter-select {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #e0e0e0;
	border-radius: 8px;
	font-size: .9rem;
	background: #fafafa;
	color: #2d3436;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}

.pet-filter-group .pet-filter-input {
	padding-left: 36px;
}

.pet-filter-input:focus,
.pet-filter-select:focus {
	outline: none;
	border-color: #4ecdc4;
	box-shadow: 0 0 0 3px rgba(78, 205, 196, .15);
	background: #fff;
}

.pet-filter-btn {
	flex: 0 0 auto;
	padding: 11px 28px !important;
	border-radius: 8px !important;
	font-size: .9rem !important;
	font-weight: 600 !important;
	background: var(--pet-primary-color, #77bec9) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer;
	transition: background .2s, transform .15s;
	white-space: nowrap;
}

.pet-filter-btn:hover {
	background: #fa5252 !important;
	transform: translateY(-1px);
}

/* ---- Grille des cartes — 3 colonnes, 6 cartes / page ---- */
.pet-listing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 48px;
}

@media (max-width: 900px) {
	.pet-listing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 580px) {
	.pet-listing-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Carte ---- */
.pet-listing-grid .pet-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 3px 18px rgba(0, 0, 0, .08);
	transition: transform .25s, box-shadow .25s;
	display: flex;
	flex-direction: column;
}

.pet-listing-grid .pet-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 32px rgba(0, 0, 0, .13);
}

/* Image */
.pet-card__img-link {
	display: block;
	text-decoration: none;
}

.pet-card__img-wrap {
	position: relative;
	overflow: hidden;
	height: 220px;
}

.pet-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
	display: block;
}

.pet-card:hover .pet-card__img-wrap img {
	transform: scale(1.06);
}

/* Badge espèce */
.pet-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	padding: 4px 10px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
}

/* Corps de carte */
.pet-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pet-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.3;
}

.pet-card__title a {
	color: var(--pet-text-color, #2d3436);
	text-decoration: none;
	transition: color .2s;
}

.pet-card__title a:hover {
	color: var(--pet-primary-color, #77bec9);
}

/* Méta */
.pet-card__meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
}

.pet-card__meta-item {
	font-size: .85rem;
	color: #636e72;
	display: flex;
	align-items: center;
	gap: 6px;
}

.pet-card__meta-location {
	font-weight: 500;
	color: #2d3436;
}

.pet-meta-icon {
	font-size: .95rem;
	flex-shrink: 0;
}

/* CTA */
.pet-card__cta.button {
	display: block;
	text-align: center;
	background: var(--pet-primary-color, #77bec9) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 11px 16px !important;
	font-size: .88rem !important;
	font-weight: 600 !important;
	text-decoration: none;
	transition: background .2s, transform .15s;
	margin-top: auto;
}

.pet-card__cta.button:hover {
	background: #fa5252 !important;
	transform: translateY(-1px);
}

/* ---- État vide ---- */
.pet-listing-empty {
	text-align: center;
	padding: 80px 20px;
	color: #636e72;
}

.pet-empty-icon {
	font-size: 3.5rem;
	display: block;
	margin-bottom: 16px;
}

.pet-listing-empty h3 {
	font-size: 1.4rem;
	margin: 0 0 10px;
	color: #2d3436;
}

.pet-listing-empty p {
	margin: 0 0 24px;
}

/* ---- Pagination — compatible Ziggy / WooCommerce ---- */

@media (max-width: 480px) {
	.pet-filters-form {
		flex-direction: column;
	}

	.pet-filter-group {
		flex: 1 1 100%;
	}

	.pet-filter-btn {
		width: 100%;
		justify-content: center;
	}

	.pet-filters-bar {
		padding: 16px;
	}
}

/* =============================================================
   FORMULAIRE — Type d'annonce (radios stylisés)
   ============================================================= */
.pet-form-group--full {
	flex: 0 0 100%;
	width: 100%;
}

.pet-type-radios {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.pet-type-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 180px;
	padding: 14px 18px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .2s, background .2s, box-shadow .2s;
	background: #fafafa;
	user-select: none;
}

.pet-type-radio:hover,
.pet-type-radio.is-selected {
	border-color: #4ecdc4;
	background: #f0fffe;
	box-shadow: 0 0 0 3px rgba(78, 205, 196, .12);
}

.pet-type-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pet-type-radio__icon {
	font-size: 1.5rem;
	flex-shrink: 0;
}

.pet-type-radio__label {
	font-weight: 600;
	font-size: .9rem;
	color: #2d3436;
}

/* Badge "Animal perdu" sur les cartes */
.pet-card__badge--perdu {
	top: auto;
	bottom: 12px;
	left: 12px;
	background: rgba(231, 76, 60, .85);
}

/* Hint texte sous les champs de fallback */
.pet-hint {
	font-size: .78rem;
	color: #888;
	margin: 4px 0 0;
}

/* ==========================================================================
   SIGNALEMENT POPUP — Animal perdu
   ========================================================================== */

/* ── CTA button variant for lost pets ── */
.pet-card__cta--perdu {
	background: linear-gradient(135deg, #dc2626, #b91c1c);
	color: #fff !important;
	border-color: transparent !important;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background .2s, transform .15s;
}

.pet-card__cta--perdu:hover {
	background: linear-gradient(135deg, #b91c1c, #991b1b);
	transform: translateY(-1px);
	color: #fff !important;
}

/* ── Overlay backdrop ── */
.pet-signalement-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

/* ── Dialog card ── */
.pet-signalement-content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
	width: 100%;
	max-width: 580px;
	max-height: 92vh;
	overflow-y: auto;
	padding: 40px 36px 32px;
	animation: sigSlideIn .25s cubic-bezier(.34, 1.3, .64, 1) both;
}

@keyframes sigSlideIn {
	from {
		opacity: 0;
		transform: translateY(28px) scale(.96);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ── Close button ── */
.pet-signalement-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: #f1f5f9;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 20px;
	line-height: 34px;
	text-align: center;
	cursor: pointer;
	color: #475569;
	transition: background .15s, color .15s;
	padding: 0;
}

.pet-signalement-close:hover {
	background: #fee2e2;
	color: #dc2626;
}

/* ── Header ── */
.pet-signalement-header {
	text-align: center;
	margin-bottom: 28px;
}

.pet-signalement-icon {
	font-size: 3rem;
	display: block;
	margin-bottom: 10px;
}

.pet-signalement-header h2 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
}

.pet-signalement-header p {
	margin: 0;
	color: #64748b;
	font-size: .92rem;
	line-height: 1.5;
}

/* ── Form rows ── */
.pet-sig-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

@media (max-width: 520px) {
	.pet-sig-row {
		grid-template-columns: 1fr;
	}
}

.pet-sig-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
}

.pet-sig-field--full {
	grid-column: 1 / -1;
}

.pet-sig-field label {
	font-size: .82rem;
	font-weight: 700;
	color: #374151;
	letter-spacing: .02em;
}

.pet-sig-field input,
.pet-sig-field textarea {
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 13px;
	font-size: .92rem;
	color: #1e293b;
	background: #f8fafc;
	transition: border-color .15s, box-shadow .15s;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.pet-sig-field input:focus,
.pet-sig-field textarea:focus {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
	outline: none;
	background: #fff;
}

.pet-sig-field textarea {
	resize: vertical;
	min-height: 80px;
}

/* ── Disclaimer ── */
.pet-sig-disclaimer {
	font-size: .78rem;
	color: #94a3b8;
	line-height: 1.5;
	margin: 4px 0 20px;
	padding: 10px 14px;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 3px solid #dc2626;
}

/* ── Submit ── */
.pet-sig-submit {
	width: 100%;
	padding: 13px 20px;
	background: linear-gradient(135deg, #dc2626, #b91c1c);
	color: #fff !important;
	border: none !important;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background .2s, transform .15s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.pet-sig-submit:hover:not(:disabled) {
	background: linear-gradient(135deg, #b91c1c, #991b1b);
	transform: translateY(-1px);
}

.pet-sig-submit:disabled {
	opacity: .65;
	cursor: not-allowed;
}

/* ── Response messages ── */
.pet-signalement-response {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.5;
}

.pet-signalement-response.pet-sig-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.pet-signalement-response.pet-sig-error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

/* ── Responsive dialog ── */
@media (max-width: 640px) {
	.pet-signalement-content {
		padding: 32px 20px 24px;
		border-radius: 12px;
	}
}