/**
 * Location Tab Navigation Styles
 * Tab-styled navigation links for non-condo location terms
 *
 * Prefix: ltn-
 * @package Astra_Child_Main
 * @since 1.0.0
 */

/* ============================================
   Section Container
   ============================================ */

.ltn-section {
	padding: 8px 0;
	background: #fff;
	border-bottom: 1px solid #e9ecef;
}

.ltn-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ============================================
   Tabs Container
   ============================================ */

.ltn-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.ltn-tabs::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

/* ============================================
   Individual Tab
   ============================================ */

.ltn-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	color: #495057;
	background: #f1f3f5;
	border: 1px solid #dee2e6;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	flex-shrink: 0;
}

.ltn-tab:hover {
	color: #212529;
	background: #e9ecef;
	border-color: #ced4da;
	text-decoration: none;
}

.ltn-tab:focus-visible {
	outline: 2px solid #4a90d9;
	outline-offset: 2px;
}

/* Active tab */
.ltn-tab--active {
	color: #fff;
	background: #2c3e50;
	border-color: #2c3e50;
}

.ltn-tab--active:hover {
	color: #fff;
	background: #34495e;
	border-color: #34495e;
}

/* ============================================
   Desktop Layout
   ============================================ */

html[data-device="desktop"] .ltn-section {
	padding: 10px 0;
}

html[data-device="desktop"] .ltn-container {
	padding: 0 24px;
}

html[data-device="desktop"] .ltn-tabs {
	flex-wrap: wrap;
	gap: 10px;
}

html[data-device="desktop"] .ltn-tab {
	padding: 8px 20px;
	font-size: 0.9rem;
}

/* ============================================
   Mobile Layout
   ============================================ */

html[data-device="mobile"] .ltn-section {
	padding: 6px 0;
}

html[data-device="mobile"] .ltn-container {
	padding: 0 12px;
}

html[data-device="mobile"] .ltn-tabs {
	gap: 6px;

	/* Ensure horizontal scroll on mobile */
	padding-bottom: 2px;
}

html[data-device="mobile"] .ltn-tab {
	padding: 5px 12px;
	font-size: 0.8rem;
}
