/* ================================================
   RESTAURANT CARDS — cards.css
   Theme: The Wayward Gourmet
   Colors: #1F2937, #D97706, #7A6F66, #FBF8F5
   Fonts: DM Serif Display, Inter
================================================ */

/* ── Grid Layout ── */
.wg-restaurant-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  font-family: 'Inter', sans-serif;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

/* ── Card ── */
.wg-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
  box-shadow 0.35s ease;
  width: 100%;
}

.wg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(217, 119, 6, 0.15);
}

/* ── Card Image ── */
.wg-card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.wg-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.wg-card:hover .wg-card-img {
  transform: scale(1.05);
}

/* ── Badges ── */
.wg-badge-group {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
}

.wg-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1F2937;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.01em;
}

/* ── Card Body ── */
.wg-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
  gap: 6px;
}

/* ── Title ── */
.wg-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 2px;
}

.wg-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #1F2937;
  margin: 0;
  line-height: 1.3;
}

/* ── Location ── */
.wg-card-location {
  font-size: 16px;
  color: #7A6F66;
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Category ── */
.wg-card-category {
  font-size: 13.5px;
  font-weight: 600;
  color: #D97706;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ── Quote ── */
.wg-quote {
  font-style: italic;
  font-size: 13.5px;
  color: #4B5563;
  background: transparent;
  padding: 6px 0 6px 14px;
  border-left: 3px solid rgba(217, 119, 6, 0.3);
  margin: 6px 0 2px;
  line-height: 1.6;
}

.wg-quote strong {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ── Subtext highlight ── */
.wg-subtext {
  background-color: #FFF8F0;
  border: 1px dashed rgba(217, 119, 6, 0.25);
  border-radius: 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: #D97706;
  padding: 8px 12px;
  margin: 4px 0 6px;
  line-height: 1.5;
}

/* ── Spacer pushes buttons to bottom ── */
.wg-card-spacer {
  flex: 1;
}

/* ── Buttons ── */
.wg-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.wg-btn,
.wg-btn-outline {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 0.75rem;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.wg-btn-watch {
  border: 1px solid #D97706;
  color: #D97706;
  background: transparent;
  flex: 1;
}

.wg-btn-watch:hover {
  background: #D97706;
  color: #ffffff;
  border-color: #D97706;
}

.wg-btn-details {
  background: #D97706;
  color: #ffffff;
  flex: 1;
  border: 1px solid #D97706;
}

.wg-btn-details:hover {
  background: transparent;
  color: #D97706;
}

/* ── Search Bar ── */
.wg-search-form {
  width: 100%;
  padding: 10px 0 24px;
  display: flex;
  justify-content: center;
}

.wg-search-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  justify-content: center;
}

.wg-search-input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid #E5E7EB !important;
  border-radius: 999px !important;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1F2937;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.wg-search-input:focus {
  border-color: #D97706;
}

.wg-search-input::placeholder {
  color: #9CA3AF;
}

.wg-btn-search {
  padding: 10px 30px !important;
  border: 1px solid #D97706 !important;
  border-radius: 999px !important;
  background: #D97706 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.wg-btn-search:hover {
  background: transparent !important;
  border-color: #D97706 !important;
  color: #D97706 !important;
}

.wg-btn-clear {
  padding: 11px 30px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  color: #7A6F66;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.wg-btn-clear:hover {
  background: #F9FAFB;
  border-color: #1f2937;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .wg-restaurant-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wg-restaurant-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wg-search-row {
    flex-wrap: wrap;
  }

  .wg-search-input {
    width: 100%;
  }
}

/* ================================================
   ALL RESTAURANTS PAGE ADDITIONS
================================================ */

/* ── Page Wrapper ── */
.wg-all-restaurants-page {
    background-color: #FBF8F5;
    min-height: 100vh;
    padding: 40px 20px;
}

.wg-all-restaurants-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Pagination ── */
.wg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.wg-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1.5px solid #E5E7EB;
    background: #FBF8F5;
    color: #1F2937;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.25s ease;
}

.wg-page-btn:hover {
    border-color: #D97706;
    color: #D97706;
    background: #fff;
}

.wg-page-btn.active {
    background: #D97706;
    border-color: #D97706;
    color: #FBF8F5;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .wg-all-restaurants-inner {
        padding: 0;
    }
	
	.wg-all-restaurants-page {
		padding: 20px 20px;
	}
}