/**
 * Mobile bottom navigation — site-wide
 */

.gl-bottom-nav {
	display: none;
}

@media (max-width: 991px) {
	.gl-bottom-nav {
		display: flex;
		align-items: stretch;
		justify-content: space-around;
		position: fixed;
		bottom: 0;
		inset-inline: 0;
		z-index: 900;
		min-height: calc(56px + env(safe-area-inset-bottom));
		padding: 0.25rem 0.375rem env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, 0.97);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border-top: 1px solid rgba(26, 26, 26, 0.06);
		box-shadow: 0 -6px 28px rgba(26, 26, 26, 0.07);
	}

	body {
		padding-bottom: calc(56px + env(safe-area-inset-bottom));
	}

	.gl-bottom-nav__item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.15rem;
		min-width: 0;
		max-width: 5rem;
		margin: 0;
		padding: 0.35rem 0.15rem;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: var(--gl-gray);
		text-decoration: none;
		font-family: var(--gl-font);
		font-size: 0.625rem;
		font-weight: 600;
		line-height: 1.2;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		appearance: none;
		-webkit-appearance: none;
		transition: color 0.2s ease, background-color 0.2s ease;
	}

	.gl-bottom-nav__item.is-active {
		color: var(--gl-gold);
		background: rgba(201, 169, 98, 0.1);
	}

	.gl-bottom-nav__item:active {
		opacity: 0.8;
	}

	.gl-bottom-nav__icon {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
	}

	.gl-bottom-nav__icon svg {
		display: block;
		width: 22px;
		height: 22px;
	}

	.gl-bottom-nav__label {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.gl-bottom-nav__badge {
		position: absolute;
		top: -3px;
		inset-inline-start: calc(50% + 2px);
		min-width: 16px;
		height: 16px;
		padding: 0 4px;
		border-radius: 999px;
		background: var(--gl-gold);
		color: var(--gl-charcoal);
		font-size: 0.5625rem;
		font-weight: 800;
		line-height: 16px;
		text-align: center;
		box-shadow: 0 0 0 2px var(--gl-white);
	}
}

@media (min-width: 992px) {
	.gl-bottom-nav {
		display: none !important;
		visibility: hidden;
		pointer-events: none;
	}
}
