/* Food Menu Popup Styles - Simplified & User-Friendly */

.food-menu-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 9999;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
}

.food-menu-popup.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.food-menu-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  width: 90%;
  max-width: 1200px;
  max-height: 95vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: slideDown 0.5s ease;
  display: flex;
  flex-direction: column;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header Section */
.food-menu-header {
  /* background: linear-gradient(135deg, #52614e 0%, #6E7C6B 100%);
  padding: 18px 30px; */
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.close-popup:hover {
  color: #d5e5d1;
  transform: rotate(90deg);
  background: rgba(0, 0, 0, 0.4);
}

.food-menu-header h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  padding-top: 20px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.food-menu-header p {
  color: #d5e5d1;
  font-size: 0.85rem;
  margin-top: 6px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Body Section with Scroll */
.food-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  background: #1a1a1a;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide Scrollbar */
.food-menu-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Hero Images Section */
.menu-hero-section {
  width: 100%;
  height: 350px;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.menu-hero-images {
  display: flex;
  height: 100%;
  position: relative;
  gap: 15px;
  padding: 10px;
}

.menu-hero-images::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
  pointer-events: none;
  z-index: 1;
}

.menu-hero-images img {
  width: calc(50% - 7.5px);
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(0.95);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.menu-hero-images img:hover {
  transform: scale(1.05);
  filter: brightness(1);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(82, 97, 78, 0.6);
}

/* Menu Sections */
.menu-section {
  background: linear-gradient(135deg, rgba(82, 97, 78, 0.15) 0%, rgba(37, 37, 37, 0.95) 100%);
  border-radius: 0;
  padding: 0;
  margin-bottom: 40px;
  border: 2px solid rgba(82, 97, 78, 0.4);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.menu-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(82, 97, 78, 0.4);
  border-color: rgba(82, 97, 78, 0.6);
}

/* Grid Layout for Side-by-Side */
.menu-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  grid-auto-rows: 1fr;
  max-height: 280px;
}

/* Reverse order for alternating layout */
.menu-section.reverse .menu-section-grid {
  direction: rtl;
}

.menu-section.reverse .menu-content {
  direction: ltr;
}

/* Feature Image for each section */
.menu-feature-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.menu-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  filter: brightness(0.9);
  transform: scale(1.1);
}

.menu-feature-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
  pointer-events: none;
}

.menu-section:hover .menu-feature-image img {
  transform: scale(1.05);
  filter: brightness(1);
}

/* Content Area */
.menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: rgba(26, 26, 26, 0.6);
}

.menu-section-title {
  color: #d5e5d1;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
  position: relative;
}

.menu-section-title .icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 5px rgba(82, 97, 78, 0.5));
}

/* Menu Items */
.menu-item {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
  border-radius: 0;
  transition: all 0.3s ease;
  box-shadow: none;
}

.menu-item:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.menu-item h4 {
  color: #d5e5d1;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.menu-item p {
  color: #e8e8e8;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.menu-card {
  background: rgba(37, 37, 37, 0.7);
  border: 2px solid rgba(82, 97, 78, 0.4);
  border-radius: 0;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.menu-card:hover {
  background: rgba(82, 97, 78, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(82, 97, 78, 0.4);
  border-color: rgba(82, 97, 78, 0.6);
}

.menu-card h4 {
  color: #d5e5d1;
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.menu-card p {
  color: #e8e8e8;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* Special BBQ Section */
.special-section {
  background: linear-gradient(135deg, #52614e 0%, #6E7C6B 100%);
  border: 3px solid #d5e5d1;
  box-shadow: 0 10px 30px rgba(82, 97, 78, 0.5);
}

.special-section .menu-content {
  background: rgba(0, 0, 0, 0.2);
}

.special-section .menu-section-title {
  color: #fff;
}

.special-section .menu-item {
  background: transparent;
}

.special-section .menu-item:hover {
  background: transparent;
}

.special-section .menu-item h4 {
  color: #fff;
}

.special-section .menu-item p {
  color: #f8f8f8;
}

/* Tea Time Section */
.tea-time-section {
  background: linear-gradient(135deg, rgba(110, 124, 107, 0.25) 0%, rgba(37, 37, 37, 0.95) 100%);
  border-color: #6E7C6B;
}

.tea-time-section .menu-item {
  background: rgba(82, 97, 78, 0.2);
  border-left-color: #6E7C6B;
}

/* Responsive Design */
@media (max-width: 768px) {
  .food-menu-content {
    width: 95%;
    max-height: 90vh;
  }

  .food-menu-header {
    padding: 20px;
  }

  .food-menu-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
  }

  .food-menu-header p {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .close-popup {
    font-size: 32px;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .food-menu-body {
    padding: 25px 20px;
  }

  /* Stack vertically on tablet */
  .menu-section-grid {
    grid-template-columns: 1fr;
    max-height: none;
    gap: 0;
  }

  .menu-section.reverse .menu-section-grid {
    direction: ltr;
  }

  .menu-feature-image {
    min-height: 220px;
    height: 220px;
    max-height: 220px;
    width: 100%;
    border-radius: 0;
    line-height: 0;
    font-size: 0;
  }

  .menu-feature-image::after {
    display: none;
  }

  .menu-feature-image img {
    transform: scale(1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
  }

  .menu-content {
    padding: 0 25px 30px 25px;
  }

  .menu-section {
    margin-bottom: 30px;
    border-radius: 0;
  }
  .menu-card {
    border-radius: 0 !important;
  }
  .menu-section-title {
    border-radius: 0 !important;
  }

  .menu-section-title {
    font-size: 1.5rem;
    gap: 12px;
    margin-bottom: 15px;
  }

  .menu-section-title .icon {
    font-size: 1.6rem;
  }

  .menu-item p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .menu-card {
    padding: 20px 18px;
  }

  .menu-card h4 {
    font-size: 1.05rem;
  }

  .menu-card p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .food-menu-content {
    width: 98%;
    max-height: 92vh;
  }

  .food-menu-header {
    padding: 15px 20px;
  }

  .food-menu-header h2 {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .food-menu-header p {
    font-size: 0.75rem;
    margin-top: 4px;
  }

  .close-popup {
    font-size: 28px;
    width: 35px;
    height: 35px;
  }

  .food-menu-body {
    padding: 15px 12px;
  }

  .menu-section {
    min-height: unset;
    height: unset;
    border: none !important;
    background: transparent !important;
  }

  .menu-content {
    background: transparent !important;
    border: none !important;
  }

  .menu-section-grid {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    gap: 0;
  }

  .menu-feature-image {
    min-height: 160px !important;
    height: 160px !important;
    max-height: 160px !important;
    width: 100%;
    border-radius: 0;
    line-height: 0;
    font-size: 0;
    display: flex;
    align-items: stretch;
  }

  .menu-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 160px !important;
    max-height: 160px !important;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    flex: 1 1 0%;
  }

  .menu-content {
    flex: 1 1 0%;
    padding: 0 15px 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 12px;
  }

  .menu-section-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    gap: 8px;
  }

  .menu-section-title .icon {
    font-size: 1.4rem;
  }

  .menu-item p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* Prevent body scroll when popup is open */
html.popup-open,
body.popup-open {
  overflow: hidden !important;
}

/* Hide desktop navbar while popup is open */
@media (min-width: 992px) {
  body.popup-open #sticky-header,
  body.popup-open .hotelhub_nav_manu {
    display: none;
  }
}
