.aperol-map-layout {
  width: 100%;
  height: calc(100vh - 111px);
  overflow: hidden;
  position: relative;
}

@media (max-width: 1366px) {
  .aperol-map-layout {
    height: calc(100vh - 101px);
  }
}

@media (max-width: 1228px) {
  .aperol-map-layout {
    height: calc(100vh - 90px);
  }
}

@media (max-width: 991px) {
  .aperol-map-layout {
    height: calc(100vh - 69px);
  }
}

@media (max-width: 767px) {
  .aperol-map-layout {
    padding-top: 59px;
    height: 100vh;
  }
}

.aperol-map-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.aperol-restaurant-wrapper {
  max-width: 763px;
  background: #FFFAE6;
  overflow: auto;
  transition: all 0.4s ease;
  position: absolute;
  top: 85px;
  left: 15px;
  bottom: 15px;
  width: 100%;
  height: calc(100vh - 220px);
  z-index: 5;
}

@media (max-width: 1550px) {
  .aperol-restaurant-wrapper {
    max-width: 600px;
  }
}

@media (max-width: 1366px) {
  .aperol-restaurant-wrapper {
    max-width: 550px;
  }
}

@media (max-width: 1228px) {
  .aperol-restaurant-wrapper {
    max-width: 500px;
    height: calc(100vh - 185px);
  }
}

@media (max-width: 991px) {
  .aperol-restaurant-wrapper {
    max-width: 450px;
    height: calc(100vh - 100px);
  }

  .aperol-restaurant-wrapper {
    display: none;
  }
}

@media (max-width: 767px) {
  .aperol-restaurant-wrapper {
    position: unset;
    width: 100%;
    max-width: 100%;
    height: 350px;
  }
}

.aperol-restaurant-wrapper::-webkit-scrollbar {
  width: 8px;
}

.aperol-restaurant-wrapper::-webkit-scrollbar-track {
  background: #FFFAE6;
}

.aperol-restaurant-wrapper::-webkit-scrollbar-thumb {
  background: #FF5000;
  border: 4px solid #FF5000;
  border-radius: 8px;
  background-clip: padding-box;
}

.map-section-wrapper {
  width: 100%;
  height: 100%;
}

#map {
  height: 100%;
  width: 100%;
}

.restaurant-list-wrapper {
  overflow: hidden;
}

.restaurant-list-wrapper .restaurant-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  border-bottom: 1px solid black;
  display: flex;
  background: #FFFAE6;
  cursor: pointer;
}

.restaurant-list-wrapper .restaurant-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.restaurant-banner {
  width: 260px;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 1550px) {
  .restaurant-banner {
    width: 230px;
  }
}

@media (max-width: 1366px) {
  .restaurant-banner {
    width: 200px;
  }
}

@media (max-width: 1228px) {
  .restaurant-banner {
    width: 180px;
  }
}

@media (max-width: 1199px) {
  .restaurant-banner {
    width: 160px;
  }
}

@media (max-width: 991px) {
  .restaurant-banner {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 767px) {
  .restaurant-banner {
    width: 120px;
    height: 120px;
  }
}

.restaurant-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.restaurant-item .aperol-restaurant-detail {
  padding: 15px;
  flex: 1;
}

.restaurant-item .aperol-restaurant-detail h5 {
  margin-bottom: 8px;
}

/* #left-panel {
  width: 30%;
  overflow-y: auto;
  padding: 15px;
  background-color: #fff7ed;
  border-right: 2px solid #ff9800;
  transition: all 0.4s ease;
  position: relative;
} */

/* #right-panel {
  width: 70%;
  position: relative;
} */





.restaurant-item:hover {
  background-color: #ffecb3;
}

/* .restaurant-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  border: 2px solid #ff9800;
} */

/* .restaurant-item:hover img {
  transform: scale(1.08);
} */

/* .restaurant-info h5 {
  margin: 0;
  font-size: 1.1rem;
  color: #e65100;
} */
.detail-restaurant-wrapper {
  padding: auto;
}

.detail-restaurant-wrapper .restaurant-banner {
  width: 100%;
  height: 260px;
}

.star-rating {
  color: #ffc107;
}

#restaurant-detail {
  display: none;
  animation: fadeSlideIn 0.5s ease forwards;
  background: #fffaf0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.description-section {
  padding: 12px;
}

.description-section h5 {
  font-style: normal;
  font-weight: 500;
  font-size: 30px;
  line-height: 110%;
  letter-spacing: -0.02em;
  color: #000000;
}

@media (max-width: 1550px) {
  .description-section h5 {
    font-size: 28px;
  }
}

@media (max-width: 1366px) {
  .description-section h5 {
    font-size: 24px;
  }
}

@media (max-width: 1228px) {
  .description-section h5 {
    font-size: 22px;
  }
}

@media (max-width: 1199px) {
  .description-section h5 {
    font-size: 20px;
  }
}

@media (max-width: 991px) {
  .description-section h5 {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .description-section h5 {
    font-size: 16px;
  }
}

.description-section p {
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 130%;
  letter-spacing: -0.02em;
  color: #000000;
}

@media (max-width: 1550px) {
  .description-section p {
    font-size: 18px;
  }
}

@media (max-width: 1366px) {
  .description-section p {
    font-size: 16px;
  }
}

@media (max-width: 1266px) {
  .description-section p {
    font-size: 14px;
  }
}

#detail-content {
  /* padding-top: 20px; */
  animation: fadeIn 0.6s ease-in-out;
}

#close-button {
  position: absolute;
  font-size: 18px;
  background: none;
  border: none;
  color: #e65100;
  z-index: 10;
}

.close-iconbox {
  width: 35px;
  background: #FFFAE6 !important;
  height: 35px;
  right: 0;
  top: 0;
  font-weight: 300;
  outline: none;
  box-shadow: none;
}

#detail-content h4 {
  color: #e65100;
  font-weight: bold;
}

/* #detail-content p {
  margin: 5px 0;
  color: #4e342e;
} */

/* Animations */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* @media (max-width: 768px) {
  #container {
    flex-direction: column;
  }
  #left-panel, #right-panel {
    width: 100%;
    height: 50%;
  }
} */


/* === desktop stays the same === */
#left-panel {
  display: block;
}

/* === bottom sheet styles === */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  transform: translateY(70%);
  max-height: 90vh;
  overflow: hidden;
  z-index: 1000;
}

.bottom-sheet.expanded {
  transform: translateY(0);
}

.handle {
  width: 50px;
  height: 5px;
  background: #ccc;
  border-radius: 5px;
  margin: 10px auto;
}

.bottom-sheet-header {
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

.bottom-sheet-body {
  padding: 10px;
  overflow-y: auto;
  max-height: 80vh;
}

/* === responsive switch === */
@media (max-width: 992px) {

  /* hide desktop panels */
  #left-panel {
    display: none !important;
  }

  #right-panel {
    height: 100vh;
  }

  /* show mobile sheet */
  .bottom-sheet {
    display: block;
  }
}

@media (min-width: 993px) {

  /* hide mobile bottom sheet */
  .bottom-sheet {
    display: none;
  }
}

#mobile-restaurant-list .restaurant-banner {
  display: none;
}

.view-all-btn-wrapper {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.d-custom-none {
  display: none;
}