:root {
  --bg: #0f1a2b; --surface: #15233a; --surface2: #1b2c48; --text: #dbe6f5; --muted: #9fb8da; --white: #ffffff;
  --accent: #f2c14e; --accent-text: #1a1a1a; --line: #24375a;
  --free: #1f4d39; --free-t: #bdf0d2; --req: #5a4419; --booked: #2a3448; --err: #ffb4ab;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, "Segoe UI", -apple-system, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-weight: 300; color: var(--white); line-height: 1.2; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 14px; }
h3 { font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.muted { color: var(--muted); }
section { padding: 48px 0 8px; }

/* Topp och hero */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; position: relative; z-index: 2; }
.brand { color: var(--white); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.toplink { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.hero { position: relative; min-height: min(56.25vw, 92vh); display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,26,.25) 0%, rgba(8,14,26,0) 25%, rgba(8,14,26,0) 55%, rgba(15,26,43,.95) 100%); }
.hero-text { text-shadow: 0 1px 14px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.4);
  position: relative; z-index: 1; margin: auto auto 3.5vh; text-align: center; padding: 0 16px; }
.kicker { letter-spacing: .32em; color: #e6eefa; font-weight: 600; font-size: 13px; margin: 0; }
.hero h1 { font-size: clamp(46px, 9vw, 84px); margin: 6px 0 8px; }
.tag { color: var(--text); margin: 0 auto 22px; max-width: 34em; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-text); border: 0; font: inherit; font-weight: 600; padding: 12px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.cta:hover { filter: brightness(1.06); }
.ghostbtn { display: inline-block; color: var(--white); border: 1px solid rgba(255,255,255,.4); padding: 9px 18px; border-radius: 999px; text-decoration: none; }

.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding-top: 18px; padding-bottom: 6px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.facts li + li::before { content: "·"; margin-right: 22px; color: var(--line); }
.intro { font-size: 19px; max-width: 760px; text-align: center; }

/* Film */
.film-text { text-align: center; color: var(--muted); padding-top: 4px; }
.film-text .ghostbtn { margin-left: 8px; }

/* Rum */
.floors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 32px; }
.floors ul { padding-left: 20px; margin: 0 0 12px; }
.roomgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 18px; }
.room { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.room:hover img { transform: scale(1.04); }
.room span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; color: var(--white); font-size: 14px; background: linear-gradient(transparent, rgba(8,14,26,.85)); }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gal a { display: block; aspect-ratio: 3/2; overflow: hidden; border-radius: 8px; }
.gal img { width: 100%; height: 100%; object-fit: cover; }

/* Kalender */
.month { color: var(--muted); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 26px 0 10px; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.wk { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 4px; font-size: 15px; }
.wk .lbl { color: var(--white); }
.wk .pr { color: var(--muted); }
.wk.free { border-color: #2f6b52; }
.wk .pick { justify-self: start; background: var(--accent); color: var(--accent-text); text-decoration: none; padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-top: 4px; }
.wk .st { font-size: 13px; color: var(--muted); }
.wk.booked, .wk.requested { opacity: .6; }

/* Formulär */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: var(--surface); padding: 20px; border-radius: 14px; }
.form label { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; color: var(--white); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: center; }
.form .check input { width: 20px; height: 20px; }
.form .bad input, .form .bad select { border-color: var(--err); }
.alert { background: #4a1d1a; color: var(--err); padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Info */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cards article { background: var(--surface); border-radius: 12px; padding: 16px 18px; }
.cards ul { padding-left: 20px; margin: 6px 0; }
.find, .contact { max-width: 760px; }

/* Undersidor */
.slim { background: var(--surface); }
.page { padding-top: 32px; padding-bottom: 40px; max-width: 760px; }
.page h1 { font-size: 36px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,10,20,.94); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lb-body img, .lb-body video { max-width: 96vw; max-height: 88vh; border-radius: 6px; }
.lb-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--white); font-size: 40px; cursor: pointer; line-height: 1; }
.lb-prev, .lb-next { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 72px; background: rgba(255,255,255,.12); border: 0; border-radius: 8px; color: var(--white); font-size: 44px; line-height: 1; cursor: pointer; z-index: 1; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox.lb-pics .lb-prev, .lightbox.lb-pics .lb-next { display: block; }
.lb-cap { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 14px; }
@media (max-width: 640px) { .lb-prev, .lb-next { width: 40px; height: 56px; font-size: 32px; background: rgba(0,0,0,.35); } .lb-prev { left: 4px; } .lb-next { right: 4px; } }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 20px 0 28px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 16px; }
.foot a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .form { grid-template-columns: 1fr; padding: 16px; }
  .facts li + li::before { margin-right: 10px; }
  .facts { gap: 4px 10px; }
  .hero { min-height: 78vh; }
  .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .wk { padding: 10px; font-size: 14px; }
}
.brand-sub { font-weight: 400; opacity: .85; }
@media (max-width: 420px) { .brand-sub { display: block; font-size: 13px; } }

/* Veckokalender (lör–fre per rad) */
.wcal { display: grid; gap: 5px; margin-top: 10px; }
.wc-head, .wc-row { display: grid; grid-template-columns: 54px repeat(7, minmax(30px, 1fr)) minmax(220px, 2.4fr); gap: 5px; }
.wc-head span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.wc-head span:first-child { text-align: left; }
.wc-month { margin: 22px 0 4px; color: var(--muted); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.wc-wk { color: var(--white); align-self: center; font-weight: 600; }
.wc-d { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px; font-size: 14px; background: var(--free); color: var(--free-t); }
.wc-d.requested { background: var(--req); color: #ffe2a8; }
.wc-d.booked { background: var(--booked); color: var(--muted); }
.wc-d.past { background: transparent; color: var(--line); }
.wc-d.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.wc-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-left: 8px; font-size: 15px; }
.wc-lbl { color: var(--muted); font-size: 13px; flex-basis: 100%; }
.wc-info { align-content: center; }
.wc-price { color: var(--white); }
.wc-info .st { color: var(--muted); font-size: 14px; }
.wc-info .pick { background: var(--accent); color: var(--accent-text); text-decoration: none; padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.s-booked .wc-wk, .s-requested .wc-wk { color: var(--muted); }
.wc-legend { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 12px; }
.wc-legend .wc-d { display: inline-block; min-height: 16px; width: 22px; }
@media (max-width: 640px) {
  .wc-head, .wc-row { grid-template-columns: 38px repeat(7, 1fr); gap: 3px; }
  .wc-head .wc-info { display: none; }
  .wc-row .wc-info { grid-column: 1 / -1; padding: 2px 0 10px 41px; }
  .wc-d { min-height: 34px; font-size: 13px; }
}

/* Skidsäsong */
.wc-row.season { box-shadow: inset 4px 0 0 var(--accent); border-radius: 6px; }
.wc-row.season .wc-wk { padding-left: 10px; }
.wc-season-key { display: inline-block; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; margin-left: 6px; }
.wc-row.season .wc-wk::after { content: " \2744"; color: var(--accent); font-weight: 400; }
.wc-d { position: relative; }
.wc-d.ski::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 3px; border-radius: 2px; background: var(--accent); opacity: .85; }
.toplinks { display: flex; align-items: center; gap: 14px; }
.loginlink { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; }
.loginlink:hover { color: var(--white); text-decoration: underline; }
