/* Tagged Admin – Lediga lokaler (shortcode) */

/* ── Grid ───────────────────────────────────────────────── */
.tagged-properties {
	display: grid;
	gap: 32px;
	margin: 24px 0;
}

.tagged-properties--cols-1 { grid-template-columns: 1fr; }
.tagged-properties--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tagged-properties--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tagged-properties--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.tagged-properties--cols-3,
	.tagged-properties--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tagged-properties {
		grid-template-columns: 1fr !important;
	}
}

/* ── Kort ────────────────────────────────────────────────── */
.tagged-properties__item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
	transition: box-shadow .2s ease, transform .2s ease;
}

.tagged-properties__item:hover {
	box-shadow: none;
	transform: translateY(-2px);
}

/* ── Bild ────────────────────────────────────────────────── */
.tagged-properties__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.tagged-properties__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.tagged-properties__item:hover .tagged-properties__image img {
	transform: scale(1.04);
}

/* ── Innehåll ────────────────────────────────────────────── */
.tagged-properties__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
	gap: 10px;
}

/* ── Badge (typ) ─────────────────────────────────────────── */
.tagged-properties__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--tagged-header-color, #2271b1);
	background: color-mix(in srgb, var(--tagged-header-color, #2271b1) 10%, transparent);
	border-radius: 3px;
	padding: 3px 8px;
	align-self: flex-start;
}

/* ── Rubrik ──────────────────────────────────────────────── */
.tagged-properties__title {
	font-size: var(--tagged-property-heading-size, 20px);
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: var(--tagged-property-heading-color, #1d2327);
	font-family: var(--tagged-property-font-family, inherit);
}

/* ── Adress ──────────────────────────────────────────────── */
.tagged-properties__address {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: .9em;
	color: #646970;
}

.tagged-properties__address .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--tagged-header-color, #2271b1);
}

/* ── Brödtext ────────────────────────────────────────────── */
.tagged-properties__content {
	font-size: var(--tagged-property-font-size, 16px);
	line-height: 1.65;
	color: var(--tagged-property-text-color, #3c434a);
	font-family: var(--tagged-property-font-family, inherit);
	flex: 1;
}

.tagged-properties__content p:last-child {
	margin-bottom: 0;
}

/* ── Fakta-lista ─────────────────────────────────────────── */
.tagged-properties__meta {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	border-top: 1px solid #e2e4e7;
	padding-top: 14px;
}

.tagged-properties__meta li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tagged-properties__meta-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #787c82;
}

.tagged-properties__meta-value {
	font-size: .95em;
	font-weight: 600;
	color: #1d2327;
}

/* ── Länk ────────────────────────────────────────────────── */
.tagged-properties__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	align-self: flex-start;
	font-size: .9em;
	font-weight: 700;
	text-decoration: none;
	color: var(--tagged-property-link-color, #2271b1);
	border-bottom: 2px solid currentColor;
	padding-bottom: 1px;
	transition: opacity .15s;
}

.tagged-properties__link:hover {
	opacity: .7;
}
