/**
 * Harmonika doboz shortcode stílusok — ingatlan-modul.
 *
 * Forrás: sablon/fooldal „6B. ZÁRÓ — HOVER DOBOZOK”.
 * A plugin CSS-e mindig a téma után (késői prioritással, 100) töltődik,
 * így nem kell !important; a specifikumot a .im-harmonika osztályok adják.
 */

/* ===== Szekció: full-bleed háttérkép + sötét gradiens overlay ===== */
.im-harmonika {
	position: relative;
	min-height: clamp(560px, 86vh, 800px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background-color: #0b0a09;                 /* ha nincs háttérkép */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.im-harmonika__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(8, 7, 6, 0.85) 0%, rgba(8, 7, 6, 0.15) 45%, rgba(8, 7, 6, 0.3) 100%);
}

/* ===== Rács (3 doboz, alulra igazítva) ===== */
.im-harmonika__grid {
	position: relative;
	z-index: 2;
	width: 100%;
max-width: 1140px;
    margin: 0 auto;
    padding: 50px 0px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(14px, 1.6vw, 22px);
	align-items: end;
}

/* ===== Egy doboz — csukott alapállapot (üveghatás) ===== */
.im-harmonika__doboz {
	background: rgba(11, 10, 9, 0.5);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	padding: clamp(20px, 2vw, 28px);
	cursor: pointer;
	transition: background .4s ease, border-color .4s ease;
}

/* ===== Felső cím (eyebrow) ===== */
.im-harmonika__eyebrow {
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0;
	color: #F7F4EF; 
	transition: color .4s ease;
}

/* ===== Cím ===== */
.im-harmonika__cim {
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: clamp(1.2rem, 1.7vw, 1.5rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 8px 0 0;
	color: #F7F4EF;                               /* csukott */
	transition: color .4s ease;
}

/* ===== Kinyitható rész (kivonat + gomb) ===== */
.im-harmonika__detail {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-top: 0;
	transition: max-height .5s cubic-bezier(.16, 1, .3, 1), opacity .4s ease, margin-top .4s ease;
}

.im-harmonika__szoveg {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(20, 18, 16, 0.7);
}

/* ===== CTA gomb ===== */
.im-harmonika__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 12px 22px;
	background: #AF7366;
	color: #F7F4EF;
	border-radius: 100px;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: filter .3s ease;
}

.im-harmonika__cta:hover {
	filter: brightness(1.05);
}

.im-harmonika__cta::after {
	content: " →";
}

/* ===== Nyitott állapot (.is-open — a JS állítja) ===== */
.im-harmonika__doboz.is-open {
	background: #fff;
	border-color: #fff;
}

.im-harmonika__doboz.is-open .im-harmonika__eyebrow {
	color: #AF7366;
}

.im-harmonika__doboz.is-open .im-harmonika__cim {
	color: #141210;
}

.im-harmonika__doboz.is-open .im-harmonika__detail {
	opacity: 1;
	margin-top: 14px;
	/* A max-height-ot a JS állítja a tényleges tartalommagassághoz. */
}

/* ===== Reszponzív ===== */
@media (max-width: 600px) {
	.im-harmonika__grid {
		grid-template-columns: 1fr;
		        padding: 35px 20px;
	}
}
