/* ============================================================
   Bar List Styles
   - Default (unscoped) values = legacy desktop layout
     (also reused inside the voucher modal via .bar-item__* children)
   - #bar-list-mobile overrides = new vertical card design
   ============================================================ */

/* ---------- Legacy / Desktop / Modal-shared base ---------- */

.bar-item {
  background: white;
  color: var(--dark-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.bar-item__info-container {
  width: 60%;
  padding-right: 15px;
  font-family: "Roboto Condensed";
  font-size: 0.75rem;
  text-align: start;
}

.bar-item__title {
  font-family: "Rubik";
  font-weight: bold;
  font-size: 1rem;
}

.bar-item__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark-gray);
  font-weight: 400;
  margin: 7px 0;
}

.bar-item__claim-voucher-button {
  background-color: var(--red-campari);
  color: white;
  font-family: "Rubik";
  padding: 5px 10px;
}

.bar-item__bar-image-container {
  width: 160px;
  height: 130px;
}

.bar-item__bar-image-container_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}

/* ---------- Mobile Card Design (#bar-list-mobile only) ---------- */

#bar-list-mobile .bar-item {
  display: flex;
  flex-direction: column;
  background: white;
  color: var(--dark-gray);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#bar-list-mobile .bar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#bar-list-mobile .bar-item:active {
  transform: scale(0.99);
}

#bar-list-mobile .bar-item__bar-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0;
  background-color: #f3f4f6;
  position: relative;
  overflow: hidden;
}

#bar-list-mobile .bar-item__bar-image-container_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#bar-list-mobile .bar-item__photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--red-campari);
  color: white;
  font-family: "Rubik";
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}

#bar-list-mobile .bar-item__info-container {
  width: 100%;
  padding: 14px 16px 16px;
  font-family: "Roboto Condensed";
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: start;
}

#bar-list-mobile .bar-item__title {
  font-family: "Rubik";
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  color: var(--dark-gray);
}

#bar-list-mobile .bar-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#bar-list-mobile .bar-item__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "Rubik";
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

#bar-list-mobile .bar-item__status-pill--open {
  background: #DCFCE7;
  color: #166534;
}

#bar-list-mobile .bar-item__status-pill--closed {
  background: #FEE2E2;
  color: #991B1B;
}

#bar-list-mobile .bar-item__status-pill--unknown {
  background: #F3F4F6;
  color: #4B5563;
}

#bar-list-mobile .bar-item__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--dark-gray);
  font-family: "Rubik";
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

#bar-list-mobile .bar-item__rating img {
  width: 14px;
  height: 14px;
}

#bar-list-mobile .bar-item__address-container {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.8125rem;
  min-width: 0;
}

#bar-list-mobile .bar-item__address-container img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

#bar-list-mobile .bar-item__address-text {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

#bar-list-mobile .bar-item__claim-voucher-button {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background-color: var(--red-campari);
  color: white;
  font-family: "Rubik";
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

#bar-list-mobile .bar-item__claim-voucher-button:hover {
  background-color: var(--dark-red);
}

#bar-list-mobile .bar-item__claim-voucher-button:active {
  transform: scale(0.98);
}

/* ============================================================
   Empty state
   ============================================================ */

.bars-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.bars-not-found__title {
  font-size: 1.5rem;
  font-family: "Rubik";
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.bars-not-found__description {
  color: #6b7280;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .bars-not-found__title {
    font-size: 2rem;
  }
}
