/* === GRID WRAPPER (for normal grid view) === */
.restaurant-card-grid {  
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* ===== WRAPPER FOR STAR (default for grid) ===== */
.restaurant-card-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible !important;
}

/* === 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;
  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 link styling */
.restaurant-card,
.restaurant-card *,
.restaurant-card:link,
.restaurant-card:visited,
.restaurant-card:hover,
.restaurant-card:active {
  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 ===== */
.star-overlay {
  position: absolute !important;
  top: -20px;
  left: -20px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.star-overlay img {
  width: 90%;
  height: 90%;
}

/* === STATUS === */
.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;
}

.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 ellipsis === */
.card-address {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 160px;
}

.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;
}

/* =============================
      NEWEST RESTAURANTS SLIDER
   ============================= */

/* Match original grid width and center the slider */
.tapv-newest-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header & arrows */
.tapv-newest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    padding-bottom: 10px;
}

.tapv-scroll-controls {
    flex-shrink: 0;
}

.tapv-newest-header h2 {
    margin: 0;
    font-size: 20px;
    flex-shrink: 1;
    padding-left: 15px;
    padding-top: 20px;
    margin-bottom: -10px;
}

.tapv-scroll-controls button {
    background: #f3f3f3;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 6px;
}

.tapv-scroll-controls button:hover {
    background: #e0e0e0;
}

/* ===== HORIZONTAL SNAPPING ROW ===== */
.tapv-newest-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    overflow-x: auto;
    overflow-y: visible;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    gap: 20px;

    scroll-padding-left: 25px;
    padding-top: 20px;
    padding-left:15px;
}

/* Hide scrollbars */
.tapv-newest-row::-webkit-scrollbar {
    display: none;
}

/* Snap item – OVERRIDES default wrapper only inside slider */
.tapv-newest-row .restaurant-card-wrapper {
    position: relative;
    overflow: visible !important;

    flex: 0 0 360px !important;
    width: 360px !important;

    display: flex !important;
    justify-content: center;

    scroll-snap-align: start;
    padding-left: 10px;
}

/* Card inside snap item */
.tapv-newest-row .restaurant-card {
    display: flex;
    flex-direction: row;
    width: 360px;
    max-width: 360px;
    min-width: 360px;
    flex-shrink: 0;
}
