/* Property card: photo first, quiet text, one strong price. */
.pc {
	--pc-ink: #1d1d1f;
	--pc-muted: #6e6e73;
	--pc-line: rgba(17, 24, 39, 0.08);
	--pc-radius: 18px;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--pc-radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 0 0 1px var(--pc-line);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pc:hover { box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1), 0 0 0 1px var(--pc-line); transform: translateY(-2px); }
.pc:focus-within { box-shadow: 0 0 0 2px var(--primary, #3563ae); }

/* Media */
.pc-media { position: relative; flex: none; background: #f2f2f4; }
.pc-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.pc-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pc:hover .pc-image img { transform: scale(1.03); }

.pc-badge, .pc-note {
	position: absolute;
	z-index: 2;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	pointer-events: none;
}
.pc-badge { top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, 0.92); color: #a86b00; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.pc-badge::before { content: "★ "; }
.pc-note { bottom: 10px; inset-inline-start: 12px; background: rgba(0, 0, 0, 0.5); color: #fff; font-weight: 500; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.pc-actions { position: absolute; z-index: 3; top: 10px; inset-inline-end: 10px; display: flex; gap: 6px; }
.pc-action {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: var(--pc-ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.pc-action:hover { background: #fff; transform: scale(1.06); }
.pc-action:active { transform: scale(0.94); }
.pc-action svg { width: 17px; height: 17px; }
.pc-action.is-favorite, .pc-action[aria-pressed="true"] { color: #e0245e; }
.pc-action.is-favorite svg, .pc-action[aria-pressed="true"] svg { fill: currentColor; }

/* Body */
.pc-body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 16px; }
.pc-eyebrow { margin: 0; overflow: hidden; color: var(--pc-muted); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.pc-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; }
.pc-title a { display: -webkit-box; overflow: hidden; color: var(--pc-ink); text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* The whole card opens the property; the buttons sit above this layer. */
.pc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-title a:focus-visible { outline: none; }

.pc-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 4px 0 0; padding: 0; }
.pc-facts > div { display: flex; align-items: baseline; gap: 4px; min-width: 0; padding-inline-end: 10px; margin-inline-end: 10px; border-inline-end: 1px solid var(--pc-line); }
.pc-facts > div:last-child { padding-inline-end: 0; margin-inline-end: 0; border: 0; }
.pc-facts dt { color: var(--pc-muted); font-size: 12px; font-weight: 400; }
.pc-facts dd { margin: 0; color: var(--pc-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }

.pc-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: auto; padding-top: 10px; }
.pc-price { margin: 0; color: var(--pc-ink); font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.pc-meta { display: flex; gap: 6px; margin: 0; color: #86868b; font-size: 11px; line-height: 1.6; }
.pc-meta span::after { content: "·"; margin-inline-start: 6px; }

/* List layout: photo beside the text. */
.archive-property-collection[data-layout="list"] .pc { flex-direction: row; }
.archive-property-collection[data-layout="list"] .pc-media { width: clamp(132px, 36%, 280px); }
.archive-property-collection[data-layout="list"] .pc-image { height: 100%; aspect-ratio: auto; min-height: 168px; }
.archive-property-collection[data-layout="list"] .pc-body { padding: 14px 16px; }

@media (max-width: 679px) {
	.pc { --pc-radius: 16px; }
	.pc:hover { transform: none; }
	.pc-body { padding: 12px 14px 14px; }
	.pc-price { font-size: 18px; }
	.archive-property-collection[data-layout="list"] .pc-media { width: 38%; }
	.archive-property-collection[data-layout="list"] .pc-image { min-height: 150px; }
	.archive-property-collection[data-layout="list"] .pc-body { gap: 4px; padding: 10px 12px; }
	.archive-property-collection[data-layout="list"] .pc-title { font-size: 14px; }
	.archive-property-collection[data-layout="list"] .pc-facts > div { padding-inline-end: 7px; margin-inline-end: 7px; }
	.archive-property-collection[data-layout="list"] .pc-facts dt { display: none; }
	.archive-property-collection[data-layout="list"] .pc-price { font-size: 16px; }
	.archive-property-collection[data-layout="list"] .pc-actions { top: 8px; inset-inline-end: 8px; gap: 4px; }
	.archive-property-collection[data-layout="list"] .pc-action { width: 30px; height: 30px; }
	.archive-property-collection[data-layout="list"] .pc-badge { top: auto; bottom: 8px; inset-inline-start: 8px; }
	.archive-property-collection[data-layout="list"] .pc-note { top: 8px; bottom: auto; inset-inline-start: 8px; padding: 2px 8px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.pc, .pc-image img, .pc-action { transition: none; }
	.pc:hover, .pc:hover .pc-image img { transform: none; }
}

/* Share menu and copy toast */
.pc-share-menu {
	position: absolute;
	z-index: 1300;
	display: grid;
	min-width: 190px;
	padding: 6px;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	animation: pc-pop 0.14s ease-out;
}
.pc-share-menu[hidden] { display: none; }
.pc-share-menu a, .pc-share-menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 9px;
	background: none;
	color: #1d1d1f;
	font: inherit;
	font-size: 14px;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}
.pc-share-menu a:hover, .pc-share-menu button:hover, .pc-share-menu :focus-visible { background: rgba(17, 24, 39, 0.05); outline: none; }
.pc-share-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #86868b; }
.pc-share-dot--wa { background: #25d366; }
.pc-share-dot--x { background: #111; }
.pc-share-dot--tg { background: #2aabee; }
.pc-share-dot--copy { background: var(--primary, #3563ae); }
@keyframes pc-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

.pc-toast {
	position: fixed;
	z-index: 1400;
	bottom: calc(24px + env(safe-area-inset-bottom));
	left: 50%;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(29, 29, 31, 0.92);
	color: #fff;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.pc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Property page: request links under the contact buttons */
.property-request-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.property-request-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line, #e3e7ee); border-radius: var(--radius, 10px); background: #fff; color: var(--ink, #1d1d1f); font-size: 0.82rem; font-weight: 800; text-decoration: none; transition: border-color .15s, background-color .15s; }
.property-request-action:hover { border-color: var(--blue, #3563ae); background: #f3f6fc; color: var(--blue, #3563ae); }
.property-request-action .lucide-icon { width: 17px; height: 17px; }

/* Property page: one contact button that opens the list of numbers. */
.property-primary-actions:has(> .property-contact) {
	grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}
.property-contact { display: grid; min-width: 0; }
.property-action--contact {
	background: var(--blue, #24527a);
	border-color: var(--blue, #24527a);
	color: #fff;
	width: 100%;
}
.property-action--contact:hover,
.property-action--contact[aria-expanded="true"] {
	background: #183e5d;
	border-color: #183e5d;
	color: #fff;
}
.property-contact [hidden] { display: none !important; }

.property-contact__menu {
	background: #fff;
	border: 1px solid rgba(17, 24, 39, 0.08);
	box-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
	color: #1d1d1f;
	z-index: 95;
	animation: property-contact-in 0.18s ease-out;
}
.property-contact__head {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 4px 4px 10px;
}
.property-contact__head strong {
	font-size: 0.95rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.property-contact__close {
	align-items: center;
	background: #f5f5f7;
	border: 0;
	border-radius: 50%;
	color: #6e6e73;
	cursor: pointer;
	display: inline-flex;
	flex: none;
	height: 30px;
	justify-content: center;
	padding: 0;
	width: 30px;
}
.property-contact__close:hover { background: #ebebf0; color: #1d1d1f; }
.property-contact__close .lucide-icon { height: 15px; width: 15px; }
.property-contact__list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.property-contact__row {
	align-items: center;
	background: #f5f5f7;
	border-radius: 14px;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 10px 12px;
}
.property-contact__num { display: grid; gap: 1px; min-width: 0; }
.property-contact__num small { color: #6e6e73; font-size: 0.74rem; font-weight: 700; }
.property-contact__num bdi { font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; text-align: start; white-space: nowrap; }
.property-contact__btns { display: flex; flex: none; gap: 6px; }
.property-contact__btn {
	align-items: center;
	border-radius: 999px;
	color: #fff !important;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 800;
	gap: 5px;
	min-height: 36px;
	padding: 0 13px;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}
.property-contact__btn .lucide-icon { height: 15px; width: 15px; }
.property-contact__btn.is-wa { background: #128c4a; }
.property-contact__btn.is-wa:hover { background: #0e783e; }
.property-contact__btn.is-call { background: var(--blue, #24527a); }
.property-contact__btn.is-call:hover { background: #183e5d; }

/* Phones: the action bar is fixed at the bottom, so the list rises above it as a sheet. */
@media (max-width: 679px) {
	.property-contact { position: static; }
	.property-contact__menu {
		border-radius: 20px 20px 0 0;
		bottom: 100%;
		inset-inline: 0;
		padding: 14px 14px 16px;
		position: absolute;
		animation-name: property-contact-up;
	}
	.property-contact__backdrop {
		background: rgba(17, 24, 39, 0.38);
		bottom: 100%;
		height: 100vh;
		inset-inline: 0;
		position: absolute;
		z-index: 94;
	}
}
@media (min-width: 680px) {
	.property-primary-actions:has(> .property-contact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.property-contact { grid-column: 1 / -1; position: relative; }
	.property-contact__backdrop { display: none !important; }
	.property-contact__menu {
		border-radius: 18px;
		box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
		margin-top: 8px;
		padding: 12px;
		position: static;
	}
}
@keyframes property-contact-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes property-contact-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .property-contact__menu { animation: none; } }
