/* ============================================================
   CARD GRID LAYOUT
   ============================================================ */

/* Premium compact scaling removed (clean modal architecture) */

#storeGrid {
  width: 100%;
  display: grid;
  justify-content: center;
  box-sizing: border-box;
  gap: 1.4rem 1.2rem;
  padding: 1.2rem 0 2.4rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Desktop — exact 4 per row */
@media (min-width: 1280px) {
  #storeGrid {
    grid-template-columns: repeat(4, 265px);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  #storeGrid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem 1.2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #storeGrid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 1.4rem 0.9rem;
    padding-inline: 0.5rem;
  }
}

/* Tiny Mobile */
@media (max-width: 480px) {
  #storeGrid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1.2rem 0.7rem;
  }
}

/* ============================================================
   CARD CONTAINER — EXACT HEIGHT 495px
   ============================================================ */

.store-card {
  width: 265px;
  height: 495px; /* ← FINAL PERFECT HEIGHT */
  display: flex;
  flex-direction: column;
  background: #050505;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(var(--global), 0.7);
 box-shadow:
  0 0 0 1px rgba(var(--global), 0.35),
  0 22px 40px rgba(0,0,0,0.95);

  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-card:hover {
  box-shadow:
    0 0 0 1px rgba(212,160,23,0.35),
    0 22px 40px rgba(0,0,0,0.95);
  transform: translateY(-4px);
}

/* ============================================================
   IMAGE
   ============================================================ */

.store-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ============================================================
   BODY CONTENT
   ============================================================ */

.store-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 1.1rem;
  overflow: hidden;
}

/* ============================================================
   TITLE — 1 ROW (LOCKED)
   ============================================================ */
.store-title {
  font-size: 1.07rem;
  font-weight: 700;
  color: rgb(var(--global));
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;              /* 🔑 lägg till denna */
  -webkit-box-orient: vertical;

  overflow: hidden;
  margin-bottom: 4px;
}

/* ============================================================
   BADGES — PREMIUM PILLS (RESTORED SHINE)
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
              0 2px 6px rgba(0,0,0,0.35);
}

/* STORE — BLUE */
.badge-store {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
}

/* LOUNGE — PURPLE */
.badge-lounge {
  background: linear-gradient(180deg, #a855f7, #7e22ce);
  color: #fff;
}

/* PUBLIC — GREEN */
.badge-access-public {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
}
/* MEMBERS — GRAY */
.badge-access-members {
  background: linear-gradient(180deg, #6b7280, #4b5563);
  color: #fff;
}

/* Badge row spacing */
.badge-row {
  display: flex;
  gap: 0.35rem;
  height: 22px;
  margin-top: 2px;
  margin-bottom: 10px;
  align-items: center;
}

/* ============================================================
   FLAG — MAKE SURE IT RENDERS CLEANLY
   ============================================================ */

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

/* Keep flag & text aligned */
.loc-top img.flag {
  margin-top: -1px;
}

/* ============================================================
   MODAL BADGES — SAME STYLE AS CARDS
   ============================================================ */

#modalBadges .badge {
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

#modalBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Ensures modal layout looks premium */
.modal-section-label {
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 600;
  margin-bottom: 6px;
}


/* ============================================================
   STARS ROW — FIXED
   ============================================================ */

.stars-row {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
    margin-top: 2px;
  margin-bottom: 8px;
}

.stars {
  font-size: 0.9rem;
color: rgba(var(--global), 0.85);
}

.rating-count {
  font-size: 0.78rem;
  color: #888;
}

/* ============================================================
   LOCATION — NEW LAYOUT (2 LINES)
   ============================================================ */

.locrow {
 margin-bottom: 4px;   /* tightare */
}

.loc-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.80rem;
  line-height: 18px;
  white-space: nowrap;
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6);
}

.city-label {
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #ffffff;          /* ← ändra till vit */
  font-weight: 500;        /* subtil vikt, inte bold */
}

/* ============================================================
   INFO BLOCK — PERFECT COLUMN ALIGNMENT + SPACING
   ============================================================ */

.infoblock {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 18px;   /* ← detta är det nya */
}

.info-label {
   color: rgb(var(--global));         /* global accent */
  font-size: 0.85rem;          /* 1 steg mindre */
  font-weight: 500;
}

.info-value {
  font-size: 0.75rem;          /* 3 steg mindre */
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;     /* EN RAD */
}

/* ============================================================
   COMMENTS BUTTON
   ============================================================ */

.reviews-btn {
  margin-top: auto;
  height: 38px;
  border-radius: 999px;
border: 1px solid rgba(var(--global), 0.6);
background: radial-gradient(circle at top, rgba(var(--global), 0.15), #111);
  color: #f5f5f5;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
}

.reviews-btn:hover {
background: radial-gradient(circle at top, rgba(var(--global), 0.35), #171717);
box-shadow: 0 0 0 1px rgba(var(--global), 0.5);

  transform: translateY(-1px);
}

/* ==== USER RATING ==== */
.modal-user-rating {
  margin-bottom: 1.4rem;
}

.rating-label {
  font-size: .95rem;
  margin-bottom: .3rem;
  color: #ccc;
}

.star-picker {
  display: flex;
  gap: .35rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #555;
  margin-bottom: .6rem;
}

.star-picker span.active {
  color: rgb(var(--global));
}

.rating-send-btn {
  padding: .5rem .8rem;
  border-radius: 6px;
  border: 1px solid rgba(212,160,23,0.7);
  background: #111;
  color: rgb(var(--global));
  cursor: pointer;
}

/* Modal badges (match same style as cards) */
#modalBadges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.8rem;
}

/* ============================================================
   AUTOCOMPLETE DROPDOWN (NEW)
============================================================ */
.autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #050505;
  border: 1px solid #333;
  border-radius: 8px;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  z-index: 5000;
  box-shadow: 0 18px 35px rgba(0,0,0,0.85);
}

.autocomplete.hidden {
  display: none;
}

.ac-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #222;
}

.ac-item:last-child {
  border-bottom: none;
}

.ac-item strong {
  color: #f5f5f5;
  font-size: 0.9rem;
}

.ac-item small {
  color: #aaa;
  font-size: 0.78rem;
}

.ac-item:hover {
  background: #171717;
}

mark.hl {
  background: rgba(212,160,23,0.45);
  color: #000;
  padding: 0 2px;
  border-radius: 3px;
}

/* ============================
   SEARCH FILTER TOGGLES
   (replaces chips — NOT cards)
============================ */

.search-filters{
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.filter-sep{
  opacity: .35;
  padding: 0 .15rem;
}

.filter-toggle{
  display: inline-flex;
  align-items: center;
  gap: .35rem;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);

  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
}

.filter-toggle:hover{
  background: rgba(255,255,255,.07);
}

.filter-toggle input{
  width: 14px;
  height: 14px;
  accent-color: rgb(var(--global));
  cursor: pointer;
}
/* ============================================================
   EXPANDED SYSTEM REMOVED
   Modal handled exclusively by modal.css
   ============================================================ */

/* ============================================================
   VISIT LINK
============================================================ */

.visit-link {
  margin-top: 6px;
}

.visit-link a {
  color: #3b82f6;              /* tydlig blå */
  text-decoration: underline;  /* ser ut som riktig länk */
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.visit-link a:hover {
  opacity: 0.75;
}

#loadMoreBtn {
  display: block;
  margin: 2rem auto 3rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--global));
  background: transparent;
  color: rgb(var(--global));
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#loadMoreBtn:hover {
  background: rgb(var(--global));
  color: white;
}
