/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A18;
  --text-primary: #1A1A18;
  --text-secondary: #6B6B62;
  --text-muted: #9B9B90;
  --accent: #2D5016;
  --accent-light: #EAF2DC;
  --accent-mid: #4A8025;
  --border: rgba(26,26,24,0.10);
  --border-strong: rgba(26,26,24,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 2px 12px rgba(26,26,24,0.07), 0 0 0 0.5px rgba(26,26,24,0.08);
  --shadow-modal: 0 24px 80px rgba(26,26,24,0.18);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-icon { font-size: 20px; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #1f3a0f; border-color: #1f3a0f; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(26,26,24,0.05); color: var(--text-primary); }
.btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
.btn-danger { background: #C0392B; color: #fff; border-color: #C0392B; }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}
.btn-outline:hover { background: var(--bg); color: var(--text-primary); }

/* ===== HERO ===== */
.hero {
  padding: 64px 0 48px;
  background: var(--bg);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.hero-title em {
  font-style: normal;
  color: var(--accent-mid);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  font-weight: 300;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0 20px;
  max-width: 540px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.12);
}
.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  padding: 14px 0;
  width: 100%;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-dark);
  padding: 14px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}
.stat small {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
}

/* ===== FILTERS ===== */
.filters-bar {
  background: var(--bg);
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 40;
}
.filters-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sort-select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

/* ===== MAIN GRID ===== */
.main-content { padding: 32px 0 80px; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ===== ITEM CARD ===== */
.item-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.3s ease both;
}
.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,26,24,0.13);
}
.item-card.sold { opacity: 0.55; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--bg);
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, #f0ece3 0%, #e8f5e0 100%);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.2px;
}
.badge-like-new { background: #EAF2DC; color: #2D6010; }
.badge-good { background: #DDEEF8; color: #1A5A8A; }
.badge-fair { background: #FEF3DA; color: #8A5A10; }
.badge-sold   { background: #F0EEE8; color: #6B6B62; }
.badge-repair { background: #FBEAF0; color: #993556; }
.card-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247,245,240,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-sold-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1.5px solid var(--text-secondary);
  padding: 4px 14px;
  border-radius: 4px;
  transform: rotate(-8deg);
}

.card-body { padding: 14px 16px 16px; }
.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.card-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.card-cat {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== CARD WHATSAPP BUTTON ===== */
.card-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.card-wa-btn:hover { background: #1da851; }
.card-wa-btn:active { transform: scale(0.97); }
.item-card.sold .card-wa-btn { display: none; }

.card-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}
.avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.card-seller-name { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.card-location { font-size: 11px; color: var(--text-muted); margin-left: auto; }

/* ===== LOADING / EMPTY ===== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  gap: 16px;
  color: var(--text-muted);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; color: var(--text-secondary); margin-bottom: 6px; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.2s cubic-bezier(0.34,1.26,0.64,1);
  width: 100%;
}
@keyframes slideUp {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-detail { max-width: 520px; }
.modal-form { max-width: 500px; padding: 28px; }
.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* DETAIL MODAL */
.detail-img-wrap {
  width: 100%;
  height: 260px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, #f0ece3 0%, #e8f5e0 100%);
}
.detail-body { padding: 24px 24px 28px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.detail-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  flex: 1;
}
.detail-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.detail-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.detail-seller-block {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.seller-info-name { font-weight: 600; font-size: 15px; }
.seller-info-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  font-size: 15px;
  padding: 12px;
  justify-content: center;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }
.btn-sold-action {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
  font-size: 13px;
  justify-content: center;
}
.btn-sold-action:hover { background: var(--bg); }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.label-hint { font-weight: 400; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.10);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== ADMIN ===== */
.admin-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.admin-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.admin-actions { display: flex; gap: 6px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.34,1.26,0.64,1);
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== ADMIN LOGIN ===== */
.admin-lock-icon {
  font-size: 36px;
  display: block;
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  width: 100%;
  padding-right: 42px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color var(--transition);
}
.password-toggle:hover { color: var(--text-primary); }
.admin-login-error {
  font-size: 12px;
  color: #C0392B;
  margin-top: 6px;
  font-weight: 500;
}
.admin-login-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.shake { animation: shake 0.4s ease; }

/* ===== PHOTO UPLOAD ===== */
.photo-upload-area {
  position: relative;
  width: 100%;
  height: 160px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.photo-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.photo-upload-area.has-photo {
  border-style: solid;
  border-color: var(--border-strong);
}
.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  pointer-events: none;
  text-align: center;
  padding: 0 16px;
}
.photo-upload-placeholder svg { color: var(--text-muted); }
.photo-upload-placeholder span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.photo-upload-placeholder small { font-size: 12px; }
.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(26,26,24,0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.photo-remove-btn:hover { background: rgba(26,26,24,0.9); }
.photo-source-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.photo-src-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 10px;
}
.photo-upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover { background: rgba(26,26,24,0.05); color: var(--text-primary); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(26,26,24,0.12);
  overflow: hidden;
  min-width: 140px;
  z-index: 100;
  animation: slideDown 0.15s ease;
}
.lang-menu.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.lang-option:hover { background: var(--bg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero { padding: 36px 0 28px; }
  .hero-title { letter-spacing: -0.8px; }
  .filters-inner { flex-direction: column; align-items: flex-start; }
  .cat-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; width: 100%; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .stats-inner { gap: 16px; }
  .modal-form { padding: 20px; }
  .detail-body { padding: 16px 16px 20px; }
}

/* ===== MULTI-PHOTO UPLOAD ===== */
.multi-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.photo-slot {
  position: relative;
  aspect-ratio: 1;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-slot:hover { border-color: var(--accent); background: var(--accent-light); }
.photo-slot.has-photo { border-style: solid; border-color: var(--border-strong); cursor: default; }
.photo-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 11px;
}
.photo-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26,26,24,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.photo-slot-remove:hover { background: rgba(26,26,24,0.9); }
.photo-count-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.photo-picker-popover {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(26,26,24,0.15);
  z-index: 100;
  overflow: hidden;
  min-width: 150px;
  animation: slideDown 0.15s ease;
}
.photo-picker-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.photo-picker-opt:hover { background: var(--bg); }

/* ===== MAP LOCATION PICKER ===== */
.location-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.location-input-wrap input { flex: 1; }
.location-map-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.location-map-btn:hover { border-color: var(--accent); color: var(--accent); }
.map-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.detail-map-wrap { margin-bottom: 16px; border-radius: var(--radius-md); overflow: hidden; }
.detail-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ===== CARD UPDATES ===== */
.card-time {
  font-size: 11px;
  color: var(--text-muted);
}
.card-location {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(26,26,24,0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
}

/* ===== DETAIL GALLERY ===== */
.detail-gallery { border-radius: var(--radius-xl) var(--radius-xl) 0 0; overflow: hidden; }
.detail-gallery-main {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--bg);
}
.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.detail-gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--bg);
}
.gallery-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.gallery-thumb.active,
.gallery-thumb:hover { opacity: 1; border-color: var(--accent); }

/* ===== TOAST TALL (approval message) ===== */
.toast-tall {
  border-radius: var(--radius-md) !important;
  padding: 14px 24px !important;
  text-align: center;
  line-height: 1.5;
  max-width: 300px;
}

/* ===== CARD ACTIONS ROW (WhatsApp + Share) ===== */
.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}
.card-wa-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.card-wa-btn:hover  { background: #1da851; }
.card-wa-btn:active { transform: scale(0.97); }

.card-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.card-share-btn:hover  { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.card-share-btn:active { transform: scale(0.95); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo-text { letter-spacing: -0.3px; }
.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0 28px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}
