/* =========================================================
   FOOODY CUSTOM STYLES & OVERRIDES
   ========================================================= */

.catalog-restaurants {
  margin-right: 0.5rem;
}

.lh-2 {
  line-height: 2;
}

.lh-1half {
  line-height: 1.5;
}

.error-link {
  border-bottom-color: rgba(41, 162, 167, 1);
  border-bottom-style: dashed;
  border-bottom-width: 1px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .logo_width_mobile {
    width: 80%;
  }
  .city_name_adaptive {
    padding: 1rem 0;
  }
}

/* =========================================================
   MUSE BOOTSTRAP HERO SECTION
   ========================================================= */
.hero-muse-section {
  background-color: #FFFFFF;
}

.hero-muse-section .display-4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1E1E1E;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .hero-muse-section {
    padding-bottom: 1.7rem !important;
  }
  .hero-muse-section .display-4 {
    font-size: 2.15rem;
    line-height: 1.25;
  }
}

.hero-showcase-card {
  border: 1px solid #E9ECEF;
}

.hero-showcase-card:hover {
  transform: translateY(-4px);
}

.hero-float-tag {
  border: 1px solid #F0F0F0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 576px) {
  .hero-muse-section .btn-xl {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   LISTINGS & CATALOG GRIDS
   ========================================================= */
@media (min-width: 720px) {
  .listing-page {
    padding: 10px 0;
  }
  .city_name {
    padding: 0 1rem;
  }
  .square-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
  }
  .square-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
  }
  .modal-lg {
    width: 358px;
  }
  .filter-tastier-cheaper {
    font-weight: bold;
  }
  .filter-food {
    line-height: 3.5;
  }
}

.small-logo-padding {
  padding-right: 6px;
}

.listing-product-card {
  padding-bottom: 22px;
}

.about-bottom {
  padding-bottom: 44px;
}

.city-product-list {
  padding: 0.1rem 0 0 0;
}

/* =========================================================
   RESTAURANT PHOTO GALLERY (HORIZONTAL SCROLL)
   ========================================================= */
.gallery {
  display: flex;
  overflow-x: auto;
  border-radius: 12px;
  white-space: nowrap;
  cursor: grab;
  position: relative;
  scrollbar-width: none;
  gap: 2px;
}

.gallery img {
  max-width: none;
  height: 340px;
  max-height: 100%;
}

.gallery::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   DISH CARDS & MODALS
   ========================================================= */
.close-btn-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  margin: 0.5rem 0;
}

.close-btn {
  position: absolute;
  background-color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.close-btn svg {
  width: 16px;
  height: 16px;
}

.dish-card {
  border-radius: 20px !important;
}

.dish-card-info {
  margin: 20px 20px 10px 20px;
}

.dish-card-info-price {
  margin-top: 5px;
}

.dish-modal {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.dish-modal-card {
  border-radius: 20px !important;
  border-color: transparent !important;
}

.dish-modal-card-header {
  padding: 0;
}

.dish-modal-card-header-image {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.dish-modal-header-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0;
  padding: 0;
  margin-bottom: 28px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.dish-modal-header-row .dish-modal-photo {
  width: 60%;
  flex-shrink: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.dish-modal-header-row .dish-modal-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* =========================================================
   TEXT TRUNCATION WITH GRADIENT FADE
   ========================================================= */
.truncate-fade {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

@supports ((-webkit-mask-image: linear-gradient(#000, transparent)) or (mask-image: linear-gradient(#000, transparent))) {
  .truncate-fade {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.2em), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.2em), transparent 100%);
  }
}

@supports not ((-webkit-mask-image: linear-gradient(#000, transparent)) or (mask-image: linear-gradient(#000, transparent))) {
  .truncate-fade {
    position: relative;
  }

  .truncate-fade::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1.2em;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  }
}

/* =========================================================
   PROMO CARDS & BANNERS (MUZE TEMPLATE DESIGN)
   ========================================================= */
.badge-absolute {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.bg-blue-50 {
  background-color: #E6F0FF !important;
}

.alert-info {
  background-color: #E6F0FF;
  border-color: #d0e3ff;
  color: #1E1E1E;
}

.bg-soft-success {
  background-color: #e8fadf !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Horizontal Featured Promo Banner */
.promo-banner-col {
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.promo-banner-media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f8f9fa;
}

@media (min-width: 992px) {
  .promo-banner-col {
    position: relative;
    min-height: 100%;
    align-self: stretch;
  }
  .promo-banner-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }
}

.promo-banner-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.promo-featured-banner-row {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .promo-featured-banner-row {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Vertical Catalog Cards */
.promo-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.promo-card-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.card.muse-card:hover .promo-card-cover-img {
  transform: scale(1.04);
}

/* Dish Modal Promo Block */
.promo-modal-block {
  width: 100%;
  pointer-events: auto;
  margin-top: 1rem;
}

.promo-modal-media {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.promo-modal-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.promo-banner-img,
.promo-card-img,
.promo-modal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.promo-card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.promo-modal-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background-color: #f8f9fa;
}
