/* DAPUR LAUT SERANG - components.css
   Navbar, footer, kartu menu/dapur, tabs, peta toolbar */

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-brand img { height: 40px; width: 40px; object-fit: contain; }
.navbar-brand .wordmark { display: grid; line-height: 1.1; }
.navbar-brand .wordmark b { color: var(--navy); font-size: 17px; }
.navbar-brand .wordmark span { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }

.navbar-links { display: flex; align-items: center; gap: 6px; }
.navbar-links a {
  padding: 9px 14px; border-radius: var(--radius-pill);
  color: var(--navy); font-weight: 600; font-size: 15px;
}
.navbar-links a:hover { background: var(--canvas); text-decoration: none; }
.navbar-links a.active { background: rgba(0,119,182,.10); color: var(--oc-blue); }

.navbar-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--navy); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .navbar-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px; box-shadow: var(--shadow-lg);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 13px 16px; }
  .navbar-cta .btn-cta { display: none; }
}

/* Footer */
.footer { background: var(--navy); color: #C9D6DF; padding: 48px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { color: #C9D6DF; display: block; padding: 4px 0; font-size: 14.5px; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .brand img { height: 38px; width: 38px; object-fit: contain; }
.footer .brand b { color: #fff; }
.footer p { font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* KARTU MENU */
.menu-card {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.menu-card .thumb { height: 180px; background: #E9EEF2; position: relative; }
.menu-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-card .thumb .badge { position: absolute; top: 10px; left: 10px; background: var(--surface); }
.menu-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.menu-card .body h3 { font-size: 16.5px; margin: 0; }
.menu-card .meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.menu-card .price { font-size: 19px; font-weight: 800; color: var(--terra); }
.menu-card .price small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.menu-card .actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* KARTU DAPUR */
.dapur-card {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  color: var(--text); display: block;
}
.dapur-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.dapur-card .cover { height: 120px; background: linear-gradient(135deg, var(--teal), var(--oc-blue)); }
.dapur-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.dapur-card .avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-top: -32px;
  margin-left: 16px; border: 4px solid var(--surface);
  background: #fff; object-fit: cover;
}
.dapur-card .body { padding: 12px 16px 16px; }
.dapur-card .body h3 { font-size: 16.5px; margin: 6px 0 2px; }
.dapur-card .meta { color: var(--muted); font-size: 13.5px; }

/* Tabs kategori */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--border);
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .12s ease;
}
.tab:hover { border-color: var(--oc-blue); color: var(--oc-blue); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab small { font-weight: 600; opacity: .75; }

/* Sticky WA (detail menu, mobile) */
.sticky-wa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(16,42,51,.10);
}
@media (min-width: 760px) { .sticky-wa { display: none; } }

/* Peta */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
#map { height: 520px; width: 100%; }
.map-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.leaflet-popup-content h4 { margin: 0 0 4px; }

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--canvas); transition: opacity .25s ease;
}
.preloader.hide { opacity: 0; pointer-events: none; }
@media (max-width: 480px) {
  .menu-card .actions { grid-template-columns: 1fr; }
  .menu-card .actions .btn-outline { width: 100%; }
}