/* Slottsregistret.se – stil. Typsnitt: Fraunces (rubriker) och Instrument Sans (text), båda med fri licens (OFL). */
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-latin.woff2?v=7f9d191d99') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-latin-italic.woff2?v=bceec2ef4d') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/instrument-sans-latin.woff2?v=2ee17598a9') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F1E7; --paper-2: #EDE5D3; --card: #FFFDF8;
  --ink: #1C2320; --ink-2: #4B524D; --line: #D8CDB6;
  --forest: #1F3A31; --forest-2: #2D5345; --forest-3: #3E6B5A;
  --gold: #C9A24E; --gold-2: #E2C27A; --gold-ink: #7E5D18;
  --gold-grad: linear-gradient(100deg, #B8892F 0%, #E9CB82 28%, #F8E7B4 46%, #D4A94F 66%, #A97A27 100%);
  /* Silver och brons, för senare (t.ex. nivåer): */
  --silver: #B9BEC2; --silver-grad: linear-gradient(100deg, #8E959B 0%, #D9DDE0 35%, #F4F6F7 50%, #B5BBC0 70%, #848B91 100%);
  --bronze: #A8703F; --bronze-grad: linear-gradient(100deg, #7A4B25 0%, #C48A55 35%, #E2B385 50%, #A86E3E 70%, #6E4220 100%);
  --radius: 14px; --shadow: 0 1px 2px rgba(28,35,32,.06), 0 8px 24px -12px rgba(28,35,32,.25);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--forest-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: 'opsz' 96, 'SOFT' 30; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.small { font-size: .92rem; color: var(--ink-2); }
.kicker { font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }

/* Knappar */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid var(--forest); background: var(--forest); color: #fff; font: 600 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { background: var(--forest-2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-gold { background: var(--gold-grad); border-color: #C9A24E; color: #1C1A12; box-shadow: 0 6px 20px -8px rgba(169,122,39,.6); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: #1C1A12; }
.btn-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--forest); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico { width: 1.2em; height: 1.2em; margin-left: -.2em; }
.kicker-gold { display: inline-flex; align-items: center; gap: 14px; color: var(--gold-ink); }
.kicker-gold::before { content: ''; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }

/* Sidhuvud */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font: 500 1.28rem/1 var(--serif); letter-spacing: -.01em; }
.logo b { font-weight: 700; }
.logo-mark { width: 34px; height: 34px; color: var(--forest); }
.logo-mark .door { fill: var(--gold); }
.logo-light, .logo-light .logo-mark { color: #F3EBDB; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: .5em .8em; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a[aria-current] { background: var(--paper-2); color: var(--forest); }
.nav-m, .nav-m-label { display: none; }
.nav-search { display: inline-flex !important; align-items: center; gap: 8px; }
.nav-search .ico { width: 19px; height: 19px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--forest); position: relative; margin: auto; transition: .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: .8em; }
  .nav-m, .nav-m-label { display: inline; }
  .nav-m { display: block; }
  .nav .nav-m-first { border-top: 1px solid rgba(201,162,78,.25); margin-top: 6px; padding-top: 1em; }
}

/* Startsidan */
.hero { position: relative; color: #F6F1E7; background: #0E1A15; overflow: hidden; }
.hero-film { min-height: min(94vh, 900px); display: flex; align-items: center; }
.film, .film .slide, .hero-shade { position: absolute; inset: 0; }
.film .slide { opacity: 0; transition: opacity 1.8s ease; }
.film .slide.on { opacity: 1; z-index: 1; }
.film .slide.off { opacity: 0; z-index: 0; }
.film picture, .film img { width: 100%; height: 100%; }
.film img { object-fit: cover; transform: scale(1.04); will-change: transform; }
.film .slide.on img, .film .slide.off img { animation: kenburns 11s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(var(--dx), var(--dy)); } }
.hero-shade { z-index: 2; background:
  linear-gradient(90deg, rgba(8,16,13,.9) 0%, rgba(8,16,13,.7) 40%, rgba(8,16,13,.25) 72%, rgba(8,16,13,.08) 100%),
  linear-gradient(0deg, rgba(8,16,13,.7) 0%, rgba(8,16,13,0) 35%),
  linear-gradient(180deg, rgba(8,16,13,.55) 0%, rgba(8,16,13,0) 22%); }
.hero-in { position: relative; z-index: 3; padding: clamp(110px, 14vw, 170px) 0 clamp(70px, 9vw, 120px); }
.hero h1 { max-width: 12em; color: #FBF6EC; font-weight: 400; font-size: clamp(2.5rem, 6vw, 4.9rem); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.35); font-variation-settings: 'opsz' 144, 'SOFT' 50; }
.hero h1 em { font-style: italic; font-weight: 380; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .kicker-gold, .band-dark .kicker-gold, .tour .kicker-gold, .c-hero .kicker-gold, .page-hero .kicker-gold { color: var(--gold-2); }
.hero .kicker-gold::after { content: ''; width: 42px; height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent); }
.hero .lead { color: #DCE3DE; max-width: 34em; font-size: 1.2rem; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.quick { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.quick a { display: inline-flex; align-items: center; gap: 8px; padding: .6em 1.1em; border-radius: 999px; background: rgba(12,22,18,.38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(226,194,122,.38); color: #FBF6EC; text-decoration: none; font-weight: 500; letter-spacing: .01em; transition: border-color .2s, background .2s; }
.quick a:hover { background: rgba(201,162,78,.22); border-color: var(--gold-2); color: #fff; }
.quick svg { color: var(--gold-2); }
.quick .ico { width: 20px; height: 20px; }
.film-caption { position: absolute; z-index: 3; right: max(16px, calc((100% - 1180px) / 2)); bottom: 22px; margin: 0; text-align: right; font-size: .82rem; color: #C8D3CC; display: flex; flex-direction: column; gap: 2px; }
.film-caption a { color: var(--gold-2); font: italic 500 1.05rem var(--serif); text-decoration: none; }
.film-caption a::before { content: ''; display: inline-block; width: 26px; height: 1px; background: var(--gold-2); vertical-align: middle; margin-right: 10px; }
.film-caption small { color: rgba(220,227,222,.7); font-size: .75rem; }
/* Sidhuvudet ligger över bilden på startsidan, slottens sidor och listsidorna */
.home .site-header, .overlay .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 1px solid rgba(226,194,122,.18); }
:is(.home, .overlay) .site-header .logo, :is(.home, .overlay) .site-header .logo-mark { color: #F6F1E7; }
:is(.home, .overlay) .site-header .nav a { color: #EDE6D6; }
:is(.home, .overlay) .site-header .nav a:hover, :is(.home, .overlay) .site-header .nav a[aria-current] { background: rgba(255,255,255,.1); color: #fff; }
:is(.home, .overlay) .bars, :is(.home, .overlay) .bars::before, :is(.home, .overlay) .bars::after { background: #F6F1E7; }
@media (max-width: 960px) { :is(.home, .overlay) .nav { background: #0E1A15; border-color: rgba(226,194,122,.18); } }
@media (max-width: 700px) {
  .hero-film { min-height: 100svh; align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,16,13,.9) 0%, rgba(8,16,13,.6) 50%, rgba(8,16,13,.35) 100%); }
  .film-caption { left: 16px; right: auto; text-align: left; top: 80px; bottom: auto; }
  .kicker-gold { font-size: .7rem; gap: 10px; }
  .kicker-gold::before { width: 24px; }
  .kicker-gold::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .film .slide.on img { animation: none; } }

/* Sök */
.search { position: relative; display: flex; gap: 8px; max-width: 640px; margin-top: 8px; }
.search input { flex: 1; min-width: 0; padding: .85em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.search-big input { padding: 1em 1.3em; font-size: 1.05rem; border-color: transparent; box-shadow: var(--shadow); }
.search button { padding: 0 1.5em; border-radius: 999px; border: 0; background: var(--gold-grad); color: #1C1A12; font: 600 1rem var(--sans); letter-spacing: .02em; cursor: pointer; }
.search button:hover { background: var(--gold-2); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; list-style: none; margin: 0; padding: 6px; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 40px -10px rgba(0,0,0,.35); max-height: 60vh; overflow: auto; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--paper); }
.suggest small { color: var(--ink-2); display: block; font-size: .85rem; }
.suggest .s-cat { font-weight: 600; color: var(--forest); }
.suggest .gold { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 3px rgba(201,162,78,.25); }
.suggest .grey { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #9AA39C; flex: none; }

/* Sektioner */
.band { padding: clamp(44px, 6vw, 80px) 0; }
.band-tight { padding: 28px 0 64px; }
.band-dark { background: var(--forest); color: #EEF1EC; }
.band-dark h2 { color: #FBF6EC; }
.band-dark .sec-head p { color: #C8D3CC; }
.band-paper2 { background: var(--paper-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 32px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; }
.sec-head .kicker { margin-bottom: .5em; }
.list-extra { margin: 0 0 18px; }
.sec-head p { margin: 0; max-width: 34em; color: var(--ink-2); }
.more { margin-top: 28px; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.map-teaser { display: block; border-radius: var(--radius); overflow: hidden; background: var(--forest); box-shadow: var(--shadow); }
.page-head { padding: 18px 0 8px; }
.page-head h1 { margin-bottom: .3em; }

/* Kort: bilden bär kortet, texten står fritt under */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px; }
.card a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4/3; background: var(--paper-2); display: block; overflow: hidden; border-radius: 10px; box-shadow: 0 1px 2px rgba(28,35,32,.08), 0 14px 30px -18px rgba(28,35,32,.45); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.card a:hover .card-img img { transform: scale(1.05); filter: saturate(1.08); }
.card-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(28,35,32,.06); pointer-events: none; }
.card-img .ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--paper-2), #E3D8C1); }
.card-img .ph::after { content: ''; position: absolute; inset: 30% 35%; background: url('/assets/img/silhuett.svg?v=53dce626d4') center / contain no-repeat; opacity: .25; filter: invert(1); }
.lit { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(12,22,18,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--gold-2); border: 1px solid rgba(226,194,122,.55); font: 600 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .5em .8em .5em .65em; border-radius: 999px; }
.lit .ico { width: 14px; height: 14px; }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.card-body strong { font: 560 1.24rem/1.2 var(--serif); letter-spacing: -.005em; transition: color .2s; }
.card a:hover strong { color: var(--forest-2); }
.card-loc { font: 600 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.card-offers { color: var(--ink-2); font-size: .9rem; }
.band-dark .card a { color: #FBF6EC; }
.band-dark .card a:hover strong { color: var(--gold-2); }
.band-dark .card-loc { color: var(--gold-2); }
.band-dark .card-offers { color: #B9C7BF; }
.band-dark .card-img { box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .28em .7em; border-radius: 999px; background: var(--paper-2); color: var(--forest-2); text-decoration: none; }
a.tag:hover { background: var(--forest); color: #fff; }
.count { color: var(--ink-2); margin-bottom: 18px; }
.lit-text { color: var(--gold-ink); font-weight: 600; }
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .card-body strong { font-size: 1.05rem; }
  .card-loc { font-size: .64rem; letter-spacing: .08em; }
  .card-offers { font-size: .82rem; }
  .lit { left: 8px; top: 8px; font-size: .64rem; padding: .45em .6em; }
  .lit .ico { width: 12px; height: 12px; }
}

/* Kategorirutor med bild */
.photo-tiles { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-tiles li:first-child { grid-column: span 2; }
.photo-tiles a { position: relative; display: block; height: 100%; min-height: 240px; border-radius: 12px; overflow: hidden; background: var(--forest); color: #FBF6EC; text-decoration: none; isolation: isolate; }
.photo-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.photo-tiles a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,16,13,.88) 0%, rgba(8,16,13,.35) 45%, rgba(8,16,13,.05) 75%); transition: background .3s; }
.photo-tiles a:hover img { transform: scale(1.06); }
.photo-tiles a:hover::before { background: linear-gradient(0deg, rgba(8,16,13,.92) 0%, rgba(8,16,13,.45) 55%, rgba(8,16,13,.12) 85%); }
.pt-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.pt-in .ico { width: 22px; height: 22px; color: var(--gold-2); margin-bottom: 6px; }
.pt-in strong { font: 500 1.25rem/1.15 var(--serif); }
.photo-tiles li:first-child .pt-in strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.pt-in small { color: #D3DBD5; font-size: .88rem; }
.county-tiles li:first-child { grid-column: span 2; }
.county-tiles { grid-template-columns: repeat(4, 1fr); }
.county-tiles a { min-height: 200px; }
@media (max-width: 900px) { .photo-tiles { grid-template-columns: 1fr 1fr; } .photo-tiles a { min-height: 170px; } }
@media (max-width: 520px) { .photo-tiles { gap: 10px; } .photo-tiles a { min-height: 150px; } .pt-in { padding: 14px; } .pt-in strong { font-size: 1.05rem; } }
.pills, .chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a, .chips a { display: inline-block; padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.pills a:hover, .chips a:hover { border-color: var(--forest); }
.chips a[aria-current] { background: var(--forest); border-color: var(--forest); color: #fff; }
.pills small, .chips small { color: var(--ink-2); margin-left: 2px; }
.chips a[aria-current] small { color: #C8D3CC; }
.chips { margin: 4px 0 22px; }

/* Andel */
.coverage { max-width: 520px; margin: 16px 0; }
.coverage .bar, .mini { display: block; height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.coverage .bar span, .mini span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; min-width: 4px; }
.coverage p { margin: 8px 0 0; color: var(--ink-2); }
.coverage b { color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.county-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.county-list a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.county-list a:hover strong { color: var(--forest-2); text-decoration: underline; }
.county-list .mini { grid-column: 1 / -1; height: 6px; }
.county-list small { color: var(--ink-2); grid-row: 1; grid-column: 2; }
.county-list-big a { grid-template-columns: 2.2em 1fr auto; }
.county-list-big .rank { color: var(--gold-ink); font: 600 1.1rem var(--serif); }
.county-list-big .mini { grid-column: 2 / -1; }
.county-list-big small { grid-column: 3; }

/* Brödsmulor */
.crumbs ol { list-style: none; padding: 14px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* Bild överst: slottets sida och listsidorna */
.c-hero, .page-hero { position: relative; color: #F6F1E7; background: #0E1A15; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.c-hero { min-height: min(86vh, 820px); }
.page-hero { min-height: min(62vh, 560px); }
.c-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.c-hero .hero-shade, .page-hero .hero-shade { background:
  linear-gradient(0deg, rgba(8,16,13,.92) 0%, rgba(8,16,13,.6) 32%, rgba(8,16,13,.1) 62%, rgba(8,16,13,0) 100%),
  linear-gradient(90deg, rgba(8,16,13,.55) 0%, rgba(8,16,13,0) 60%),
  linear-gradient(180deg, rgba(8,16,13,.7) 0%, rgba(8,16,13,.25) 18%, rgba(8,16,13,0) 30%); }
:is(.home, .overlay) .site-header a, .c-hero .crumbs, .page-hero .crumbs { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.c-hero-top { position: absolute; top: 67px; left: 0; right: 0; z-index: 3; }
.c-hero .crumbs ol, .page-hero .crumbs ol { color: #C8D3CC; }
.c-hero .crumbs a, .page-hero .crumbs a { color: #E4EAE5; }
.c-hero .crumbs li + li::before, .page-hero .crumbs li + li::before { color: rgba(226,194,122,.6); }
.c-hero-in, .page-hero-in { position: relative; z-index: 3; padding: 140px 0 clamp(48px, 6vw, 80px); }
.c-hero h1, .page-hero h1 { color: #FBF6EC; font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.02em; max-width: 14em; text-shadow: 0 2px 30px rgba(0,0,0,.35); font-variation-settings: 'opsz' 144, 'SOFT' 50; margin-bottom: .25em; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
.page-hero .lead { color: #DCE3DE; max-width: 38em; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.c-offers { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 26px; }
.c-offers a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 500; }
.c-offers .ico { color: var(--gold-ink); width: 20px; height: 20px; }
.c-hero .c-offers a { color: #EDE6D6; }
.c-hero .c-offers .ico { color: var(--gold-2); }
.c-offers a:hover { text-decoration: underline; }
.c-hero .film-caption, .page-hero .film-caption { bottom: 18px; }
.film-caption small a { font: inherit; color: inherit; text-decoration: underline; }
.film-caption small a::before { display: none; }
@media (max-width: 700px) {
  .c-hero { min-height: 88svh; }
  .page-hero { min-height: 58svh; }
  .c-hero-in, .page-hero-in { padding-top: 120px; padding-bottom: 64px; }
  .c-hero .film-caption, .page-hero .film-caption { top: auto; bottom: 14px; left: 16px; right: 16px; }
  .c-hero .film-caption small, .page-hero .film-caption small { font-size: .68rem; }
  .page-hero .film-caption a { font-size: .9rem; }
  .actions .btn { padding: .7em 1.05em; font-size: .94rem; }
}
.c-head-in { padding: 18px 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.c-head-in h1 { font-weight: 450; }
.c-img { margin: 0; }
.c-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.c-img figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 8px; }
.c-img figcaption a { color: inherit; }
@media (max-width: 900px) { .c-head-in { grid-template-columns: 1fr; } .c-img { order: -1; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.credit { font-size: .82rem; color: var(--ink-2); margin-top: 8px; }
.credit a { color: inherit; }

/* Rundturen: en port in i slottet */
.tour { background: radial-gradient(120% 90% at 85% 50%, #23463A 0%, var(--forest) 45%, #142820 100%); color: #EEF1EC; padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.tour h2 { color: #FBF6EC; font-weight: 450; font-size: clamp(2rem, 4vw, 3.1rem); }
.tour-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.tour-lead { font-size: 1.15rem; color: #DCE3DE; max-width: 26em; }
.tour .btn-gold { font-size: 1.06rem; padding: .9em 1.6em; }
.tour .consent { font-size: .88rem; color: #B9C7BF; margin-top: 14px; }
.tour .credit, .tour .credit a { color: #93A49A; }
.tour-frame { position: relative; aspect-ratio: 4/5; max-height: 640px; width: 100%; justify-self: center; border-radius: 999px 999px 14px 14px; overflow: hidden; background: #0F1F1A; box-shadow: 0 0 0 1px rgba(226,194,122,.5), 0 0 0 10px rgba(226,194,122,.07), 0 40px 80px -30px rgba(0,0,0,.7); }
.tour-frame .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.95); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; }
.tour-frame:hover .poster { transform: scale(1.05); filter: brightness(.85); }
.portal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 58%, rgba(226,194,122,.25), transparent 45%); border: 0; cursor: pointer; color: #1C1A12; }
.portal .ico { width: 84px; height: 84px; padding: 22px; border-radius: 50%; background: var(--gold-grad); stroke-width: 1.5; box-shadow: 0 0 0 10px rgba(226,194,122,.18), 0 0 0 22px rgba(226,194,122,.08), 0 16px 40px -10px rgba(0,0,0,.6); transition: transform .3s; }
.portal:hover .ico, .portal:focus-visible .ico { transform: scale(1.08); }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour.playing .tour-in { grid-template-columns: 1fr; }
.tour.playing .tour-text .btn, .tour.playing .consent, .tour.playing .tour-lead { display: none; }
.tour.playing .tour-frame { aspect-ratio: 16/9; max-height: none; border-radius: var(--radius); order: 2; }
@media (max-width: 860px) {
  .tour-in { grid-template-columns: 1fr; }
  .tour-frame { order: -1; aspect-ratio: 1; max-width: 420px; }
  .tour.playing .tour-frame { aspect-ratio: 3/4; max-width: none; }
}
.more-tours { color: #FBF6EC; margin-top: 48px; font-size: 1.25rem; font-weight: 450; }
.tour-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tour-list a { display: block; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(226,194,122,.25); color: #fff; text-decoration: none; transition: background .2s, border-color .2s; }
.tour-list a:hover { background: rgba(201,162,78,.18); border-color: var(--gold-2); }
.tour-list strong { display: block; font-family: var(--serif); font-weight: 500; }
.tour-list small { color: #B9C7BF; }

/* Ingen rundtur ännu: en stängd dörr */
.tour-none { padding: clamp(48px, 7vw, 90px) 0; background: var(--paper-2); }
.tour-none-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; max-width: 860px; margin-inline: auto; padding: clamp(28px, 4vw, 44px); border: 1px solid rgba(169,122,39,.35); border-radius: 18px; background: linear-gradient(160deg, rgba(255,253,248,.7), rgba(255,253,248,.25)); position: relative; }
.tour-none-in::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(169,122,39,.14); border-radius: 13px; pointer-events: none; }
.tour-none h2 { font-weight: 450; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.door svg { width: 92px; height: auto; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; }
.door circle { fill: var(--gold-ink); stroke: none; }
.tour-none .actions { margin-top: 4px; }
@media (max-width: 620px) { .tour-none-in { grid-template-columns: 1fr; } .door svg { width: 60px; } }

/* Om slottet */
.c-body { padding: clamp(48px, 6vw, 88px) 0; }
.c-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .c-grid { grid-template-columns: 1fr; } }
.c-text { max-width: 40em; }
.c-text > p:first-of-type { font-size: 1.14rem; }
.c-text h3 { margin-top: 1.6em; }
.source { font-size: .85rem; color: var(--ink-2); }
.offer-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.offer-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; transition: border-color .2s; }
.offer-list a:hover { border-color: var(--gold); }
.offer-list .ico { width: 22px; height: 22px; color: var(--gold-ink); }
.facts { margin: 0 0 24px; border-top: 2px solid var(--gold); }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gold-ink); font: 600 .74rem/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.facts dd { margin: 0; font: 500 1.05rem/1.4 var(--serif); }
.mini-map { height: 280px; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: var(--paper-2); }

/* För slott */
.sales-hero { min-height: min(78vh, 720px); }
.sales-hero h1 em { font-style: italic; font-weight: 380; }
.stats { list-style: none; padding: 0; margin: 0 0 clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { padding: 26px 0; display: flex; flex-direction: column; gap: 4px; }
.stats b { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); color: var(--forest); }
.stats span { color: var(--ink-2); max-width: 18em; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.benefits .ico { width: 34px; height: 34px; color: var(--gold-ink); margin-bottom: 14px; }
.benefits h2 { font-size: 1.4rem; font-weight: 500; margin-bottom: .4em; }
.benefits p { color: var(--ink-2); }
.form-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-split .form { margin-top: 0; }
@media (max-width: 820px) { .stats, .benefits, .form-split { grid-template-columns: 1fr; } .stats { gap: 0; } .stats li { padding: 18px 0; border-bottom: 1px solid var(--line); } .stats li:last-child { border: 0; } }

/* Text- och formulärsidor */
.prose { max-width: 760px; padding: 32px 0 88px; }
.prose h1 { font-weight: 450; }
.prose > .lead { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); position: relative; }
.prose > .lead::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: var(--gold); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.page-dark { background: radial-gradient(120% 120% at 80% 0%, #23463A 0%, var(--forest) 45%, #142820 100%); color: #EEF1EC; padding: 130px 0 56px; }
.page-dark .kicker-gold { color: var(--gold-2); }
.page-dark h1 { color: #FBF6EC; font-weight: 400; }
.nf-hero { min-height: 100vh; min-height: 100svh; }
.nf-hero .lead a { color: var(--gold-2); }
.prose h2 { margin-top: 1.4em; }
.form { display: grid; gap: 8px; margin-top: 24px; background: var(--card); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 2px solid var(--gold); }
.form label { font-weight: 500; margin-top: 8px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; padding: .75em .95em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,78,.18); }
.form fieldset { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.form legend { font-weight: 600; margin-bottom: 4px; }
.form fieldset label { font-weight: 400; margin: 0; display: flex; gap: 10px; align-items: center; }
.form input[type=checkbox], .form input[type=radio] { width: 20px; height: 20px; accent-color: var(--forest); }
.form .btn { justify-self: start; margin-top: 14px; }
.trap { position: absolute; left: -9999px; }

/* Kartan */
.map-body .site-footer { display: none; }
.map-layout { display: grid; grid-template-columns: 380px 1fr; height: calc(100vh - 67px); height: calc(100dvh - 67px); }
.map-panel { overflow: auto; padding: 16px; border-right: 1px solid var(--line); background: var(--paper); }
.map { height: 100%; background: #DDE3DC; }
.map-title { font-size: 1.6rem; font-weight: 450; margin-bottom: .2em; }
.map-panel .kicker { margin-bottom: .3em; }
/* Kartplattorna tonas ner till en lugn, gammaldags ton som passar sajten */
.map .leaflet-tile-pane, .mini-map .leaflet-tile-pane { filter: grayscale(.55) sepia(.28) saturate(.85) contrast(.92) brightness(1.04); }
body .leaflet-container { font-family: var(--sans); }
.leaflet-bar { border: 0 !important; box-shadow: 0 6px 20px -8px rgba(28,35,32,.45) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--forest) !important; background: var(--card) !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--paper-2) !important; }
body .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(28,35,32,.45); }
body .leaflet-popup-content { margin: 12px; }
body .leaflet-tooltip { font: 600 .85rem var(--sans); color: var(--ink); border: 0; border-radius: 8px; box-shadow: 0 6px 18px -6px rgba(28,35,32,.4); }
.map-filter { border: 0; padding: 0; margin: 14px 0 6px; display: grid; gap: 10px; }
.map-filter select { padding: .6em; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.map-filter label { display: flex; gap: 8px; align-items: center; }
.legend { font-size: .88rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,78,.3); }
.dot-grey { border: 2px solid var(--forest-2); background: #FFFDF8; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.map-list { list-style: none; padding: 0; margin: 0; }
.map-list a { display: flex; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: center; }
.map-list a:hover { background: var(--paper-2); }
.map-list img, .map-list .ph { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper-2); }
.map-list small { display: block; color: var(--ink-2); font-size: .85rem; }
.map-list .k { color: var(--gold-ink); font-weight: 600; font-size: .82rem; }
.pop { width: 230px; font-family: var(--sans); }
.pop img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.pop strong { font: 600 1.05rem var(--serif); display: block; }
.pop small { display: block; color: var(--ink-2); }
.pop .btn { margin-top: 10px; padding: .55em 1em; font-size: .9rem; color: #fff; }
.pop .btn-gold { color: #1C1A12; }
@media (max-width: 820px) {
  .map-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
  .map { height: 62vh; order: -1; }
  .map-panel { border: 0; }
}

/* Sidfot */
.site-footer { background: #17291F; color: #C8D3CC; padding: 56px 0 24px; margin-top: 0; }
.ftr { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 32px; }
.site-footer h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .94rem; }
.site-footer ul.cols { grid-template-columns: 1fr 1fr; }
.site-footer a { color: #E4EAE5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { font-size: .94rem; margin-top: 14px; }
.fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 18px; font-size: .82rem; color: #93A49A; }
@media (max-width: 900px) { .ftr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  .county-list:not(.county-list-big) { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .county-list:not(.county-list-big) a { padding: 10px 0; font-size: .92rem; }
  .county-list:not(.county-list-big) small { font-size: .8rem; }
}
.form-msg { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #FBF1E4; border: 1px solid #E5C9A0; color: #6B4510; font-size: .95rem; }
