/* ============================================
   LOBBY CAFE & EATERY — Modern Luxury Theme
   ============================================ */
:root {
  --bg: #FAF8F5;
  --accent: #C9A96E;
  --accent-dark: #B08F52;
  --text: #222;
  --muted: #777;
  --dark: #1C1A17;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; background: var(--bg); display: flex;
  align-items: center; justify-content: center; z-index: 999; transition: opacity .5s; }
#loader.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border: 4px solid #eee;
  border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar (sticky) ---------- */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all .35s ease; }
#navbar.scrolled, #navbar.solid { background: rgba(250,248,245,.95);
  backdrop-filter: blur(10px); box-shadow: 0 2px 18px rgba(0,0,0,.07); padding: 12px 0; }
.nav-inner { width: min(1140px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
#navbar.scrolled .logo, #navbar.solid .logo { color: var(--text); }
.logo span { color: var(--accent); }
#navMenu { display: flex; gap: 32px; list-style: none; }
#navMenu a { color: #fff; font-size: .95rem; font-weight: 500; position: relative; }
#navbar.scrolled #navMenu a, #navbar.solid #navMenu a { color: var(--text); }
#navMenu a::after { content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px; background: var(--accent); transition: width .3s; }
#navMenu a:hover::after, #navMenu a.active::after { width: 100%; }
#navToggle { display: none; background: none; border: none; font-size: 1.6rem;
  color: #fff; cursor: pointer; }
#navbar.scrolled #navToggle, #navbar.solid #navToggle { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background-size: cover; background-position: center; }
.hero-fallback { background: linear-gradient(135deg, #2b2118, #5a4632); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hero-content { position: relative; z-index: 2; text-align: center;
  color: #fff; max-width: 760px; padding: 0 20px; }
.hero-eyebrow { letter-spacing: 4px; text-transform: uppercase;
  font-size: .85rem; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.2; margin-bottom: 22px; }
.hero-desc { font-weight: 300; opacity: .92; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 34px; border-radius: 50px;
  font-weight: 500; font-size: .95rem; transition: all .3s; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(201,169,110,.4); }
.btn-outline { border: 1.5px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--text); transform: translateY(-3px); }
.btn-outline-dark { border: 1.5px solid #ccc; color: var(--text); background: none; }
.btn-danger { background: #d9534f; color: #fff; }
.btn-danger:hover { background: #c0392b; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 56px; }
.section-title.small { font-size: 1.5rem; text-align: left; margin: 56px 0 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.card { background: #fff; border-radius: var(--radius); padding: 44px 32px;
  text-align: center; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.card-icon { font-size: 2.6rem; margin-bottom: 18px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .92rem; }
.about { background: #fff; }
.about-text { text-align: center; max-width: 640px; margin: 0 auto;
  font-size: 1.15rem; color: var(--muted); }

/* ---------- Fade animation ---------- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Gallery ---------- */
.page-light main { padding-top: 120px; min-height: 70vh; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 28px; }
.gallery-controls { display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center; margin-bottom: 28px; }
#searchInput { flex: 1; min-width: 220px; padding: 12px 20px; border-radius: 50px;
  border: 1px solid #e2dcd2; background: #fff; font-family: inherit; outline: none; transition: border .3s; }
#searchInput:focus { border-color: var(--accent); }
.filter-group { display: flex; gap: 8px; }
.filter-btn { padding: 10px 22px; border-radius: 50px; border: 1px solid #e2dcd2;
  background: #fff; cursor: pointer; font-family: inherit; transition: all .3s; }
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.gallery-layout { display: grid; grid-template-columns: 30% 70%; gap: 24px; margin-bottom: 80px; }
.media-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 72vh; overflow-y: auto; padding: 12px; }
.media-item { display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 12px; cursor: pointer; transition: background .25s; }
.media-item:hover, .media-item.active { background: rgba(201,169,110,.15); }
.media-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  background: #eee; flex-shrink: 0; }
.media-item .meta { overflow: hidden; }
.media-item .meta .name { font-size: .82rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.media-item .meta .kind { font-size: .72rem; color: var(--muted); }

.media-preview { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  min-height: 480px; overflow: hidden; padding: 18px; }
.media-preview img { max-height: 68vh; border-radius: 12px;
  transition: transform .5s ease; cursor: zoom-in; animation: fadeMedia .5s ease; }
.media-preview img:hover { transform: scale(1.07); } /* zoom saat hover */
.media-preview video { max-height: 68vh; width: 100%; border-radius: 12px; animation: fadeMedia .5s ease; }
@keyframes fadeMedia { from { opacity: 0; transform: scale(.97); } to { opacity: 1; } }

.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; width: 100%; }

/* ---------- Admin ---------- */
.dropzone { border: 2px dashed var(--accent); border-radius: var(--radius);
  background: rgba(201,169,110,.07); padding: 56px 20px; text-align: center;
  cursor: pointer; transition: all .3s; margin-bottom: 20px; }
.dropzone.dragover { background: rgba(201,169,110,.2); transform: scale(1.01); }
.dz-hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.upload-progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.progress-item { background: #fff; border-radius: 10px; padding: 10px 16px;
  box-shadow: var(--shadow); font-size: .85rem; }
.progress-bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress-bar > div { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.progress-item.error { color: #c0392b; }
.progress-item.done { color: #27ae60; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px; margin-bottom: 80px; }
.admin-item { background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative; transition: transform .3s; }
.admin-item:hover { transform: translateY(-5px); }
.admin-item img, .admin-item video { width: 100%; height: 150px; object-fit: cover; }
.badge-video { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.65);
  color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 20px; }
.admin-item-info { padding: 12px 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; }
.filename { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-icon { background: none; border: none; font-size: 1.05rem; cursor: pointer;
  padding: 4px; border-radius: 8px; transition: background .25s; }
.btn-icon:hover { background: #f1ece3; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeMedia .25s ease; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 32px;
  max-width: 420px; width: 100%; text-align: center; position: relative; }
.modal-box.modal-media { max-width: 860px; padding: 20px; }
.modal-box h3 { margin-bottom: 8px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none;
  border: none; font-size: 1.2rem; cursor: pointer; z-index: 2; }
#modalContent img, #modalContent video { max-height: 75vh; margin: 0 auto; border-radius: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #cfc9c0; padding: 64px 0 36px; }
.footer-inner { text-align: center; }
.footer-brand { font-size: 1.6rem; color: #fff; margin-bottom: 24px; }
.footer-brand::after { content: ''; display: block; width: 56px; height: 2px;
  background: var(--accent); margin: 14px auto 0; }
.footer-item { display: flex; align-items: flex-start; justify-content: center;
  gap: 10px; max-width: 520px; margin: 0 auto 16px; font-size: .9rem; transition: color .3s; }
.footer-item:hover { color: var(--accent); }
.footer-item svg { flex-shrink: 0; margin-top: 3px; }
.footer-copy { margin-top: 30px; font-size: .78rem; opacity: .55; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .media-sidebar { max-height: 300px; }
}
@media (max-width: 720px) {
  #navToggle { display: block; }
  #navMenu { position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,248,245,.98); flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .4s ease; box-shadow: var(--shadow); }
  #navMenu.open { max-height: 300px; }
  #navMenu a { color: var(--text) !important; display: block; padding: 14px 24px; }
  .section { padding: 64px 0; }
}
