/*
Theme Name:   ListingHive Child
Theme URI:    https://psikologpedagog.com
Description:  ListingHive child theme. Custom listing grid CSS; parent updates stay safe.
Author:       Psikolog Pedagog
Template:     listinghive
Version:      1.3.2
Text Domain:  listinghive-child
*/

/*--------------------------------------------------------------
HivePress Listings: mobile 1 / tablet 2 / desktop 3 columns
--------------------------------------------------------------*/
.hp-listings.hp-block.hp-grid > .hp-row {
	display: flex;
	flex-wrap: wrap;
}

.hp-listings.hp-block.hp-grid > .hp-row > .hp-grid__item {
	box-sizing: border-box;
}

@media (max-width: 767.98px) {
	.hp-listings.hp-block.hp-grid > .hp-row > .hp-grid__item {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.hp-listings.hp-block.hp-grid > .hp-row > .hp-grid__item {
		flex: 0 0 50% !important;
		max-width: 50% !important;
	}
}

@media (min-width: 992px) {
	.hp-listings.hp-block.hp-grid > .hp-row > .hp-grid__item {
		flex: 0 0 33.333333% !important;
		max-width: 33.333333% !important;
	}
}

/*--------------------------------------------------------------
Uzman (listing) kartı — Psikolog Pedagog
--------------------------------------------------------------*/
.hp-listing--view-block.hp-listing {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(26, 58, 90, 0.1);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.hp-listing--view-block.hp-listing:hover {
	box-shadow: 0 8px 26px rgba(26, 58, 90, 0.16);
}

.hp-listing--view-block .hp-listing__details--primary,
.hp-listing--view-block .hp-listing__content .hp-listing__attribute:not(.pp-listing__rating):not(.pp-listing__bio),
.hp-listing--view-block .hp-listing__footer .hp-listing__attribute {
	display: none !important;
}

.hp-listing--view-block .hp-listing__content .hp-row:has(.hp-listing__attribute:not(.pp-listing__rating):not(.pp-listing__bio)) {
	display: none !important;
}

.hp-listing--view-block .hp-listing__footer .hp-listing__actions {
	width: 100%;
}

.pp-listing__image-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.hp-listing--view-block .pp-listing__image-wrap img,
.hp-listing--view-block .pp-listing__image-wrap video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pp-listing__verified {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 5;
	line-height: 0;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.pp-listing__verified-icon {
	display: block;
}

.pp-listing__rating {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0.65rem 0 0.35rem;
}

.pp-stars {
	position: relative;
	display: inline-block;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: 0.08em;
	--pp-rating: 0;
}

.pp-stars__bg {
	color: rgba(26, 58, 90, 0.2);
	white-space: nowrap;
}

.pp-stars__fill {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	width: calc(var(--pp-rating) / 5 * 100%);
	color: #e6a23c;
	white-space: nowrap;
	pointer-events: none;
}

.pp-listing__rating-count {
	font-size: 0.85rem;
	color: #1a3a5a;
	opacity: 0.85;
}

.hp-listing--view-block .hp-listing__content {
	padding-left: 1rem;
	padding-right: 1rem;
	padding-bottom: 1rem;
}

.pp-listing__title.pp-listing__title {
	margin-bottom: 0.35rem;
}

.pp-listing__name {
	margin: 0 0 0.2rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}

.pp-listing__name a {
	color: #1a3a5a;
	text-decoration: none;
}

.pp-listing__name a:hover {
	color: #2c9b94;
}

.pp-listing__unvan {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	color: #2c9b94;
	font-weight: 600;
}

.pp-listing__bio {
	margin-top: 0.35rem;
}

.pp-listing__excerpt-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0 0 0.5rem;
	line-height: 1.45;
	font-size: 0.92rem;
	color: rgba(26, 58, 90, 0.88);
}

.hp-listing--pp-expanded .pp-listing__excerpt-text {
	-webkit-line-clamp: unset;
	display: block;
	overflow: visible;
}

.pp-listing__expand {
	margin: 0 0 0.25rem;
	padding: 0.35rem 0;
	background: none;
	border: none;
	font-size: 0.88rem;
	font-weight: 600;
	color: #2c9b94;
	cursor: pointer;
	text-align: left;
	width: 100%;
}

.pp-listing__expand:hover,
.pp-listing__expand:focus-visible {
	text-decoration: underline;
}

.pp-listing__expand-foot {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.45s ease, margin-top 0.35s ease, opacity 0.35s ease;
	opacity: 0;
	margin-top: 0;
}

.hp-listing--pp-expanded .pp-listing__expand-foot {
	max-height: 220px;
	opacity: 1;
	margin-top: 0.5rem;
}

.pp-listing__contact-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	width: 100%;
}

.pp-listing__contact-inner .hp-button,
.pp-listing__contact-inner .button {
	flex: 1 1 calc(50% - 0.25rem);
	min-width: 8rem;
	text-align: center;
	justify-content: center;
	box-sizing: border-box;
}

.pp-listing__btn-call {
	border: 2px solid #1a3a5a !important;
	color: #1a3a5a !important;
	background: #fff !important;
}

.pp-listing__btn-call:hover {
	background: #1a3a5a !important;
	color: #fff !important;
}

.pp-listing__btn-wa {
	background: #2c9b94 !important;
	border-color: #2c9b94 !important;
	color: #fff !important;
}

.pp-listing__btn-wa:hover {
	filter: brightness(1.05);
	color: #fff !important;
}

.pp-listing__btn-call--disabled,
.pp-listing__btn-wa--disabled {
	opacity: 0.65;
}

/*--------------------------------------------------------------
Boş Listings bloğu — iskelet kartlar (ana sayfa)
--------------------------------------------------------------*/
.pp-listings--skeleton {
	pointer-events: none;
}

/* Karışık grid: gerçek kartlar tıklanır, iskelet kartlar pasif */
.hp-listings .hp-listing--skeleton {
	pointer-events: none;
}

.pp-skeleton-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(26, 58, 90, 0.08);
	overflow: hidden;
	height: 100%;
}

.pp-skeleton-card__media {
	aspect-ratio: 4 / 3;
	width: 100%;
	background: #e5e5e5;
}

.pp-skeleton-card__body {
	padding: 1rem;
}

.pp-skeleton-card__line {
	height: 0.65rem;
	border-radius: 4px;
	margin-bottom: 0.55rem;
	max-width: 100%;
}

.pp-skeleton-card__line--title {
	max-width: 72%;
	height: 0.85rem;
	margin-bottom: 0.65rem;
}

.pp-skeleton-card__line--short {
	max-width: 45%;
	height: 0.55rem;
}

.pp-skeleton-card__line--text {
	max-width: 100%;
}

.pp-skeleton-card__footer {
	margin-top: 0.35rem;
}

.pp-skeleton-card__loading {
	font-size: 0.78rem;
	font-weight: 600;
	color: #9aa5b1;
	letter-spacing: 0.02em;
}

.pp-skeleton__shimmer {
	background: linear-gradient(
		90deg,
		#e2e2e2 0%,
		#f0f0f0 45%,
		#e2e2e2 90%
	);
	background-size: 200% 100%;
	animation: pp-skeleton-shimmer 1.15s ease-in-out infinite;
}

@keyframes pp-skeleton-shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}
