
/* =====================================================
   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 {
  /*position: sticky;
  top: 70px;*/
  z-index: 1000;
  background: #ffffff;
  padding: 18px 10px;
  margin-bottom: 30px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;

  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.filter-label {
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Button container */
.filter-buttons {
  position: relative;
  display: flex;
  gap: 8px;
  background: #f3f4f6;
  padding: 5px;
  border-radius: 50px;
}

/* Sliding background */
.filter-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: 0;
  background: #16a34a;
  border-radius: 50px;
  transition: all 0.3s ease;
  z-index: 0;
}

/* Base Button */
/* Buttons */
.filter-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Hover */
.filter-btn:hover {
  background: #dcfce7; /* light green */
  border-color: #16a34a;
  transform: translateY(-2px);
}

/* Active State */
.filter-btn.active {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}

/* Status dots */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.all {
  background: #9ca3af;
}

.dot.open {
  background: #16a34a;
}

.dot.closed {
  background: #dc2626;
}

.filter-label i {
  margin-right: 6px;
  color: #16a34a;
}

.filter-btn i {
  font-size: 13px;
}

.filter-btn.active i {
  color: #ffffff;
}
/*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 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* makes it vertically centered */
  width: 100%;
  animation: fadeSlide 0.5s ease forwards;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
  font-size: 14px;
}

/* 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);
}

/*opening soon modal*/
.launch-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.launch-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 25px 70px rgba(0,0,0,0.25);
}

.launch-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.countdown {
  display: flex;
  justify-content: space-between;
  margin: 25px 0;
}

.countdown div {
  flex: 1;
}

.countdown span {
  font-size: 26px;
  font-weight: bold;
  display: block;
}

.countdown small {
  font-size: 12px;
  color: #777;
}

.launch-box button {
  background: #000;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/*notify me email style*/
.notify-box{
margin-top:20px;
}

.notify-title{
font-size:14px;
color:#444;
margin-bottom:10px;
}

#notifyForm{
display:flex;
gap:8px;
}

#notifyEmail{
flex:1;
padding:12px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
outline:none;
}

#notifyEmail:focus{
border-color:#ff7a18;
}

#notifyForm button{
padding:12px 16px;
border:none;
border-radius:8px;
background:#000;
color:white;
cursor:pointer;
font-size:14px;
}

#notifyForm button:hover{
opacity:0.9;
}

.notify-success{
display:none;
font-size:13px;
color:#16a34a;
margin-top:10px;
}
/*end of notify me*/


/*waitlist in google sheet*/
.waitlist-box{
margin-top:20px;
text-align:center;
}

.waitlist-box h3{
font-size:16px;
margin-bottom:12px;
}

#waitlistForm{
display:flex;
flex-direction:column;
gap:10px;
}

#waitlistForm input,
#waitlistForm select{
padding:12px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
}

#waitlistForm button{
padding:12px;
border:none;
border-radius:8px;
background:#000;
color:white;
cursor:pointer;
}

#waitlistForm button:hover{
opacity:0.9;
}

#waitlistSuccess{
display:none;
color:#16a34a;
font-size:13px;
margin-top:10px;
}
/*end*/

/*Phone number validation style*/

.form-input{
padding:12px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
outline:none;
transition:all 0.25s ease;
}

/* Valid state */
.form-input.valid{
border-color:#22c55e;
background:#f0fdf4;
}

/* Invalid state */
.form-input.invalid{
border-color:#ef4444;
background:#fef2f2;
}

.error-msg{
font-size:12px;
color:#dc2626;
margin-top:4px;
display:none;
}

