/* Small supporting text */

.restaurant-cta__note {
  margin-top: 18px !important;

  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.48) !important;
}

@media (max-width: 600px) {
  .restaurant-cta__note {
    line-height: 1.6;
  }
}




.order-cta {
  width: 100%;
  margin-top: 18px;
}

.order-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(
    135deg,
    #15803d,
    #16a34a
  );

  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* ========================================
   RESTAURANT CLOSED
======================================== */

.order-btn.restaurant-closed {
  background: linear-gradient(
    135deg,
    #dc2626,
    #b91c1c
  );

  color: #ffffff;
  border: 1px solid #dc2626;
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.20);
  cursor: not-allowed;
  pointer-events: none;
}


/* Closed icon */
.order-btn.restaurant-closed .order-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
}


/* "Restaurant Currently Closed" */
.order-btn.restaurant-closed .order-status {
  color: rgba(255, 255, 255, 0.75);
}


/* "Ordering Unavailable" */
.order-btn.restaurant-closed .order-label {
  color: #ffffff;
}


/* Padlock */
.order-btn.restaurant-closed .order-arrow {
  background: #ffffff;
  color: #dc2626;
}


/* Disable hover effects */
.order-btn.restaurant-closed:hover {
  transform: none;
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.20);
}


/* Keep lock stationary */
.order-btn.restaurant-closed:hover .order-arrow {
  transform: none;
}

/* Icon */
.order-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 15px;
}


/* Text */
.order-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.2;
}

.order-text small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-text strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}


/* Arrow */
.order-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  color: #16a34a;
  border-radius: 50%;
  font-size: 11px;
  transition: transform 0.25s ease;
}


/* Hover */
.order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(22, 163, 74, 0.3);
}

.order-btn:hover .order-arrow {
  transform: translateX(3px);
}


/* Click */
.order-btn:active {
  transform: scale(0.98);
}


/* Mobile */
@media (max-width: 600px) {

  .order-btn {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .order-icon {
    width: 37px;
    height: 37px;
  }

  .order-text strong {
    font-size: 13px;
  }

  .order-arrow {
    width: 29px;
    height: 29px;
  }
}

/*restaurants location detail*/
.location-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 10px 0;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  list-style: none;
}

/* Location icon */
.location-highlight > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 50%;
  font-size: 15px;
  flex-shrink: 0;
}

/* Text container */
.location-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Small label */
.location-label {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* Main location */
.location-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

/* Shop badge */
.shop-number {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 8px;
  background: #16a34a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 20px;
}
/*end*/

/*RESTAURANT info details*/
.restaurant-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 20px;
  list-style: none;
  border-bottom: 1px solid #f1f1f1;
}

/* Icon */
.info-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 10px;
  font-size: 20px;
}

/* Content */
.info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Small heading */
.info-label {
  font-size: 15px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Main text */
.info-content strong {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

/* Service badges */
.service-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.service-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.service-badges span i {
  font-size: 15px;
}

/* Remove border from final item */
.restaurant-info-item:last-child {
  border-bottom: none;
}
/*End*/

/* =====================================================
   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: 99;
  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;
}

.filter-buttons {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;

    padding: 5px;
    min-width: 330px;

    background: #f1f3f5;
    border: 1px solid #e5e7eb;
    border-radius: 50px;

    overflow: hidden;
}

.filter-slider {
    position: absolute;
    top: 5px;
    left: 5px;

    width: calc((100% - 10px) / 3);
    height: calc(100% - 10px);

    background: #16a34a;
    border-radius: 50px;

    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);

    transition:
        transform 0.35s cubic-bezier(.4, 0, .2, 1),
        background 0.25s ease;
}

.filter-btn {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 16px;

    border: none;
    background: transparent;

    color: #6b7280;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    border-radius: 50px;

    transition:
        color 0.25s ease,
        transform 0.2s ease;
}

/* Hover */
.filter-btn:hover {
  background: #dcfce7; /* light green */
  border-color: #16a34a;
  transform: translateY(0px);
}

/* 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;
}

/* Mobile */
@media (max-width: 520px) {

    .restaurant-filters {
        gap: 10px;
    }

    .filter-label {
        width: 80%;
		margin:auto;
		text-align:center;
    }

    .filter-buttons {
        width: 100%;
        min-width: 0;
    }

    .filter-btn {
        padding: 10px 6px;
        font-size: 12px;
    }
}
/*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);
}

/*Restaurant Search css*/
.restaurant-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 650px;
  margin: 0 auto 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.restaurant-search:focus-within {
  border-color: #16a34a;
  box-shadow:
    0 0 0 3px rgba(22, 163, 74, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.06);
}

.restaurant-search > i {
  margin-left: 16px;
  color: #16a34a;
  font-size: 15px;
}

.restaurant-search input {
  width: 100%;
  padding: 14px 12px;
  border: none;
  outline: none;
  background: transparent;
  color: #1f2937;
  font-size: 14px;
}

.restaurant-search input::placeholder {
  color: #9ca3af;
}

.restaurant-search button {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
}

.restaurant-search button.visible {
  display: flex;
}

.search-results-info {
  margin: -10px auto 20px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.restaurant-card.search-hidden {
  display: none !important;
}
