/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f9fa;
  color: #111827;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ─── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  background: #0d9488;
  color: #fff;
  font-size: 12.5px;
  padding: 6px 0;
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: rgba(255,255,255,.85); font-size: 12.5px; transition: color .15s; }
.topbar-links a:hover { color: #fff; }

/* ─── Site Header ───────────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #d1faf5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(13,148,136,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 2px; text-decoration: none; }
.logo-box {
  background: #0d9488;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 5px 10px;
  border-radius: 5px;
  letter-spacing: -.3px;
}
.logo-domain { color: #374151; font-weight: 600; font-size: 14px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  position: relative;
}
.main-nav a:hover { color: #0d9488; }
.main-nav a.active {
  color: #0d9488;
  font-weight: 700;
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #0d9488;
  border-radius: 2px;
}

/* Actions */
.header-actions {}
.btn-post {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  transition: background .15s;
}
.btn-post:hover { background: #ea580c; }

/* ─── Spotlight Overlay ─────────────────────────────────────────────────── */
#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 499;
  cursor: pointer;
}
#search-overlay.active { display: block; }

/* Hint label shown above search form while overlay is active */
.search-hint {
  display: none;
  background: #f97316;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
  animation: hintBounce 1.2s ease infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Pulse glow on search bar when user tries to proceed without selecting */
@keyframes searchGlow {
  0%   { box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 0 0 0   rgba(249,115,22,.8); }
  50%  { box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 0 0 12px rgba(249,115,22,0); }
  100% { box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 0 0 0   rgba(249,115,22,0); }
}
.search-bar.search-pulse {
  animation: searchGlow 0.7s ease;
}

/* ─── Hero / Search ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 500;
  background:
    linear-gradient(to bottom, rgba(10,30,50,.65) 0%, rgba(13,80,80,.55) 100%),
    url('https://images.unsplash.com/photo-1583417319070-4a69db38a482?w=1600&q=80') center/cover no-repeat;
  padding: 54px 0 0;
  color: #fff;
}
.hero-content { max-width: 760px; margin: 0 auto; text-align: center; padding-bottom: 36px; }
.hero-title { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.82); margin-bottom: 22px; }

/* Tabs */
.search-tabs { display: inline-flex; gap: 0; background: rgba(255,255,255,.15); border-radius: 8px; padding: 4px; margin-bottom: 16px; }
.search-tab {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.search-tab.active { background: #fff; color: #f97316; }
.search-tab:not(.active):hover { color: #fff; background: rgba(255,255,255,.1); }

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.search-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #374151;
  font-family: inherit;
  background: transparent;
  padding: 6px 4px;
  min-width: 100px;
}
select.search-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  cursor: pointer;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
}
.search-field::placeholder { color: #9ca3af; }
.btn-search {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.btn-search:hover { background: #ea580c; }

/* Hero stats strip */
.hero-stats { background: rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.1); margin-top: 0; }
.hero-stats-inner {
  display: flex;
  gap: 32px;
  padding: 14px 0;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13.5px;
  color: rgba(255,255,255,.82);
}
.hero-stats-inner strong { color: #fff; }

/* ─── Categories Bar ────────────────────────────────────────────────────── */
.categories-bar {
  background: #fff;
  border-bottom: 1px solid #d1faf5;
  position: sticky;
  top: 57px;
  z-index: 90;
}
.cats-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px;
}
.cats-inner::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.cat-item:hover { color: #f97316; }
.cat-item.active { color: #f97316; border-bottom-color: #f97316; font-weight: 700; }

/* ─── Main Layout ───────────────────────────────────────────────────────── */
.main-wrap { padding: 28px 0 64px; }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 820px) { .content-layout { grid-template-columns: 1fr; } }

/* ─── Section header ────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title { font-size: 17px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 3px; height: 18px; background: #f97316; border-radius: 2px; display: inline-block; }
.section-count { color: #9ca3af; font-weight: 400; font-size: 14px; }

/* ─── Listing Cards ─────────────────────────────────────────────────────── */
.listing-list { display: flex; flex-direction: column; gap: 14px; }
.listing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: box-shadow .2s, transform .15s;
}
.listing-card:hover { box-shadow: 0 6px 20px rgba(13,148,136,.12); transform: translateY(-1px); }

/* Thumbnail */
.listing-thumb {
  position: relative;
  width: 200px;
  min-width: 200px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-thumb img { transform: scale(1.05); }
.thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #1e3a5f;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}
.thumb-verified {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.thumb-lock {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.thumb-lock:hover { background: rgba(15,23,42,.65); }
.img-count {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Listing body */
.listing-body { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.listing-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 5px; line-height: 1.4; }
.listing-title a { color: inherit; }
.listing-title a:hover { color: #0d9488; }
.listing-price { font-size: 18px; font-weight: 800; color: #1e3a5f; margin-bottom: 6px; }
.listing-meta { display: flex; gap: 12px; font-size: 12.5px; color: #6b7280; margin-bottom: 6px; flex-wrap: wrap; }
.listing-meta span { display: flex; align-items: center; gap: 4px; }
.listing-tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.tag-red { background: #fff7ed; color: #c2410c; }
.listing-loc { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: #6b7280; }

/* Listing actions */
.listing-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 12px 0;
  min-width: 110px;
  justify-content: center;
}
.btn-unlock {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: border-color .15s, color .15s;
}
.btn-unlock:hover { border-color: #0d9488; color: #0d9488; }
.btn-wa {
  background: #25d366;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.btn-wa:hover { background: #1da851; }
.btn-contact {
  background: #f97316;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: background .15s;
}
.btn-contact:hover { background: #ea580c; }

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.widget { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.widget-header {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-body { padding: 16px; }

/* Progress */
.progress-bar { height: 4px; background: #f1f5f9; border-radius: 999px; margin-bottom: 16px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #0d9488, #f97316); border-radius: 999px; transition: width .4s ease; }

/* Steps */
.step { display: none; }
.step.active { display: block; }

/* Form */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-size: 13.5px;
  font-family: inherit;
  color: #374151;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  transition: opacity .15s, transform .1s;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-full { width: 100%; }
.btn-red { background: #f97316; color: #fff; }
.btn-red:hover { background: #ea580c; }
.btn-primary { background: #f97316; color: #fff; }
.btn-primary:hover { background: #ea580c; }
.btn-green-lg { background: #16a34a; color: #fff; font-size: 15px; padding: 13px 20px; }
.btn-green-lg:hover { background: #15803d; }

/* Trust pills */
.trust-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.trust-pill {
  background: #f0fdfc;
  color: #0f766e;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #99f6e4;
}

/* Success */
.success-msg { text-align: center; padding: 6px 0; }
.success-icon {
  width: 52px;
  height: 52px;
  background: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #fff;
}
.success-msg h3 { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.success-msg p { color: #6b7280; font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }

/* Info list */
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #374151; line-height: 1.5; }
.info-list li svg { flex-shrink: 0; color: #16a34a; margin-top: 2px; }

/* ─── Sticky WhatsApp ───────────────────────────────────────────────────── */
.sticky-wa { display: none; }
@media (max-width: 640px) {
  .sticky-wa {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0,0,0,.1);
  }
  .sticky-wa-btn {
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: #0f172a; color: #94a3b8; padding: 40px 0 0; }
.footer-top { padding-bottom: 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 12px; color: #64748b; }
.logo-box-ft {
  display: inline-block;
  background: #0d9488;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 5px 12px;
  border-radius: 5px;
}
.footer-col h4 { font-size: 13.5px; font-weight: 700; color: #e2e8f0; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: #64748b; transition: color .15s; }
.footer-col ul li a:hover { color: #2dd4bf; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #64748b; font-size: 12.5px; transition: color .15s; }
.footer-bottom-links a:hover { color: #2dd4bf; }

/* ─── Admin Panel ───────────────────────────────────────────────────────── */
.admin-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0d9488 100%);
  color: #fff;
  padding: 14px 0;
}
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 16px; font-weight: 700; }
.admin-header a { color: rgba(255,255,255,.75); font-size: 13px; }
.admin-header a:hover { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  border-top: 3px solid #0d9488;
}
.stat-label { font-size: 12.5px; color: #6b7280; font-weight: 600; margin-bottom: 6px; }
.stat-val { font-size: 28px; font-weight: 800; color: #1e3a5f; }
.badge {
  display: inline-block;
  background: #f0fdfc;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #99f6e4;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; font-size: 13.5px; }
thead { background: #f0fdfc; }
th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: #0f766e; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #d1faf5; }
td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f0fdfc; }

/* ─── Login ─────────────────────────────────────────────────────────────── */
.login-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0fdfc 0%, #fff7ed 100%); }
.login-card { background: #fff; border: 1px solid #d1faf5; border-radius: 12px; padding: 36px 32px; width: 100%; max-width: 380px; box-shadow: 0 8px 32px rgba(13,148,136,.1); }
.login-card h1 { font-size: 22px; font-weight: 800; color: #1e3a5f; margin-bottom: 6px; }
.login-card p { color: #6b7280; font-size: 14px; margin-bottom: 22px; }
.login-err { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 7px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .main-nav { display: none; }
  .listing-card { flex-direction: column; }
  .listing-thumb { width: 100%; height: 180px; }
  .listing-actions { flex-direction: row; padding: 0 12px 12px; min-width: auto; }
  .hero-stats-inner { gap: 16px; font-size: 12.5px; }
}
@media (max-width: 480px) {
  .search-bar { flex-direction: column; align-items: stretch; }
  select.search-field { border-right: none; border-bottom: 1px solid #e5e7eb; border-radius: 0; }
  .btn-search { justify-content: center; }
}
