/**
 * Estilos mínimos para shortcodes de campos de propiedad (fácil de sobrescribir en Divi).
 *
 * @package Premium_Prime_Core
 */

/* Contenedores genéricos */
.ppp-property-field {
	box-sizing: border-box;
	max-width: 100%;
}

.ppp-property-short-description,
.ppp-property-long-description,
.ppp-property-important-notes {
	max-width: 100%;
}

.ppp-property-long-description::after,
.ppp-property-important-notes::after,
.ppp-property-short-description::after {
	content: "";
	display: table;
	clear: both;
}

/* Amenidades: lista con checks */
.ppp-property-amenities-wrap {
	max-width: 100%;
}

.ppp-property-amenities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 0.5rem 1.25rem;
}

@media (max-width: 600px) {
	.ppp-property-amenities {
		grid-template-columns: 1fr;
	}
}

.ppp-property-amenities__item {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 0;
	padding: 0.2rem 0;
	list-style: none;
}

.ppp-property-amenities__icon {
	flex-shrink: 0;
	line-height: 1.3;
	font-weight: 600;
}

.ppp-property-amenities__text {
	line-height: 1.4;
}

/* Mapa responsive */
.ppp-property-map {
	max-width: 100%;
}

.ppp-property-map__inner {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	background: #f2f2f2;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}

.ppp-property-map__inner .ppp-property-map__iframe,
.ppp-property-map__iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Depuración (solo usuarios con manage_options + debug="1") */
.ppp-property-sc-debug {
	box-sizing: border-box;
	margin: 0.75rem 0;
	padding: 0.65rem 0.85rem;
	font-size: 0.75rem;
	line-height: 1.45;
	color: #1d2327;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.ppp-property-sc-debug__row {
	margin: 0.25rem 0;
}

.ppp-property-sc-debug__label {
	font-weight: 600;
	margin-right: 0.25rem;
}

.ppp-property-sc-debug .ppp-property-sc-debug__value {
	word-break: break-word;
}
