/* ---- Map ---- */

.ftm-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ftm-map-container {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ---- Popup ---- */

.ftm-popup {
	font-size: 13px;
	line-height: 1.65;
	min-width: 170px;
}

.ftm-popup strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 5px;
	color: #111;
}

.ftm-date,
.ftm-address,
.ftm-hours {
	color: #555;
	display: block;
}

.ftm-description {
	display: block;
	margin-top: 7px;
	padding-top: 7px;
	border-top: 1px solid #e8e8e8;
	color: #444;
	font-size: 12px;
	white-space: pre-line;
}

.ftm-no-trucks {
	padding: 24px;
	text-align: center;
	color: #888;
	font-style: italic;
}

/* ---- Card grid ---- */

.ftm-list-container {
	margin-top: 20px;
}

.ftm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.ftm-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
	outline: none;
	--ftm-active-color: #e74c3c;
}

.ftm-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
	transform: translateY(-2px);
}

.ftm-card:focus-visible {
	box-shadow: 0 0 0 3px var(--ftm-active-color, #e74c3c);
}

.ftm-card--active {
	box-shadow: 0 0 0 2.5px var(--ftm-active-color, #e74c3c), 0 6px 20px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

/* Colored top accent bar */
.ftm-card-accent {
	height: 5px;
	width: 100%;
}

.ftm-card-body {
	padding: 14px 16px 16px;
}

/* Header row: icon badge + name */
.ftm-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ftm-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	flex-shrink: 0;
}

.ftm-card-icon svg {
	width: 18px;
	height: 18px;
}

.ftm-card-name {
	font-weight: 700;
	font-size: 15px;
	color: #111;
	line-height: 1.3;
}

/* Meta rows */
.ftm-card-meta {
	margin: 0 0 4px;
	padding: 0;
}

.ftm-card-row {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin-bottom: 5px;
	font-size: 13px;
	color: #555;
}

.ftm-card-row dt {
	flex-shrink: 0;
	font-style: normal;
	opacity: 0.8;
	padding-top: 1px;
}

.ftm-card-row dd {
	margin: 0;
	line-height: 1.45;
}

/* Description */
.ftm-card-desc {
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
	font-size: 12px;
	color: #666;
	line-height: 1.5;
	white-space: pre-line;
}

/* ---- Share buttons ---- */

.ftm-share {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

.ftm-share-label {
	font-size: 11px;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-right: 2px;
	flex-shrink: 0;
}

.ftm-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 7px;
	background: #f3f4f6;
	color: #555;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
	flex-shrink: 0;
}

.ftm-share-btn svg {
	width: 15px;
	height: 15px;
	display: block;
}

.ftm-share-btn:hover {
	background: var(--ftm-share-color, #555);
	color: #fff;
	transform: scale(1.12);
}
