/* ============================================================================
   Property Shortcodes — field shortcodes + amenities (grid & Swiper slider)
   Matches the property-single design system:
   ink #1a1a1a · gold #C9A84C (hover #b8963e) · Brin (display) / Montserrat (body)
   cards #f9f9f9 on #e5e5e5 borders · subtle shadows · 0.2s transitions
   ========================================================================== */

/* ── Single field shortcodes ──────────────────────────────────────────── */
/* Mirrors the .ke-details-list label/value rhythm so individual fields
   dropped into Elementor read as part of the same family. */
.ke-field {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	font-family: Montserrat, sans-serif;
	vertical-align: top;
}

.ke-field__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #999;
}

.ke-field__value {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

/* Money fields carry the gold accent, like the hero price. */
.ke-field--price .ke-field__value,
.ke-field--min-price .ke-field__value,
.ke-field--price-per-sqft .ke-field__value {
	font-family: Brin, sans-serif;
	color: #C9A84C;
	font-size: 20px;
}

.ke-field__badge {
	align-self: flex-start;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1a1a;
	background: #C9A84C;
	border-radius: 4px;
	padding: 4px 10px;
}

.ke-field__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #C9A84C;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	transition: color 0.2s;
}

.ke-field__link:hover {
	color: #b8963e;
}

/* ── Amenities block (shared) ─────────────────────────────────────────── */
.ke-amenities-block {
	margin: 40px 0;
}

.ke-amenities-block .ke-section-title {
	font-family: Brin, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 28px;
}

/* ── Signature: editorial photo tile ──────────────────────────────────── */
/* Image fills the tile, a dark scrim grounds an overlaid label, and a short
   gold rule above the label echoes the gold-on-dark hero/CTA treatment. */
.ke-amenity-card {
	position: relative;
	display: block;
	height: 100%;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #1a1a1a;
}

.ke-amenity-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
}

.ke-amenity-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Scrim — keeps the label legible over any photo. */
.ke-amenity-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 15, 15, 0.78) 0%, rgba(15, 15, 15, 0.18) 42%, transparent 70%);
}

.ke-amenity-card__label {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 16px;
	z-index: 2;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
}

/* The gold rule — the one accent, grows on hover. */
.ke-amenity-card__label::before {
	content: "";
	display: block;
	width: 26px;
	height: 2px;
	margin-bottom: 10px;
	background: #C9A84C;
	transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ke-amenity-card:hover .ke-amenity-card__media img {
	transform: scale(1.06);
}

.ke-amenity-card:hover .ke-amenity-card__label::before {
	width: 52px;
}

/* ── No-image / legacy amenity: light pill-card with gold marker ───────── */
.ke-amenity-card--no-image {
	display: flex;
	align-items: center;
	gap: 12px;
	aspect-ratio: auto;
	min-height: 64px;
	padding: 16px 18px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ke-amenity-card--no-image:hover {
	border-color: #C9A84C;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ke-amenity-card__dot {
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #C9A84C;
	box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
}

.ke-amenity-card--no-image .ke-amenity-card__label {
	position: static;
	color: #1a1a1a;
}

.ke-amenity-card--no-image .ke-amenity-card__label::before {
	display: none;
}

/* ── Grid mode (slider="no") ──────────────────────────────────────────── */
.ke-amenities-cards {
	display: grid;
	grid-template-columns: repeat(var(--ke-amenity-cols, 4), 1fr);
	gap: 20px;
}

/* ── Shared Swiper chrome (amenities slider + fields slider) ───────────── */
.ke-amenities-swiper,
.ke-fields-swiper {
	position: relative;
	padding: 0 0 44px;
}

.ke-amenities-swiper .swiper-slide,
.ke-fields-swiper .swiper-slide {
	height: auto; /* equal-height cards/tiles */
}

/* Pagination */
.ke-swiper__pagination {
	bottom: 8px;
}

.js-ke-swiper .swiper-pagination-bullet {
	background: #d2d2d2;
	opacity: 1;
	transition: width 0.25s, background 0.25s;
}

.js-ke-swiper .swiper-pagination-bullet-active {
	background: #C9A84C;
	width: 22px;
	border-radius: 5px;
}

/* Nav arrows — solid ink → gold, matching the button/CTA language. */
.ke-swiper__btn {
	position: absolute;
	top: calc(50% - 22px);
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.ke-swiper__btn:hover {
	background: #C9A84C;
	color: #1a1a1a;
}

.ke-swiper__btn:focus-visible {
	outline: 2px solid #C9A84C;
	outline-offset: 2px;
}

.ke-swiper__btn--prev {
	left: -8px;
}

.ke-swiper__btn--next {
	right: -8px;
}

.ke-swiper__btn.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}

/* ── Field group: [ke_property_fields] ────────────────────────────────── */
.ke-fields {
	margin: 28px 0;
}

.ke-fields .ke-section-title {
	font-family: Brin, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 24px;
}

/* layout="vertical" — label/value rows, echoing .ke-details-list */
.ke-fields__rows {
	margin: 0;
	padding: 0;
}

.ke-fields__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
}

.ke-fields__row:last-child {
	border-bottom: none;
}

.ke-fields__row-label {
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #999;
	flex-shrink: 0;
}

.ke-fields__row-value {
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
	text-align: right;
}

.ke-fields__row-value.ke-field--price,
.ke-fields__row-value.ke-field--min-price,
.ke-fields__row-value.ke-field--price-per-sqft {
	font-family: Brin, sans-serif;
	color: #C9A84C;
	font-size: 18px;
}

/* layout="horizontal" — grid of field cards */
.ke-fields__grid {
	display: grid;
	grid-template-columns: repeat(var(--ke-fields-cols, 4), 1fr);
	gap: 16px;
}

/* Field "cell" card — used by horizontal grid and slider */
.ke-field-cell {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 18px 20px;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ke-field-cell:hover {
	border-color: #C9A84C;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ke-field-cell__label {
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #999;
}

.ke-field-cell__value {
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.25;
}

.ke-field-cell.ke-field--price .ke-field-cell__value,
.ke-field-cell.ke-field--min-price .ke-field-cell__value,
.ke-field-cell.ke-field--price-per-sqft .ke-field-cell__value {
	font-family: Brin, sans-serif;
	color: #C9A84C;
	font-size: 22px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.ke-amenities-cards { grid-template-columns: repeat(3, 1fr); }
	.ke-fields__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.ke-amenities-cards { grid-template-columns: repeat(2, 1fr); }
	.ke-fields__grid { grid-template-columns: repeat(2, 1fr); }
	.ke-swiper__btn--prev { left: 0; }
	.ke-swiper__btn--next { right: 0; }
}

@media (max-width: 480px) {
	.ke-amenities-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
	.ke-fields__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── Quality floor: respect reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.ke-amenity-card__media img,
	.ke-amenity-card__label::before,
	.ke-amenity-card--no-image,
	.ke-field-cell,
	.ke-map__card {
		transition: none;
	}
	.ke-amenity-card:hover .ke-amenity-card__media img {
		transform: none;
	}
}

/* ============================================================================
   Property Map shortcode — embedded Google Map + floating info card
   ========================================================================== */
.ke-map-block {
	margin: 40px 0;
}

.ke-map-block .ke-section-title {
	font-family: Brin, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 24px;
}

.ke-map {
	position: relative;
	width: 100%;
	height: var(--ke-map-height, 420px);
	border-radius: 12px;
	overflow: hidden;
	background: #1a1a1a;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.ke-map__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.ke-map__card {
	position: absolute;
	left: 24px;
	bottom: 24px;
	z-index: 5;
	max-width: 320px;
	padding: 22px 24px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	transition: transform 0.25s ease;
}

.ke-map__card:hover {
	transform: translateY(-2px);
}

.ke-map__card-eyebrow {
	display: block;
	font-family: Montserrat, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #C9A84C;
	margin-bottom: 8px;
}

.ke-map__card-title {
	font-family: Brin, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
	line-height: 1.25;
}

.ke-map__card-address {
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 14px;
	line-height: 1.45;
}

.ke-map__card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #C9A84C;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	transition: color 0.2s;
}

.ke-map__card-link:hover {
	color: #fff;
}

@media (max-width: 768px) {
	.ke-map__card {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
		padding: 18px 20px;
	}
	.ke-map__card-title { font-size: 16px; }
}

/* ============================================================================
   Amenities — icon-style card (used when an icon URL/SVG is supplied)
   ========================================================================== */
.ke-amenity-card--icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	aspect-ratio: 1 / 1;
	padding: 18px 14px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.ke-amenity-card--icon:hover {
	border-color: #C9A84C;
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.ke-amenity-card__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #C9A84C;
}

.ke-amenity-card__icon img,
.ke-amenity-card__icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ke-amenity-card--icon .ke-amenity-card__label {
	position: static;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 600;
}

.ke-amenity-card--icon .ke-amenity-card__label::before {
	display: none;
}

/* ============================================================================
   Property Details List — light "listicle" card
   One row per populated ACF field, leading icon (box / dot / none),
   attribute label on the left, value on the right.
   ========================================================================== */
.ke-dlist {
	margin: 32px 0;
	max-width: 720px;
	font-family: Montserrat, sans-serif;
}

.ke-dlist__title {
	font-family: Brin, sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 22px;
}

.ke-dlist__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ke-dlist__item {
	display: grid;
	grid-template-columns: 36px 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 14px 4px;
	border-bottom: 1px solid #ececec;
}

.ke-dlist__item:last-child {
	border-bottom: 0;
}

.ke-dlist__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #1a1a1a;
}

.ke-dlist--icon-box .ke-dlist__icon {
	border: 1.5px dashed #1a1a1a;
	border-radius: 4px;
}

.ke-dlist--icon-dot .ke-dlist__icon {
	color: #C9A84C;
}

.ke-dlist--icon-none .ke-dlist__item {
	grid-template-columns: 1fr auto;
}

.ke-dlist__label {
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
	letter-spacing: 0.01em;
}

.ke-dlist__value {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	text-align: right;
	line-height: 1.3;
}

.ke-dlist__value-strong {
	color: #C9A84C;
	font-family: Brin, sans-serif;
	font-size: 17px;
}

.ke-dlist__unit {
	font-weight: 500;
	color: #888;
	margin-left: 2px;
}

.ke-dlist__link {
	color: #C9A84C;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	transition: color 0.2s;
}

.ke-dlist__link:hover {
	color: #b8963e;
}

.ke-dlist__chip {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}

.ke-dlist__chip--on {
	background: #C9A84C;
	color: #1a1a1a;
}

.ke-dlist__chip--off {
	background: #eee;
	color: #888;
}

@media (max-width: 540px) {
	.ke-dlist__item {
		grid-template-columns: 28px 1fr;
		grid-template-areas:
			"icon label"
			".    value";
		gap: 6px 12px;
		padding: 12px 4px;
	}
	.ke-dlist__icon   { grid-area: icon; }
	.ke-dlist__label  { grid-area: label; }
	.ke-dlist__value  { grid-area: value; text-align: left; }
	.ke-dlist--icon-none .ke-dlist__item {
		grid-template-columns: 1fr;
		grid-template-areas:
			"label"
			"value";
	}
}
