/* ============================================================
   CARD GRID LAYOUT
   ============================================================ */
/* ============================================================
   FIX #3 — Smaller card scale (premium compact layout)
   ============================================================ */

.store-card {
  transform: scale(0.92);
  transform-origin: top center;
}

/* ============================================================
   CARD GRID LAYOUT (clean merged version)
   ============================================================ */

.store-grid {
  width: 100%;
  display: grid;
  justify-content: center;
  box-sizing: border-box;

  /* spacing */
  gap: 1.4rem 1.2rem; 
  padding: 1.2rem 0 2.4rem;

  /* responsive auto layout */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Desktop — lock 4 cards per row */
@media (min-width: 1280px) {
  .store-grid {
    grid-template-columns: repeat(4, 265px);
  }
}


/* Tablet – lite smalare kort, fortfarande flera per rad */
@media (max-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem 1.2rem;
  }
}

/* Mobil portrait – 2 kort per rad, nedskalade */
@media (max-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 1.4rem 0.9rem;
    padding-inline: 0.5rem;
  }

  .store-card {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

/* Mycket liten mobil – fortfarande 2 per rad, lite mer scale */
@media (max-width: 480px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1.2rem 0.7rem;
  }

  .store-card {
    transform: scale(0.86);
  }
}

/* ============================================================
   CARD CONTAINER
   ============================================================ */

.store-card {
  background: #050505;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,160,23,0.7); /* “deep gold” ram */
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 18px 35px rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  max-width: 265px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Håll korten ungefär lika höga på desktop */
@media (min-width: 769px) {
  .store-card {
    min-height: 460px;
  }
}

.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);
}

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

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

/* ============================================================
   CARD BODY
   ============================================================ */

.store-body {
  padding: 0.95rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.store-title {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 650;
  margin: 0;
}

/* ============================================================
   BADGES (LOUNGE / PUBLIC / MEMBERS etc)
   ============================================================ */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge.blue {
  background: rgba(35,96,210,0.9);
  color: #f5f5f5;
}

.badge.access.public {
  background: rgba(46,125,50,0.95);
  color: #f5f5f5;
}

.badge.access.members {
  background: rgba(183,110,5,0.95);
  color: #f5f5f5;
}

/* ============================================================
   STARS + RATING COUNT
   (funkar både med .stars + .rating-count och .no-rating)
   ============================================================ */

.stars-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.9rem;
  color: #f6d36a;
  letter-spacing: 0.08em;
}

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

.no-rating {
  font-size: 0.8rem;
  color: #777;
}

/* ============================================================
   LOCATION (flagga + city, country + continent)
   ============================================================ */

.locrow {
  margin-top: 0.2rem;
}

.loc-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
}

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

.continent-label {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #888;
}

/* ============================================================
   INFOBLOCK (Address / Phone / Website)
   ============================================================ */

.infoblock {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #c2c2c2;
}

.info-row {
  margin: 0.08rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-row strong {
  color: #ffffff;
  font-weight: 600;
  margin-right: 4px;
}

.info-row a {
  color: var(--gold);
  text-decoration: none;
}

.info-row a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER / COMMENTS
   ============================================================ */

/* “Comments”-knappen ligger längst ned i kortet */
.reviews-btn {
  width: 100%;
  margin-top: auto; /* tryck ned till botten */
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,0.6);
  background: radial-gradient(circle at top, rgba(212,160,23,0.16), #111111);
  color: #f5f5f5;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  transition: background 0.18s ease,
              transform 0.18s ease,
              box-shadow 0.18s ease;
  position: relative;
}

/* tunn linje som delar av nederdelen av kortet */
.reviews-btn::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -0.55rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.reviews-btn:hover {
  background: radial-gradient(circle at top, rgba(212,160,23,0.35), #171717);
  box-shadow: 0 0 0 1px rgba(212,160,23,0.5);
  transform: translateY(-1px);
}
