/* WP Breeds - Gallery & Single Page Styles */

/* Single page layout */
.wpb-single-puppy {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.wpb-single-header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-bottom: 32px;
}

@media (max-width: 768px) {
	.wpb-single-header {
		grid-template-columns: 1fr;
	}
}

/* Featured image */
.wpb-single-featured {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

.wpb-single-image {
	width: 100%;
	height: auto;
	display: block;
}

/* Details panel */
.wpb-single-title {
	font-size: 2em;
	margin: 0 0 12px;
}

.wpb-single-status {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.wpb-single-status--sold {
	background: #d63638;
	color: #fff;
}

.wpb-single-status--reserved {
	background: #dba617;
	color: #1d2327;
}

/* Meta table */
.wpb-single-meta-table {
	margin-bottom: 20px;
}

.wpb-meta-row {
	display: flex;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f1;
}

.wpb-meta-row:last-child {
	border-bottom: none;
}

.wpb-meta-label {
	flex: 0 0 140px;
	font-weight: 600;
	color: #50575e;
}

.wpb-meta-value {
	flex: 1;
}

.wpb-price {
	font-size: 1.3em;
	font-weight: 700;
	color: #1d2327;
}

.wpb-ready-now {
	color: #00a32a;
	font-weight: 600;
}

/* Parentage */
.wpb-single-parentage {
	margin-bottom: 20px;
}

.wpb-single-parentage h3 {
	margin: 0 0 8px;
	font-size: 1.1em;
}

.wpb-parent {
	margin-bottom: 8px;
}

.wpb-parent-details {
	margin: 4px 0 0;
	color: #50575e;
	font-size: 0.9em;
}

/* Inquiry CTA */
.wpb-inquiry-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.wpb-btn-lg {
	padding: 14px 28px;
	font-size: 1em;
}

/* Content section */
.wpb-single-content {
	margin-bottom: 32px;
	line-height: 1.7;
}

/* Gallery */
.wpb-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 16px;
}

@media (max-width: 600px) {
	.wpb-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

.wpb-gallery-item {
	display: block;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.wpb-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}

.wpb-gallery-item:hover img {
	transform: scale(1.05);
}

/* Video thumbnail trigger */
.wpb-video-trigger {
	position: relative;
	margin-top: 16px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 16 / 9;
}

.wpb-video-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wpb-video-thumb-placeholder {
	background: #1d2327;
}

.wpb-video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	color: #fff;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 4px;
	transition: background 0.2s, transform 0.2s;
}

.wpb-video-trigger:hover .wpb-video-play-btn {
	background: rgba(0, 0, 0, 0.8);
	transform: translate(-50%, -50%) scale(1.1);
}

/* Video modal */
.wpb-video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.wpb-video-modal.wpb-active {
	opacity: 1;
	pointer-events: auto;
}

.wpb-video-modal-content {
	width: 90vw;
	max-width: 900px;
	aspect-ratio: 16 / 9;
}

.wpb-video-modal-content video,
.wpb-video-modal-content iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 4px;
}

.wpb-video-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpb-video-modal-close:hover {
	background: rgba(255, 255, 255, 0.4);
}

/* Credibility indicators */
.wpb-credibility {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 32px;
}

.wpb-credibility h2 {
	margin: 0 0 16px;
	font-size: 1.3em;
}

.wpb-credibility-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpb-credibility-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid #e0e0e0;
}

.wpb-credibility-item:last-child {
	border-bottom: none;
}

.wpb-check-icon {
	color: #00a32a;
	font-size: 1.2em;
	font-weight: 700;
}

.wpb-credibility-label {
	font-weight: 600;
}

.wpb-credibility-notes {
	width: 100%;
	margin: 4px 0 0;
	padding-left: 28px;
	color: #50575e;
	font-size: 0.9em;
}

.wpb-credibility-link {
	font-size: 0.9em;
}

/* Lightbox overlay */
.wpb-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.wpb-lightbox-overlay.wpb-active {
	opacity: 1;
	pointer-events: auto;
}

.wpb-lightbox-image {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
}

.wpb-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpb-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.4);
}

.wpb-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpb-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.4);
}

.wpb-lightbox-prev {
	left: 20px;
}

.wpb-lightbox-next {
	right: 20px;
}
