:root {
	--pf-red: #ff3040;
	--pf-red-dark: #e72635;
	--pf-bg: #f4f5f7;
	--pf-surface: #ffffff;
	--pf-border: #d9dde3;
	--pf-text: #2d3136;
	--pf-muted: #6a717a;
}

body {
	background-color: var(--pf-bg);
	color: var(--pf-text);
}

.hero-banner {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	background: #21262c url('/petfinder/public/assets/images/hero-pets.svg') center/cover no-repeat;
	min-height: 340px;
	box-shadow: 0 .8rem 1.4rem rgba(33, 38, 44, .18);
}

.hero-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 23, 28, .82) 0%, rgba(20, 23, 28, .58) 45%, rgba(20, 23, 28, .25) 100%);
}

.hero-banner__content {
	position: relative;
	z-index: 2;
	padding: 2.5rem;
	max-width: 760px;
	color: #fff;
}

.hero-banner__content p {
	color: rgba(255, 255, 255, .92);
}

@media (max-width: 768px) {
	.hero-banner {
		min-height: 300px;
	}

	.hero-banner__content {
		padding: 1.5rem;
	}
}

.navbar.bg-dark {
	background-color: #eceff3 !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
	color: #2d3136 !important;
}

.navbar .nav-link {
	text-transform: uppercase;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.menu-icon {
	color: var(--pf-red);
	margin-right: .35rem;
	font-size: .95rem;
	vertical-align: -1px;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover,
.navbar .nav-link:focus {
	color: var(--pf-red) !important;
}

.navbar .navbar-toggler {
	border-color: rgba(255, 48, 64, .45);
}

.navbar .navbar-toggler-icon {
	--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 48, 64, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-mobile-login-btn {
	--bs-btn-color: var(--pf-red);
	--bs-btn-border-color: #eeafb4;
	--bs-btn-hover-bg: var(--pf-red);
	--bs-btn-hover-border-color: var(--pf-red);
	--bs-btn-active-bg: var(--pf-red-dark);
	--bs-btn-active-border-color: var(--pf-red-dark);
	--bs-btn-padding-y: 0.25rem;
	--bs-btn-padding-x: 0.95rem;
	--bs-btn-font-size: 1.25rem;
	--bs-btn-border-radius: var(--bs-border-radius-sm);
}

.nav-logo {
	height: 40px;
	width: auto;
	display: block;
}

.btn-primary {
	--bs-btn-bg: var(--pf-red);
	--bs-btn-border-color: var(--pf-red);
	--bs-btn-hover-bg: var(--pf-red-dark);
	--bs-btn-hover-border-color: var(--pf-red-dark);
	--bs-btn-active-bg: var(--pf-red-dark);
	--bs-btn-active-border-color: var(--pf-red-dark);
}

.btn-outline-primary {
	--bs-btn-color: var(--pf-red);
	--bs-btn-border-color: var(--pf-red);
	--bs-btn-hover-bg: var(--pf-red);
	--bs-btn-hover-border-color: var(--pf-red);
	--bs-btn-active-bg: var(--pf-red-dark);
	--bs-btn-active-border-color: var(--pf-red-dark);
}

.text-bg-success,
.badge.bg-success,
.badge.text-bg-success {
	background-color: var(--pf-red) !important;
}

.card,
.list-group-item,
.form-control,
.form-select,
.input-group-text,
.alert {
	border-color: var(--pf-border);
}

.card,
.list-group-item,
.form-control,
.form-select,
.input-group-text {
	background-color: var(--pf-surface);
}

.form-control:focus,
.form-select:focus {
	border-color: var(--pf-red);
	box-shadow: 0 0 0 .2rem rgba(255, 48, 64, .2);
}

a {
	color: var(--pf-red);
}

a:hover {
	color: var(--pf-red-dark);
}

.text-muted,
small.text-muted {
	color: var(--pf-muted) !important;
}

.card-img-top {
	object-fit: cover;
	height: 180px;
}

.listing-filters {
	background: var(--pf-surface);
	border: 1px solid var(--pf-border);
	border-radius: .75rem;
	padding: .75rem;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 1rem;
}

.activities-grid {
	display: grid;
	grid-template-columns: 320px 1fr 320px;
	gap: 1rem;
}

.activities-feed-tabs .btn-group {
	border-radius: .75rem;
	overflow: hidden;
}

.activities-feed-tabs .btn {
	min-width: 140px;
	font-weight: 700;
}

.activities-left {
	position: sticky;
	top: 1rem;
	height: fit-content;
}

.activities-right {
	border: 1px dashed var(--pf-border);
	border-radius: .75rem;
	background: #fafbfc;
	height: fit-content;
}

.activities-status-card {
	border: 1px solid var(--pf-border);
	border-radius: .75rem;
	box-shadow: 0 .35rem .8rem rgba(16, 22, 30, .05);
}

.activities-ad-placeholder {
	height: 220px;
	border: 1px dashed var(--pf-border);
	border-radius: .75rem;
	background: #fff;
}

.activity-comments-wrap {
	border-top: 1px solid var(--pf-border);
	padding-top: .7rem;
}

.activity-comment-item {
	padding: .4rem .55rem;
	margin-bottom: .35rem;
	border: 1px solid var(--pf-border);
	border-radius: .55rem;
	background: #fbfcfd;
}

.dashboard-side {
	height: fit-content;
	position: sticky;
	top: 1rem;
}

.dashboard-menu-list .list-group-item {
	border-left: 3px solid transparent;
	font-weight: 600;
}

.dashboard-menu-list .list-group-item.active {
	background: rgba(255, 48, 64, .09);
	color: var(--pf-red);
	border-color: var(--pf-border);
	border-left-color: var(--pf-red);
}

.dashboard-stat-card {
	border-radius: .9rem;
}

.dashboard-stat-label {
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
	color: var(--pf-muted);
	margin-bottom: .35rem;
}

.dashboard-stat-value {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}

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

	.activities-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-side {
		position: static;
	}

	.activities-left {
		position: static;
	}

	.activities-right {
		order: 3;
		border-style: solid;
	}

	.activities-ad-placeholder {
		height: 140px;
	}
}

.pet-map {
	height: 380px;
	border: 1px solid var(--pf-border);
	border-radius: .75rem;
	overflow: hidden;
	background: #eef2f6;
}

.listing-card {
	transition: transform .12s ease, box-shadow .12s ease;
	border-radius: .75rem;
	overflow: hidden;
}

.listing-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.listing-card-image-wrap {
	position: relative;
	background: #eceff3;
}

.listing-card-image {
	height: 210px;
}

.listing-card-placeholder {
	height: 210px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .9rem;
	color: var(--pf-muted);
}

.listing-chip {
	position: absolute;
	top: .5rem;
	left: .5rem;
	padding: .2rem .55rem;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .04em;
	border-radius: 999px;
	background: rgba(58, 63, 69, .9);
	color: #fff;
}

.listing-chip-owner {
	position: absolute;
	top: .5rem;
	right: .5rem;
	padding: .2rem .55rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	border-radius: 999px;
	background: rgba(255, 48, 64, .93);
	color: #fff;
}

.listing-chip-cemetery {
	position: absolute;
	top: .5rem;
	right: .5rem;
	padding: .2rem .55rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	border-radius: 999px;
	background: rgba(58, 63, 69, .9);
	color: #fff;
}

.memorial-cemetery-card {
	border-style: dashed;
	border-width: 1px;
	border-color: var(--pf-border);
	background: linear-gradient(180deg, var(--pf-surface) 0%, var(--pf-bg) 100%);
}

.memorial-cemetery-card .listing-title {
	letter-spacing: .02em;
}

.memorial-cemetery-card .listing-card-image {
	filter: saturate(.82) contrast(.95);
}

.memorial-popup-main-image {
	width: 100%;
	height: 240px;
	object-fit: cover;
}

.memorial-popup-grid {
	align-items: flex-start;
}

@media (max-width: 767.98px) {
	.memorial-popup-main-image {
		height: 200px;
	}
}

.listing-title {
	font-size: 1.02rem;
	font-weight: 700;
}

.listing-snippet {
	min-height: 2.6em;
}

.detail-card {
	border-radius: .75rem;
}

.detail-card-header {
	background: #f7f8fa;
	font-weight: 600;
}

.meta-row {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	padding: .45rem 0;
	border-bottom: 1px dashed var(--pf-border);
}

.meta-row:last-child {
	border-bottom: 0;
}

.meta-label {
	color: var(--pf-muted);
	font-size: .88rem;
}

.meta-value {
	font-weight: 600;
	text-align: right;
	word-break: break-word;
}

.detail-description {
	line-height: 1.6;
	color: var(--pf-text);
}

.certificate-page {
	max-width: 980px;
	margin: 0 auto;
}

.certificate-shell {
	background: #fff;
	border: 1px solid #d6dbe2;
	border-radius: 1rem;
	padding: 1.25rem;
	box-shadow: 0 .6rem 1.3rem rgba(20, 24, 28, .09);
}

.certificate-head {
	text-align: center;
	margin-bottom: 1rem;
}

.certificate-head h2 {
	margin: 0;
	font-weight: 800;
	letter-spacing: .02em;
}

.certificate-head p {
	margin: .35rem 0 0;
	color: var(--pf-muted);
}

.certificate-body {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 1rem;
}

.certificate-photo {
	border: 1px solid var(--pf-border);
	border-radius: .8rem;
	overflow: hidden;
	background: #f4f6f9;
	min-height: 280px;
}

.certificate-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.certificate-photo__placeholder {
	height: 100%;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--pf-muted);
	font-weight: 600;
}

.certificate-meta {
	background: #fbfcfd;
	border: 1px solid var(--pf-border);
	border-radius: .8rem;
	padding: .75rem .95rem;
}

.certificate-message {
	margin-top: 1rem;
	padding: .85rem 1rem;
	border: 1px dashed var(--pf-border);
	border-radius: .7rem;
	background: #fff;
	line-height: 1.65;
}

.certificate-memories {
	background: #fff;
	border: 1px solid var(--pf-border);
	border-radius: .9rem;
	padding: 1rem;
}

.certificate-memory-photo {
	height: 160px;
	width: 100%;
	object-fit: cover;
	border: 1px solid #e3e7ed;
}

.certificate-activity-item {
	border: 1px dashed var(--pf-border);
	border-radius: .6rem;
	padding: .6rem .75rem;
	margin-bottom: .5rem;
	background: #fff;
}

@media (max-width: 768px) {
	.certificate-body {
		grid-template-columns: 1fr;
	}
}

@media print {
	nav, footer, .certificate-actions { display: none !important; }
	body { background: #fff; }
	main.py-4 { padding-top: 0 !important; }
	.certificate-shell { box-shadow: none; border-color: #c9ced5; }
}

.certificate-success-modal {
	border-radius: 1rem;
	border: 1px solid #e4e7eb;
	overflow: hidden;
	animation: certPopupIn .3s ease;
}

.certificate-success-icon {
	font-size: 2.2rem;
	line-height: 1;
	margin-bottom: .6rem;
	animation: certBounce .9s ease;
}

.view-certificate-btn {
	animation: certPulse 1.7s infinite;
}

@keyframes certPopupIn {
	from { transform: translateY(10px) scale(.96); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes certBounce {
	0% { transform: translateY(-6px); opacity: .2; }
	50% { transform: translateY(0); opacity: 1; }
	100% { transform: translateY(-2px); opacity: 1; }
}

@keyframes certPulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 48, 64, .28); }
	70% { box-shadow: 0 0 0 9px rgba(255, 48, 64, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 48, 64, 0); }
}
