/* SBR2 Site: the /hamnar/ directory ([sbr_hamnar] from sbr2-community) in the site design.
 * Pure restyle: sbr2-community's markup, text and links are untouched (the page carries
 * ~775 internal links to the harbour pages, so nothing structural may change).
 * Scoped to .sbr2-hamnar-embed (the shortcode) so routed harbour profiles are not affected.
 */

html body .sbr2-hamnar-embed {
	--c-accent: var(--sbrs-accent);
	--c-accent-soft: var(--sbrs-accent-wash);
	--c-ink: var(--sbrs-ink);
	--c-muted: var(--sbrs-muted);
	--c-line: var(--sbrs-line);
	max-width: none !important;
	width: 100%;
	margin: 0;
	background: #fff;
	padding: 0 0 72px;
	font-family: var(--sbrs-ui);
	color: var(--sbrs-ink);
}
html body .sbr2-hamnar-embed .sbr2-home { gap: 0; }
html body .sbr2-hamnar-embed .sbr2-home > section:not(.sbr2-home-hero) { max-width: 1180px; width: 100%; margin: 0 auto; padding: 56px 32px 0; box-sizing: border-box; }

/* ---------- Hero: same idea as before (text + search left, the harbour map right), now a full-width band */
html body .sbr2-hamnar-embed .sbr2-home-hero.is-light {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: 40px;
	min-height: 0;
	margin: 0;
	padding: 40px max(32px, calc((100% - 1180px) / 2 + 32px)) 36px;
	border-radius: 0;
	box-shadow: none;
	border-bottom: 1px solid var(--sbrs-line);
	background: radial-gradient(900px 420px at 80% 30%, #E3EDFB 0%, rgba(227, 237, 251, 0) 65%), linear-gradient(180deg, #F2F6FC 0%, #F8FAFD 100%);
	overflow: hidden;
}
html body .sbr2-hamnar-embed .sbr2-home-hero h1 { font-family: var(--sbrs-ui); font-size: 52px; font-weight: 850; letter-spacing: -.035em; line-height: 1.04; color: var(--sbrs-ink); }
html body .sbr2-hamnar-embed .sbr2-home-hero.is-light .sbr2-home-line { color: var(--sbrs-ink-2); font-size: 16.5px; margin: 14px 0 24px; }
html body .sbr2-hamnar-embed .sbr2-home-search { max-width: 600px; }
html body .sbr2-hamnar-embed .sbr2-home-searchbox { background: #fff; border: 1.5px solid var(--sbrs-line-2); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 18px 40px -26px rgba(10, 30, 63, .35); gap: 6px; }
html body .sbr2-hamnar-embed .sbr2-home-searchbox:focus-within { border-color: var(--sbrs-accent); box-shadow: 0 0 0 4px var(--sbrs-accent-wash); }
html body .sbr2-hamnar-embed .sbr2-home-searchbox input { font: 500 16.5px var(--sbrs-ui); color: var(--sbrs-ink); height: 44px; box-shadow: none; border: 0; background: transparent; margin: 0; }
html body .sbr2-hamnar-embed .sbr2-home-near { border-radius: 10px; font: 600 14px var(--sbrs-ui); color: var(--sbrs-ink-2); padding: 10px 12px; }
html body .sbr2-hamnar-embed .sbr2-home-near:hover { background: var(--sbrs-mist); color: var(--sbrs-ink); }
html body .sbr2-hamnar-embed .sbr2-home-searchbox .sbr2-btn { margin: 0; height: 44px; padding: 0 20px; border-radius: 10px; background: var(--sbrs-accent); border: 0; font: 700 15px var(--sbrs-ui); color: #fff; }
html body .sbr2-hamnar-embed .sbr2-home-searchbox .sbr2-btn:hover { background: var(--sbrs-accent-deep); filter: none; }
html body .sbr2-hamnar-embed .sbr2-home-legend { margin-top: 18px; font-size: 13px; color: var(--sbrs-muted); }
html body .sbr2-hamnar-embed .sbr2-home-map { min-height: 0; }
html body .sbr2-hamnar-embed .sbr2-sweden { height: min(520px, 62vh); }
html body .sbr2-hamnar-embed .sbr2-home-hero.is-light .sbr2-sweden-land { fill: #DCE6F2; }

/* ---------- Section heads */
html body .sbr2-hamnar-embed .sbr2-home-sechead { margin-bottom: 22px; }
html body .sbr2-hamnar-embed .sbr2-home-sechead h2 { font-family: var(--sbrs-ui); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--sbrs-ink); text-transform: none; }
html body .sbr2-hamnar-embed .sbr2-home-sechead p { font-size: 16px; color: var(--sbrs-ink-2); margin-top: 6px; }

/* ---------- Harbour cards (Utvalda + results) */
html body .sbr2-hamnar-embed .sbr2-port a { border-radius: 16px; border: 1px solid var(--sbrs-line); box-shadow: none; overflow: hidden; background: #fff; transition: border-color .15s; }
html body .sbr2-hamnar-embed .sbr2-port a:hover { border-color: var(--sbrs-accent); transform: none; box-shadow: 0 22px 40px -28px rgba(10, 30, 63, .45); }
html body .sbr2-hamnar-embed .sbr2-port-body { padding: 14px 16px 16px; gap: 4px; }
html body .sbr2-hamnar-embed .sbr2-port-body strong { font-size: 16.5px; font-weight: 800; color: var(--sbrs-ink); }
html body .sbr2-hamnar-embed .sbr2-port-where { font-size: 14px; color: var(--sbrs-muted); }
html body .sbr2-hamnar-embed .sbr2-port-live { font-size: 14px; font-weight: 700; color: var(--sbrs-accent-deep); }
html body .sbr2-hamnar-embed .sbr2-pill.verified { color: var(--sbrs-accent-deep); font-weight: 800; border-radius: 999px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }

/* ---------- Feed */
html body .sbr2-hamnar-embed .sbr2-feed-item { border-radius: 16px; border: 1px solid var(--sbrs-line); overflow: hidden; background: #fff; box-shadow: none; }
html body .sbr2-hamnar-embed .sbr2-feed-type { color: var(--sbrs-muted); letter-spacing: .06em; }
html body .sbr2-hamnar-embed .sbr2-feed-meta a { color: var(--sbrs-accent-deep); font-weight: 700; }

/* ---------- "Så här kan du bidra": line icons instead of emoji */
html body .sbr2-hamnar-embed .sbr2-tiles a { border-radius: 16px; border: 1px solid var(--sbrs-line); box-shadow: none; background: #fff; padding: 20px; color: var(--sbrs-ink); }
html body .sbr2-hamnar-embed .sbr2-tiles a:hover { border-color: var(--sbrs-accent); transform: none; }
html body .sbr2-hamnar-embed .sbr2-tiles strong { font-size: 17px; font-weight: 800; color: var(--sbrs-accent-deep); }
html body .sbr2-hamnar-embed .sbr2-tiles a > span:not(.sbr2-tile-emoji) { color: var(--sbrs-ink-2); font-size: 14.5px; }
html body .sbr2-hamnar-embed .sbr2-tile-emoji { font-size: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--sbrs-accent-wash); display: grid; place-items: center; margin-bottom: 12px; }
html body .sbr2-hamnar-embed .sbr2-tile-emoji::before { content: ""; width: 22px; height: 22px; background: var(--sbrs-accent); -webkit-mask: var(--sbrs-tile-icon) center / contain no-repeat; mask: var(--sbrs-tile-icon) center / contain no-repeat; }
html body .sbr2-hamnar-embed .sbr2-tiles li:nth-child(1) { --sbrs-tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3.5l1.5-2.5h6L16.5 8H20v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.3'/%3E%3C/svg%3E"); }
html body .sbr2-hamnar-embed .sbr2-tiles li:nth-child(2) { --sbrs-tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5h10.5a3 3 0 013 3v12H8a3 3 0 01-3-3z'/%3E%3Cpath d='M5 16.5a3 3 0 013-3h10.5M9 8.5h5'/%3E%3C/svg%3E"); }
html body .sbr2-hamnar-embed .sbr2-tiles li:nth-child(3) { --sbrs-tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5.5' r='2'/%3E%3Cpath d='M12 7.5V20M8 11h8M4.5 13.5c0 3.8 3.4 6.5 7.5 6.5s7.5-2.7 7.5-6.5'/%3E%3C/svg%3E"); }

/* ---------- Browse: tabs + chips */
html body .sbr2-hamnar-embed .sbr2-tabs { border-bottom: 1px solid var(--sbrs-line); gap: 4px; }
html body .sbr2-hamnar-embed .sbr2-tabs button { font: 700 15px var(--sbrs-ui); color: var(--sbrs-muted); padding: 12px 14px; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; text-transform: none; letter-spacing: 0; margin: 0; }
html body .sbr2-hamnar-embed .sbr2-tabs button[aria-selected="true"] { color: var(--sbrs-ink); border-bottom-color: var(--sbrs-accent); }
html body .sbr2-hamnar-embed .sbr2-kommuner a { border: 1.5px solid var(--sbrs-line-2); border-radius: 999px; background: #fff; color: var(--sbrs-ink); font-weight: 600; }
html body .sbr2-hamnar-embed .sbr2-kommuner a:hover { border-color: var(--sbrs-accent); color: var(--sbrs-accent-deep); }

@media (max-width: 900px) {
	html body .sbr2-hamnar-embed .sbr2-home-hero.is-light { grid-template-columns: minmax(0, 1fr); padding: 28px 18px 8px; gap: 8px; }
	html body .sbr2-hamnar-embed .sbr2-home-hero h1 { font-size: clamp(32px, 9vw, 42px); }
	html body .sbr2-hamnar-embed .sbr2-sweden { height: 300px; }
	html body .sbr2-hamnar-embed .sbr2-home > section:not(.sbr2-home-hero) { padding: 40px 18px 0; }
	html body .sbr2-hamnar-embed .sbr2-home-sechead h2 { font-size: 24px; }
}
@media (max-width: 549px) {
	html body .sbr2-hamnar-embed .sbr2-home-near span { display: none; }
}
