/* Fashion City Store Locator — front end */
.fcsl {
	--fcsl-brand: #c8102e;
	--fcsl-ink: #16161a;
	--fcsl-muted: #62626b;
	--fcsl-line: #e6e4e1;
	--fcsl-soft: #f7f5f2;
	--fcsl-map-h: 640px;
	--fcsl-radius: 12px;
	color: var(--fcsl-ink);
	font-size: 15px;
	line-height: 1.5;
	max-width: 1320px;
	margin: 0 auto;
	box-sizing: border-box;
	container-type: inline-size;
	container-name: fcsl;
}
.fcsl *, .fcsl *::before, .fcsl *::after { box-sizing: border-box; }

/* heading */
.fcsl-head { text-align: center; margin: 0 0 22px; }
.fcsl .fcsl-title { margin: 0 0 4px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.01em; color: var(--fcsl-ink); }
.fcsl-sub { margin: 0; color: var(--fcsl-muted); }

/* filter bar */
.fcsl-bar {
	display: grid;
	grid-template-columns: 1fr 1fr 1.4fr auto;
	gap: 12px;
	align-items: end;
	padding: 16px;
	background: var(--fcsl-soft);
	border: 1px solid var(--fcsl-line);
	border-radius: var(--fcsl-radius);
}
.fcsl-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.fcsl-field > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fcsl-muted); }
.fcsl .fcsl-field select,
.fcsl .fcsl-field input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	color: var(--fcsl-ink);
	background-color: #fff;
	border: 1px solid #d6d3cf;
	border-radius: 8px;
	box-shadow: none;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.fcsl .fcsl-field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2362626b' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.fcsl .fcsl-field select:focus,
.fcsl .fcsl-field input:focus { border-color: var(--fcsl-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fcsl-brand) 18%, transparent); }
.fcsl .fcsl-reset {
	height: 46px;
	padding: 0 18px;
	font: inherit;
	font-weight: 600;
	color: var(--fcsl-ink);
	background: transparent;
	border: 1px solid #d6d3cf;
	border-radius: 8px;
	cursor: pointer;
}
.fcsl .fcsl-reset:hover { border-color: var(--fcsl-ink); }

/* meta row */
.fcsl-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 12px; }
.fcsl .fcsl-count { margin: 0; color: var(--fcsl-muted); }
.fcsl .fcsl-count strong { color: var(--fcsl-ink); }
.fcsl-toggle { display: none; padding: 3px; background: var(--fcsl-soft); border: 1px solid var(--fcsl-line); border-radius: 999px; }
.fcsl .fcsl-toggle button {
	padding: 7px 18px; font: inherit; font-size: 14px; font-weight: 600;
	color: var(--fcsl-muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer;
}
.fcsl .fcsl-toggle button.is-active { color: #fff; background: var(--fcsl-ink); }
.fcsl-admin-note { margin: 0 0 12px; padding: 10px 14px; font-size: 14px; background: #fff8e5; border: 1px solid #f0d58a; border-radius: 8px; }

/* body: list + map */
.fcsl-body {
	display: grid;
	grid-template-columns: minmax(300px, min(420px, 40%)) 1fr;
	gap: 16px;
	height: var(--fcsl-map-h);
}
.fcsl-body.fcsl-no-map { grid-template-columns: 1fr; height: auto; }
.fcsl-no-map .fcsl-map-wrap { display: none; }
.fcsl-no-map .fcsl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); overflow: visible; padding: 0; }

.fcsl-list { position: relative; overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
.fcsl-map-wrap { position: relative; border-radius: var(--fcsl-radius); overflow: hidden; border: 1px solid var(--fcsl-line); background: #e9e7e3; }
.fcsl-map { position: absolute; inset: 0; }

/* cards */
.fcsl-card {
	padding: 18px 18px 16px;
	margin: 0 0 12px;
	background: #fff;
	border: 1px solid var(--fcsl-line);
	border-left: 3px solid transparent;
	border-radius: var(--fcsl-radius);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
	outline: none;
}
.fcsl-no-map .fcsl-card { margin: 0; cursor: default; }
.fcsl-card:hover { border-color: #d3cfca; box-shadow: 0 4px 16px rgba(20, 20, 30, .07); }
.fcsl-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fcsl-brand) 30%, transparent); }
.fcsl-card.is-active { border-color: var(--fcsl-line); border-left-color: var(--fcsl-brand); box-shadow: 0 6px 20px rgba(20, 20, 30, .09); }
.fcsl .fcsl-card-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--fcsl-ink); }
.fcsl .fcsl-card-info { list-style: none; margin: 0 0 14px; padding: 0; }
.fcsl .fcsl-card-info li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 7px; padding: 0; font-size: 14px; color: #3a3a42; }
.fcsl .fcsl-card-info li::before { content: none; }
.fcsl .fcsl-card-info svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; fill: var(--fcsl-brand); }
.fcsl .fcsl-card-info a { color: inherit; text-decoration: none; word-break: break-word; }
.fcsl .fcsl-card-info a:hover { color: var(--fcsl-brand); text-decoration: underline; }
.fcsl-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fcsl .fcsl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: 38px; padding: 0 14px;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
	text-decoration: none; border-radius: 8px; cursor: pointer; white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.fcsl .fcsl-btn svg { width: 16px; height: 16px; fill: currentColor; }
.fcsl .fcsl-btn-primary { color: #fff; background: var(--fcsl-brand); border: 1px solid var(--fcsl-brand); }
.fcsl .fcsl-btn-primary:hover { color: #fff; background: color-mix(in srgb, var(--fcsl-brand) 85%, #000); }
.fcsl .fcsl-btn-ghost { color: var(--fcsl-ink); background: #fff; border: 1px solid #d6d3cf; }
.fcsl .fcsl-btn-ghost:hover { border-color: var(--fcsl-ink); }

.fcsl-empty { padding: 40px 20px; text-align: center; color: var(--fcsl-muted); border: 1px dashed #d6d3cf; border-radius: var(--fcsl-radius); }
.fcsl-empty p { margin: 0 0 4px; }

/* info window */
.fcsl-iw { font-size: 13px; line-height: 1.45; color: #16161a; padding: 2px 4px 2px 0; }
.fcsl-iw strong { display: block; margin: 0 0 4px; font-size: 15px; }
.fcsl-iw p { margin: 0 0 4px; color: #3a3a42; }
.fcsl-iw a { color: inherit; }
.fcsl-iw .fcsl-iw-time { color: #62626b; }
.fcsl-iw a.fcsl-iw-dir { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--fcsl-brand, #c8102e); text-decoration: none; }

/* tablet / mobile */
@container fcsl (max-width: 860px) {
	.fcsl-bar { grid-template-columns: 1fr 1fr; }
	.fcsl-field-search { grid-column: 1 / -1; order: 3; }
	.fcsl .fcsl-reset { grid-column: 1 / -1; order: 4; height: 40px; }
	.fcsl-toggle { display: inline-flex; }
	.fcsl-body { display: block; height: auto; }
	.fcsl-list { overflow: visible; padding: 0; }
	.fcsl-map-wrap { height: 72vh; min-height: 380px; }
	.fcsl-body[data-view="list"] .fcsl-map-wrap { display: none; }
	.fcsl-body[data-view="map"] .fcsl-list { display: none; }
	.fcsl-no-map .fcsl-list { grid-template-columns: 1fr; }
}
@container fcsl (max-width: 480px) {
	.fcsl-bar { padding: 12px; gap: 10px; }
	.fcsl-card { padding: 16px; }
	.fcsl .fcsl-btn { flex: 1 1 auto; }
}
