/* Hitta Second Hand – komponenter för butikskort, stadslistning, butikssida och startsida */
:root {--hsh-teal:#0f7e76; --hsh-teal-dark:#095f58; --hsh-ink:#152531; --hsh-sand:#f5eee4; --hsh-line:#ece6da; --hsh-gold:#f8e3af;}

.hsh-muted {color:#6c675c;}
.hsh-stars {position:relative; display:inline-block; line-height:1; letter-spacing:1px; vertical-align:-1px; white-space:nowrap;}
.hsh-stars-bg {color:#ddd4c2;}
.hsh-stars-fg {position:absolute; left:0; top:0; overflow:hidden; color:#d4a017;}
.hsh-rating {display:inline-flex; align-items:center; gap:.35rem; flex-wrap:wrap; font-weight:300;}
.hsh-rating b {font-weight:500;}

.hsh-status {display:inline-block; border-radius:2rem; padding:.2rem .65rem; font-size:.78rem; font-weight:500; line-height:1.3; white-space:nowrap;}
.hsh-open {background:var(--hsh-teal); color:#fff;}
.hsh-closed {background:#ece7dc; color:#5c574c;}
.hsh-verified {display:inline-flex; align-items:center; gap:.25rem; background:#e4effe; color:#0a6bb8; border-radius:.25rem; padding:.1rem .4rem; font-size:.72rem; font-weight:500;}
.hsh-chip {display:inline-block; background:var(--hsh-sand); border-radius:2rem; padding:.25rem .75rem; font-size:.8rem; font-weight:400; color:#212529;}

/* Fotoplats (thumbnail) */
.hsh-thumb {position:relative; flex-shrink:0; width:112px; height:84px; border-radius:.45rem; overflow:hidden; background:linear-gradient(135deg,#efe6d6,#f7efe2);}
.hsh-thumb-initial {position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:1.6rem; font-weight:600; color:#c9b89a;}
.hsh-thumb img {position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .25s;}
.hsh-thumb img.is-loaded {opacity:1;}
.hsh-attr {position:absolute; left:0; right:0; bottom:0; padding:1px 5px; font-size:9px; line-height:1.4; color:#fff; background:linear-gradient(0deg,rgba(0,0,0,.6),rgba(0,0,0,0)); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; z-index:2;}
.hsh-attr a {color:#fff; text-decoration:underline;}

/* Butikskort */
.hsh-cards {display:flex; flex-direction:column; gap:.6rem; margin:0 0 1.5rem; padding:0; list-style:none;}
.hsh-card {position:relative; display:flex; gap:1rem; align-items:center; background:#fff; border:1px solid var(--hsh-line); border-radius:.55rem; padding:.7rem .9rem; transition:box-shadow .15s;}
.hsh-card:hover {box-shadow:0 6px 18px rgba(21,37,49,.08);}
.hsh-card.is-premium {border-color:#bcd7f5;}
.hsh-card-body {min-width:0; flex:1;}
.hsh-card-title {font-size:1rem; font-weight:500; margin:0 0 .15rem; line-height:1.3;}
.hsh-card-title a {color:#212529; text-decoration:none;}
.hsh-card-title a::after {content:""; position:absolute; inset:0; z-index:1;}
.hsh-card-title a:hover {text-decoration:underline;}
.hsh-card-meta {font-size:.85rem; display:flex; flex-wrap:wrap; gap:.25rem .75rem; align-items:center;}
.hsh-card-addr {font-size:.8rem; color:#6c675c; margin:.15rem 0 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.hsh-card-side {display:flex; flex-direction:column; align-items:flex-end; gap:.35rem; margin-left:auto; flex-shrink:0;}
.hsh-card .hsh-attr {z-index:2;}
.hsh-card .hsh-chev {opacity:.4;}

/* Filter */
.hsh-filters {display:flex; flex-wrap:wrap; gap:.4rem;}
.hsh-filter {border:1px solid var(--hsh-teal); color:var(--hsh-teal); background:transparent; border-radius:2rem; padding:.25rem .85rem; font-size:.875rem; line-height:1.4;}
.hsh-filter:hover, .hsh-filter.active {background:var(--hsh-teal); color:#fff;}
.hsh-filter .n {opacity:.75; font-size:.78rem; margin-left:.15rem;}
.hsh-sort {max-width:260px;}
.hsh-faq {background:var(--hsh-sand); border-radius:.6rem; padding:1rem 1.15rem;}
.hsh-faq h3 {font-size:1rem; font-weight:600;}
.hsh-faq dt {font-weight:500; font-size:.9rem; margin-top:.75rem;}
.hsh-faq dd {font-weight:300; font-size:.9rem; margin:0;}
.hsh-empty {display:none; background:#fff; border:1px dashed var(--hsh-line); border-radius:.55rem; padding:1rem; font-size:.9rem;}

/* Stadsrutor */
.hsh-city-list {list-style:none; margin:0; padding:0; background:#fff; border:1px solid var(--hsh-line); border-radius:.55rem;}
.hsh-city-list li + li {border-top:1px solid var(--hsh-line);}
.hsh-city-list a {display:flex; justify-content:space-between; align-items:center; padding:.65rem 1rem; color:#212529; text-decoration:none; gap:1rem;}
.hsh-city-list a:hover {background:#fbf7f0;}
.hsh-count {background:var(--hsh-gold); border-radius:2rem; padding:.1rem .6rem; font-size:.78rem; white-space:nowrap;}
.hsh-tile {display:block; height:100%; background:#fff; border:1px solid var(--hsh-line); border-radius:.6rem; padding:1rem 1.15rem; color:inherit; text-decoration:none; transition:box-shadow .15s;}
.hsh-tile:hover {color:inherit; box-shadow:0 6px 18px rgba(21,37,49,.08);}
.hsh-tile .count {font-size:1.5rem; font-weight:600; color:var(--hsh-teal); line-height:1.1;}
.hsh-tile .name {font-weight:500;}
/* Butikssida */
.hsh-gallery {display:grid; grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; gap:6px; height:420px; max-width:1600px; margin:0 auto 1.5rem; background:#f2ebdf;}
.hsh-gallery-slot {position:relative; overflow:hidden; background:linear-gradient(135deg,#efe6d6,#f7efe2);}
.hsh-gallery-slot:first-child {grid-row:1 / span 2;}
.hsh-gallery-slot img {position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .3s;}
.hsh-gallery-slot img.is-loaded {opacity:1;}
.hsh-gallery-slot .hsh-attr {font-size:11px; padding:3px 8px;}
.hsh-gallery.hsh-gallery-n1 {grid-template-columns:1fr;}
.hsh-gallery.hsh-gallery-n2 {grid-template-columns:2fr 1fr;}
.hsh-gallery.hsh-gallery-n2 .hsh-gallery-slot:nth-child(2) {grid-row:1 / span 2;}
.hsh-gallery-more {position:absolute; right:10px; bottom:10px; z-index:3; background:rgba(255,255,255,.92); color:#212529; border-radius:2rem; padding:.3rem .8rem; font-size:.8rem; text-decoration:none;}
.hsh-actions {display:flex; flex-wrap:wrap; gap:.5rem;}
.hsh-btn {display:inline-flex; align-items:center; gap:.4rem; border-radius:2rem; padding:.45rem 1.1rem; font-weight:500; font-size:.95rem; text-decoration:none; border:1px solid var(--hsh-teal); color:var(--hsh-teal); background:#fff;}
.hsh-btn:hover {background:#eef6f5; color:var(--hsh-teal-dark);}
.hsh-btn-primary {background:var(--hsh-teal); color:#fff;}
.hsh-btn-primary:hover {background:var(--hsh-teal-dark); color:#fff;}
.hsh-review {background:#fff; border:1px solid var(--hsh-line); border-radius:.55rem; padding:1rem 1.15rem; margin-bottom:.75rem;}
.hsh-review p {margin:.4rem 0 .5rem;}
.hsh-review .who {font-size:.85rem; font-weight:500;}
.hsh-review .when {font-size:.8rem; color:#6c675c;}
.hsh-cta {background:var(--hsh-sand); border-radius:.6rem; padding:1.25rem 1.4rem;}
.hsh-nearby {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem;}

@media (max-width: 991.98px) {
  .hsh-gallery {height:340px;}
}
@media (max-width: 767.98px) {
  .hsh-gallery {height:auto; grid-template-columns:1fr 1fr; grid-template-rows:240px 120px;}
  .hsh-gallery-slot:first-child {grid-row:auto; grid-column:1 / span 2;}
  .hsh-gallery.hsh-gallery-n1 {grid-template-rows:240px;}
  .hsh-gallery.hsh-gallery-n2 {grid-template-columns:1fr; grid-template-rows:240px 160px;}
  .hsh-gallery.hsh-gallery-n2 .hsh-gallery-slot:nth-child(2) {grid-row:auto;}
  .hsh-gallery.hsh-gallery-n2 .hsh-gallery-slot:first-child {grid-column:auto;}
  .hsh-nearby {grid-template-columns:1fr;}
}
@media (max-width: 575.98px) {
  .hsh-thumb {width:84px; height:72px;}
  .hsh-card {align-items:flex-start; gap:.75rem; padding:.65rem .7rem;}
  .hsh-card-side {display:none;}
  .hsh-card-status-mobile {display:block !important; margin-top:.3rem;}
}

/* Bildgalleri under "Om butiken" (ej premium) – behåller proportioner, rader med samma höjd */
.hsh-photos {--hsh-ph-h:180px;}
.hsh-photos-grid {display:flex; flex-wrap:wrap; gap:6px;}
.hsh-photos-grid::after {content:""; flex-grow:1000;}
.hsh-ph {position:relative; margin:0; min-width:0; max-width:100%; overflow:hidden; border-radius:.5rem; background:linear-gradient(135deg,#efe6d6,#f7efe2);}
.hsh-ph-open {display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in;}
.hsh-ph-open img {display:block; width:100%; height:100%; opacity:0; transition:opacity .3s;}
.hsh-ph-open img.is-loaded {opacity:1;}
.hsh-ph-open:focus-visible {outline:3px solid #0d7a6b; outline-offset:-3px;}
.hsh-ph .hsh-attr {font-size:10px; padding:2px 6px;}
@media (max-width:575.98px) { .hsh-photos {--hsh-ph-h:110px;} .hsh-photos-grid {gap:4px;} }
.hsh-lb {position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center; background:rgba(15,15,15,.92); padding:3rem 3.5rem;}
.hsh-lb[hidden] {display:none;}
.hsh-lb figure {margin:0; max-width:100%; max-height:100%; display:flex; flex-direction:column; align-items:center;}
.hsh-lb img {max-width:100%; max-height:calc(100vh - 8rem); object-fit:contain; opacity:0; transition:opacity .2s;}
.hsh-lb img.is-loaded {opacity:1;}
.hsh-lb-cap {color:#ddd; font-size:.8rem; margin-top:.5rem; text-align:center;}
.hsh-lb-cap .hsh-attr {position:static; background:none; font-size:.8rem; padding:0; display:inline;}
.hsh-lb-close, .hsh-lb-nav {position:absolute; border:0; background:rgba(255,255,255,.12); color:#fff; border-radius:50%; width:44px; height:44px; font-size:28px; line-height:1; display:flex; align-items:center; justify-content:center;}
.hsh-lb-close {top:12px; right:12px;}
.hsh-lb-prev {left:8px; top:50%; transform:translateY(-50%);}
.hsh-lb-next {right:8px; top:50%; transform:translateY(-50%);}
.hsh-lb-nav[hidden] {display:none;}
.hsh-lb-close:hover, .hsh-lb-nav:hover {background:rgba(255,255,255,.25);}
html.hsh-lb-open {overflow:hidden;}
@media (max-width:575.98px) { .hsh-lb {padding:3.5rem .5rem;} .hsh-lb-nav {top:auto; bottom:10px; transform:none;} }
