/* ==========================================================================
   huahintips.se - huvudstilmall
   Palett: Golfen av Thailand (djup teal) + solnedgangsguld och korall
           paa varm sandbakgrund.
   ========================================================================== */

:root {
  --brand:        #0F6C74;   /* djup teal - havet utanfor Hua Hin */
  --brand-d:      #0A4B51;
  --brand-l:      #1A8D92;
  --accent:       #E4703C;   /* solnedgang / korall */
  --accent-h:     #C85A2A;
  --accent-soft:  #FDECE1;
  --blue:         #3E7CB1;
  --gold:         #DCA02F;   /* tempelguld */
  --gold-soft:    #FAF0D9;
  --bg:           #F7F4ED;   /* varm sand */
  --bg-2:         #EDE7DA;
  --white:        #FFFFFF;
  --text:         #1E2A2C;
  --text-light:   #67717A;
  --border:       #E5DFD2;
  --good:         #3F9D77;
  --warn:         #DCA02F;
  --star:         #E4703C;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --shadow: 0 2px 8px rgba(15,45,50,0.06), 0 8px 24px rgba(15,45,50,0.05);
  --shadow-lg: 0 10px 40px rgba(15,45,50,0.13);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }

h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
.narrow { max-width: 760px; }

.section { padding: 3.2rem 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { margin: .4rem 0 .6rem; }
.section-head p { color: var(--text-light); font-size: 1.05rem; }

/* ---------- Topp-nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: .55rem 1.2rem; display: flex; align-items: center; gap: 1.2rem; }
.nav-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.18rem; color: var(--brand); letter-spacing: -.02em; }
.nav-logo:hover { color: var(--brand); }
.nav-logo-icon { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; display: block; box-shadow: 0 1px 3px rgba(20,40,50,.18); }
.nav-logo-icon svg { width: 100%; height: 100%; display: block; }
.nav-logo-text span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: .05rem; margin-left: auto; }
.nav-link { padding: .5rem .7rem; border-radius: var(--r-sm); font-size: .92rem; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.nav-link:hover { background: var(--bg); color: var(--brand); }

.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1.4rem; min-width: 560px; opacity: 0; visibility: hidden; transition: .18s; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Dropdowns längst till höger: högerjustera så de inte ramlar utanför skärmkanten. */
/* Vagen fran menypunktet ned i panelen maste vara sammanhangande. Annars
   tappas :hover i luftgapet och panelen blinkar bort mitt i rorelsen.
   Menypunktets traffyta dras ned till navradens underkant, och panelens
   ::before broar de sista pixlarna. */
.nav-dropdown { padding-bottom: 15px; margin-bottom: -15px; }
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dropdown.nav-dd-right .dropdown-menu { left: auto; right: 0; transform: translateX(0) translateY(8px); }
.nav-dropdown.nav-dd-right:hover .dropdown-menu, .nav-dropdown.nav-dd-right:focus-within .dropdown-menu { transform: translateX(0) translateY(0); }
/* Tema-dropdown (Planera resan): klickbara teman, smalare än artikel-dropdowns. */
.dropdown-menu.dropdown-themes { min-width: 360px; }
/* Panelen listar bara undermenyer. Tva kolumner racker och den blir smal nog
   att alltid fa plats innanfor nav-raden. */
.dropdown-menu.dropdown-grupper { display: grid; grid-template-columns: repeat(2, 1fr); gap: .15rem .8rem; width: 540px; min-width: 0; max-width: calc(100vw - 24px); padding: .8rem; }
.dd-grupp { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; font-size: .93rem; font-weight: 600; color: var(--text); }
.dd-grupp:hover { background: var(--accent-soft); color: var(--accent-h); }
.dd-grupp em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--text-light); }
.dd-grupp:hover em { color: var(--accent-h); }
.dd-alla { grid-column: 1 / -1; margin-top: .4rem; padding: .55rem .6rem 0; border-top: 1px solid var(--border); font-size: .86rem; font-weight: 700; color: var(--accent); }
.dd-alla:hover { color: var(--accent-h); }
.dropdown-themes .dropdown-col a { font-weight: 600; }
.dropdown-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin-bottom: .55rem; }
.dropdown-col a { display: block; padding: .26rem 0; font-size: .9rem; color: var(--text); font-weight: 500; }
.dropdown-col a:hover { color: var(--accent); }
.dropdown-col a.more { color: var(--accent); font-weight: 700; }

.btn-search-icon { background: none; border: none; padding: .45rem; cursor: pointer; color: var(--text-light); font-size: 1.15rem; border-radius: var(--r-sm); }
.btn-search-icon:hover { background: var(--bg); color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: .2rem .4rem; }

/* ---------- Knappar ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--r-sm); font-weight: 700; font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(226,112,58,.4); }
.btn-brand { background: var(--brand); color: #fff !important; }
.btn-brand:hover { background: var(--brand-d); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--brand) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--bg); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
/* Rent bild utan fargfilter - bara en neutral mork toning for lasbarhet. */
.hero { position: relative; background-color: var(--brand-d); background-image: var(--hero-img); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
/* Inget filter over bilden. Lasbarheten bars av textboxen, se .herobox. */
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 4.8rem 1.2rem 4.2rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-inner.hero-solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-inner.hero-solo > div { max-width: 700px; }
.hero-inner.hero-solo .hero-actions { justify-content: center; }
.hero-inner.hero-solo p.lead { margin-left: auto; margin-right: auto; }
.hero h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 3px 22px rgba(0,0,0,.5); }
.hero p.lead { font-size: 1.18rem; color: #fff; margin-bottom: 1.6rem; max-width: 32rem; text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 2px 14px rgba(0,0,0,.55); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-card { background: rgba(255,255,255,.97); color: var(--text); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.hero-card h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.hero-card p { font-size: .92rem; color: var(--text-light); margin-bottom: 1rem; }
.hero-mini { display: flex; gap: .6rem; flex-wrap: wrap; }
.hero-mini a { font-size: .82rem; background: var(--bg); padding: .35rem .7rem; border-radius: 999px; font-weight: 600; color: var(--brand); }
.hero-mini a:hover { background: var(--accent-soft); color: var(--accent-h); }
.hero-credit { position: absolute; right: .7rem; bottom: .5rem; z-index: 3; font-size: .68rem; color: rgba(255,255,255,.7); text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* ---------- Forstasidans bildkarusell ---------- */
/* Fem bilder, 6 s per bild, 1,5 s overtoning. Samma mall som kretaguiden.se. */
/* Hogre hero, samma proportioner som kanarieguiden.se: ca 2,3 ganger
   sa bred som hog pa 1280 px. Bilderna ar 3:2 sa cover har hojd att ta av. */
.hero-karusell { background-image: none; min-height: 554px; display: flex; align-items: center; }
.hero-karusell .hero-inner { width: 100%; padding-top: 5.4rem; padding-bottom: 5rem; }
/* Forstasidan har ingen .herobox - texten far en egen bakgrund har i stallet,
   med samma alfa som artikelheron. Matt mot heroseriens ljusaste punkt. */
.hero-karusell .hero-inner > div { background: rgba(8,22,26,.72); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  padding: 2.2rem 2rem; }
.hero-karusell .serie { position: absolute; inset: 0; z-index: 0; }
.hero-karusell .bilde { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; }
.hero-karusell .bilde.aktiv { opacity: 1; }
.hero-karusell::after { z-index: 1; }
.hero-karusell .hero-inner { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-karusell .bilde { transition: none; }
}

/* Sidhuvud med bild for artiklar/destinationer */
.page-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: #fff; background-color: var(--brand-d); background-size: cover; background-position: center; }
/* Helt rent bild - ingen toning over bilden. Lasbarheten loses med textskugga. */
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 2.2rem 1.2rem; }
.page-hero h1 { text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 2px 6px rgba(0,0,0,.7), 0 4px 26px rgba(0,0,0,.6); }
.page-hero p { text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.7), 0 4px 20px rgba(0,0,0,.6); }
.page-hero .kicker { box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.page-hero .kicker { display:inline-block; background: var(--accent); color:#fff; font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 999px; margin-bottom: .8rem; }
.page-hero h1 { color: #fff; margin: 0 0 .5rem; max-width: 22ch; }
.page-hero p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 44ch; margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 0; align-items: center; }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }

/* ---------- Sektionskort (meny paa forsidan) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.2rem; }
.scard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); transition: .18s; display: block; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.scard .ico { font-size: 1.7rem; margin-bottom: .6rem; }
.scard h3 { margin-bottom: .35rem; color: var(--text); }
.scard p { font-size: .9rem; color: var(--text-light); margin: 0; }

/* ---------- Destinations-/bildkort (grid) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.3rem; }
.dest-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dest-card .ph { aspect-ratio: 3/2; background: var(--bg-2); background-size: cover; background-position: center; }
.dest-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.dest-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.dest-card .grp { font-size: .76rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.dest-card .desc { font-size: .88rem; color: var(--text-light); flex: 1; }
.dest-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.tag { font-size: .72rem; background: var(--bg); color: var(--text-light); padding: .2rem .55rem; border-radius: 999px; font-weight: 600; }

/* ---------- Artikelinnehaall ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 2.4rem 1.2rem 3.5rem; }
.article p, .article ul, .article ol { font-size: 1.05rem; color: #313b3f; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: .4rem; }
.article h2 { margin: 2rem 0 .8rem; }
.article h3 { margin: 1.5rem 0 .5rem; }
.article figure { margin: 1.5rem 0; }
.article figure img { border-radius: var(--r); width: 100%; }
.article figcaption { font-size: .8rem; color: var(--text-light); margin-top: .5rem; text-align: center; }
.lead-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 1.6rem; }
.lead { font-size: 1.18rem; color: #313b3f; }
.toc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.4rem; margin: 1.6rem 0; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .6rem; }
.toc ul { list-style: none; margin: 0; display: grid; gap: .3rem; }
.toc a { font-size: .95rem; font-weight: 600; }

.article-figure { margin: .5rem 0 1.6rem; }
.article-figure img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--r-lg); display: block; }
.article-figure figcaption { font-size: .85rem; color: var(--text-light); margin-top: .5rem; text-align: center; }
/* Kreditlinje vid bilden for alla CC BY(-SA) 2/3/4. Sa liten som den kan vara
   och anda vara lasbar: 0.72rem ar ca 11,5 px, samma storlek som bildtexten. */
.bildkredit { font-size: .72rem; line-height: 1.45; color: var(--text-light); margin: .3rem 0 0; }
.bildkredit a { color: var(--text-light); text-decoration: underline; text-underline-offset: 2px; }
.bildkredit a:hover { color: var(--accent); }
.bildkredit-hero, .bildkredit-serie { max-width: var(--maxw); margin: .4rem auto .1rem; padding: 0 1.2rem; }
.kredittabell .endr { color: var(--text-light); font-size: .82em; }

.img-credit { font-size: .74rem; color: var(--text-light); margin: .25rem 0 0; }
.img-credit a { color: var(--text-light); text-decoration: underline; }
.img-credit a:hover { color: var(--accent); }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.callout.green { background: #e9f4ef; border-color: var(--good); }
.callout.blue { background: #e9f1f7; border-color: var(--blue); }
.callout.warn { background: #fbf3e2; border-color: var(--warn); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--text); }

.factbox { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1.5rem; margin: 1.5rem 0; }
.factbox h3 { margin-bottom: .8rem; font-size: 1.05rem; }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .92rem; }
.factbox dt { color: var(--text-light); font-weight: 600; }
.factbox dd { font-weight: 600; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.pros-cons > div { border-radius: var(--r); padding: 1.1rem 1.3rem; }
.pros { background: #e9f4ef; }
.cons { background: #fbeeea; }
.pros h4, .cons h4 { margin-bottom: .6rem; }
.pros-cons ul { list-style: none; margin: 0; }
.pros-cons li { font-size: .9rem; padding-left: 1.4rem; position: relative; margin-bottom: .45rem; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: #c4553b; font-weight: 800; }

/* ---------- Intern laankning ---------- */
.related { background: var(--bg); border-top: 1px solid var(--border); }
.related h2 { text-align: center; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; font-weight: 600; color: var(--brand); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-d); color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: .8rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.7); max-width: 22rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.footer-col a { display: block; color: rgba(255,255,255,.75); font-size: .9rem; padding: .22rem 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.2rem; padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Soek-modal ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(20,40,50,.55); backdrop-filter: blur(3px); z-index: 200; display: none; padding: 8vh 1rem 0; }
.search-modal.open { display: block; }
.search-box { max-width: 600px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box-head { display: flex; align-items: center; padding: .5rem .5rem .5rem 1.2rem; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; border: none; outline: none; font-size: 1.05rem; padding: .8rem .5rem; }
.search-box .close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-light); padding: .5rem .8rem; }
.search-res { max-height: 50vh; overflow-y: auto; padding: .6rem; }
.search-res a { display: block; padding: .6rem .8rem; border-radius: var(--r-sm); }
.search-res a:hover, .search-res a.sel { background: var(--bg); }
.search-res .t { font-weight: 600; color: var(--text); }
.search-res .s { font-size: .8rem; color: var(--text-light); }
.search-res .empty { padding: 1rem; color: var(--text-light); font-size: .9rem; }

/* ---------- Hjaelpare ---------- */
.center { text-align: center; }
.mt2 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.muted { color: var(--text-light); }
.pill { display:inline-block; background: var(--accent-soft); color: var(--accent-h); font-weight: 700; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; }

/* ---------- Destinationsväljaren ---------- */
.velger { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.velger-head { background: var(--brand); color: #fff; padding: 1.4rem 1.6rem; }
.velger-head h2 { color: #fff; margin: 0; }
.velger-head p { color: rgba(255,255,255,.88); font-size: .92rem; margin: .3rem 0 0; }
.velger-body { padding: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; }
.q .qhead { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.q .qhead label { font-weight: 700; font-size: .96rem; }
.q .qhead .hint { font-size: .76rem; color: var(--text-light); text-align: right; }
.q .opts { display: flex; gap: .4rem; flex-wrap: wrap; }
.q .opts .opt { flex: 1; min-width: 0; padding: .55rem .5rem; border: 1.5px solid var(--border); background: var(--white); border-radius: var(--r-sm); font-size: .82rem; font-weight: 600; color: var(--text-light); cursor: pointer; transition: .12s; }
.q .opts .opt:hover { border-color: var(--brand-l); color: var(--brand); }
.q .opts .opt.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.q .weight { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; font-size: .74rem; color: var(--text-light); }
.q .weight input { flex: 1; accent-color: var(--accent); }
.q .weight .wv { min-width: 3.2em; text-align: right; font-weight: 700; }
.velger-foot { padding: 1.1rem 1.6rem; border-top: 1px solid var(--border); display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; background: var(--bg); }
.velger-foot .spacer { flex: 1; }

.results { margin-top: 1.8rem; display: grid; gap: 1rem; }
.result-card { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.1rem; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: .9rem 1.1rem; box-shadow: var(--shadow); transition: .15s; }
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.result-card .ph { width: 110px; height: 80px; border-radius: var(--r-sm); background: var(--bg-2); background-size: cover; background-position: center; }
.result-card h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.result-card .meta { font-size: .82rem; color: var(--text-light); margin-bottom: .5rem; }
.match { text-align: center; min-width: 86px; }
.match .pct { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1; }
.match .ring { font-size: .68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.match-bar { height: 6px; background: var(--bg-2); border-radius: 999px; margin-top: .35rem; overflow: hidden; }
.match-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--good)); }

/* Egenskapsbarer (profil + resultat) */
.traits { display: grid; gap: .55rem; }
.traits.mini { gap: .3rem; }
.trait { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: .7rem; font-size: .86rem; }
.traits.mini .trait { grid-template-columns: 110px 1fr 30px; font-size: .78rem; }
.trait .lbl { color: var(--text); font-weight: 600; }
.trait .bar { height: 9px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.traits.mini .trait .bar { height: 7px; }
.trait .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-l), var(--accent)); border-radius: 999px; }
.trait .val { font-size: .78rem; color: var(--text-light); text-align: right; font-weight: 700; }

/* Destinationsprofil-kort på destinationssidor */
.dest-profil { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem 1.5rem; margin: 1.8rem 0 2rem; }
.dest-profil h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.dest-profil .muted { font-size: .9rem; }
.dest-profil .traits { margin: 1rem 0 1.2rem; }

/* ---------- Responsivt / mobil ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 1100px) {
  .nav-menu { position: fixed; inset: 56px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 1rem; gap: .2rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 56px); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: .8rem; border-radius: var(--r-sm); }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: .3rem 0 .6rem 1rem; min-width: 0; display: block; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .dropdown-col { margin-bottom: .6rem; }
  .dropdown-menu.dropdown-grupper { grid-template-columns: 1fr; width: auto; min-width: 0; max-width: none; padding: .2rem 0 .5rem; display: block; }
  .dd-grupp { padding: .55rem .8rem; }
  .dd-alla { padding: .6rem .8rem 0; margin-top: .3rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid-2, .pros-cons { grid-template-columns: 1fr; }
  .page-hero { min-height: 280px; }
  .hero-karusell { min-height: 460px; }
  .velger-body { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 84px 1fr; }
  .result-card .match { grid-column: 2; text-align: left; display: flex; align-items: center; gap: .6rem; }
  .result-card .match-bar { flex: 1; margin-top: 0; }
  .trait { grid-template-columns: 120px 1fr 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.4rem 0; }
  .hero-inner { padding: 3rem 1.2rem; }
}

/* --- Byline (senast uppdaterad) --- */
.byline {
  font-size: .85rem;
  color: #6b7280;
  margin: 0 0 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.byline span { color: #374151; font-weight: 600; }

/* --- Platskarta (Hitta hit) --- */
.place-map { margin: 2.6rem 0 1rem; }
.place-map h2 { margin-bottom: .8rem; }
.place-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: block;
}
.place-map .map-link { margin: .7rem 0 0; font-size: .92rem; }
.place-map .map-note { color: #9ca3af; font-size: .82rem; margin-left: .4rem; }
@media (max-width: 480px) { .place-map iframe { height: 260px; } }

/* --- Skip-link (tillgänglighet) --- */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--accent, #0e7c86); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 8px; }
#innehall { scroll-margin-top: 80px; }

/* --- Sevärt i närheten --- */
.nearby { margin: 2.4rem 0 1rem; }
.nearby h2 { margin-bottom: .8rem; }
.nearby-list { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem .9rem; }
.nearby-list li { padding: .5rem .8rem; border: 1px solid #e5e7eb; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.nearby-list a { font-weight: 600; text-decoration: none; }
.nearby-list a:hover { text-decoration: underline; }
.nearby-list .km { color: #9ca3af; font-size: .82rem; white-space: nowrap; }

/* ---- Cookie-samtyckesbanner (GDPR / Consent Mode v2) ---- */
.cookie-consent{position:fixed;left:0;right:0;bottom:0;z-index:9999;background:#fff;
  border-top:3px solid var(--brand);box-shadow:0 -4px 24px rgba(14,80,102,.18);}
.cookie-consent[hidden]{display:none;}
.cookie-consent-inner{max-width:1100px;margin:0 auto;padding:.9rem 1.2rem;
  display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap;justify-content:space-between;}
.cookie-consent-text{margin:0;font-size:.92rem;color:var(--text);line-height:1.45;flex:1 1 360px;}
.cookie-consent-text a{color:var(--brand);}
.cookie-consent-btns{display:flex;gap:.6rem;flex:0 0 auto;}
.btn-consent{cursor:pointer;border-radius:8px;padding:.55rem 1.3rem;font-size:.92rem;
  font-weight:600;border:2px solid var(--brand);transition:background .15s,color .15s;}
.btn-consent-accept{background:var(--brand);color:#fff;}
.btn-consent-accept:hover{background:var(--brand-d);border-color:var(--brand-d);}
.btn-consent-deny{background:#fff;color:var(--brand);}
.btn-consent-deny:hover{background:var(--bg);}
@media(max-width:560px){
  .cookie-consent-inner{flex-direction:column;align-items:stretch;gap:.7rem;padding:.9rem 1rem;}
  .cookie-consent-btns{justify-content:flex-end;}
}

/* ==========================================================================
   huahintips.se - tillägg och rättelser ovanpå basmallen
   ========================================================================== */

/* --- Hero: läsbarhet mätt mot bilden, inte gissad ---------------------------
   Ingen toning ligger över bilden - fotot visas rent. Hela kontrastarbetet
   bärs av boxen bakom texten. Mätt mot heroseriens ljusaste punkt, som är ren
   vit (255,255,255) i flera bilder: vit text direkt på bilden ger 1,0:1, och
   boxen på .72 ger 7,4:1. Sänk aldrig alfat utan att mäta om. ---------------- */
.page-hero { min-height: 380px; }

.page-hero .inner { padding: 2.6rem 1.2rem 2.4rem; }
.page-hero .herobox {
  background: rgba(8,22,26,.72);
  backdrop-filter: blur(3px);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  max-width: 46rem;
  border: 1px solid rgba(255,255,255,.14);
}
.page-hero .herobox h1 { margin: 0 0 .5rem; max-width: none; }
.page-hero .herobox p { color: #fff; max-width: 52ch; }


/* --- Megameny: bredare, fler kolumner -------------------------------------- */
.dropdown-menu { min-width: 640px; max-width: min(94vw, 980px); grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); }
.dropdown-col h4 a { color: var(--brand); }
.dropdown-col h4 a:hover { color: var(--accent); }
.dropdown-col .grouplink { font-weight: 700; color: var(--brand); font-size: .92rem; display: block; margin-bottom: .3rem; }
.nav-menu { gap: 0; }
.nav-link { padding: .5rem .58rem; font-size: .9rem; }

/* --- Artikelkort i listor -------------------------------------------------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.2rem; }
.art-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .18s; }
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.art-card .ph { aspect-ratio: 16/10; background: var(--bg-2); background-size: cover; background-position: center; }
.art-card .body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.art-card .grp { font-size: .72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.art-card h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: .4rem; }
.art-card p { font-size: .88rem; color: var(--text-light); margin: 0; flex: 1; }

/* Kompakt länklista när gruppen har många artiklar */
.art-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: .5rem .9rem; }
.art-list li { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); }
.art-list a { display: block; padding: .6rem .85rem; font-weight: 600; font-size: .93rem; color: var(--text); }
.art-list a:hover { color: var(--accent); background: var(--bg); }

/* --- Gruppsektion på pilarsida --------------------------------------------- */
.grupp-block { margin-bottom: 2.6rem; }
.grupp-block .gh { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .3rem; }
.grupp-block .gh h2 { margin: 0; font-size: 1.45rem; }
.grupp-block .gh a.allt { font-size: .85rem; font-weight: 700; color: var(--accent); }
.grupp-block .gl { color: var(--text-light); margin-bottom: 1rem; font-size: .97rem; }

/* --- Faktatabeller --------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--white); }
table.data th, table.data td { padding: .6rem .8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data thead th { background: var(--bg); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); }
table.data tbody tr:hover { background: var(--bg); }

/* --- Källbox och ansvarsruta ---------------------------------------------- */
.kallor { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.3rem; margin: 2.2rem 0 0; font-size: .9rem; }
.kallor h3 { font-size: .95rem; margin-bottom: .5rem; }
.kallor ul { margin: 0 0 0 1.1rem; }
.kallor li { margin-bottom: .3rem; }

/* --- Vidare läsning --------------------------------------------------------- */
.vidare { margin: 2.4rem 0 0; }
.vidare h2 { font-size: 1.25rem; margin-bottom: .8rem; }

/* --- Mobil: navigationen bryter vid 1100 px (enkelriktad regel, ingen
       brakdelspixel-glipa vid devicePixelRatio 1,5) ------------------------- */
@media (max-width: 1100px) {
  .dropdown-menu { min-width: 0; max-width: none; }
  .page-hero .herobox { max-width: none; }
}
@media (max-width: 560px) {
  .page-hero { min-height: 300px; }
  .page-hero .herobox { padding: 1.1rem 1.1rem; }
}

/* Kortrubriker är etiketter, inte dokumentrubriker - de ska inte bryta
   rubrikhierarkin på listsidor. */
.art-card .ct { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.3;
  margin-bottom: .4rem; color: var(--text); letter-spacing: -.01em; }
.art-card:hover .ct { color: var(--brand); }

/* --- Megamenyn ankras till navigationsraden, inte till knappen ------------
   Centrerad på knappen sköt den 868 px breda panelen 144 px utanför
   viewporten vid 1280 px (uppmätt, inte gissat). Nu spänner den över
   innehållsbredden och kan aldrig hamna utanför skärmen. ------------------- */
@media (min-width: 1101px) {
  .nav-inner { position: relative; }
  .nav-dropdown { position: static; }
  .dropdown-menu {
    left: 50%;
    right: auto;
    width: min(1080px, calc(100vw - 2.4rem));
    min-width: 0;
    max-width: none;
    transform: translateX(-50%) translateY(8px);
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu,
  .nav-dropdown.nav-dd-right:hover .dropdown-menu,
  .nav-dropdown.nav-dd-right:focus-within .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown.nav-dd-right .dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(8px);
  }
}

/* --- Kortsvaret: hovedbudskapet før første H2 --------------------------------
   Leseren skal ha svaret innenfor de første tjue ordene. Boksen skal kunne
   leses alene og gi det hen kom for. Se SKRIVBRIEF.md punkt 1. ------------- */
.kortsvar {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0 1.8rem;
}
.kortsvar p { margin: 0; font-size: 1.06rem; color: #2c3336; }
.kortsvar p + p { margin-top: .6rem; }
.kortsvar .etikett {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7d5f16;   /* uppmätt 5,26:1 mot #FAF0D9 - #8a6a1c gav 4,46 */
  margin-bottom: .4rem;
}
