/* =============================================
   CommunityOn (CO) — style.css
   브라질 한인 커뮤니티 앱
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --green: #1A7A50;
  --green-light: #2ecc87;
  --green-dark: #155e3e;
  --green-bg: #E8F5EE;
  --orange: #FF6B35;
  --orange-light: #ff9a5c;
  --orange-bg: #FFF3EE;
  --bg: #F8FAF9;
  --surface: #ffffff;
  --surface2: #f2f5f3;
  --border: #e3ece7;
  --text: #1a2e23;
  --text-sub: #5a7a68;
  --text-muted: #9ab0a4;
  --shadow: 0 2px 12px rgba(26,122,80,0.08);
  --shadow-md: 0 4px 24px rgba(26,122,80,0.12);
  --shadow-lg: 0 8px 40px rgba(26,122,80,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
  --nav-h: 68px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
button { cursor: pointer; border: none; background: transparent; font-family: var(--font); }
a { color: var(--green); text-decoration: none; }
img { display: block; width: 100%; }
.hidden { display: none !important; }

/* ---- App Shell ---- */
#app {
  width: 100%;
  height: 100dvh;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* ---- Screens ---- */
.screen {
  position: absolute;
  inset: 0;
  bottom: var(--nav-h);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  overflow: hidden;
}
.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.screen-content {
  height: 100%;
  overflow-y: auto;
  padding: 0 0 16px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.screen-content::-webkit-scrollbar { display: none; }
.no-padding-top { padding-top: 0 !important; }

/* ---- Background Image Classes (CSS gradients as placeholders) ---- */
.bbq-img {
  background: url('./images/bbq.png') center/cover no-repeat;
}
.market-img {
  background: url('./images/market.png') center/cover no-repeat;
}
.dental-img {
  background: url('./images/clinic.png') center/cover no-repeat;
}
.law-img {
  background: linear-gradient(145deg, #2c2c54 0%, #474787 40%, #6c5ce7 80%, #a29bfe 100%);
}
.beauty-img {
  background: url('./images/salon.png') center/cover no-repeat;
}
.guidebook-img {
  background: linear-gradient(135deg, #1A7A50 0%, #155e3e 30%, #0d4a2f 60%, #071f14 100%);
}

/* ============================================
   HOME SCREEN
   ============================================ */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.home-logo-area { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 42px; height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,122,80,0.35);
  object-fit: cover;
  display: block;
}
/* div 형태 fallback (SVG 아이콘 등) */
div.logo-badge {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: white;
  letter-spacing: -0.5px;
}
.logo-title { display: block; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.logo-sub { display: block; font-size: 0.72rem; color: var(--text-sub); }
.header-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--text);
  transition: background var(--transition);
}
.icon-btn:active { background: var(--border); }
.notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  border: 1.5px solid white;
}

/* Hero Card */
.hero-card { padding: 16px 16px 0; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.hero-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 16px;
  width: 100%;
}
.hero-title {
  font-size: 1.2rem; font-weight: 800;
  color: white;
  line-height: 1.3;
  margin-bottom: 4px;
}
.hero-desc {
  font-size: 0.78rem; color: rgba(255,255,255,0.8);
  line-height: 1.5; margin-bottom: 12px;
}
.hero-btn {
  background: var(--orange);
  color: white;
  font-size: 0.82rem; font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-btn:active { transform: scale(0.97); }

/* Section titles */
.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 10px;
}
.section-title { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.section-title-sm { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.section-more { font-size: 0.78rem; color: var(--green); font-weight: 600; }

/* Quick Menu */
.quick-menu-row {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
}
.quick-menu-row::-webkit-scrollbar { display: none; }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 70px;
}
.quick-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.quick-icon:active { transform: scale(0.94); }
.quick-item span {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-sub); text-align: center;
}

/* Home horizontal scroll cards */
.home-card-scroll {
  display: flex; gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
}
.home-card-scroll::-webkit-scrollbar { display: none; }
.small-biz-card {
  flex-shrink: 0;
  width: 140px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.small-biz-card:active { transform: scale(0.97); }
.small-biz-img {
  height: 100px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.small-biz-info { padding: 8px 10px 10px; }
.small-biz-name {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.small-biz-cat { display: block; font-size: 0.7rem; color: var(--text-sub); margin-bottom: 5px; }
.small-biz-rating { display: flex; align-items: center; gap: 4px; }
.stars { font-size: 0.7rem; color: #f39c12; }
.rating-num { font-size: 0.72rem; font-weight: 700; color: var(--text-sub); }

/* Info Cards */
.info-cards { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.info-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.info-card:active { background: var(--surface2); }
.info-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-card-text { flex: 1; }
.info-card-text strong { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.info-card-text p { font-size: 0.74rem; color: var(--text-sub); line-height: 1.4; }

/* Ad Banners */
.ad-banner {
  margin: 16px 16px 0;
  background: linear-gradient(135deg, #1a2e23, #2d4636);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.ad-label {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.ad-content { flex: 1; }
.ad-content strong { display: block; font-size: 0.8rem; color: white; font-weight: 700; }
.ad-content p { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.bottom-spacer { height: 12px; }

/* ============================================
   EXPLORE SCREEN
   ============================================ */
.explore-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 52px 20px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.explore-title { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.explore-sub { font-size: 0.78rem; color: var(--text-sub); margin-top: 2px; }
.filter-icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--green-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

/* Search Bar Wrap */
.search-bar-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar-wrap:active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,80,0.1); }
.search-placeholder { font-size: 0.85rem; color: var(--text-muted); }

/* Sponsored Banner */
.sponsored-banner { margin: 0 16px 4px; }
.main-ad-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white; font-size: 0.65rem; font-weight: 800;
  padding: 3px 8px; border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.sponsored-banner-img {
  background: linear-gradient(145deg, #1A7A50 0%, #155e3e 50%, #0d4a2f 100%);
  border-radius: var(--radius);
  min-height: 140px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  box-shadow: var(--shadow-md);
}
.sponsored-banner-img::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sponsored-content { position: relative; z-index: 1; padding: 20px; }
.sp-logo {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white; font-size: 0.75rem; font-weight: 800;
  padding: 3px 10px; border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.sponsored-content h3 { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 4px; }
.sponsored-content p { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.sp-btn {
  background: white;
  color: var(--green);
  font-size: 0.8rem; font-weight: 700;
  padding: 7px 16px; border-radius: 20px;
  transition: transform var(--transition);
}
.sp-btn:active { transform: scale(0.96); }

/* Category Scroll */
.cat-scroll {
  display: flex; gap: 10px;
  padding: 0 16px;
  overflow-x: auto;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; flex-shrink: 0; min-width: 58px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.cat-item.active-cat {
  border-color: var(--green);
  background: var(--green-bg);
}
.cat-icon {
  width: 46px; height: 46px;
  background: var(--surface);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.cat-item:active .cat-icon { transform: scale(0.93); }
.cat-item span { font-size: 0.68rem; font-weight: 600; color: var(--text-sub); }
.cat-item.active-cat span { color: var(--green); }

/* Partners Scroll */
.partners-scroll {
  display: flex; gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
}
.partners-scroll::-webkit-scrollbar { display: none; }
.partner-card {
  flex-shrink: 0; width: 140px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.partner-card:active { transform: scale(0.96); }
.partner-img { height: 90px; }
.partner-info { padding: 8px 10px; }
.partner-name { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-rating { font-size: 0.7rem; color: var(--text-sub); margin-bottom: 5px; }
.power-badge {
  display: inline-flex; align-items: center; gap: 2px;
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: #7d3c00; font-size: 0.65rem; font-weight: 800;
  padding: 2px 7px; border-radius: 10px;
}

/* Business List Cards */
.biz-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.biz-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.biz-card:active { transform: scale(0.98); box-shadow: none; }
.biz-thumb {
  width: 70px; height: 70px;
  border-radius: 10px;
  flex-shrink: 0;
}
.biz-info { flex: 1; min-width: 0; }
.biz-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.biz-name { font-size: 0.82rem; font-weight: 700; color: var(--text); line-height: 1.3; flex: 1; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag {
  background: var(--green-bg);
  color: var(--green); font-size: 0.65rem; font-weight: 600;
  padding: 2px 7px; border-radius: 12px;
}
.biz-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.stars-sm { font-size: 0.7rem; color: #f39c12; }
.rating-sm { font-size: 0.72rem; font-weight: 700; color: var(--text-sub); }
.dot-sep { color: var(--text-muted); font-size: 0.7rem; }
.open-badge {
  font-size: 0.65rem; font-weight: 700;
  color: #27ae60;
  background: #e8f8f0;
  padding: 2px 7px; border-radius: 10px;
}
.closed-badge {
  font-size: 0.65rem; font-weight: 700;
  color: #e74c3c;
  background: #fdecea;
  padding: 2px 7px; border-radius: 10px;
}
.dist { font-size: 0.7rem; color: var(--text-muted); }
.heart-btn {
  font-size: 1.15rem; color: var(--text-muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.heart-btn.saved { color: #e74c3c; }
.heart-btn:active { transform: scale(1.3); }
.call-btn {
  width: 36px; height: 36px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.call-btn:active { background: var(--green); color: white; transform: scale(0.93); }

/* ============================================
   DETAIL SCREEN
   ============================================ */
.detail-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 14px 12px;
}
.back-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.detail-header-actions { display: flex; gap: 8px; }
.detail-header-actions .icon-btn {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Gallery */
.detail-gallery {
  height: 240px;
  position: relative;
  overflow: hidden;
}
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery-slide.active-slide { opacity: 1; }
.gallery-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.gdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background var(--transition), width var(--transition);
}
.gdot.active-gdot { background: white; width: 16px; border-radius: 3px; }

/* Detail Info Section */
.detail-info-section { padding: 16px; }
.detail-name-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 8px;
}
.detail-biz-name { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.detail-biz-sub { font-size: 0.82rem; color: var(--text-sub); margin-top: 3px; font-style: italic; }
.power-badge-lg {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(243,156,18,0.4);
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }

/* Inline Ad */
.inline-ad {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  margin-bottom: 14px;
  font-size: 0.78rem; color: var(--text-sub);
}
.inline-ad.flight-ad { background: #fffbf0; border-color: #f39c12; }
.ad-label-sm {
  background: #e74c3c;
  color: white; font-size: 0.58rem; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  flex-shrink: 0; letter-spacing: 0.5px;
}
.inline-ad-btn {
  background: var(--orange);
  color: white; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 12px;
  margin-left: auto; flex-shrink: 0;
  transition: transform var(--transition);
}
.inline-ad-btn:active { transform: scale(0.95); }

/* Action Buttons */
.action-btns {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 20px;
}
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-size: 0.72rem; font-weight: 600; color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.action-btn:active { background: var(--surface2); transform: scale(0.96); }
.action-btn svg { color: var(--green); }
.whatsapp-btn svg { color: #25D366; }
.whatsapp-btn { border-color: rgba(37,211,102,0.3); }

/* Partners mini scroll */
.partners-scroll-sm {
  display: flex; gap: 10px;
  overflow-x: auto; margin-bottom: 2px;
}
.partners-scroll-sm::-webkit-scrollbar { display: none; }
.partner-mini {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; flex-shrink: 0;
}
.partner-mini-img {
  width: 54px; height: 54px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: transform var(--transition);
}
.partner-mini:active .partner-mini-img { transform: scale(0.93); }
.partner-mini span { font-size: 0.65rem; color: var(--text-sub); font-weight: 600; }

/* Detail Tabs */
.detail-tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin: 16px 0 0;
}
.dtab {
  flex: 1; padding: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.dtab.active-dtab { color: var(--green); border-bottom-color: var(--green); }
.dtab-content { padding-top: 14px; }

/* Detail Row */
.detail-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row-text { flex: 1; font-size: 0.82rem; color: var(--text); line-height: 1.4; }
.copy-btn {
  background: var(--green-bg);
  color: var(--green); font-size: 0.65rem; font-weight: 800;
  padding: 4px 8px; border-radius: 5px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  transition: background var(--transition);
}
.copy-btn:active { background: var(--green); color: white; }

/* Map Preview */
.map-preview {
  margin: 12px 0;
  background: linear-gradient(135deg, #e8f5ee 0%, #d0ebe0 100%);
  border-radius: var(--radius-sm);
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 1px dashed var(--green);
  transition: background var(--transition);
  overflow: hidden;
  position: relative;
}
.map-preview::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(26,122,80,0.05) 20px, rgba(26,122,80,0.05) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(26,122,80,0.05) 20px, rgba(26,122,80,0.05) 21px);
}
.map-placeholder {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map-placeholder span { font-size: 0.78rem; color: var(--green); font-weight: 600; }

/* Hours */
.hours-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
}
.hours-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hours-note { font-size: 0.75rem; color: var(--text-sub); }
.hours-row {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--text);
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.closed-day span { color: var(--text-muted); }

/* Business Description */
.biz-desc {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.biz-desc p { font-size: 0.82rem; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.biz-desc-pt { color: var(--text-sub) !important; }

/* Amenities */
.amenities-row {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 12px 0;
}
.amenity-chip {
  background: var(--surface2);
  color: var(--text-sub); font-size: 0.74rem;
  padding: 5px 10px; border-radius: 20px;
  border: 1px solid var(--border);
}

/* Menu Tab */
.menu-section { padding: 4px 0; }
.menu-category {
  font-size: 0.78rem; font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 8px 0 6px;
  border-bottom: 2px solid var(--green-bg);
  margin-bottom: 8px;
}
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.menu-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 3px; }
.menu-desc { font-size: 0.72rem; color: var(--text-sub); }
.menu-price { font-size: 0.9rem; font-weight: 800; color: var(--green); flex-shrink: 0; }

/* Reviews Tab */
.rating-overview {
  display: flex; gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.rating-big { font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rbar-row { display: flex; align-items: center; gap: 6px; }
.rbar-row > span:first-child { font-size: 0.68rem; color: var(--text-sub); width: 18px; text-align: right; }
.rbar-row > span:last-child { font-size: 0.68rem; color: var(--text-muted); width: 26px; }
.rbar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rbar-fill { height: 100%; background: #f39c12; border-radius: 3px; }
.write-review-btn {
  width: 100%;
  background: var(--green);
  color: white; font-size: 0.85rem; font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(26,122,80,0.3);
}
.write-review-btn:active { background: var(--green-dark); transform: scale(0.98); }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.reviewer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: white; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reviewer-name { font-size: 0.82rem; font-weight: 700; }
.review-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.review-stars { font-size: 0.8rem; color: #f39c12; margin-left: auto; }
.review-text { font-size: 0.8rem; line-height: 1.7; color: var(--text-sub); }

/* Detail Ad Banners */
.detail-ad {
  margin: 14px 0 0;
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
}

/* FAB */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  right: 16px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(26,122,80,0.45);
  z-index: 100;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab:active { transform: scale(0.93); box-shadow: 0 3px 10px rgba(26,122,80,0.3); }

/* ============================================
   SEARCH SCREEN
   ============================================ */
.search-header {
  display: flex; align-items: center; gap: 8px;
  padding: 48px 12px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.back-btn-sm {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0;
}
.search-input-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  transition: border-color var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--green); }
.search-input {
  flex: 1; border: none; background: transparent;
  font-size: 0.85rem; color: var(--text);
  font-family: var(--font);
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.clear-btn { color: var(--text-muted); font-size: 0.8rem; }

/* Filter Chips */
.filter-chips {
  display: flex; gap: 7px;
  padding: 12px 16px;
  overflow-x: auto;
}
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 0.78rem; font-weight: 600; color: var(--text-sub);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.fchip.active-fchip {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* Search Results */
#search-results { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.search-result {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.search-result:active { transform: scale(0.98); }
.sponsored-result { border-color: var(--green); border-width: 1.5px; }
.result-img {
  width: 70px; height: 70px;
  border-radius: 10px; flex-shrink: 0;
}
.result-info { flex: 1; min-width: 0; }
.result-header { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 5px; }
.ad-badge {
  background: var(--green);
  color: white; font-size: 0.6rem; font-weight: 800;
  padding: 2px 5px; border-radius: 3px;
  flex-shrink: 0; letter-spacing: 0.5px;
  margin-top: 1px;
}
.sponsored-badge {
  background: #f39c12;
  color: #7d3c00; font-size: 0.6rem; font-weight: 800;
  padding: 2px 5px; border-radius: 3px;
  flex-shrink: 0; letter-spacing: 0.5px;
  margin-top: 1px;
}
.search-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.search-empty h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.search-empty p { font-size: 0.82rem; }

/* ============================================
   SAVED SCREEN
   ============================================ */
.simple-header {
  display: flex; align-items: center; gap: 10px;
  padding: 52px 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.simple-title { font-size: 1.2rem; font-weight: 800; }
.saved-count {
  background: var(--green);
  color: white; font-size: 0.72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 12px;
}
.saved-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }

/* ============================================
   PROFILE SCREEN
   ============================================ */
.profile-header {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 52px 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.profile-title { font-size: 1.2rem; font-weight: 800; }
.profile-sub { font-size: 0.78rem; color: var(--text-sub); padding-bottom: 2px; }
.settings-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  position: absolute; right: 20px; bottom: 16px;
}

/* User Card */
.user-card {
  display: flex; align-items: center; gap: 14px;
  margin: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.user-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white; font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.user-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.user-name { font-size: 1.1rem; font-weight: 800; color: white; }
.verified-badge {
  background: rgba(255,255,255,0.25);
  color: white; font-size: 0.68rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.member-status { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.85); font-weight: 600; }
.member-since { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* Stats */
.stats-row {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 16px 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat-num { font-size: 1.4rem; font-weight: 900; color: var(--green); }
.stat-label { font-size: 0.74rem; color: var(--text-sub); font-weight: 600; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Owner Banner */
.owner-banner {
  margin: 0 16px 12px;
  background: linear-gradient(135deg, #fffbf0, #fff3cd);
  border: 1.5px solid #f39c12;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.owner-banner-text { flex: 1; }
.owner-banner-text strong { display: block; font-size: 0.85rem; font-weight: 800; color: #7d3c00; }
.owner-banner-text p { font-size: 0.74rem; color: #a04000; margin-top: 2px; }
.owner-register-btn {
  background: #f39c12;
  color: white; font-size: 0.78rem; font-weight: 700;
  padding: 8px 14px; border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 3px 10px rgba(243,156,18,0.35);
}
.owner-register-btn:active { background: #d68910; transform: scale(0.96); }

/* Settings Sections */
.settings-section { margin-bottom: 4px; }
.section-group-title {
  padding: 10px 20px 6px;
  font-size: 0.7rem; font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.settings-list {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: var(--surface2); }
.settings-row-left { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 500; }
.settings-row-right { display: flex; align-items: center; gap: 6px; }
.settings-value { font-size: 0.8rem; color: var(--text-muted); }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: 24px;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white; border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Logout */
.logout-btn {
  width: calc(100% - 32px);
  margin: 16px 16px 0;
  padding: 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  transition: background var(--transition);
}
.logout-btn:active { background: #fdecea; color: #c0392b; }

/* Footer Links */
.footer-links {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.7rem; color: var(--text-muted); }
.footer-links span { color: var(--border); font-size: 0.7rem; }

/* Profile Ad */
.profile-ad { margin: 12px 16px 0; }

/* ============================================
   BOTTOM NAV
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  padding-top: 8px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(26,122,80,0.08);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding-top: 2px;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-item span { font-size: 0.65rem; font-weight: 600; }
.nav-item.active-nav { color: var(--green); }
.nav-item.active-nav::before {
  content: '';
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--green);
  border-radius: 0 0 3px 3px;
}
.nav-center { position: relative; }
.nav-center-btn {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  position: absolute; top: -18px;
  box-shadow: 0 4px 16px rgba(26,122,80,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-center-btn:active { transform: scale(0.93); }
.nav-center span { margin-top: 34px; }
.nav-center.active-nav { color: var(--green); }
.nav-center.active-nav::before { display: none; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(26, 46, 35, 0.92);
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   OVERLAYS & MODALS & BOTTOM SHEETS
   ============================================ */
.overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay-backdrop.show { opacity: 1; pointer-events: all; }

/* Bottom Sheet */
.bottom-sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 430px;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  z-index: 2010;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
  max-height: 85vh;
}
.bottom-sheet.show { transform: translateX(-50%) translateY(0); }
.sheet-handle {
  width: 40px; height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin: 12px auto 8px;
}
.sheet-content { flex: 1; overflow-y: auto; padding: 0 20px 30px; }
.sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 20px;
  position: sticky; top: 0; background: var(--surface); z-index: 10;
}
.sheet-header h2 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.icon-btn-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); color: var(--text-sub);
  display: flex; justify-content: center; align-items: center;
  font-size: 1rem; transition: background 0.2s;
}
.icon-btn-sm:active { background: var(--border); }
.sheet-body { line-height: 1.6; font-size: 0.9rem; color: var(--text); }

/* Notif Items */
.notif-item {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread .notif-text strong { color: var(--green); }
.notif-item.unread { position: relative; }
.notif-item.unread::after {
  content: ''; position: absolute; top: 20px; right: 0;
  width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
}
.notif-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-bg); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notif-text p { font-size: 0.8rem; color: var(--text-sub); margin: 4px 0 6px; line-height: 1.4; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); }

/* Modal */
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95);
  width: 90%; max-width: 360px;
  background: var(--surface);
  border-radius: 20px;
  z-index: 2020;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.modal.show { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.modal-content { padding: 20px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h2 { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.modal-desc { font-size: 0.8rem; color: var(--text-sub); margin-bottom: 20px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--font); font-size: 0.9rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,122,80,0.1);
}
textarea.form-input { resize: none; }
.primary-btn {
  width: 100%; padding: 14px;
  background: var(--green); color: white;
  border-radius: 12px; font-size: 0.9rem; font-weight: 800;
  box-shadow: 0 4px 14px rgba(26,122,80,0.3);
  transition: transform 0.2s, background 0.2s;
}
.primary-btn:active { transform: scale(0.98); background: var(--green-dark); }

/* Star Rating Selector */
.star-rating-select {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.star-rating-select span {
  font-size: 2.2rem; color: var(--border); cursor: pointer; transition: color 0.2s;
}
.star-rating-select span.selected { color: #f39c12; }

/* Success Popup Animation */
.success-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
  background: white; border-radius: 20px;
  padding: 30px 20px; width: 280px; text-align: center;
  z-index: 3000; opacity: 0; pointer-events: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-popup.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: all; }
.success-icon-wrap { margin-bottom: 16px; display: inline-block; }
.checkmark { width: 60px; height: 60px; border-radius: 50%; display: block; stroke-width: 3; stroke: var(--green); stroke-miterlimit: 10; margin: 0 auto; box-shadow: inset 0px 0px 0px var(--green); animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; }
.checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3; stroke-miterlimit: 10; stroke: var(--green); fill: none; animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.checkmark__check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards; }
@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px #e8f5ee; } }
.success-title { font-size: 1.3rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.success-msg { font-size: 0.85rem; color: var(--text-sub); line-height: 1.4; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen.active .screen-content > * {
  animation: fadeInUp 0.4s ease forwards;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.logo-badge { animation: pulse 3s ease infinite; }

/* ============================================
   COMMUNITY SCREEN
   ============================================ */
.fab-btn {
  position: absolute; right: 20px; bottom: calc(var(--nav-h) + 20px);
  width: 56px; height: 56px;
  background: var(--green); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(26,122,80,0.4);
  z-index: 100;
  transition: transform var(--transition);
}
.fab-btn:active { transform: scale(0.95); }
.community-feed {
  padding-bottom: 80px; /* FAB space */
}
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  box-shadow: var(--shadow);
  display: flex; gap: 12px; cursor: pointer;
  transition: transform var(--transition);
}
.post-card:active { transform: scale(0.98); }
.post-preview-img {
  width: 80px; height: 80px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #eee;
}
.post-info { flex: 1; display:flex; flex-direction:column; justify-content:space-between; min-width:0; }
.post-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom:4px; line-height:1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-snippet { font-size: 0.8rem; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta-row { display: flex; justify-content: space-between; align-items: center; margin-top:8px; font-size: 0.7rem; color: var(--text-muted); }
.p-cat { border: 1px solid transparent; }
.p-cat.active-cat { border-color: var(--green); background: var(--green-bg); }

/* Comments */
.comment-item {
  background: var(--surface2); padding: 10px; border-radius: 8px;
  margin-bottom: 8px; display: flex; flex-direction: column;
}
.comment-author { font-size: 0.75rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.comment-text { font-size: 0.85rem; color: var(--text-sub); line-height:1.4; }
