/* ==========================================================================
   Litoral Premium — Página do imóvel (template "Property Single Premium")
   ========================================================================== */

/* Galeria: cantos arredondados e zoom suave */
body.lp-property-single .property-detail-gallery .image-wrapper { overflow: hidden; border-radius: var(--lp-radius); }
body.lp-property-single .property-detail-gallery .gallery-property-main-detail .image-wrapper { border-radius: calc(var(--lp-radius) + 6px); }
body.lp-property-single .property-detail-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--lp-ease); }
body.lp-property-single .property-detail-gallery a:hover img { transform: scale(1.05); }
body.lp-property-single .property-detail-gallery .gallery-metas { gap: .35rem; }

/* Cabeçalho do imóvel */
body.lp-property-single .lp-phead { margin-bottom: 8px; }

body.lp-property-single .lp-phead .detail-heading-title {
	margin: 0;
	font-family: var(--lp-font-heading);
	font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.03em;
	color: var(--lp-primary);
}

body.lp-property-single .lp-phead .property-detail-field {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-top: .7rem;
	color: var(--lp-text);
}

body.lp-property-single .lp-phead .property-detail-field i { color: var(--lp-accent); }

/* Ficha rápida (tipo, área, quartos...) como pílulas */
body.lp-property-single .lp-pmain .list-overview {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
	margin: 18px 0 4px;
	padding: 0;
}

body.lp-property-single .lp-pmain .list-overview li {
	width: auto !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	gap: 10px;
	border-radius: var(--lp-radius-sm);
	background: var(--lp-surface);
	border: 1px solid var(--lp-line);
}

body.lp-property-single .lp-pmain .list-overview .icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #fff;
	color: var(--lp-accent);
}

body.lp-property-single .lp-pmain .list-overview .value { font-weight: 600; color: var(--lp-primary); }

/* Blocos em card */
.lp-pblock {
	margin-top: 20px;
	padding: clamp(22px, 2.6vw, 34px) !important;
	border-radius: calc(var(--lp-radius) + 4px);
	background: #fff;
	border: 1px solid var(--lp-line);
	box-shadow: var(--lp-shadow-sm);
}

body.lp-theme .lp-pblock__title .elementor-heading-title {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 12px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--lp-primary);
}

.lp-pblock__title .elementor-heading-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--lp-accent);
}

/* Os blocos do plugin já trazem título próprio em alguns casos: evita duplicar */
.lp-pblock .property-detail-location .widget-title-wrapper,
.lp-pblock .widget-title-wrapper > .title { display: none; }

/* Descrição compacta, com "ver mais" */
body.lp-property-single .property-detail-description { position: relative; color: var(--lp-text); line-height: 1.7; }
body.lp-property-single .property-detail-description p { margin: 0 0 .35rem; }

body.lp-property-single .property-detail-description .lp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-top: .9rem;
}

body.lp-property-single .property-detail-description .lp-tags span {
	padding: .2rem .65rem;
	border-radius: var(--lp-pill);
	background: var(--lp-surface);
	font-size: .78rem;
	color: var(--lp-text);
}

.lp-desc.is-collapsed { max-height: 300px; overflow: hidden; }

.lp-desc.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 110px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%);
	pointer-events: none;
}

.lp-desc-toggle {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	font-weight: 700;
	color: var(--lp-accent);
	cursor: pointer;
}

.lp-desc-toggle:hover { color: var(--lp-accent-dark); }

/* Características em 3 colunas com check dourado */
body.lp-property-single .lp-pblock .property-amenities,
body.lp-property-single .lp-pblock .list-features,
body.lp-property-single .lp-pblock .property-features ul { border: 0; box-shadow: none; padding: 0; }

body.lp-property-single .lp-pblock .elementor-widget-apus_element_detail_property_features ul {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.lp-property-single .lp-pblock .elementor-widget-apus_element_detail_property_features li {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--lp-primary);
	font-weight: 500;
}

body.lp-property-single .lp-pblock .elementor-widget-apus_element_detail_property_features li i,
body.lp-property-single .lp-pblock .elementor-widget-apus_element_detail_property_features li svg { color: var(--lp-accent); }

/* Detalhes em linhas */
body.lp-property-single .lp-pblock .list-detail { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
body.lp-property-single .lp-pblock .list-detail li { width: auto !important; padding: 12px 0 !important; border-bottom: 1px dashed var(--lp-line); }

/* Simulador */
body.lp-property-single .mortgage-calculator-form .form-control { border-radius: var(--lp-radius-sm); }

/* Lateral fixa */
@media (min-width: 1025px) {
	body.lp-property-single .lp-pside {
		position: sticky !important;
		top: 110px;
		align-self: flex-start;
	}
	body.admin-bar.lp-property-single .lp-pside { top: 142px; }
}

body.lp-property-single .lp-pside .lp-pblock { margin-top: 16px; }

/* Card de contato */
.lp-pcard {
	position: relative;
	padding: 26px;
	border-radius: calc(var(--lp-radius) + 6px);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(90% 70% at 100% 0%, rgba(var(--lp-accent-rgb), .25), transparent 60%),
		radial-gradient(80% 80% at 0% 100%, rgba(var(--lp-primary-rgb), .85), transparent 65%),
		var(--lp-ink);
	color: rgba(255, 255, 255, .78);
	box-shadow: var(--lp-shadow-lg);
}

.lp-pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-pcard__status { display: flex; flex-wrap: wrap; gap: 6px; }

.lp-pcard__status span {
	padding: .3rem .7rem;
	border-radius: var(--lp-pill);
	background: rgba(255, 255, 255, .12);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
}

.lp-pcard__code { font-size: .78rem; color: rgba(255, 255, 255, .6); white-space: nowrap; }

.lp-pcard__price {
	margin-top: 18px;
	font-family: var(--lp-font-heading);
	font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.035em;
	color: #fff;
}

.lp-pcard__price small { font-size: .45em; font-weight: 500; opacity: .75; letter-spacing: 0; }
.lp-pcard__price.is-ask { font-size: 1.5rem; }
.lp-pcard__sub { margin-top: 6px; font-size: .82rem; color: rgba(255, 255, 255, .6); }

.lp-pcard__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.lp-pcard__facts li {
	display: grid;
	padding: 10px 12px;
	border-radius: var(--lp-radius-sm);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .1);
}

.lp-pcard__facts strong { font-family: var(--lp-font-heading); font-size: 1.1rem; color: #fff; }
.lp-pcard__facts span { font-size: .75rem; color: rgba(255, 255, 255, .65); }

.lp-pcard__actions { display: grid; gap: 10px; margin-top: 20px; }

body.lp-theme .lp-pcard__wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: 1rem;
	border-radius: var(--lp-pill);
	background: #25d366;
	color: #fff;
	font-family: var(--lp-font-heading);
	font-weight: 700;
	text-decoration: none;
	transition: transform .35s var(--lp-ease), box-shadow .35s var(--lp-ease), background-color .3s;
}

body.lp-theme .lp-pcard__wa:hover { color: #fff; background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .7); }
.lp-pcard__wa i { font-size: 1.25rem; }
.lp-pcard__visit { width: 100%; padding: 1rem; }

.lp-pcard__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	margin: 14px 0 0;
	font-size: .78rem;
	color: rgba(255, 255, 255, .65);
}

/* Formulário de visita na lateral */
body.lp-property-single .lp-pside .property-detail-contact-form .row > [class*="col-"] { width: 100%; flex: 0 0 100%; max-width: 100%; }
body.lp-property-single .lp-pside .property-detail-contact-form textarea { min-height: 110px; }
body.lp-property-single .lp-pside .property-detail-contact-form .btn,
body.lp-property-single .lp-pside .property-detail-contact-form button[type="submit"] { width: 100%; }
body.lp-property-single .lp-pside .property-detail-author-info { margin-bottom: 14px; }

/* Mapa */
.lp-map__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.lp-map__addr { margin: 0; color: var(--lp-text); }
.lp-map__addr i { color: var(--lp-accent); margin-right: .3rem; }
body.lp-theme .lp-map__open { font-weight: 700; color: var(--lp-accent); white-space: nowrap; }

.lp-map__frame {
	display: block;
	width: 100%;
	height: 380px;
	border: 0;
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
}

/* Semelhantes */
body.lp-property-single .lp-prelated .title,
body.lp-property-single .lp-prelated .widget-title {
	font-family: var(--lp-font-heading);
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--lp-primary);
}

/* Responsivo */
@media (max-width: 1024px) {
	body.lp-property-single .lp-pbody { flex-direction: column !important; }
	body.lp-property-single .lp-pmain,
	body.lp-property-single .lp-pside { width: 100% !important; --width: 100% !important; }
}

@media (max-width: 767px) {
	body.lp-property-single .lp-pblock .elementor-widget-apus_element_detail_property_features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.lp-property-single .lp-pblock .list-detail { grid-template-columns: 1fr; }
	body.lp-property-single .lp-pmain .list-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lp-map__frame { height: 280px; }
}

/* Características: o check do JustHome é absoluto; reserva espaço para ele */
body.lp-property-single .lp-pblock .columns-gap li { position: relative; padding-left: 28px !important; }
body.lp-property-single .lp-pblock .columns-gap li::before { left: 0 !important; color: var(--lp-accent); }

/* Semelhantes: título no padrão do tema */
body.lp-property-single .title-related-properties {
	margin: 0 0 24px;
	font-family: var(--lp-font-heading);
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--lp-primary);
}

/* Salvar: estado salvo em destaque */
body.lp-property-single .property-detail-favorite .btn-added-property-favorite i,
body.lp-property-single .property-detail-favorite .btn-added-property-favorite { color: var(--lp-accent); }

/* Compartilhar (template-parts/sharebox-property.php) */
.lp-share { position: relative; }
.lp-share::after { display: none; }

.lp-share__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 50;
	display: grid;
	min-width: 220px;
	padding: 8px;
	border-radius: var(--lp-radius);
	background: #fff;
	border: 1px solid var(--lp-line);
	box-shadow: var(--lp-shadow-lg);
	animation: lp-share-in .25s var(--lp-ease);
}

.lp-share__menu[hidden] { display: none; }

@keyframes lp-share-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

body.lp-theme .lp-share__item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--lp-radius-sm);
	background: transparent;
	color: var(--lp-ink);
	font-family: var(--lp-font-body);
	font-size: .92rem;
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

body.lp-theme .lp-share__item:hover { background: var(--lp-surface); color: var(--lp-primary); }
.lp-share__item i { width: 18px; text-align: center; font-size: 1rem; color: var(--lp-accent); }
.lp-share__item--whatsapp i { color: #25d366; }
.lp-share__copy { margin-top: 4px; border-top: 1px solid var(--lp-line) !important; border-radius: 0 0 var(--lp-radius-sm) var(--lp-radius-sm) !important; }
.lp-share__copy.is-done, .lp-share__copy.is-done i { color: #1a9e55; }

/* Altura da galeria reservada desde o primeiro quadro (ver inc/performance.php).
   É um mínimo: se o conteúdo for maior, a galeria cresce normalmente. */
body.lp-gallery-full .detail-gallery .property-detail-gallery.v1 { min-height: calc((100vw - 30px) * 1.5); }
@media (min-width: 576px) {
	body.lp-gallery-full .detail-gallery .property-detail-gallery.v1 { min-height: calc(min(100vw - 70px, 1370px) * .365); }
}
