/* =========================================
   Single Property Page
   ========================================= */

body .refistav-single {
	--rsp-section-gap: 28px;
	--rsp-card-padding: 28px;
	--rsp-card-radius: 18px;
	--rsp-soft-bg: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
	--rsp-card-border: 1px solid rgba(255, 120, 30, 0.12);
	--rsp-card-shadow: 0 18px 40px rgba(19, 28, 45, 0.07);
	--rsp-card-shadow-hover: 0 22px 54px rgba(19, 28, 45, 0.1);
	padding: 128px 0 88px;
	background: #F8F8F8;
}

body .refistav-single__container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--rsp-section-gap);
}

body .refistav-single__actions,
body .refistav-single__description,
body .refistav-single__meta,
body .refistav-single__map {
	background: #fff !important;
	background-image: none !important;
	border: var(--rsp-card-border);
	border-radius: var(--rsp-card-radius);
	box-shadow: var(--rsp-card-shadow);
	padding: var(--rsp-card-padding);
}

body .refistav-single__actions:hover,
body .refistav-single__description:hover,
body .refistav-single__meta:hover,
body .refistav-single__map:hover {
	box-shadow: var(--rsp-card-shadow-hover);
}

/* =========================================
   Hero Banner (full-width cover image)
   ========================================= */
body .rsp-hero-banner {
	position: relative;
	width: 100%;
	min-height: 420px;
	border-radius: var(--rsp-card-radius);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

body .rsp-hero-banner__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}

body .rsp-hero-banner__bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body .rsp-hero-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.55) 40%,
		rgba(0, 0, 0, 0.25) 70%,
		rgba(0, 0, 0, 0.1) 100%
	);
}

body .rsp-hero-banner__content {
	position: relative;
	z-index: 3;
	width: 100%;
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rsp-hero-banner .rsp-hero-banner__content,
.rsp-hero-banner .rsp-hero-banner__content h1,
.rsp-hero-banner .rsp-hero-banner__content span,
.rsp-hero-banner .rsp-hero-banner__content div,
.rsp-hero-banner .rsp-hero-banner__content p,
.rsp-hero-banner .rsp-hero-banner__title,
.rsp-hero-banner .rsp-hero-banner__location,
.rsp-hero-banner .rsp-hero-banner__location span {
	color: #ffffff !important;
}

body .rsp-hero-banner__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--refistav-primary);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

body .rsp-hero-banner__title {
	margin: 0 !important;
	font-size: clamp(1.6rem, 3vw, 2.6rem) !important;
	line-height: 1.15 !important;
	font-weight: 800 !important;
	max-width: 800px;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

body.flavor-flavor .rsp-hero-banner__title,
html body .refistav-single .rsp-hero-banner .rsp-hero-banner__title,
html body .rsp-hero-banner h1.rsp-hero-banner__title {
	color: #ffffff !important;
}

body .rsp-hero-banner__location,
body .rsp-hero-banner__location span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 1rem;
	font-weight: 600;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

html body .rsp-hero-banner .rsp-hero-banner__location,
html body .rsp-hero-banner .rsp-hero-banner__location span {
	color: #ffffff !important;
}

body .rsp-hero-banner__location svg {
	width: 18px;
	height: 18px;
	fill: #fff !important;
	flex-shrink: 0;
}

body .rsp-hero-banner__price {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 12px 24px;
	border-radius: 14px;
	background: rgba(255, 120, 30, 0.9);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	box-shadow: 0 4px 16px rgba(255, 120, 30, 0.35);
}

/* =========================================
   Hero
   ========================================= */
body .refistav-single__hero {
	padding: 0;
}

body .refistav-single__hero-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(45, 55, 72, 0.1);
}

body .refistav-single__hero-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

body .refistav-single__hero-title-row h1 {
	margin: 0;
	max-width: 780px;
	font-size: clamp(2rem, 3.1vw, 3rem);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #182438 !important;
}

body .refistav-single__price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 210px;
	min-height: 64px;
	padding: 16px 24px;
	border-radius: 16px;
	background: #fff;
	border: 2px solid rgba(var(--refistav-primary-rgb), 0.9);
	box-shadow: 0 12px 26px rgba(var(--refistav-primary-rgb), 0.12);
	color: var(--refistav-primary) !important;
	font-size: 1.38rem;
	font-weight: 800;
	text-align: center;
}

body .refistav-single__hero-location {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(var(--refistav-primary-rgb), 0.08);
	color: #4b5565;
	font-size: 0.96rem;
	font-weight: 600;
	width: fit-content;
}

body .refistav-single__hero-location svg {
	width: 18px;
	height: 18px;
	fill: var(--refistav-primary);
}

/* =========================================
   Icon Bar
   ========================================= */
body .refistav-single__iconbar {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

body .refistav-single__icon-cell {
	min-height: 132px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 8px;
	padding: 18px 14px;
	background: #fff;
	background-image: none !important;
	border: 1px solid rgba(45, 55, 72, 0.08);
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body .refistav-single__icon-cell:hover {
	transform: translateY(-3px);
	border-color: rgba(var(--refistav-primary-rgb), 0.28);
	box-shadow: 0 18px 32px rgba(15, 23, 42, 0.09);
}

body .refistav-single__icon-cell svg {
	width: 30px;
	height: 30px;
	fill: var(--refistav-primary);
	flex-shrink: 0;
}

body .refistav-single__icon-label {
	font-size: 0.72rem;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8d97a5;
}

body .refistav-single__icon-cell strong {
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 700;
	color: #1f2b3d;
}

/* =========================================
   Gallery (Swiper + Fancybox)
   ========================================= */
body .refistav-single__gallery {
	padding: 0;
}

body .rsp-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* --- Main slider --- */
body .rsp-gallery__main {
	position: relative;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: #f1f5f9;
}

body .rsp-gallery__main .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
}

body .rsp-gallery__main .swiper-slide img {
	display: block;
	width: 100%;
	max-height: 600px;
	height: auto;
	object-fit: contain;
}

/* --- Nav arrows --- */
body .rsp-gallery__main .rsp-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body .rsp-gallery__main .rsp-gallery__nav svg {
	width: 26px;
	height: 26px;
	fill: #1e293b;
	transition: fill 0.2s ease;
	pointer-events: none;
}

body .rsp-gallery__main .rsp-gallery__nav:hover {
	background: var(--refistav-primary);
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 6px 24px rgba(var(--refistav-primary-rgb), 0.35);
}

body .rsp-gallery__main .rsp-gallery__nav:hover svg {
	fill: #fff;
}

body .rsp-gallery__main .rsp-gallery__nav::before,
body .rsp-gallery__main .rsp-gallery__nav::after {
	content: none !important;
	display: none !important;
}

body .rsp-gallery__main .rsp-gallery__prev {
	left: 16px;
}

body .rsp-gallery__main .rsp-gallery__next {
	right: 16px;
}

/* Counter z-index above slides */
body .rsp-gallery__main .rsp-gallery__counter {
	z-index: 50;
}

/* --- Counter --- */
body .rsp-gallery__counter {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	pointer-events: none;
}

/* --- Thumbs slider --- */
body .rsp-gallery__thumbs {
	width: 100%;
	padding: 2px 0;
}

body .rsp-gallery__thumbs .swiper-slide {
	width: 100px;
	height: 72px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid transparent;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

body .rsp-gallery__thumbs .swiper-slide:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

body .rsp-gallery__thumbs .swiper-slide-thumb-active {
	opacity: 1;
	border-color: var(--refistav-primary);
	box-shadow: 0 4px 12px rgba(var(--refistav-primary-rgb), 0.25);
}

body .rsp-gallery__thumbs .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================
   Shared Card Headings
   ========================================= */
body .refistav-single__description h2,
body .refistav-single__meta h2,
body .refistav-single__map h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(45, 55, 72, 0.08);
	font-size: 1.45rem;
	font-weight: 800;
	color: #162338 !important;
}

body .refistav-single__description h2 svg,
body .refistav-single__meta h2 svg,
body .refistav-single__map h2 svg {
	width: 22px;
	height: 22px;
	fill: var(--refistav-primary);
	flex-shrink: 0;
}

/* =========================================
   Description
   ========================================= */
body .refistav-single__desc-body {
	font-size: 1rem;
	line-height: 1.86;
	color: #495466;
}

body .refistav-single__desc-body p:last-child {
	margin-bottom: 0;
}

/* =========================================
   Parameters
   ========================================= */
body .refistav-single__meta-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

body .refistav-single__meta-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 96px;
	padding: 18px;
	background: #fff;
	background-image: none !important;
	border: 1px solid rgba(45, 55, 72, 0.08);
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body .refistav-single__meta-item:hover {
	transform: translateY(-2px);
	border-color: rgba(var(--refistav-primary-rgb), 0.26);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

body .refistav-single__meta-label {
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8c95a4;
}

body .refistav-single__meta-value {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
	color: #1d293c !important;
}

body .rsp-yes {
	color: #227a55;
	font-weight: 800;
}

body .rsp-no {
	color: #c53030;
	font-weight: 800;
}

/* =========================================
   Action Panel
   ========================================= */
body .refistav-single__actions {
	background: #fff;
	background-image: none !important;
}

body .refistav-single__pricebox {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 138px;
	margin-bottom: 18px;
	padding: 20px 24px;
	background: #fff;
	border: 2px solid rgba(var(--refistav-primary-rgb), 0.92);
	border-radius: 18px;
	text-align: center;
	box-shadow: 0 16px 28px rgba(var(--refistav-primary-rgb), 0.1);
}

body .refistav-single__price-main {
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1;
	font-weight: 800;
	color: var(--refistav-primary);
	letter-spacing: -0.03em;
}

body .refistav-single__price-sub {
	font-size: 1rem;
	line-height: 1.4;
	color: #4f5b6b;
}

body .refistav-single__action-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

body .refistav-single__action-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--refistav-primary) 0%, #ff9f1c 100%);
	color: #fff !important;
	font-family: var(--refistav-body-font);
	font-size: 1rem !important;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 14px 24px rgba(var(--refistav-primary-rgb), 0.18);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body .refistav-single__action-btn:hover,
body .refistav-single__action-btn:focus {
	color: #fff !important;
	transform: translateY(-2px);
	background: linear-gradient(135deg, var(--refistav-primary-hover) 0%, #f28b00 100%);
	box-shadow: 0 20px 30px rgba(var(--refistav-primary-rgb), 0.24);
	filter: saturate(1.02);
}

body .refistav-single__action-grid a.refistav-single__action-btn::before,
body .refistav-single__action-grid a.refistav-single__action-btn::after {
	content: none !important;
	display: none !important;
}

body .refistav-single__notice-wrap {
	margin-bottom: -8px;
}

/* =========================================
   Map
   ========================================= */
body .refistav-single__map-addr {
	margin: 0 0 16px;
	font-size: 1rem;
	line-height: 1.65;
	color: #4c5868;
}

body .refistav-single__map {
	scroll-margin-top: 132px;
}

body .refistav-single__map-embed {
	overflow: hidden;
	border-radius: 18px;
	border: 1px solid rgba(45, 55, 72, 0.08);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
	margin-bottom: 18px;
}

body .refistav-single__map-embed iframe {
	display: block;
	width: 100%;
	height: 440px;
	border: 0;
}

body .refistav-single__map-canvas {
	width: 100%;
	height: 440px;
}

body .refistav-single__map-embed .leaflet-container {
	width: 100%;
	height: 100%;
	background: #eef2f7;
	font-family: var(--refistav-body-font);
}

/* =========================================
   Modal
   ========================================= */
html.rsp-modal-open {
	overflow: hidden;
}

body .rsp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
}

body .rsp-modal.is-open {
	display: block;
}

body .rsp-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.66);
	backdrop-filter: blur(5px);
	cursor: pointer;
}

body .rsp-modal__dialog {
	position: relative;
	width: min(100% - 28px, 620px);
	max-height: calc(100vh - 56px);
	margin: 28px auto;
	background: #fff;
	border-radius: 20px;
	overflow: auto;
	box-shadow: 0 28px 64px rgba(10, 18, 35, 0.34);
}

body .rsp-modal__dialog--small {
	width: min(100% - 28px, 520px);
}

body .rsp-modal__close {
	position: absolute !important;
	top: 18px !important;
	right: 18px !important;
	width: 48px !important;
	height: 48px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: rgba(255, 120, 30, 0.12) !important;
	color: #FF781E !important;
	font-size: 0 !important;
	line-height: 1 !important;
	padding: 0 !important;
	cursor: pointer !important;
	z-index: 2 !important;
	transition: background 0.2s ease, transform 0.2s ease !important;
}

body .rsp-modal__close::before,
body .rsp-modal__close::after {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 20px !important;
	height: 3px !important;
	background: #FF781E !important;
	border-radius: 2px !important;
}

body .rsp-modal__close::before {
	transform: translate(-50%, -50%) rotate(45deg) !important;
}

body .rsp-modal__close::after {
	transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body .rsp-modal__close:hover {
	background: rgba(255, 120, 30, 0.22) !important;
	color: #FF781E !important;
	transform: scale(1.04) !important;
}

body .rsp-modal__dialog h3 {
	margin: 0;
	padding: 30px 98px 22px 30px;
	border-bottom: 1px solid rgba(45, 55, 72, 0.08);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	line-height: 1.1;
	font-weight: 800;
	color: #182438;
}

body .rsp-modal__form {
	display: grid;
	gap: 16px;
	padding: 26px 30px 30px;
}

body .rsp-modal__form label {
	display: grid;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #4c5667;
}

body .rsp-modal__form input[type="text"],
body .rsp-modal__form input[type="email"],
body .rsp-modal__form input[type="number"],
body .rsp-modal__form textarea {
	width: 100%;
	border: 1px solid rgba(45, 55, 72, 0.1);
	border-radius: 14px;
	background: #f8fafc;
	padding: 16px 18px;
	font-size: 1rem;
	line-height: 1.45;
	color: #1f2937;
	font-family: var(--refistav-body-font);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body .rsp-modal__form textarea {
	min-height: 148px;
	resize: vertical;
}

body .rsp-modal[data-rsp-modal="share"] .rsp-modal__form textarea {
	min-height: 220px;
}

body .rsp-modal__form input[type="text"]:focus,
body .rsp-modal__form input[type="email"]:focus,
body .rsp-modal__form input[type="number"]:focus,
body .rsp-modal__form textarea:focus {
	outline: 0;
	border-color: rgba(var(--refistav-primary-rgb), 0.45);
	box-shadow: var(--refistav-shadow-glow);
	background: #fff;
}

body .rsp-modal__required-note {
	margin: -2px 0 0;
	text-align: right;
	font-size: 0.95rem;
	color: #596476;
}

body .rsp-modal__required-note span {
	color: var(--refistav-primary);
	font-weight: 800;
}

body .rsp-consent {
	display: grid !important;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	margin-top: 2px;
	font-size: 0.96rem !important;
	line-height: 1.5;
	color: #334155;
	text-decoration: none;
}

body .rsp-consent input[type="checkbox"] {
	margin: 4px 0 0;
	accent-color: var(--refistav-primary);
}

body .rsp-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

body .rsp-modal__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	margin: 12px 0 0;
	padding: 16px 22px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--refistav-primary) 0%, #ff9f1c 100%);
	color: #fff;
	font-family: var(--refistav-heading-font);
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.1;
	cursor: pointer;
	box-shadow: 0 14px 24px rgba(var(--refistav-primary-rgb), 0.18);
	transition: filter 0.2s ease;
}

body .rsp-modal__submit:hover {
	filter: brightness(1.03);
}

body .rsp-mortgage-result {
	margin-top: 10px;
	padding: 16px 18px;
	border: 1px solid rgba(var(--refistav-primary-rgb), 0.15);
	border-radius: 14px;
	background: rgba(var(--refistav-primary-rgb), 0.06);
	font-size: 1rem;
	line-height: 1.5;
	color: #384456;
}

body .rsp-mortgage-result strong {
	color: var(--refistav-primary);
	font-weight: 800;
}

/* =========================================
   PDF Template
   ========================================= */
/* =========================================
   Fancybox
   ========================================= */
.fancybox__container {
	z-index: 999999 !important;
}

.fancybox__content img {
	width: auto !important;
	max-width: 92vw !important;
	height: auto !important;
	max-height: 90vh !important;
	object-fit: contain !important;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1100px) {
	body .refistav-single__iconbar {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body .refistav-single__meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body .refistav-single {
		padding-top: 110px;
	}

	body .refistav-single__container {
		padding: 0 16px;
	}

	body .rsp-hero-banner {
		min-height: 320px;
	}

	body .rsp-hero-banner__content {
		padding: 28px 24px;
	}

	body .refistav-single__hero-title-row {
		flex-direction: column;
		align-items: flex-start;
	}

	body .refistav-single__price {
		min-width: 0;
		width: 100%;
	}

	body .rsp-gallery__main .swiper-slide img {
		max-height: 420px;
	}

	body .refistav-single__action-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body .refistav-single {
		--rsp-section-gap: 22px;
		--rsp-card-padding: 20px;
		padding: 98px 0 56px;
	}

	body .refistav-single__iconbar,
	body .refistav-single__meta-grid,
	body .refistav-single__action-grid {
		grid-template-columns: 1fr;
	}

	body .refistav-single__icon-cell {
		min-height: 112px;
	}

	body .rsp-hero-banner {
		min-height: 260px;
		border-radius: 14px;
	}

	body .rsp-hero-banner__content {
		padding: 22px 18px;
	}

	body .rsp-hero-banner__price {
		font-size: 1.2rem;
		padding: 8px 16px;
	}

	body .rsp-gallery__main .swiper-slide img {
		max-height: 280px;
	}

	body .rsp-gallery__main {
		border-radius: 14px;
	}

	body .rsp-gallery__nav {
		width: 40px;
		height: 40px;
	}

	body .rsp-gallery__nav svg {
		width: 22px;
		height: 22px;
	}

	body .rsp-gallery__thumbs .swiper-slide {
		width: 80px;
		height: 58px;
		border-radius: 10px;
	}

	body .refistav-single__map-embed iframe {
		height: 320px;
	}

	body .rsp-modal__dialog,
	body .rsp-modal__dialog--small {
		width: min(100% - 18px, 100%);
		max-height: calc(100vh - 18px);
		margin: 9px auto;
		border-radius: 18px;
	}

	body .rsp-modal__dialog h3 {
		padding: 24px 78px 18px 20px;
	}

	body .rsp-modal__close {
		top: 12px;
		right: 12px;
	}

	body .rsp-modal__form {
		padding: 18px 18px 22px;
	}

	body .rsp-modal__submit {
		width: 100%;
		margin: 6px 0 0;
		padding: 15px 18px;
		font-size: 1.35rem;
		border-radius: 14px;
	}
}

/* =========================================
   Single Project Page (Realizované projekty)
   ========================================= */

/* Hero banner */
.refistav-project-single__hero {
	width: 100%;
	min-height: 400px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.refistav-project-single__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.05) 100%);
	display: flex;
	align-items: flex-end;
	padding: 48px;
}

html body .refistav-project-single__hero-overlay h1 {
	margin: 0 !important;
	font-family: "Filson Soft", var(--refistav-heading-font), sans-serif !important;
	font-size: 2.8rem !important;
	font-weight: 900 !important;
	color: #fff !important;
	letter-spacing: 1px !important;
	text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Header */
.refistav-project-single__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

html body .refistav-project-single__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #FF781E !important;
	text-decoration: none !important;
	font-size: 0.9rem !important;
	font-weight: 600;
	transition: color 0.2s;
}

html body .refistav-project-single__back:hover {
	color: #e56a10 !important;
}

.refistav-project-single__back svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

html body .refistav-project-single__header h1 {
	margin: 0 !important;
	font-family: "Filson Soft", var(--refistav-heading-font), sans-serif !important;
	font-size: 2.4rem !important;
	font-weight: 900 !important;
	color: #1a1a1a !important;
	letter-spacing: 1px !important;
}

/* Gallery grid */
.refistav-project-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

html body .refistav-project-gallery__item {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	text-decoration: none !important;
	color: transparent !important;
}

.refistav-project-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.refistav-project-gallery__item:hover img {
	transform: scale(1.06);
}

.refistav-project-gallery__item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.3s ease;
	border-radius: 14px;
}

.refistav-project-gallery__item:hover::after {
	background: rgba(0, 0, 0, 0.08);
}

.refistav-project-single__empty {
	text-align: center;
	padding: 60px 24px;
	background: #fff;
	border: 2px dashed #e0e0e0;
	border-radius: 18px;
	color: #888;
}

/* Elementor link override — force orange on all project links */
html body .refistav-project-single a {
	color: #FF781E !important;
}

html body .refistav-project-single a:hover {
	color: #e56a10 !important;
}

@media (max-width: 1024px) {
	.refistav-project-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.refistav-project-single__hero {
		min-height: 260px;
	}

	.refistav-project-single__hero-overlay {
		padding: 24px;
	}

	html body .refistav-project-single__hero-overlay h1 {
		font-size: 1.8rem !important;
	}
}

@media (max-width: 600px) {
	.refistav-project-gallery {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	html body .refistav-project-single__header h1 {
		font-size: 1.6rem !important;
	}

	.refistav-project-gallery__item {
		border-radius: 10px;
	}

	.refistav-project-single__hero {
		min-height: 200px;
	}
}

@media (max-width: 480px) {
	body .refistav-single {
		padding: 80px 0 40px;
	}

	body .refistav-single__container {
		padding: 0 12px;
		gap: 16px;
	}

	body .refistav-single__actions,
	body .refistav-single__description,
	body .refistav-single__meta,
	body .refistav-single__map {
		padding: 16px;
		border-radius: 14px;
	}

	.refistav-project-single__hero-overlay {
		padding: 16px;
	}

	html body .refistav-project-single__hero-overlay h1 {
		font-size: 1.4rem !important;
	}

	.refistav-project-gallery {
		gap: 6px;
	}

	.refistav-project-gallery__item {
		border-radius: 8px;
	}
}
