/* Footer on mobile, tablet portrait and phone landscape: MENU, PRONA and SHËRBIME open and close
   like a dropdown (one open at a time). KONTAKT stays always open. Also lines up the small list icons with the column icons. Loaded by mobile-accordion.php. */
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait), (max-width: 950px) and (orientation: landscape) and (max-height: 500px) {
	.kr-ft-main .kr-ft-container { row-gap: 22px !important; }
	.kr-ft-main .kr-fm-col.kr-acc .kr-fm-head {
		position: relative;
		margin-bottom: 0 !important;
		padding-right: 40px;
		cursor: pointer;
		user-select: none;
		-webkit-tap-highlight-color: transparent;
		transition: margin-bottom 0.3s ease;
	}
	.kr-ft-main .kr-fm-col.kr-acc.is-open .kr-fm-head { margin-bottom: 22px !important; }
	/* Arrow on the right of the title */
	.kr-ft-main .kr-fm-col.kr-acc .kr-fm-head::after {
		content: "";
		position: absolute;
		right: 10px;
		top: 50%;
		width: 9px;
		height: 9px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: translateY(-70%) rotate(45deg);
		transition: transform 0.3s ease;
	}
	.kr-ft-main .kr-fm-col.kr-acc.is-open .kr-fm-head::after { transform: translateY(-25%) rotate(-135deg); }
	.kr-ft-main .kr-fm-col.kr-acc .kr-fm-list {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
	}
	.kr-ft-main .kr-fm-col.kr-acc .kr-fm-head:focus-visible { outline: 2px solid #9A5B39; outline-offset: 4px; }
	html.kr-light .kr-ft-main .kr-fm-col.kr-acc .kr-fm-head::after { border-color: #000A3C; }
	/* Small icons in the lists sit on the same vertical line as the big round column icon (48px, centre 24px from the left):
	   the "›" arrows in MENU / PRONA / SHËRBIME and the location, phone, email, clock icons in KONTAKT */
	.kr-ft-main .kr-fm-list:not(.kr-fm-contact) > li > a { margin-left: 21px; }
	.kr-ft-main .kr-fm-contact > li { padding-left: 15px; }
	/* City buttons ("Çelësi i shtëpisë suaj"): Elbasan hidden on mobile */
	.kr-ft-city .kr-fc-cities a.kr-fc-city[href*="elbasan"] { display: none !important; }
	/* Logo column: logo, "Invest today. Own tomorrow.", description and social buttons all centred */
	.kr-ft-main .kr-fm-brand { text-align: center; }
	.kr-ft-main .kr-fm-brand > a { display: block; text-align: center; }
	.kr-ft-main .kr-fm-brand > a img, .kr-ft-main .kr-fm-brand > a svg { margin-left: auto; margin-right: auto; }
	.kr-ft-main .kr-fm-brand .kr-fm-tag, .kr-ft-main .kr-fm-brand .kr-fm-desc { text-align: center !important; }
	/* The description had 30px padding on the left only, which pushed it off-centre */
	.kr-ft-main .kr-fm-brand .kr-fm-desc { padding-left: 0 !important; padding-right: 0 !important; margin-left: auto !important; margin-right: auto !important; }
	.kr-ft-main .kr-fm-brand .kr-fm-social { margin-left: auto !important; margin-right: auto !important; justify-content: center; justify-items: stretch; }
	/* City buttons: all the same size, together filling the full row */
	.kr-ft-city .kr-fc-cities { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px !important; width: 100%; }
	.kr-ft-city .kr-fc-cities a.kr-fc-city { width: 100%; min-width: 0; margin: 0 !important; justify-content: center; padding-left: 4px !important; padding-right: 4px !important; white-space: nowrap; }
	/* Social buttons: 8 (with WhatsApp + Threads), 4 per row in 2 rows, full column width */
	.kr-ft-main .kr-fm-brand .kr-fm-social { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; max-width: none !important; width: 100% !important; }
	.kr-ft-main .kr-fm-social a.kr-fm-extra { display: inline-flex !important; }
}

/* Logo column description on mobile: own text in 3 lines, each line wider than the one above
   (line breaks set in footer/main.php); same font size as before */
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait), (max-width: 950px) and (orientation: landscape) and (max-height: 500px) {
	.kr-ft-main .kr-fm-brand .kr-fm-desc .kr-fm-desc-d { display: none; }
	.kr-ft-main .kr-fm-brand .kr-fm-desc .kr-fm-desc-m { display: inline; }
	.kr-ft-main .kr-fm-brand .kr-fm-tag { display: none !important; } /* "Invest today. Own tomorrow." removed on mobile */
	.kr-ft-main .kr-fm-brand > a img { width: 260px !important; max-width: 100%; height: auto !important; } /* logo a little bigger on mobile (was 230px) */
	.kr-ft-main .kr-fm-brand .kr-fm-desc { text-wrap: wrap !important; }
}
/* Screens 390px and wider (text box 350px or more): keep each line whole */
@media (min-width: 390px) and (max-width: 767px), (min-width: 390px) and (max-width: 1024px) and (orientation: portrait), (min-width: 390px) and (max-width: 950px) and (orientation: landscape) and (max-height: 500px) {
	.kr-ft-main .kr-fm-brand .kr-fm-desc .kr-fm-desc-m { white-space: nowrap; }
}

/* Very narrow phones (under 375px): social button text a little smaller so "Instagram" and "WhatsApp" fit */
@media (max-width: 374px) {
	.kr-ft-main .kr-fm-brand .kr-fm-social a { font-size: 11px !important; gap: 4px !important; padding: 0 2px !important; }
}
