
/* =====================================================
   RESTAURANT GRID
===================================================== */

.restaurants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  width: 80%;
  margin: auto;
}

@media screen and (max-width: 600px) {
.restaurants {
width: 100%;
margin: auto;
}
}

.restaurant-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.restaurant-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.restaurant-body {
 background: linear-gradient(to bottom, #f0fdf4, #ffffff)
}

.restaurant-name {
  text-align: center;
  font-size: 1.4rem;
  margin: 5px 0;
}

.restaurant-info {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #555;
}

.restaurant-info li {
  margin-bottom: 6px;
}


/* =====================================================
   MENU
===================================================== */

.menu-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dish {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  padding: 6px;
  border-radius: 8px;
}

.dish img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

/* =====================================================
   BUTTONS
===================================================== */

.modern-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  overflow: hidden;
}

.modern-btn:hover {
  transform: translateY(-2px);
}

.modern-btn:active {
  transform: scale(0.97);
}

.order-disabled {
  background: #999 !important;
  cursor: not-allowed !important;
  filter: grayscale(70%);
}

/*Pagination css*/
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 14px;
  border: none;
  background: #f1f1f1;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s ease;
  font-weight: 500;
}

.pagination button:hover {
  background: #0f9b0f;
  color: white;
}

.pagination button.active {
  background: #0f9b0f;
  color: white;
  font-weight: bold;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*RESTAURANT status indicator*/
.status-badge {
  margin-left: 10px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Blinking dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  position: relative;
}

.status-open .status-dot {
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.4; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

.status-open {
  background: #d4edda;
  color: #155724;
}

.status-closed {
  background: #f8d7da;
  color: #721c24;
}


/*mordern button design*/
.modern-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  overflow: hidden;
}

.modern-btn:hover {
  transform: translateY(-2px);
}

.modern-btn:active {
  transform: scale(0.97);
}

/* Loader Spinner */
.loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading State */
.modern-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.modern-btn.loading .btn-text {
  display: none;
}

.modern-btn.loading .loader {
  display: inline-block;
}


/*Disable menu button when RESTAURANT closes*/
.modern-btn.disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(60%);
  cursor: not-allowed;
}


/*Restaurant filter*/
.restaurant-filters {
  text-align: center;
  margin: 30px 0;
}

.filter-btn {
  padding: 8px 16px;
  margin: 0 8px;
  border: none;
  cursor: pointer;
  background: #eee;
  border-radius: 6px;
  transition: 0.3s ease;
  font-weight: 600;
}

.filter-btn:hover {
  background: #000;
  color: #fff;
}

.filter-btn.active {
  background: #000;
  color: #fff;
}

/*Geolocation of RESTAURANT */
.distance-tag {
  font-size: 12px;
  background: #e9fbe9;
  color: #1e7e34;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

/*Delivery fee info*/
.delivery-info {
  font-size: 13px;
  background: #f0fff4;
  color: #1e7e34;
  padding: 6px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

/*Small Top Info Banner*/
.location-alert {
  background: linear-gradient(90deg, #d4f8e8, #e8fff4);
  color: #065f46;
  padding: 12px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #b7f0d6;
}

.location-alert button {
  margin-left: 15px;
  padding: 6px 14px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.location-alert button:hover {
  background: #15803d;
}

/*uber style modal design*/
.location-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.location-modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: slideUp 0.35s ease;
}

.location-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.location-modal h2 {
  margin-bottom: 10px;
  color: #111;
}

.location-modal p {
  font-size: 14px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.5;
}

.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-allow {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-allow:hover {
  transform: scale(1.03);
}

.btn-manual {
  background: #f3f4f6;
  border: none;
  padding: 12px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/*No RESTAURANT near you*/
.empty-state {
  width:80%;
  margin:auto;
  text-align: center;
  padding: 60px 10px;
  background: #f9fafb;
  border-radius: 12px;
  margin-top: 20px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
  font-size: 14px;
}

/*animation css for no RESTAURANT near you*/
/* Empty State Wrapper */
.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* makes it vertically centered */
  width: 100%;
  animation: fadeSlide 0.5s ease forwards;
}

/* Content Box */
.empty-content {
  text-align: center;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-width: 400px;
}

/* Floating Emoji */
.empty-icon {
  font-size: 50px;
  margin-bottom: 15px;
  animation: float 2s ease-in-out infinite;
}

.empty-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-content p {
  font-size: 14px;
  color: #666;
}

/* Fade + Slide Animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/*Distance increase css*/
.distance-btn {
  margin-top: 20px;
  padding: 12px 22px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #38ef7d, #0f9b0f);
  color: white;
  transition: all 0.3s ease;
}

.distance-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}