.castaween-wrap {
	--castaween-h: 720px;
	--cw-orange: #f47b20;
	--cw-purple: #5b2a86;
	--cw-ink: #241c2b;
	--cw-muted: #746b77;
	--cw-line: #eadfd7;
	display: grid;
	grid-template-columns: minmax(260px, 340px) 1fr;
	height: var(--castaween-h);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--cw-ink);
	background: #fffaf5;
	border: 1px solid var(--cw-line);
	border-radius: 14px;
	overflow: hidden;
	box-sizing: border-box;
}
.castaween-wrap *,
.castaween-wrap *::before,
.castaween-wrap *::after { box-sizing: border-box; }

.castaween-sr {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.castaween-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #fff;
	padding: 14px;
	border-right: 1px solid var(--cw-line);
}
.castaween-wrap .castaween-search {
	width: 100%;
	margin: 0 0 10px;
	padding: 11px 12px;
	border: 1px solid var(--cw-line);
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	color: inherit;
	background: #fff;
}
.castaween-wrap .castaween-search:focus { outline: 2px solid var(--cw-orange); outline-offset: 1px; }
.castaween-count { font-size: 12px; color: var(--cw-muted); margin: 2px 2px 10px; }
.castaween-list { flex: 1; overflow-y: auto; min-height: 0; }
.castaween-empty { font-size: 14px; color: var(--cw-muted); padding: 8px 2px; margin: 0; }

/* Reinicia els estils que molts temes posen als botons */
.castaween-wrap .castaween-shop {
	display: flex;
	gap: 10px;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 10px 8px;
	border: 0;
	border-bottom: 1px solid #f1e9e3;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.35;
	cursor: pointer;
}
.castaween-wrap .castaween-shop:hover,
.castaween-wrap .castaween-shop.is-active { background: #fff4e9; }
.castaween-wrap .castaween-shop:focus-visible { outline: 2px solid var(--cw-orange); outline-offset: -2px; }
.castaween-shop img {
	width: 46px;
	height: 46px;
	max-width: none;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	margin: 0;
}
.castaween-shop .cw-name { display: block; font-size: 14px; font-weight: 700; }
.castaween-shop .cw-addr { display: block; font-size: 12px; color: var(--cw-muted); margin-top: 2px; }
.castaween-shop .cw-hours { display: block; font-size: 12px; color: var(--cw-purple); margin-top: 4px; }

.castaween-map { position: relative; min-height: 0; height: 100%; }
.castaween-map img { max-width: none; }
.castaween-msg { padding: 20px; margin: 0; color: var(--cw-muted); }

/* Finestra emergent */
.castaween-popup { max-width: 240px; text-align: center; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #241c2b; line-height: 1.4; }
.castaween-popup img { display: block; width: 130px; height: 130px; margin: 0 auto 9px; border-radius: 50%; object-fit: cover; }
.castaween-popup .cw-title { display: block; font-size: 15px; }
.castaween-popup .cw-addr { display: block; color: #746b77; font-size: 12px; }
.castaween-popup .cw-hours { margin: 8px 0; color: #5b2a86; font-size: 12px; }
.castaween-popup a { color: #c25a0a; font-weight: 600; }

/* Marcador amb Map ID (AdvancedMarkerElement) */
.castaween-pin {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cw-orange, #f47b20);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
	transform: translateY(50%);
	cursor: pointer;
}
.castaween-pin { padding: 3px; }
.castaween-pin img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

@media (max-width: 760px) {
	.castaween-wrap { grid-template-columns: 1fr; grid-template-rows: auto 560px; height: auto; }
	.castaween-panel { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--cw-line); }
}
