.restaurant-card {
  position: relative;
  overflow: hidden;
}

/* Ribbon */
.promo-ribbon {
  position: absolute;
  top: 15px;
  left: -40px;
  background: linear-gradient(135deg, #38ef7d, #0f9b0f);
  color: #fff;
  padding: 6px 50px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  z-index: 5;
}

/* Promo Notice Box */
.promo-notice {
  background: #e9fbe9;
  color: #1e7e34;
  padding: 10px;
  border-left: 4px solid #38ef7d;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  display: none;
}

/* Show When Active */
.restaurant-card.promo-active .promo-ribbon,
.restaurant-card.promo-active .promo-notice {
  display: block;
}




.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;
}


.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* Green Open Badge 
.status.open {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.3);
}
*/

/* Red Closed Badge 
.status.closed {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

*/

/* Status Dot */
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Green glowing dot */
.status.open::before {
  background: #00c853;
  box-shadow: 0 0 6px #00c853;
  animation: pulse 1.5s infinite;
}

/* Red dot */
.status.closed::before {
  background: #f44336;
}

/* Green Pulse Animation */
@keyframes greenPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* Status styling */
.status {
  display: inline-block;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: 0.3s ease;
}

/* Open state */
.status.open {
  background: #2ecc71;
  color: #fff;
  animation: greenPulse 2s infinite;
}

/* Closed state */
.status.closed {
  background: #e74c3c;
  color: #fff;
}

/* Pulse animation 
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}
*/

.order-disabled {
  background: #999 !important;
  cursor: not-allowed !important;
  filter: grayscale(70%);
  transition: 0.3s ease;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 50px;
  background: #00c853;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.page-btn:active {
  transform: scale(0.96);
}

.page-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.page-indicator {
  padding: 8px 16px;
  background: #f3f4f6;
  border-radius: 30px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
  min-width: 120px;
  text-align: center;
}

.arrow {
  font-size: 16px;
}

.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-info {
  font-size: 13px;
  background: #f0fff4;
  color: #1e7e34;
  padding: 6px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

.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;
}
/*delete if not needed*/
.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; }
}


.view-more-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.view-more-btn:hover {
  background: #f3f4f6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: white;
  width: 90%;
  max-width: 520px;
  border-radius: 14px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.modal-content {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-content .dish {
  background: #f9fafb;
}


/* Restaurant Hero Section */

.restaurant-hero {
  width: 100%;
  margin: 0px auto;
  min-height: 300px;
  background-image: url('restaurant_images/login_background.png');
  background-size: cover;
  background-position: center;
  border-radius: 0px;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for readability */
.restaurant-hero__overlay {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  height: 100%;
  padding: 80px 20px;
  /*padding: 60px 40px;*/
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.restaurant-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.restaurant-hero p {
  max-width: 850px;
  margin: 0 auto 15px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Tablet */
@media (max-width: 768px) {
  .restaurant-hero {
    width: 95%;
  }

  .restaurant-hero__overlay {
    padding: 50px 25px;
  }

  .restaurant-hero h1 {
    font-size: 2.2rem;
  }

  .restaurant-hero p {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .restaurant-hero {
    min-height: 240px;
  }

  .restaurant-hero__overlay {
    padding: 35px 20px;
  }

  .restaurant-hero h1 {
    font-size: 1.8rem;
  }

  .restaurant-hero p {
    font-size: 0.95rem;
  }
}

.restaurants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  width: 80%;
  margin: auto;
}

.restaurant-card {
  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 {
  padding: 16px;
}

.restaurant-name {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 5px;
  margin-top:5px;
}

.restaurant-info {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #555;
}

.restaurant-info li {
  margin-bottom: 6px;
}

.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;
}

.order-btn {
  display: block;
  text-align: center;
  padding: 20px;
  background: green;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
}





/*Our restaurant style sheet*/

.restaurant_header
{
 width:80%; /*1180px*/
 margin:auto;
 margin-top:0px;
 height:auto;
 opacity:1.1;
 background-image:url('restaurant_images/login_background.png');
 background-size: cover;
  background-repeat: no-repeat;
 border-radius:10px 10px 10px 10px;
}

.restaurant_header_child_1
{
width:80%;
margin:auto; 
color:white; 
}

.restaurant_header_child_1 h1
{
margin-left:160px;
}

/*.restaurant_header h1
{
margin-top:0px; 
color:white;
margin-left:320px;
padding-top:20px; 
font-size:45px;
}
*/

.restaurant_header_child_3
{
color:white;
text-align:justify; 
text-align:center;
width:80%; 
margin:auto;
line-height:40px; 
font-size:large;
height:auto;
}

.restaurants_container
{
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-start;/*we ended here*/
 align-items:center;
 gap:35px;
 max-width:80%;/*1180px*/
 margin:auto;
 margin-bottom:0px;
}

.individual_restaurant_container
{
 border:1px solid lightgrey; 
 width:350px;
 border-radius:10px 10px 10px 10px;
}

.individual_restaurant_container img
{
 width:100%; 
 height:120px;
 border-radius:10px 10px 0 0;
}

.restaurant_biz_name
{
 font-weight:bolder; 
 font-size:x-large;
 text-align:center; 
 border-bottom:1px solid lightgrey;
 line-height:0px;
}

.restaurant_location_details
{
border-bottom:1px solid lightgrey; 
margin-top:5px;
}

.restaurant_location_details_child
{
display:flex; 
margin-bottom:5px;
gap:15px;
width:auto;
padding:5px;
border:1px solid lightgrey;
}

.restaurant_location_details_child_2
{
font-weight:bolder; 
width:120px;
}
.restaurant_menu_desc
{
 border-bottom:1px solid lightgrey;
 margin-bottom:5px;
}

.restaurant_menu_desc_head
{
text-wrap:wrap;
font-weight:bold; 
font-size:large;
text-align:center;
line-height:0px;
margin-bottom:15px;
}

.food_container
{
/* border:1px solid lightgrey;*/
}

.individual_dish_container
{
 display:flex;
 flex-wrap:wrap;
 justify-content:space-between; 
 border-bottom:1px solid lightgrey;
 margin-bottom:5px; 
 padding-bottom:2px;
 padding-top:2px;
 border-radius:5px;
}

.left_dish_properties
{
background:#F2F2F2;
border-radius:5px;
 display:flex; 
 width:135px;
 align-items:center;
 gap:10px;
}

.left_dish_properties img
{
  width:40px;
  height:40px; 
  border-radius:5px;
}
.right_dish_properties
{
	background:#F2F2F2;
border-radius:5px;
 display:flex;
 width:165px;
 align-items:center; 
 gap:10px; 
}

.right_dish_properties img
{
 width:40px;
 height:40px;
 border-radius:5px;
}

.see_menu_and_order_button
{
 padding:10px; 
 font-size:large;
 width:auto; 
 background-color:green; 
 text-align:center; 
 color:white;
 border-radius:0 0 10px 10px;
}

a
{
 text-decoration:none;
}


/*Adjusting Column Layout for Tablet*/
@media screen and (max-width: 600px) {
	
.restaurant_header
{
 width:100%;
 margin:auto;
 margin-top:0px;
 height:250px;
 background-image:url('restaurant_images/login_background.png');
 background-size: cover;
 border-radius:10px 10px 10px 10px;
}

.restaurants_container
{
 width:100%;
 gap:5px;
}

.restaurant_header_child_1 h1
{
margin-left:60px;
padding-top:95px;
}

.restaurant_header_child_3
{
display:none;
color:white;
text-align:justify; 
width:100%; 
margin:auto;
line-height:23px; 
font-size:small;
height:auto;
margin-left:0px;
}
.individual_restaurant_container
{
	margin-bottom:1px;
	 width:100%;
}

.individual_dish_container
{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
}

.restaurant_location_details_child
{
display:flex;
justify-content:flex-start;
}

.restaurant_location_details_child_2
{
}

}
/*Adjusting Column Layout for Mobile*/
@media screen and (max-width: 480px) {
	
.restaurants_container
{
 width:100%;
 margin:auto;
}

.restaurant_header
{
 width:100%;
 margin:auto;
 margin-top:0px;
 height:250px;
 background-image:url('restaurant_images/login_background.png');
 background-size: cover;
 border-radius:10px 10px 10px 10px;
}

.individual_restaurant_container
{
	margin-bottom:5px;
	 width:100%;
	 margin:auto;
}

.individual_dish_container
{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
}

.restaurant_location_details_child
{
display:flex;
justify-content:flex-start;
}

.restaurant_location_details_child_2
{
}

}