@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* Menu Card Styles */
.food-gallery,
.iCenter {
  /* display: flex; */
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Restaurant info styling */
.iCenter {
  text-align: center;
  width: 100%;
}

/* Readability improvement - limit width of paragraph containers */
#diningGastronomy p,
.leoxSudlanan p,
.gastronomy-title-container {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.gastronomy-title-container p {
  padding: 0 15px;
}

.p800Center {
  max-width: 800px;
  margin: 20px auto 0;
  text-align: center;
  padding: 10px 15px;
}

.menu-item {
  max-width: 280px;
  margin: 0 10px 20px;
  display: inline-block;
  vertical-align: top;
}

.menu-figure {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
  /* padding-top: 20px; */
}

.menu-figure img {
  width: 100%;
  min-width: 278px;
  /* height: 200px;  */
  display: block;
  object-fit: contain; /* Changed from 'cover' to 'contain' to prevent stretching */
}

.menu-figcaption {
  padding: 10px;
  height: auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-title {
  margin-top: 5px;
  margin-bottom: 8px;
  color: #014b42;
  text-align: center;
}

.dish-title-xs {
  font-size: 16px;
  line-height: 1.2;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-description {
  padding: 0 5px;
  flex-grow: 1;
}

.dish-text {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.price-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.price {
  color: #014b42;
  font-weight: bold;
  font-size: small;
}

.price-usd {
  color: #666;
  font-size: 13px;
}

.dish-note {
  width: 100%;
  margin: 5px 0 0 0;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  color: #666;
}

/* Restaurant headers and info */
.leoxTitle1 {
  text-align: center;
  margin-bottom: 10px;
}

.leoxSudlanan {
  padding: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-item {
    /* max-width: 100%; */
    max-width: 300px;
    margin: 0 0 20px;
  }

  .food-gallery,
  .iCenter {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .menu-figure img {
    width: 100%;
    min-width: 278px;
    display: block;
    object-fit: contain;
  }
}

/* Adjustments for larger screens */
@media (min-width: 992px) {
  .food-gallery,
  .iCenter {
    justify-content: center;
    gap: 10px;
  }

  .menu-item {
    margin: 0 5px 15px;
  }
}

/* Logo Styling for h2 elements */
h2.logo-header {
  text-align: center;
  border-radius: 12px;
  padding: 1.5625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  min-height: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 1.875rem auto;
  max-width: 400px;
}

h2.logo-header:hover {
  transform: translateY(-5px);
}

h2.logo-header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 130px;
  object-fit: contain;
}

.schedule-info {
  text-align: center;
  margin-top: 0;
}

.schedule-info p {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: #333;
}

@media (min-width: 768px) {
  h2.logo-header {
    flex-direction: row;
    justify-content: center;
    max-width: 800px;
  }

  .schedule-info {
    text-align: left;
    margin-left: 15px;
    margin-top: 0;
  }
}

h2.logo-kilimanjaro {
  background-color: #f9f2e6; /* Warm beige pastel */
}

h2.logo-fiji {
  background-color: #e6f2f9; /* Light blue pastel */
}

h2.logo-palermo {
  background-color: #f9e6e6; /* Light red/pink pastel */
}

h2.logo-route66 {
  background-color: #e6f9e9; /* Light green pastel */
}

@media (max-width: 600px) {
  h2.logo-header {
    min-height: 150px;
    padding: 1.25rem;
    max-width: 90%;
  }

  h2.logo-header img {
    max-height: 100px;
  }
}

/* ─── Typography Measure ─── */
#diningGastronomy p,
.leoxSudlanan p,
.gastronomy-title-container p,
.dish-text {
  max-width: 68ch;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.9;
}

/* Centered headings are exempt; p800Center is body prose, not centered */
.iCenter p {
  max-width: 100% !important;
}

.p800Center {
  max-width: 68ch;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.9;
}

/* ─── Enhanced Food Gallery Cards ──────────────────────────────
   Luxury colonial aesthetic matching the broader Plantation Bay
   design system: Cormorant Garamond / Segoe UI, ivory + gold.
   ─────────────────────────────────────────────────────────────── */

/* Variables */
.iCenter.food-gallery {
  --fg-green:      #1A3628;
  --fg-gold:       #B8882E;
  --fg-gold-lt:    rgba(184, 136, 46, 0.15);
  --fg-gold-bdr:   rgba(184, 136, 46, 0.35);
  --fg-cream:      #FFFEF9;
  --fg-ivory:      #F8F3EB;
  --fg-text:       #2A2016;
  --fg-muted:      #6B5B47;
  --fg-shadow:     rgba(28, 54, 40, 0.09);
}

/* Gallery grid */
.iCenter.food-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 820px !important;
  margin: 1.5rem auto 2.5rem !important;
  padding: 0;
  text-align: left;
}

/* Card shell */
.food-gallery .menu-item {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  vertical-align: unset !important;
}

/* Card figure — the visible card */
.food-gallery .menu-figure {
  border: none !important;
  border-top: 2px solid var(--fg-gold) !important;
  border-radius: 0 !important;
  box-shadow: 0 3px 24px var(--fg-shadow) !important;
  background: var(--fg-cream) !important;
  overflow: hidden !important;
  transition: box-shadow 0.32s ease, transform 0.32s ease !important;
}

.food-gallery .menu-figure:hover {
  box-shadow: 0 10px 44px rgba(28, 54, 40, 0.15) !important;
  transform: translateY(-4px) !important;
}

/* Image — cover crop, consistent height */
.food-gallery .menu-figure img {
  width: 100% !important;
  min-width: 0 !important;
  height: 210px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.5s ease !important;
}

.food-gallery .menu-figure:hover img {
  transform: scale(1.04) !important;
}

/* Caption area */
.food-gallery .menu-figcaption {
  padding: 1.1rem 1.25rem 1rem !important;
  min-height: 0 !important;
  background: var(--fg-cream) !important;
}

/* Dish name */
.food-gallery .dish-title,
.food-gallery .dish-title-xs {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  color: var(--fg-green) !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 1.3 !important;
  margin: 0 0 0.6rem !important;
  padding-bottom: 0.55rem !important;
  border-bottom: 1px solid var(--fg-gold-lt) !important;
  height: auto !important;
}

/* Description */
.food-gallery .dish-description {
  padding: 0 !important;
}

.food-gallery .dish-text {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.75 !important;
  color: var(--fg-text) !important;
  text-align: left !important;
  max-width: 100% !important;
  margin: 0 0 0.75rem !important;
}

/* Price row */
.food-gallery .price-container {
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  margin-top: 0.6rem !important;
  padding-top: 0.6rem !important;
  border-top: 1px solid var(--fg-gold-lt) !important;
}

.food-gallery .price {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--fg-green) !important;
  letter-spacing: 0.02em !important;
}

.food-gallery .price-usd {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif !important;
  font-size: 0.78rem !important;
  color: var(--fg-muted) !important;
  letter-spacing: 0 !important;
}

/* Note/footnote */
.food-gallery .dish-note {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif !important;
  font-size: 0.78rem !important;
  color: var(--fg-muted) !important;
  font-style: italic !important;
  text-align: left !important;
  margin-top: 0.4rem !important;
}

/* Mobile — single column */
@media (max-width: 600px) {
  .iCenter.food-gallery {
    grid-template-columns: 1fr !important;
    max-width: 380px !important;
    gap: 1.5rem !important;
  }

  .food-gallery .menu-figure img {
    height: 200px !important;
  }
}

/* ─── Negative Space System ──────────────────────────────────────
   Principle: each element needs room to breathe — macro (section
   separations), meso (logo → description → gallery flow), and
   micro (padding inside each card).
   ──────────────────────────────────────────────────────────────── */

/* 1. Page intro — bottom breath before first restaurant */
#diningGastronomy .gastronomy-title-container {
  padding-bottom: 1rem;
}

/* 2. Each restaurant block — generous internal vertical space so
      the section border acts as a clear chapter break, not a
      hard edge the content bumps into. */
#diningGastronomy #gastronomyKili,
#diningGastronomy #gastronomyFiji,
#diningGastronomy #gastronomyPalermo,
#diningGastronomy #gastronomyRoad666 {
  padding-top: 3.25rem;
  padding-bottom: 3rem;
}

/* 3. Logo header — remove own top margin (section padding owns
      that space now); give a clear gap below to separate brand
      from description copy. */
#diningGastronomy h2.logo-header {
  margin-top: 0 !important;
  margin-bottom: 2.25rem !important;
}

/* 4. Restaurant blurb — space above (from logo) and below
      (before gallery) so the copy doesn't merge visually with
      either element. */
#diningGastronomy .p800Center {
  margin-top: 0 !important;
  margin-bottom: 2.25rem !important;
}

/* 5. Gallery — its own top margin is now redundant since the
      blurb margin handles separation. */
.iCenter.food-gallery {
  margin-top: 0 !important;
}

/* 6. Card interior — generous padding gives the text room;
      luxury cards never feel cramped. */
.food-gallery .menu-figcaption {
  padding: 1.5rem 1.625rem 1.375rem !important;
}

/* 7. Dish title — slightly more space below the gold hairline */
.food-gallery .dish-title,
.food-gallery .dish-title-xs {
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem !important;
}

/* 8. Dish text — a little more sky beneath the description
      before the price row gold line */
.food-gallery .dish-text {
  margin-bottom: 0.25rem !important;
}

/* 9. Price row — more air above the gold separator and within */
.food-gallery .price-container {
  margin-top: 1.1rem !important;
  padding-top: 1rem !important;
  padding-bottom: 0.25rem !important;
}

/* Mobile: reduce section padding for smaller screens */
@media (max-width: 600px) {
  #diningGastronomy #gastronomyKili,
  #diningGastronomy #gastronomyFiji,
  #diningGastronomy #gastronomyPalermo,
  #diningGastronomy #gastronomyRoad666 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  #diningGastronomy h2.logo-header {
    margin-bottom: 1.5rem !important;
  }

  #diningGastronomy .p800Center {
    margin-bottom: 1.5rem !important;
  }
}
