/*
 * MX Social — phone-size fixes shared by every page (loaded from social/partials/top-nav).
 * Kept separate from mx-social-pro.css so it applies the same way to every version of the page templates.
 * Selectors start with body.mx-social-app to win over the page and theme rules without !important.
 */

@media (max-width: 991px) {
	/* Tap targets: at least 40px high (the thin ones were 16-28px) */
	body.mx-social-app .lang-switcher .lang-chip {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 36px;
		padding: 6px 10px;
		font-size: 0.8125rem;
	}

	body.mx-social-app .nav-right .mx-pro-login-link {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 6px 14px;
		font-size: 0.875rem;
	}

	body.mx-social-app .mx-pro-footer ul li a,
	body.mx-social-app .mx-pro-footer-bottom a {
		display: inline-block;
		padding: 9px 0;
	}

	body.mx-social-app .mx-pro-socials a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
	}

	body.mx-social-app .breadcrumbs a,
	body.mx-social-app nav[aria-label="Breadcrumb"] a,
	body.mx-social-app .mx-book-back {
		display: inline-block;
		padding: 10px 0;
	}

	body.mx-social-app .ad-cta,
	body.mx-social-app .track-item__reviews,
	body.mx-social-app .track-item__book {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
	}

	body.mx-social-app .detail-hero-overlay a.chip {
		display: inline-flex;
		align-items: center;
		min-height: 34px;
		padding: 6px 12px;
	}

	/* Small text: nothing under 12px, secondary labels at 13px.
	   !important on purpose: this is a floor, and the page rules setting 0.68-0.72rem are more specific. */
	body.mx-social-app small,
	body.mx-social-app .region-item-count,
	body.mx-social-app .italy-map-hint {
		font-size: 0.8125rem !important;
	}

	body.mx-social-app .badge,
	body.mx-social-app .seo-eyebrow,
	body.mx-social-app .mx-pill,
	body.mx-social-app .chip,
	body.mx-social-app .mx-cal-dow,
	body.mx-social-app .section-title,
	body.mx-social-app .italy-map-legend-title,
	body.mx-social-app .italy-map-legend span,
	body.mx-social-app .mx-pro-socials a {
		font-size: 0.75rem !important;
	}
}

@media (max-width: 720px) {
	/* Track page: the booking button sat on top of the track name card.
	   On phones the hero becomes photo, then text, then a full-width button. */
	body.mx-social-app .detail-hero {
		display: flex;
		flex-direction: column;
	}

	body.mx-social-app .detail-hero .detail-hero-overlay {
		position: static;
		order: 2;
		background: #0f172a;
		padding: 14px 16px 12px;
	}

	body.mx-social-app .detail-hero .btn-book-day--hero,
	body.mx-social-app .detail-hero .btn-book-day--hero.has-badge {
		position: static;
		order: 3;
		max-width: none;
		width: auto;
		margin: 0 16px 16px;
		justify-content: center;
		text-align: center;
	}

	/* Booking calendar: day cells at least 40px high (they were 31px on a 360px phone) */
	body.mx-social-app .mx-cal {
		max-width: none;
		margin-left: -8px;
		margin-right: -8px;
		padding: 8px 4px;
	}

	body.mx-social-app .mx-cal-nav {
		width: 40px;
		height: 40px;
	}

	body.mx-social-app .mx-cal-grid {
		gap: 3px;
	}

	body.mx-social-app .mx-cal-day {
		aspect-ratio: auto;
		min-height: 40px;
		font-size: 0.9375rem;
	}
}
