/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


.font-farro {
  font-family: 'Farro', sans-serif;
}

.font-bebas {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
}

/* The Loki palette. These are colour names — they mean the same thing on
   every site and are NOT overridden per site. */
:root {
        --loki-green: #88a48a;
        --loki-blue: #648ba9;
        --loki-orange: #f5a741;
        --loki-red: #af7f90;

        /* Semantic tokens: the role a colour plays, not the colour itself.
           These are what a site re-points; the palette above stays fixed, so
           .text-loki-green is always the Loki green everywhere. */
        --loki-background: var(--loki-green);  /* page + header/footer chrome */
        --loki-cta: var(--loki-blue);          /* primary action buttons */

        /* RGB triplet of --loki-background, for rgba() composition in JS
           (the header scroll-fade effect). Keep in sync with it. */
        --loki-background-rgb: 136, 164, 138;
      }

/* Loki Boutique (lokiboutique.com; html gets data-site from the layout).
   Shares the palette above and only re-points the semantic tokens: Loki blue
   chrome, and green CTAs so buttons stand off that background. */
html[data-site="boutique"] {
        --loki-background: var(--loki-blue);
        --loki-background-rgb: 100, 139, 169;
        --loki-cta: var(--loki-green);
      }

.bg-loki-background { background-color: var(--loki-background); }
.text-loki-background { color: var(--loki-background); }
.border-loki-background { border-color: var(--loki-background); }

.bg-loki-cta { background-color: var(--loki-cta); }
.text-loki-cta { color: var(--loki-cta); }
.border-loki-cta { border-color: var(--loki-cta); }

.bg-loki-green { background-color: var(--loki-green); }
.bg-loki-blue { background-color: var(--loki-blue); }
.bg-loki-orange { background-color: var(--loki-orange); }
.bg-loki-red { background-color: var(--loki-red); }

.text-loki-green { color: var(--loki-green); }
.text-loki-blue { color: var(--loki-blue); }
.text-loki-orange { color: var(--loki-orange); }
.text-loki-red { color: var(--loki-red); }

.border-loki-green { border-color: var(--loki-green); }
.border-loki-blue { border-color: var(--loki-blue); }
.border-loki-orange { border-color: var(--loki-orange); }
.border-loki-red { border-color: var(--loki-red); }

.hover\:bg-loki-blue:hover { background-color: var(--loki-blue); }
.hover\:bg-loki-orange:hover { background-color: var(--loki-orange); }

/* Public MIS menu cards and category carousels. These selectors are scoped so
   they do not alter the homepage's shared Swiffy carousel. */
.menu-presentation,
.menu-category,
.menu-carousel {
  min-width: 0;
  max-width: 100%;
}

/* The shared layout caps html at max-w-7xl while body remains viewport-wide.
   Let menu pages use the viewport width so that mismatch cannot create a page
   scrollbar; the content itself remains capped by its existing containers. */
html:has(.menu-presentation) {
  max-width: none;
}

body:has(.menu-presentation) {
  width: 100%;
}

.menu-carousel {
  --swiffy-slider-item-gap: 1rem;
  --swiffy-slider-item-count: 1.12;
  --swiffy-slider-snap-align: start;
  overflow: hidden;
  touch-action: pan-y;
}

.menu-carousel .menu-carousel__track {
  align-items: start;
  touch-action: pan-x pan-y;
}

.menu-carousel .menu-carousel__track:focus-visible {
  outline: 3px solid var(--loki-orange);
  outline-offset: 3px;
}

.menu-carousel .menu-carousel__slide {
  min-width: 0;
  height: auto;
}

.menu-carousel:has(> .menu-carousel__track > .menu-carousel__slide:only-child) {
  --swiffy-slider-item-count: 1;
}

.menu-carousel:has(> .menu-carousel__track > .menu-carousel__slide:first-child:nth-last-child(2)) {
  --swiffy-slider-item-count: 2;
}

.menu-carousel .menu-carousel__control {
  display: flex !important;
  visibility: visible;
  top: 7rem;
  bottom: auto;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  border-radius: 9999px;
  background: #fff;
  opacity: 0.94;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .2));
  transform: translateY(-50%);
}

.menu-carousel .menu-carousel__control::before {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: inherit;
  background: #fff;
  content: "";
}

.menu-carousel .menu-carousel__control::after {
  z-index: 1;
  width: 1.4rem;
  height: 1.4rem;
  margin: auto;
  background-color: #333;
}

.menu-carousel .menu-carousel__control--previous {
  left: .5rem;
  right: auto;
}

.menu-carousel .menu-carousel__control--next {
  right: .5rem;
  left: auto;
}

.menu-carousel[dir="rtl"] .menu-carousel__control--previous {
  left: auto;
  right: .5rem;
}

.menu-carousel[dir="rtl"] .menu-carousel__control--next {
  right: auto;
  left: .5rem;
}

.menu-carousel[dir="rtl"] .menu-carousel__control--previous::after {
  transform: rotate(180deg);
}

.menu-carousel[dir="rtl"] .menu-carousel__control--next::after {
  transform: none;
}

.menu-carousel .menu-carousel__control:hover {
  opacity: 1;
}

.menu-carousel .menu-carousel__control:focus-visible {
  outline: 3px solid var(--loki-orange);
  outline-offset: 2px;
}

.menu-carousel .menu-carousel__control[hidden] {
  display: none !important;
}

.menu-item-card {
  display: flex;
  flex-direction: column;
}

.menu-item-card__media {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f4f6;
}

.menu-item-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-card__media--fallback {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.menu-item-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem;
}

.menu-item-card__heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.menu-item-card__name {
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.menu-item-card__price {
  flex: 0 0 auto;
  margin: 0;
  color: #111827;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.menu-item-card__description {
  margin: 0;
  color: #4b5563;
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .menu-carousel {
    --swiffy-slider-item-count: 2.12;
  }

  .menu-carousel .menu-carousel__control {
    top: 8rem;
  }
}

@media (min-width: 64rem) {
  .menu-carousel {
    --swiffy-slider-item-count: 3.12;
  }

  .menu-carousel .menu-carousel__control {
    top: 7rem;
  }
}

@media (max-width: 62rem) {
  .menu-carousel .menu-carousel__control {
    display: flex !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-carousel .menu-carousel__track {
    scroll-behavior: auto;
  }
}

/* Hero gradient overlay for text readability */
.hero-gradient-overlay {
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

/* View Transitions for room images */
/* @view-transition {
  navigation: auto;
}

::view-transition-group(*){
  animation-duration: 5s;
} 

@supports (view-transition-name: card-hero-image) {
  ::view-transition-old(card-hero-image) {
    animation: 0.5s ease-in both slide-out;
  }

  ::view-transition-new(card-hero-image) {
    animation: 0.5s ease-out both slide-in;
  }

  .card-hero-transition {
    view-transition-name: card-hero-image;
  }
}

@keyframes slide-out {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.95);
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: scale(1.05);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
 */
