* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #c0392b;
  --secondary: #e87878;
  --pink-light: #fce8e8;
  --pink-medium: #f5a8a8;
  --pink-card: #f9d0d0;
  --pink-btn: #e87878;
  --text: #2c2c2c;
  --text-light: #777;
  --border: #e8e8e8;
  --white: #ffffff;
  --bg: #f5f5f5;
}

body
{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

/* ─── APP HEADER ─── */
.app-header
{
  background: var(--white);
  padding: 8px 14px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.header-top
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-wrap
{
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-wrap svg { width: 100%; height: 100%; }

.header-brand
{
  flex: 1;
  min-width: 0;
}

.brand-name
{
  font-size: 13px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.brand-sub
{
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.3;
}

.header-btn-group
{
  display: flex;
  gap: 6px;
}

.hbtn
{
  background: var(--pink-light);
  border: 1.5px solid var(--pink-medium);
  border-radius: 10px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  transition: all 0.18s;
}

.hbtn:hover,
.hbtn.active { background: var(--pink-card); }

/* Search */
.search-row
{
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 22px;
  padding: 7px 14px;
  gap: 8px;
  margin-bottom: 8px;
}

.search-row input
{
  border: none;
  background: transparent;
  flex: 1;
  font-size: 13px;
  outline: none;
  color: var(--text);
}

.search-row .si { color: #aaa; font-size: 13px; }

/* Category chips */
.chips-row
{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 2px;
}

.chip
{
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 4px 11px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text);
  transition: all 0.18s;
  flex-shrink: 0;
}

.chip:hover,
.chip.active
{
  background: var(--pink-light);
  border-color: var(--pink-medium);
  color: var(--primary);
}

/* ─── SCREEN CONTAINER ─── */
.screen-wrap
{
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.screen { display: none; }
.screen.active { display: block; }
#screen-map.active { display: flex; flex-direction: column; height: 100%; }

/* ─── BOTTOM NAV ─── */
.bottom-nav
{
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-bottom: 6px;
}

.bnav-item
{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 2px;
  cursor: pointer;
  color: #000;
  font-size: 10px;
  gap: 2px;
  transition: color 0.18s;
  user-select: none;
}

.bnav-item .ni { font-size: 22px; }

.bnav-item.active { color: var(--primary); }

.ni-dot
{
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  margin: 2px auto 0;
  opacity: 0;
}

.bnav-item.active .ni-dot { opacity: 1; }

/* ─── SECTION TITLE ─── */
.sec-title
{
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  padding: 14px 14px 8px;
}

/* ─── HOME SCREEN ─── */
.news-grid
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px 10px;
}

.news-card
{
  background: var(--pink-card);
  border-radius: 14px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  text-align: center;
  padding: 8px 6px;
  color: var(--text);
  font-weight: 500;
  transition: transform 0.15s, background 0.15s;
  line-height: 1.3;
}

.news-card:hover { transform: scale(0.96); background: var(--pink-medium); }

.nc-emoji { font-size: 26px; margin-bottom: 4px; }

.more-link
{
  text-align: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
}

.home-footer
{
  background: var(--pink-light);
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.foot-link
{
  font-size: 9px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ─── CATEGORIES SCREEN ─── */
.cat-grid
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 10px 12px;
}

.cat-card
{
  background: var(--white);
  border: 1.5px solid var(--pink-medium);
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  transition: all 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.cat-card:hover
{
  background: var(--pink-light);
  border-color: var(--pink-medium);
  transform: scale(0.97);
}

.cat-icon { font-size: 28px; }
.cat-name { font-size: 11px; font-weight: 600; color: var(--text); line-height: 1.2; }

.gutsch-btn
{
  margin: 4px 12px 14px;
  background: var(--pink-btn);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  width: calc(100% - 24px);
  transition: background 0.18s;
  letter-spacing: 0.3px;
}

.gutsch-btn:hover { background: var(--primary); }

/* ─── BACK ROW ─── */
.back-row
{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

/* ─── LISTING SCREEN ─── */
.listing-cat-header
{
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 11px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.listing-grid
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 10px;
}

.listing-card
{
  background: var(--white);
  border: 1.5px solid var(--pink-medium);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.listing-card-img
{
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-card-img img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.lc-cam { font-size: 22px; opacity: 0.4; }
.lc-fav { font-size: 10px; margin-right: 3px; }

.listing-card-name
{
  padding: 10px 6px 4px;
  font-size: 1.2em;
}

.listing-card .d-rating
{
  justify-content: center;
  padding-bottom: 8px;
}

.listing-card:hover { background: var(--pink-medium); }

.listing-card:hover .listing-card-img img { transform: scale(1.08); }

/* ─── DETAIL SCREEN ─── */
.detail-photos
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 10px 12px;
}

.detail-photo
{
  background: var(--pink-card);
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  overflow: hidden;
}

.detail-photo img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.detail-photo:hover img { transform: scale(1.08); }

.detail-info { padding: 2px 14px 12px; }

.detail-media
{
  display: flex;
  gap: 8px;
  padding: 0 0 12px;
}

.detail-media-img,
.detail-media-map
{
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.detail-media-img
{
  aspect-ratio: 4 / 3;
  background: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-media-img img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.d-cat { font-size: 10px; font-style: italic; color: var(--text-light); margin-bottom: 3px; }

.d-badge
{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 7px;
}

.d-name-row
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.d-name { font-size: 19px; font-weight: 800; color: var(--text); }

.d-fav-btn
{
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
}

.d-rating
{
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}

.rating-icon
{
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.rating-icon-empty { filter: grayscale(1) opacity(0.3); }

.d-rating-val
{
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-left: 4px;
}


.d-row { font-size: 12px; color: #000; margin-bottom: 3px; }

.d-contact-btns
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.d-addr-btn,
.d-phone-btn,
.d-web-btn,
.d-facebook-btn,
.d-instagram-btn
{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pink-light);
  border: 1.5px solid var(--pink-medium);
  border-radius: 10px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: background 0.18s;
}

.d-addr-btn:hover,
.d-phone-btn:hover,
.d-web-btn:hover,
.d-facebook-btn:hover,
.d-instagram-btn:hover { background: var(--pink-card); }

.d-quiet
{
  background: #e8f5e9;
  color: #2e7d32;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin: 7px 0;
}

.amenities
{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 10px;
}

.am-tag
{
  background: #f0f8f0;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
}

.d-desc
{
  background: #ffffff;
  border-radius: none;
  padding: 11px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
}

/* ─── MAP USER LOCATION ─── */
.map-locate-btn
{
  position: fixed;
  bottom: 74px;
  right: 14px;
  z-index: 2000;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  touch-action: manipulation;
}

.map-locate-btn.visible
{
  display: flex;
}

.map-locate-btn:hover { background: var(--pink-light); }

@keyframes user-location-pulse
{
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(2.4); opacity: 0;   }
  100% { transform: scale(2.4); opacity: 0;   }
}

.user-location-marker
{
  position: relative;
  width: 20px;
  height: 20px;
}

.user-location-dot
{
  position: absolute;
  inset: 0;
  background: #1a73e8;
  border-radius: 50%;
  border: 2.5px solid white;
  box-shadow: 0 2px 6px rgba(26,115,232,0.55);
}

.user-location-dot::after
{
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(26,115,232,0.25);
  animation: user-location-pulse 2s ease-out infinite;
}

/* ─── MAP SCREEN ─── */
.map-chips
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: var(--white);
  flex-shrink: 0;
}



#leaflet-map
{
  flex: 1;
  min-height: 400px;
  width: 100%;
}

/* ─── VOUCHERS SCREEN ─── */
.voucher-list
{
  padding: 8px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.voucher-item
{
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: all 0.18s;
}

.voucher-item:hover { background: var(--pink-light); border-color: var(--pink-medium); }

.v-logo
{
  width: 48px;
  height: 48px;
  background: var(--pink-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.v-info { flex: 1; min-width: 0; }
.v-name { font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.v-val { font-size: 11px; font-weight: 700; color: var(--primary); }
.v-desc { font-size: 10px; color: var(--text-light); margin-top: 1px; }
.v-arrow { color: var(--primary); font-size: 16px; }

/* ─── QR MODAL ─── */
.modal-overlay
{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.open { display: flex; }

.modal-box
{
  background: var(--white);
  border-radius: 22px;
  padding: 24px 20px;
  width: 280px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.modal-box h3 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.modal-box .mv { color: var(--primary); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.modal-box .md { color: var(--text-light); font-size: 11px; margin-bottom: 14px; }

.qr-wrap
{
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}

.modal-close
{
  background: var(--pink-btn);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}

.modal-close:hover { background: var(--primary); }

/* ─── LOGIN MODAL ─── */
.hbtn-profile { font-size: 15px; padding: 5px 9px; }

.login-box { width: 300px; }

.login-avatar
{
  font-size: 36px;
  margin-bottom: 8px;
}

.login-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }

.login-sub
{
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.login-btns
{
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}

.login-btn
{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--pink-medium);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: background 0.18s;
}

.login-btn:hover { background: var(--pink-light); border-color: var(--pink-medium); }

.login-divider
{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 11px;
}

.login-divider::before,
.login-divider::after
{
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── EMPTY STATE ─── */
.empty-state
{
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}

.empty-state .es-icon { font-size: 44px; margin-bottom: 12px; }
.empty-state p { font-size: 13px; }

/* ─── LIGHTBOX ─── */
.lightbox
{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img-wrap
{
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 0 40px;
}

.lightbox-img-wrap img
{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close
{
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  z-index: 1001;
}

.lightbox-nav
{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 1001;
  transition: background 0.18s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-counter
{
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.lightbox-dot
{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.18s;
}

.lightbox-dot.active { background: #fff; }

/* ─── BREAKPOINT >= 1000px ─── */
@media (min-width: 1000px)
{
  .news-grid { grid-template-columns: repeat(4, 1fr); }

  .cat-grid { grid-template-columns: repeat(4, 1fr); }

  .listing-grid { grid-template-columns: repeat(4, 1fr); }

  .detail-photos { grid-template-columns: repeat(4, 1fr); }
}

/* ─── BREAKPOINT >= 1400px ─── */
@media (min-width: 1400px)
{
  .news-grid { grid-template-columns: repeat(6, 1fr); }

  .cat-grid { grid-template-columns: repeat(5, 1fr); }

  .listing-grid { grid-template-columns: repeat(5, 1fr); }

  .detail-photos { grid-template-columns: repeat(5, 1fr); }

  .sec-title { font-size: 20px; }
}

