/* HS2 – klinikkprofil (skjerm 34–37, 51). Mobil først; 768/1200 legger seksjoner i sidekolonne. */

/* ---------- Klinikkhode ---------- */
.clinic-head { background: #fff; }
.clinic-head .inner { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; padding-bottom: 18px; }
.clinic-head .left { display: flex; flex-direction: column; gap: 14px; }
.clinic-head .identity { display: flex; gap: 12px; align-items: flex-start; }
.clinic-head .names { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.clinic-head .prefix { font-weight: 500; color: var(--hs-muted); }
.clinic-head .place { display: inline-flex; align-items: flex-start; gap: 5px; font-size: 13px; font-weight: 500; color: var(--hs-muted); line-height: 1.3; }
.clinic-head .place .ic { margin-top: 1px; }
.clinic-head .trust { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 2px; }
.clinic-head .trust .rating-row:hover { text-decoration: none; }
.clinic-head .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.clinic-head .actions .btn-book { flex: 1 1 auto; }
.clinic-head .actions .note { flex-basis: 100%; font-size: 12px; line-height: 1.4; color: var(--hs-muted); }
.phone-reveal .nr { font-weight: 600; }
.phone-reveal.short .nr { font-weight: 500; opacity: .85; }
.phone-reveal:not(.short) .action { display: none; }
@media (min-width: 768px) {
  .clinic-head { background: var(--hs-soft); }
  .clinic-head .inner { gap: 18px; padding-top: 30px; padding-bottom: 24px; }
  .clinic-head .identity { gap: 18px; align-items: center; }
  .clinic-head .logo-box { width: 128px; height: 64px; border-radius: 12px; }
  .clinic-head .trust { flex-direction: row; align-items: center; gap: 12px; }
  .clinic-head .actions .btn-book { flex: none; }
  .clinic-head .actions .note { flex-basis: auto; }
}
@media (min-width: 1200px) {
  .clinic-head .inner { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 40px; padding-top: 40px; padding-bottom: 32px; }
  .clinic-head .left { flex: 1; min-width: 0; gap: 16px; }
  .clinic-head .identity { gap: 22px; }
  .clinic-head .logo-box { width: 140px; height: 70px; }
  .clinic-head .actions { flex: none; width: 320px; flex-direction: column; align-items: stretch; }
  .clinic-head .actions .btn { width: 100%; min-height: 51px; }
  .clinic-head .actions .note { text-align: center; }
}

/* ---------- Fanerad · stor (34T/34D, 35/36/37, 51T/51D) ----------
   Basisstilen .tabs ligger i base.css. Her bare den store varianten: 15 px tekst,
   38 px høyde. Venstrekanten er den samme som innholdskolonnen fordi begge ligger
   i .hs2-wrap (gutter 32/40, maks 1200 sentrert) – ingen ekstra innrykk. */
@media (min-width: 768px) {
  .clinic-tabs .tab { padding: 10px 18px; font-size: 15px; }
  .clinic-tabs .tab .n { font-size: 15px; }
}

/* ---------- Grid: mobil = én kolonne i designets rekkefølge, 768+ = to kolonner ---------- */
.clinic-body { display: flex; flex-direction: column; }
.clinic-body > .col-main, .clinic-body > .col-side { display: contents; }
.clinic-body .section { order: 50; }
.clinic-body .contact-box { order: 2; }
.clinic-body .quick-links { order: 3; }
.clinic-body .hours { order: 4; }
.clinic-body .about { order: 5; }
.clinic-body .gallery { order: 6; }
.clinic-body .video { order: 7; }
.clinic-body .facts { order: 8; }
.clinic-body .services { order: 9; }
.clinic-body .location { order: 10; }
.clinic-body .practitioners { order: 11; }
.clinic-body .reviews { order: 12; }
.clinic-body .social { order: 13; }
.clinic-body--tab > .col-side > * { order: 60; }
.clinic-body--tab > .col-side > .contact-box { order: 2; }
@media (min-width: 768px) {
  .clinic-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 24px; align-items: start; padding-top: 26px; padding-bottom: 8px; }
  .clinic-body > .col-main { display: flex; flex-direction: column; gap: 26px; grid-column: 1; min-width: 0; }
  .clinic-body > .col-side { display: flex; flex-direction: column; gap: 16px; grid-column: 2; }
  .clinic-body > .col-main > *, .clinic-body > .col-side > * { order: 0; }
  .clinic-body .section { padding: 0; }
  .clinic-body .section-soft { border: 1px solid var(--hs-border); border-radius: 16px; padding: 24px 20px; }
}
@media (min-width: 1200px) {
  .clinic-body { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; padding-top: 40px; padding-bottom: 16px; }
  .clinic-body > .col-main { gap: 32px; }
  .clinic-body > .col-side { gap: 20px; }
}

/* ---------- Kontaktboks (34N / 34S) ---------- */
.contact-box { padding: 0 var(--hs-gutter) 16px; }
.contact-box .card-soft { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.contact-box h2 { font-size: 18px; }
.contact-box p { font-size: 14px; line-height: 1.55; }
.contact-box .btn { width: 100%; min-height: 44px; }
.contact-box .link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--hs-blue); }
@media (min-width: 768px) { .contact-box { padding: 0; } }

/* ---------- Snarveier ---------- */
.quick-links { display: flex; gap: 8px; padding: 0 var(--hs-gutter) 16px; }
.quick-links a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 12px; background: var(--hs-soft); color: var(--hs-navy); font-size: 12px; font-weight: 600; text-align: center; }
.quick-links a:hover { text-decoration: none; background: #e6eef2; }
.quick-links .ic { color: var(--hs-navy); }
@media (min-width: 768px) { .quick-links { padding: 0; } .quick-links a { padding: 12px 4px; font-size: 11px; } }
@media (min-width: 1200px) { .quick-links a { font-size: 12px; } }

/* ---------- Åpningstider ---------- */
.hours { padding: 20px var(--hs-gutter) 10px; }
.hours .card { overflow: hidden; }
.hours .head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hs-border); }
.hours .head .ic { color: var(--hs-navy); }
.hours .head h2 { flex: 1; font-size: 14px; font-weight: 700; color: var(--hs-navy); }
.hours .status { display: inline-flex; white-space: nowrap; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.hours .status.open { background: var(--hs-wait-now-bg); color: var(--hs-success); }
.hours .status.closed { background: var(--hs-wait-unknown-bg); color: var(--hs-muted); }
.hours .day { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; font-size: 13px; line-height: 1.3; }
.hours .day + .day { border-top: 1px solid var(--hs-border); }
.hours .day .t { font-weight: 500; }
.hours .day .t.closed { color: var(--hs-muted); }
.hours .day.today { background: var(--hs-soft); font-weight: 700; color: var(--hs-navy); }
.hours .day.today .t { font-weight: 700; color: var(--hs-navy); }
.hours .extra { padding: 10px 14px; font-size: 13px; line-height: 1.5; color: var(--hs-text); border-top: 1px solid var(--hs-border); }
@media (min-width: 768px) { .hours { padding: 0; } }

/* ---------- Om klinikken ---------- */
.about .hs2-body + .hs2-body { margin-top: 10px; }
.about .text { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.about .text.clamp { max-height: 12.8em; overflow: hidden; position: relative; }
.about .text.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.about .btn-link { margin-top: 8px; }

/* ---------- Galleri ---------- */
.gallery .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery .grid a { display: block; aspect-ratio: 6 / 5; border-radius: 10px; overflow: hidden; background: #DCE4E8; }
.gallery .grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery .cap { margin-top: 8px; font-size: 12px; color: var(--hs-muted); line-height: 1.4; }
.gallery .cap strong { color: var(--hs-text); font-weight: 600; }
@media (min-width: 768px) { .gallery .grid { grid-template-columns: repeat(4, 1fr); } .gallery .grid a { aspect-ratio: 4 / 3; } }
.promo-lightbox { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: rgba(0,20,32,.92); }
.promo-lightbox[hidden] { display: none; }
.promo-lightbox-figure { max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.promo-lightbox-figure img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 10px; }
.promo-lightbox-figure figcaption { color: #fff; font-size: 14px; text-align: center; }
.promo-lightbox-close, .promo-lightbox-nav { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; }
.promo-lightbox-close { top: 16px; right: 16px; }
.promo-lightbox-nav { top: 50%; transform: translateY(-50%); }
.promo-lightbox-nav.is-prev { left: 12px; }
.promo-lightbox-nav.is-next { right: 12px; }
body.promo-lightbox-open { overflow: hidden; }

/* ---------- Video ---------- */
.video .card { overflow: hidden; }
.video .video-embed { position: relative; aspect-ratio: 16 / 9; background: #1F3A4A; }
.video .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .video-play { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.video .video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .video-play-icon { position: relative; display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--hs-navy); }
.video .cap { padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--hs-navy); }

/* ---------- Priser og tjenester ---------- */
.services .section-head { margin-bottom: 12px; }
.services .notice { margin-bottom: 12px; }
.service-row { display: flex; align-items: center; gap: 12px; padding: 14px; }
.service-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.service-row .name { font-size: 14px; font-weight: 600; color: var(--hs-navy); line-height: 1.35; }
.service-row .name:hover { text-decoration: underline; }
.service-row .cat { font-size: 12px; color: var(--hs-muted); line-height: 1.4; }
.service-row .extra { font-size: 12px; color: var(--hs-text); line-height: 1.4; }
.service-row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.service-row .btn-sm { flex: none; }
.service-row .contact-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--hs-blue); white-space: nowrap; }
.service-row .chev { display: inline-flex; flex: none; align-self: center; color: var(--hs-border-strong); }
.service-row:hover .chev { color: var(--hs-blue); }
.services .btn-more { margin-top: 12px; }
@media (min-width: 1200px) { .service-row { padding: 16px 18px; } .service-row .name { font-size: 15px; } }

/* ---------- Lokasjon ---------- */
.location .card { overflow: hidden; }
.location .map { position: relative; height: 150px; background: linear-gradient(140deg, #E3EDF1, #CFE2EA) center / cover no-repeat; }
.location .map .ctl { position: absolute; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: var(--hs-navy); box-shadow: 0 1px 3px rgba(0,36,56,.2); }
.location .map .btn-fullscreen { top: 8px; right: 8px; }
.location .map .btn-pluss { bottom: 48px; right: 8px; }
.location .map .btn-minus { bottom: 8px; right: 8px; }
.location .map.na { display: flex; align-items: center; justify-content: center; color: var(--hs-muted); font-size: 13px; gap: 6px; }
.location .addr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.location .addr .street { font-size: 14px; font-weight: 600; color: var(--hs-navy); line-height: 1.3; }
.location .addr .zip { font-size: 12px; color: var(--hs-muted); line-height: 1.4; }
.location .addr .btn-soft { flex: none; }
.location .more { margin-top: 12px; }
@media (min-width: 768px) { .location .map { height: 180px; } }
@media (min-width: 1200px) { .location .map { height: 340px; } .location .addr { flex-direction: column; align-items: flex-start; } }

/* ---------- Behandlere ---------- */
.practitioner { display: flex; gap: 12px; padding: 14px; color: inherit; }
.practitioner:hover { text-decoration: none; background: var(--hs-soft); }
.practitioner .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.practitioner .name { font-size: 15px; font-weight: 700; color: var(--hs-navy); line-height: 1.3; }
.practitioner .role { font-size: 12px; color: var(--hs-muted); line-height: 1.4; }
.practitioner .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.practitioner .slots { font-size: 12px; color: var(--hs-text); }
.practitioners .btn-more { margin-top: 10px; }

/* ---------- Vurderinger ---------- */
.review { display: flex; flex-direction: column; gap: 11px; padding: 15px; }
.review .top { display: flex; align-items: center; gap: 11px; }
.review .top .info { display: flex; flex-direction: column; gap: 4px; }
.review .text { font-size: 15px; line-height: 1.55; color: var(--hs-text); }
.review .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review .report { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--hs-muted); }
.reviews .btn-more { margin-top: 10px; }
.review-summary { display: flex; flex-direction: column; }
.review-summary .rs-top { display: flex; align-items: center; gap: 14px; padding: 14px; }
.review-summary .rs-note { padding: 11px 14px; border-top: 1px solid var(--hs-border); font-size: 13px; line-height: 1.45; color: var(--hs-muted); }
.review-summary .rs-note strong { color: var(--hs-navy); }
.review-summary .big { font-size: 32px; font-weight: 700; color: var(--hs-navy); line-height: 1; }
.review-summary .bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.review-summary .bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hs-muted); }
.review-summary .bar i { flex: 1; height: 6px; border-radius: 999px; background: var(--hs-border); overflow: hidden; }
.review-summary .bar i b { display: block; height: 100%; background: var(--hs-star); }

/* Stjernevelger + skjema (gjenbruker DOM/JS fra partials/rating-*) */
.hs2-rating { margin-bottom: 14px; }
.rating-widget { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.rating-widget h3 { font-size: 14px; font-weight: 700; color: var(--hs-navy); }
.rating-widget br { display: none; }
.rating-widget .bar { display: flex; gap: 4px; }
.rating-widget .star { width: 30px; height: 30px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C3D2D8'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.rating-widget .star.hovered, .rating-widget .star.selected { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F0A500'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E"); }
.rating-form { padding: 14px; border-top: 1px solid var(--hs-border); }
.rating-form.hidden { display: none; }
.rating-form .schema { display: flex; flex-direction: column; gap: 6px; }
.rating-form .label { font-size: 13px; font-weight: 600; color: var(--hs-navy); margin-top: 8px; }
.rating-form .label i { font-style: italic; }
.rating-form select, .rating-form textarea, .rating-form input[type=text] { width: 100%; padding: 11px 13px; border: 1px solid var(--hs-border-strong); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.rating-form textarea { min-height: 110px; resize: vertical; }
.rating-form .mark { font-size: 12px; color: var(--hs-muted); }
.rating-form .error { font-size: 12px; font-weight: 600; color: var(--hs-danger); }
.rating-form .error.hidden { display: none; }
.rating-form .confirm .table { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.rating-form .confirm .col1 { display: inline-flex; flex: none; width: 20px; height: 20px; border: 1px solid var(--hs-border-strong); border-radius: 5px; background: #fff; }
.rating-form .confirm .col1.checked { background: var(--hs-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--hs-navy); }
.rating-form .buttons { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.rating-form .buttons.hidden { display: none; }
.rating-form .buttons .send { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 12px 20px; border-radius: 11px; background: var(--hs-navy); color: #fff; font-weight: 600; font-size: 14px; }
.rating-form .buttons .cancel { font-size: 14px; font-weight: 600; color: var(--hs-blue); }
.rating-form .spinner { display: flex; justify-content: center; padding: 8px; }
.rating-form .spinner.hidden { display: none; }
.rating-form .success { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 11px; background: var(--hs-wait-now-bg); color: var(--hs-success); }
.rating-form .success.hidden { display: none; }
.reviews-disabled-card { display: flex; gap: 12px; padding: 14px; }
.reviews-disabled-card .rd-icon { font-size: 24px; line-height: 1.2; }
.reviews-disabled-card h3 { font-size: 14px; font-weight: 700; color: var(--hs-navy); margin-bottom: 4px; }
.reviews-disabled-card p { font-size: 13px; color: var(--hs-muted); line-height: 1.5; }

/* ---------- Sosiale medier ---------- */
.social .accounts { display: flex; flex-wrap: wrap; gap: 8px; }
.social .accounts a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 8px 12px; border-radius: 999px; background: var(--hs-soft); border: 1px solid var(--hs-border); color: var(--hs-navy); font-size: 12px; font-weight: 600; }
.social .accounts a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Prisliste-fanen (35) ---------- */
.pricelist-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.pricelist { display: flex; flex-direction: column; gap: 14px; }
.pricelist h2 { font-size: 17px; font-weight: 700; color: var(--hs-navy); }
.pricelist .note { font-size: 13px; color: var(--hs-muted); line-height: 1.5; }
.pricelist .group { display: flex; flex-direction: column; gap: 8px; }
.pricelist .group h3 { font-size: 14px; font-weight: 700; color: var(--hs-navy); padding: 0 2px; }
.pricelist .group .gnote { font-size: 12px; color: var(--hs-muted); line-height: 1.45; padding: 0 2px; }

/* ---------- Erfaringer-fanen (36) ---------- */
.reviews-page .filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }

/* ---------- Team-fanen (37) ---------- */
.team-list { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Avdelinger-fanen (51) ---------- */
.dept-list { display: flex; flex-direction: column; gap: 10px; }
.dept { display: flex; gap: 12px; padding: 14px; color: inherit; align-items: center; }
.dept:hover { text-decoration: none; background: var(--hs-soft); }
.dept .logo-box { width: 84px; height: 42px; }
.dept .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dept .name { font-size: 15px; font-weight: 700; color: var(--hs-navy); line-height: 1.3; }
.dept .addr { font-size: 12px; color: var(--hs-muted); line-height: 1.4; }
.dept .ic-chev { color: var(--hs-border-strong); }
@media (min-width: 768px) { .dept-list { display: grid; grid-template-columns: 1fr 1fr; } }
