/* ═══════════════════════════════════════════════
   css/guest.css — Guest-Facing Menu Styles
═══════════════════════════════════════════════ */

/* ── Guest Shell ── */
#guest-shell {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0B0B0B;
  overflow: hidden;
}
#guest-shell.open { display: block; }
#guest-view { width: 100%; height: 100%; overflow-y: auto; background: #F7F5F2; }

.g-max  { max-width: 480px; margin: 0 auto; min-height: 100vh; }
.guest-admin-btn { position: fixed; top: 12px; right: 12px; z-index: 400; }

/* ── Guest Home ── */
.g-home { background: #0B0B0B; min-height: 100vh; font-family: var(--font-body); }
.g-home-hero    { padding: 56px 20px 28px; }
.g-home-resort  { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.g-home-logo    { width: 46px; height: 46px; background: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #0B0B0B; flex-shrink: 0; }
.g-home-title   { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: #fff; line-height: 1.08; margin-bottom: 8px; }
.g-home-sub     { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.6; }
.g-gold-line    { height: 2px; margin: 0 20px; background: linear-gradient(90deg, var(--gold), transparent); }
.g-restaurants  { padding: 20px 14px 40px; }
.g-rest-section-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; padding: 0 6px; }

.g-rest-card {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .15s, border-color .15s;
}
.g-rest-card:hover { transform: translateY(-2px); }
.g-rest-card-hero {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: relative;
  overflow: hidden;
}
.g-rest-card-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.g-rest-card-body {
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141414;
}
.g-rest-card-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  border-style: solid;
  flex-shrink: 0;
}

/* ── Guest Menu Header ── */
.g-header { position: relative; overflow: hidden; }
.g-header-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .35;
}
.g-header-overlay { position: absolute; inset: 0; }
.g-header-content { position: relative; padding: 20px 18px 24px; }
.g-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  font-size: 12px;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-bottom: 36px;
  font-family: var(--font-body);
}
.g-rest-cuisine {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.g-rest-title  { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.g-rest-meta   { font-size: 12px; color: rgba(255,255,255,.6); }

/* ── Search ── */
.g-search-wrap  { padding: 12px 14px 0; }
.g-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
}
.g-search-inner input {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  flex: 1;
  outline: none;
  padding: 0;
  font-family: var(--font-body);
}
.g-search-inner input::placeholder { color: rgba(255,255,255,.5); }

/* ── Guest Body ── */
.g-body {
  background: #F7F5F2;
  border-radius: 20px 20px 0 0;
  margin-top: -18px;
  min-height: calc(100vh - 190px);
  position: relative;
}

/* ── Category & filter tabs ── */
.g-cats {
  padding: 14px 14px 0;
  position: sticky;
  top: 0;
  background: #F7F5F2;
  z-index: 10;
}
.g-cats-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.g-cats-scroll::-webkit-scrollbar { display: none; }
.g-cat-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .14s;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.g-filter-scroll {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.g-filter-scroll::-webkit-scrollbar { display: none; }
.g-filter-btn {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #fff;
  color: #888;
  flex-shrink: 0;
  transition: all .14s;
  font-family: var(--font-body);
}

/* ── Items area ── */
.g-items { padding: 6px 14px 140px; }
.g-featured-section { background: #fff; border-radius: 14px; margin-bottom: 12px; overflow: hidden; border: 1px solid #ece9e4; }
.g-featured-label   { padding: 10px 14px 4px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.g-item-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ece9e4;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.g-item-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.g-item-card.featured-card { background: #fff; border-radius: 0; border: none; border-top: 1px solid #ece9e4; padding: 13px 14px; margin-bottom: 0; }
.g-item-card.featured-card:first-of-type { border-top: none; }
.g-item-card:hover { }

.g-item-photo       { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.g-item-photo-ph    { width: 78px; height: 78px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.g-item-name        { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 3px; }
.g-item-desc        { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-item-meta        { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.g-item-meta-chip   { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #777; }
.g-item-price       { font-size: 20px; font-weight: 800; font-family: var(--font-display);}
.g-item-price-row   { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.g-add-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .12s, opacity .12s;
  font-family: var(--font-body);
}
.g-add-btn:hover  { transform: scale(1.1); }
.g-unavail-label  { font-size: 10px; font-weight: 700; color: #ef4444; margin-top: 2px; }
.g-unavail-section-label { font-size: 11px; color: #bbb; font-weight: 600; margin-bottom: 6px; padding: 0 2px; }

/* Variant radio buttons – custom design */
.g-variants-section {
  margin: 16px 0;
}

.g-variants-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.g-variants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom radio label */
.g-variant-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s ease;
  background: transparent;
}

.g-variant-radio:hover,
.g-variant-radio:focus-within {
  background: rgba(201, 168, 76, 0.08); /* gold with low opacity */
}

/* Hide native radio */
.g-variant-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom radio circle */
.custom-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  position: relative;
  flex-shrink: 0;
}

.custom-radio::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2a2a2a; /* matches dark background */
  transform: scale(1);
  transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.g-variant-radio input:checked + .custom-radio::before {
  transform: scale(0);
}

/* Variant text */
.variant-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.g-variant-radio input:checked ~ .variant-name {
  color: var(--gold);
}

/* Price inline */
.variant-price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.g-variant-radio input:checked ~ .variant-price {
  color: var(--gold);
}

/* ── Bottom bar ── */
.g-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  background: rgba(247,245,242,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e2dc;
  display: flex;
  gap: 8px;
  z-index: 50;
}
.g-waiter-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  border-width: 2px;
  border-style: solid;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .18s;
  background: transparent;
  font-family: var(--font-body);
}
.g-cart-btn {
  flex: 2;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
}
.g-cart-count {
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ── Bottom sheets ── */
.g-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s;
}
.g-sheet-overlay.open { opacity: 1; }
.g-sheet {
  background: #fff;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform .3s var(--ease-spring);
}
.g-sheet-overlay.open .g-sheet { transform: translateY(0); }

/* ── Item detail ── */
.g-detail-gallery        { position: relative; height: 230px; overflow: hidden; background: #f0ede8; }
.g-detail-gallery img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-gallery-placeholder   { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.g-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}
.g-gallery-nav.prev { left: 10px; }
.g-gallery-nav.next { right: 10px; }
.g-gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.g-gallery-dot  { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .15s; }
.g-gallery-dot.active { background: #fff; }

.g-detail-body    { padding: 18px 18px 0; }
.g-detail-name    { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.g-detail-desc    { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 12px; }
.g-detail-chips   { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.g-detail-chip    { background: #f5f2ee; border-radius: var(--r-sm); padding: 7px 12px; display: flex; align-items: center; gap: 5px; font-size: 12px; color: #444; font-weight: 500; }
.g-allergen-box   { background: #fffbf0; border: 1px solid #fed7aa; border-radius: 10px; padding: 10px 13px; margin-bottom: 12px; }
.g-allergen-box h4 { font-size: 11px; font-weight: 700; color: #92400e; margin-bottom: 5px; }
.g-allergen-list  { display: flex; gap: 8px; flex-wrap: wrap; }
.g-allergen-item  { font-size: 12px; color: #78350f; font-weight: 500; }

.g-rate-row    { margin-bottom: 14px; }
.g-rate-label  { font-size: 12px; color: #999; margin-bottom: 5px; }
.g-rate-stars  { display: flex; gap: 4px; }
.g-rate-star   { font-size: 24px; cursor: pointer; background: none; border: none; line-height: 1; transition: transform .1s; font-family: var(--font-body); }
.g-rate-star:hover { transform: scale(1.15); }
.g-rated-msg   { font-size: 13px; color: #22c55e; font-weight: 500; margin-bottom: 14px; }

.g-detail-footer  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.g-detail-price   { font-size: 22px; font-weight: 800; color: #1a1a1a; font-family: var(--font-display); }
.g-detail-add {
  width: 100%;
  padding: 14px 0;
  border-radius: 14px;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 28px;
  font-family: var(--font-body);
  transition: opacity .15s;
}
.g-detail-add:hover { opacity: .88; }

/* ── Cart sheet ── */
.g-cart-sheet-inner { padding: 22px 18px 0; }
.g-cart-heading     { font-family: var(--font-display); font-size: 24px; color: #1a1a1a; margin-bottom: 18px; }
.g-cart-item        { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0ede8; }
.g-cart-item-photo  { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.g-cart-item-ph     { width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0; background: #f0ede8; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.g-cart-qty-row     { display: flex; align-items: center; gap: 8px; }
.g-qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.g-cart-note {
  background: #f9f8f6;
  border: 1px solid #e8e5e0;
  border-radius: var(--r-sm);
  padding: 7px 11px;
  font-size: 12px;
  color: #333;
  width: 100%;
  outline: none;
  margin-top: 6px;
  font-family: var(--font-body);
}
.g-cart-note:focus { border-color: #aaa; }
.g-cart-total-row  { display: flex; justify-content: space-between; padding: 14px 0; border-top: 2px solid #f0ede8; margin-bottom: 14px; }
.g-place-order {
  width: 100%;
  padding: 14px 0;
  border-radius: 14px;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 32px;
  font-family: var(--font-body);
}

/* ── Order confirmation ── */
.g-order-confirm { padding: 40px 20px; text-align: center; }
.g-order-emoji   { font-size: 56px; margin-bottom: 16px; }
.g-order-title   { font-family: var(--font-display); font-size: 26px; color: #1a1a1a; margin-bottom: 8px; }
.g-order-sub     { font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 24px; }
.g-order-back    { padding: 12px 32px; border-radius: 12px; border: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }

/* ── Unavailable overlay ── */
.g-unavail-block { margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .g-rest-title  { font-size: 24px; }
  .g-home-title  { font-size: 32px; }
  .g-detail-name { font-size: 22px; }
}
