/*
Template:       classima
Theme Name:     Classima Child
Theme URI:      http://radiustheme.com/demo/wordpress/classima
Author:         RadiusTheme
Author URI:     https://www.radiustheme.com
Description:    Classima is a clean and modern WordPress Theme best suited for Classified Listing. This theme comes with all necessary features and pages for a Classified Listing website.
Version:        1.0
Text Domain:    classima
Tags:           two-columns, three-columns, left-sidebar, right-sidebar, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, blog
License:        Envato split License
License URI:    https://themeforest.net/licenses/terms/regular
*/

/* ---------------------------------
 * Prompt Radar Home (Phase 1)
 * --------------------------------- */
.pr-home-search-wrap,
.pr-home-cats-wrap,
.pr-home-banner-wrap,
.pr-home-latest-wrap {
	background: #eef2f4;
}

.pr-home-search-wrap {
	padding: 28px 0;
}

.pr-home-search-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 220px;
	gap: 12px;
}

.pr-home-search-item input {
	width: 100%;
	height: 58px;
	border: 1px solid #e2e2e2;
	background: #fff;
	padding: 0 16px;
	color: #777;
}

.pr-home-search-submit .btn {
	width: 100%;
	height: 58px;
	border: 1px solid #f85c70;
	background: #f85c70;
	color: #fff;
	font-weight: 700;
}

.pr-home-search-submit .btn:hover {
	background: #e43d40;
	border-color: #e43d40;
}

.pr-home-cats-wrap {
	padding: 10px 0 24px;
}

.pr-home-cats-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

.pr-home-cat-card {
	display: block;
	background: #fff;
	border-radius: 8px;
	padding: 20px 14px;
	min-height: 118px;
	color: #111;
	text-align: center;
	border: 1px solid #e8e8e8;
	transition: 0.2s ease-in-out;
}

.pr-home-cat-card:hover {
	background: #f85c70;
	color: #fff;
	transform: translateY(-2px);
}

.pr-home-cat-icon {
	display: inline-block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	margin-bottom: 10px;
	background: #f85c70;
	box-shadow: inset 0 0 0 7px #ffe5ea;
}

.pr-home-cat-card:hover .pr-home-cat-icon {
	background: #fff;
	box-shadow: inset 0 0 0 7px #f8a4b0;
}

.pr-home-cat-card h3 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.2;
}

.pr-home-cat-count {
	color: #6f6f6f;
	font-size: 14px;
}

.pr-home-cat-card:hover .pr-home-cat-count {
	color: #fff;
}

.pr-home-banner-wrap {
	padding: 0 0 34px;
}

.pr-home-banner {
	background: linear-gradient(90deg, rgba(111, 150, 232, 0.95) 0%, rgba(117, 103, 241, 0.95) 100%);
	border-radius: 8px;
	padding: 26px 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.pr-home-banner h3 {
	margin: 0;
	color: #fff;
	font-size: 36px;
	line-height: 1.35;
	font-style: italic;
	max-width: 760px;
}

.pr-home-banner-price {
	color: #fff;
	font-weight: 700;
	font-size: 28px;
}

.pr-home-latest-wrap {
	padding: 0 0 48px;
}

.pr-home-latest-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.pr-home-latest-head h2 {
	margin: 0;
	font-size: 40px;
}

.pr-home-latest-head a {
	font-weight: 700;
	color: #646464;
}

.pr-home-latest-grid,
.pr-listing-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.pr-prompt-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
}

/* Grid prompt cards: shell is <article>, real frame is .rtin-item — avoid double border / mismatched radii. */
article.pr-prompt-card {
	border: none;
	box-shadow: none;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.pr-prompt-card-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f4f4f4;
	position: relative;
}

.pr-prompt-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pr-prompt-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e9edf5 0%, #d6dce8 100%);
}

.pr-prompt-card-placeholder::after {
	content: "Prompt Radar";
	position: absolute;
	right: 14px;
	bottom: 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	color: #7a8090;
}

.pr-prompt-card-body {
	padding: 18px;
}

.pr-prompt-card-body h2,
.pr-prompt-card-body h3 {
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.pr-prompt-card-body h2 a,
.pr-prompt-card-body h3 a {
	color: #111;
}

.pr-prompt-card-body h2 a:hover,
.pr-prompt-card-body h3 a:hover {
	color: #f85c70;
}

.pr-prompt-card-meta {
	color: #8c8c8c;
	font-size: 14px;
}

.footer-top-area .widget .menu {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.footer-top-area .widget .menu li {
	margin-bottom: 6px;
}

.pr-prompt-card-excerpt p {
	margin: 10px 0 0;
	color: #666;
}

/* ---------------------------------
 * Prompt listing card (shared)
 * --------------------------------- */
/*
 * Classima #content .listing-grid-each { height:100%; display:flex; max-width:400px } equalizes card shells;
 * that stretches .rtin-item and the thumb (especially in LK rows). Prompt cards size from content instead.
 */
#content .listing-grid-each.pr-prompt-card,
.pr-lk-wrap .listing-grid-each.pr-prompt-card,
.pr-prompt-card.pr-prompt-card--ctx-lk {
	display: block;
	height: auto;
	max-width: none;
}

.pr-prompt-card .rtin-item {
	border: 1px solid #e9edf2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

/*
 * Classima layout-9 (#content .listing-grid-each-9 .rtin-item) adds margin-bottom: 24px,
 * box-shadow and extra .rtin-content padding. Our card already has its own border/radius;
 * keeping theme margin+shadow on .rtin-item reads as a thick “stripe” under the white block.
 * Move vertical spacing to the article and neutralize layout-9 chrome on .rtin-item.
 */
#content .listing-grid-each-9.pr-prompt-card {
	margin-bottom: 0;
}

#content .listing-grid-each-9.pr-prompt-card .rtin-item {
	margin-bottom: 0;
	box-shadow: none;
	border: 1px solid #e9edf2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

#content .listing-grid-each-9.pr-prompt-card .rtin-item .rtin-content {
	padding: 14px 14px 12px;
}

/*
 * Избранное ЛК: на <article> добавлен класс pr-prompt-card--ctx-lk (разметка как в листинге).
 * Стили цепляем к карточке, без зависимости от .pr-lk-wrap / #content.
 */
.pr-prompt-card.pr-prompt-card--ctx-lk {
	margin-bottom: 0;
}

.pr-prompt-card.pr-prompt-card--ctx-lk .rtin-item {
	margin-bottom: 0;
	box-shadow: none;
	border: 1px solid #e9edf2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.pr-prompt-card.pr-prompt-card--ctx-lk .rtin-item .rtin-content {
	padding: 14px 14px 12px;
}

/* Theme rounds only the image (8px); card radius is on .rtin-item (8px, same as layout-9) — keep img square inside overflow. */
#content .listing-grid-each-9.pr-prompt-card .rtin-item .rtcl-thumbnail,
#content .listing-grid-each-9.pr-prompt-card .rtin-item img.rtcl-thumbnail,
.pr-prompt-card.pr-prompt-card--ctx-lk .rtin-item .rtcl-thumbnail,
.pr-prompt-card.pr-prompt-card--ctx-lk .rtin-item img.rtcl-thumbnail {
	border-radius: 0 !important;
}

/*
 * Classima sets #content .listing-grid-each .rtin-item .rtin-thumb { position: relative } only under #content.
 * Prompt cards also render inside Elementor / other wrappers: without an explicit relative thumb, the type
 * chip stays in normal flow (strip between image and body). Pin the thumb box everywhere.
 */
.pr-prompt-card .rtin-thumb {
	position: relative;
	overflow: hidden;
}

/*
 * Vertical rhythm: margin on <article> is easy to lose to flex/Elementor overflow.
 * Padding-bottom on columns keeps a stable gap before the next row.
 */
#content .rt-el-listing-grid .row.auto-clear > [class*='col-']:has(.pr-prompt-card),
#content .rtcl-listings.row.auto-clear > [class*='col-']:has(.pr-prompt-card),
#content .pr-lk-fav-list.row.auto-clear > [class*='col-']:has(.pr-prompt-card),
.pr-lk-wrap .pr-lk-fav-list.row.auto-clear > [class*='col-']:has(.pr-prompt-card),
.pr-lk-wrap .pr-lk-fav-list.row.auto-clear > [class*='col-']:has(.pr-prompt-card--ctx-lk) {
	padding-bottom: 28px;
}

@media screen and (max-width: 767px) {
	#content .rt-el-listing-grid .row.auto-clear > [class*='col-']:has(.pr-prompt-card),
	#content .rtcl-listings.row.auto-clear > [class*='col-']:has(.pr-prompt-card),
	#content .pr-lk-fav-list.row.auto-clear > [class*='col-']:has(.pr-prompt-card),
	.pr-lk-wrap .pr-lk-fav-list.row.auto-clear > [class*='col-']:has(.pr-prompt-card),
	.pr-lk-wrap .pr-lk-fav-list.row.auto-clear > [class*='col-']:has(.pr-prompt-card--ctx-lk) {
		padding-bottom: 22px;
	}
}

.pr-prompt-card .pr-prompt-card-thumb-wrap {
	position: relative;
	display: block;
	width: 100%;
	/* Listing grid: fixed 240px mis-sized the thumb vs Classima; ratio from column width aligns overlay chip. */
	aspect-ratio: 4 / 3;
	height: auto;
	overflow: hidden;
	background: #f4f6f8;
	/* Совпадает с верхом .rtin-item (8px), без «второго» скругления у картинки от темы. */
	border-radius: 8px 8px 0 0;
}

.pr-prompt-card .pr-prompt-card-thumb-wrap .pr-prompt-blob-backdrop {
	inset: 0;
	z-index: 0;
	opacity: 0.6;
}

.pr-prompt-card .pr-prompt-card-thumb {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.pr-prompt-card-preloader {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	color: #9aa7ba;
}

.pr-prompt-card-preloader .spinner {
	width: 26px;
	height: 26px;
	animation: prPromptSpin 1.1s linear infinite;
}

.pr-prompt-card-preloader .spinner .path {
	stroke: currentColor;
	stroke-linecap: round;
}

.pr-prompt-card-thumb-wrap.is-loaded .pr-prompt-card-preloader {
	opacity: 0;
	visibility: hidden;
}

@keyframes prPromptSpin {
	to {
		transform: rotate(360deg);
	}
}

/*
 * Type chip: same as home — bottom-left over the image only (not on the thumb/content seam).
 * Direct child of .rtin-thumb (after the link); .pr-prompt-card .rtin-thumb is position:relative above.
 */
#content .listing-grid-each-9.pr-prompt-card .rtin-thumb > .pr-prompt-card-type,
.pr-prompt-card .rtin-thumb > .pr-prompt-card-type {
	position: absolute !important;
	z-index: 4;
	left: 10px;
	bottom: 10px;
	top: auto !important;
	right: auto !important;
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 6px;
	background: rgba(24, 27, 49, 0.82);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	text-align: left;
	-webkit-clip-path: none !important;
	clip-path: none !important;
	pointer-events: none;
}

/* Listing/category/favorites only: hard-pin chip exactly like home card */
.pr-prompt-archive-shell .listing-grid-each-9.pr-prompt-card .rtin-thumb > .pr-prompt-card-type,
.pr-prompt-card.pr-prompt-card--ctx-lk .rtin-thumb > .pr-prompt-card-type {
	left: 10px !important;
	bottom: 10px !important;
	top: auto !important;
	right: auto !important;
	transform: none !important;
}

.pr-prompt-card .rtin-content {
	padding: 14px 14px 12px;
}

.pr-prompt-card-title {
	margin: 0;
	min-height: 4.2em;
}

.pr-prompt-card-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

.pr-prompt-card-divider {
	margin: 10px 0;
	border-top: 1px solid #eceff3;
}

.pr-prompt-card-reactions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px 12px;
	font-size: 14px;
	color: #8b95a7;
}

.pr-prompt-card-reaction-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pr-prompt-card-reactions-icon {
	font-size: 15px;
	line-height: 1;
	/* WP emoji = цветные img; серый тон как у счётчиков */
	filter: grayscale(1);
	opacity: 0.78;
}

.pr-prompt-card-reactions-icon img.emoji {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: -0.22em;
	object-fit: contain;
}

.pr-prompt-card-reactions-count {
	font-size: 10px;
}

.pr-prompt-archive-shell .listing-archive-top {
	margin-bottom: 18px;
}

.pr-prompt-archive-shell .rtcl-result-count {
	margin: 0;
}

/* ---------------------------------
 * Prompt listing (search + archive)
 * --------------------------------- */
.pr-listing {
	padding: 34px 0 60px;
}

.pr-listing-head h1 {
	margin: 0 0 18px;
}

.pr-listing-pagination {
	margin-top: 26px;
}

/* ---------------------------------
 * Prompt single
 * --------------------------------- */
.pr-single {
	padding: 34px 0 60px;
	background: #eef2f4;
}

.pr-prompt-single {
	background: #fff;
	border-radius: 8px;
	padding: 26px;
}

/* Single prompt inside Classima listing shell: avoid double card. */
.classima-single-details-2 .main-content .pr-prompt-single {
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	position: relative;
	z-index: 1;
}

.pr-prompt-blob-backdrop {
	position: absolute;
	inset: 10px;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
	border-radius: 14px;
}

.pr-prompt-blob-backdrop::before,
.pr-prompt-blob-backdrop::after {
	content: "";
	position: absolute;
	filter: blur(22px);
	opacity: 0.16;
}

.pr-prompt-blob-backdrop::before {
	width: 420px;
	height: 420px;
	left: -120px;
	top: -90px;
	background: radial-gradient(circle at center, var(--pr-prompt-accent, #6366f1) 0%, rgba(99, 102, 241, 0) 68%);
}

.pr-prompt-blob-backdrop::after {
	width: 340px;
	height: 340px;
	right: -80px;
	bottom: -80px;
	background: radial-gradient(circle at center, var(--pr-prompt-accent, #6366f1) 0%, rgba(99, 102, 241, 0) 70%);
}

/* Static gallery (no Swiper): stack slides like listing hero. */
.pr-prompt-slider-static .pr-prompt-slider-slides {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pr-prompt-slider-static .pr-prompt-slider-slides .swiper-slide {
	width: 100% !important;
	margin: 0 !important;
	height: auto !important;
}

.pr-prompt-slider-static .pr-prompt-slider-slides img.rtcl-responsive-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

/* Match Classima listing: mobile duplicate sidebar in main column; hide desktop column. */
@media all and (max-width: 991.98px) {
	body.single-pr_prompt .pr-single .row > .col-xl-3.col-lg-4 {
		display: none;
	}
}

.pr-prompt-single-header {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #ececec;
}

.pr-prompt-single-header h1 {
	margin: 0 0 6px;
}

.pr-prompt-single-content {
	color: #2c2c2c;
}

.pr-prompt-single-content p:last-child {
	margin-bottom: 0;
}

.pr-prompt-single-pre {
	white-space: pre-wrap;
	word-break: break-word;
	overflow-x: auto;
	max-width: 100%;
	padding: 16px;
	border: 1px solid #e7e7e7;
	border-radius: 6px;
	background: #fafafa;
	font-family: "JetBrains Mono", "Courier New", Courier, monospace;
	font-size: 14px;
	line-height: 1.55;
}

/* Volume hint above gated prompt body (single pr_prompt). */
.pr-prompt-volume-notice {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	color: #5c5c5c;
	font-weight: 500;
}

/* Prompt content gate (overlay/blur pattern aligned with Ailenta reg-wall; CTA = Classima classes only). */
.pr-prompt-gate-wrapper {
	position: relative;
	min-height: 200px;
}

.pr-prompt-gate-hidden {
	filter: blur(5px);
	opacity: 0.5;
	pointer-events: none;
	user-select: none;
}

.pr-prompt-gate-message {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	text-align: center;
	background: rgba(255, 255, 255, 0.95);
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	min-width: 300px;
	max-width: 90%;
	box-sizing: border-box;
}

.pr-prompt-gate-text {
	margin: 0 0 20px 0;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	font-weight: 500;
}

.pr-prompt-gate-actions {
	margin: 0;
}

@media (max-width: 768px) {
	.pr-prompt-gate-message {
		padding: 20px 25px;
		min-width: 280px;
	}

	.pr-prompt-gate-text {
		font-size: 14px;
		margin-bottom: 15px;
	}
}

.pr-prompt-main-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 14px;
}

.pr-prompt-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.pr-prompt-gallery-item img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.pr-prompt-source,
.pr-prompt-cats,
.pr-prompt-description {
	margin-top: 14px;
}

.pr-prompt-template-disclaimer {
	display: block;
	margin-top: 8px;
	line-height: 1.45;
}

.pr-prompt-use-type {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f1f1f1;
	font-size: 12px;
}

.pr-reactions-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.pr-reaction-btn {
	border: 1px solid #ddd;
	background: #fff;
	padding: 8px 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pr-reaction-btn.is-picked {
	border-color: #f85c70;
	background: #fff5f6;
}

/* ---------------------------------
 * Responsive rules
 * --------------------------------- */
@media (max-width: 1199px) {
	.pr-home-cats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pr-home-latest-grid,
	.pr-listing-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.pr-home-search-grid {
		grid-template-columns: 1fr;
	}

	.pr-home-cats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pr-home-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.pr-home-banner h3 {
		font-size: 28px;
	}

	.pr-home-banner-price {
		font-size: 22px;
	}

	.pr-home-latest-grid,
	.pr-listing-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.pr-home-search-wrap {
		padding: 18px 0;
	}

	.pr-home-cat-card {
		padding: 20px 14px;
	}

	.pr-home-cat-card h3 {
		font-size: 16px;
	}

	.pr-home-latest-head h2 {
		font-size: 24px;
	}

	.pr-home-latest-grid,
	.pr-listing-grid {
		grid-template-columns: 1fr;
	}

	.pr-prompt-card-body h2,
	.pr-prompt-card-body h3 {
		font-size: 18px;
	}

	.pr-single,
	.pr-listing {
		padding: 24px 0 42px;
	}
}

/* Home: rt-listing-cat-box with Font Awesome (parent elementor.css targets .rtcl-icon::before only) */
.rt-el-listing-cat-box .rtin-item .rtin-title-area .rtin-icon i[class*="fa-"] {
	color: #f85c70;
	border: 1px solid #cfcfcf;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	transition: all 0.5s ease-out;
	box-sizing: border-box;
}

.rt-el-listing-cat-box .rtin-item .rtin-title-area:hover .rtin-icon i[class*="fa-"] {
	color: #fff;
	border-color: #f85c70;
	background-color: #f85c70;
}