/* === GRID WRAPPER === */
.restaurant-card-grid {  
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
  position: relative;
  overflow: visible; /* allow badges to spill outside if needed */
}

/* ===== WRAPPER ENSURES STAR CAN FLOAT OUTSIDE ===== */
.restaurant-card-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible !important;   /* parent allows the star outside */
}

/* === CARD BASE === */
.restaurant-card {
  width: 360px;
  max-width: 360px;
  min-width: 360px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;               /* keep internals clean */
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 110px;
}

.restaurant-card-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Remove underline and link colors globally inside the card */
.restaurant-card,
.restaurant-card:link,
.restaurant-card:visited,
.restaurant-card:hover,
.restaurant-card:active,
.restaurant-card * {
  text-decoration: none !important;
  color: inherit !important;
}

/* === THUMBNAIL === */
.thumbnail-section {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 110px;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.thumbnail-section img.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== STAR BADGE OUTSIDE THE CARD (ON WRAPPER) ===== */
.star-overlay {
  position: absolute !important;
  top: -20px;                     /* outside top */
  left: -20px;                    /* outside left */
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;           /* card still fully clickable */
}

.star-overlay img {
  width: 90%;
  height: 90%;
}

/* === STATUS INDICATOR (ON IMAGE) === */
.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 10px;
  color: #fff;
  z-index: 3;
  line-height: 1;
}

.status-indicator.open { background: #28a745; }
.status-indicator.closed { background: #dbd5d6; }
.status-indicator.coming-soon { background: #ffc107; color: #000; }

/* === INFO SECTION === */
.info-section {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;   /* <-- REQUIRED for ellipsis to work */
}

.restaurant-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0 0 3px 0;
}

.info-section p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* === Address with Ellipsis === */
.card-address {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 160px; /* fits next to thumbnail */
}

.card-cuisine,
.card-price {
  margin: 1px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.1;
}

.coming-soon-disabled {
  pointer-events: none;
  opacity: 0.85;
}