/* ============================================================
   site.css — Bring A Pole Design System (Bootstrap 5 base)
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand palette */
  --pt-blue:        #1a6bff;
  --pt-blue-dark:   #1054cc;
  --pt-blue-light:  #eff4ff;
  --pt-blue-mid:    #dce8ff;
  --pt-green:       #16a34a;
  --pt-green-light: #f0fdf4;
  --pt-amber:       #f59e0b;
  --pt-amber-light: #fffbeb;
  --pt-red:         #dc2626;
  --pt-red-light:   #fef2f2;

  /* Surfaces */
  --pt-surface:  #f8fafc;
  --pt-card:     #ffffff;
  --pt-border:   #e2e8f0;
  --pt-divider:  #f1f5f9;

  /* Typography */
  --pt-text:       #0f172a;
  --pt-text-muted: #64748b;
  --pt-text-light: #94a3b8;

  /* Shadows */
  --pt-shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --pt-shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --pt-shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --pt-shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);

  /* Radii */
  --pt-radius-sm: .375rem;  /* 6px */
  --pt-radius:    .625rem;  /* 10px */
  --pt-radius-lg: .875rem;  /* 14px */
  --pt-radius-xl: 1.25rem;  /* 20px */

  /* Motion */
  --pt-transition: all .18s cubic-bezier(.4,0,.2,1);

  /* Override Bootstrap primary to match our blue */
  --bs-primary:      #1a6bff;
  --bs-primary-rgb:  26,107,255;
  --bs-link-color:   #1a6bff;
  --bs-link-hover-color: #1054cc;
  --bs-border-radius: .625rem;
  --bs-border-radius-sm: .375rem;
  --bs-border-radius-lg: .875rem;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--pt-surface);
  color: var(--pt-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: .9375rem;   /* 15px */
  -webkit-font-smoothing: antialiased;
}

.footer {
  margin-top: auto;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  letter-spacing: -.02em;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  min-height: 60px;
  border-bottom: 1px solid var(--pt-border);
  z-index: 1050;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand img {
  display: block;
}

/* Desktop nav links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--pt-text-muted) !important;
  padding: 1.2rem .75rem;
  transition: color .15s;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--pt-text) !important;
}

.navbar-nav .nav-link.active {
  color: var(--pt-blue) !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--pt-blue);
  border-radius: 2px 2px 0 0;
}

/* Post Listing button in nav */
.navbar-nav .btn-post-listing {
  padding: .4rem .875rem;
  margin: auto 0 auto .5rem;
  background: transparent;
  color: var(--pt-blue) !important;
  border: 1.5px solid var(--pt-blue);
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background .15s, color .15s;
}

.navbar-nav .btn-post-listing:hover {
  background: var(--pt-blue);
  color: #fff !important;
}

/* Sign In / Create Account links */
.navbar .btn-signup {
  background: var(--pt-blue);
  color: #fff !important;
  padding: .375rem .875rem;
  border-radius: var(--pt-radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--pt-transition);
}

.navbar .btn-signup:hover {
  background: var(--pt-blue-dark);
  color: #fff !important;
}

/* Inbox badge */
.inbox-badge {
  font-size: .65rem;
  padding: .2em .45em;
}

/* Mobile nav collapse */
@media (max-width: 991.98px) {
  .navbar > .container {
    align-items: flex-start;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
  .navbar-brand,
  .navbar-toggler {
    margin-top: 0 !important;
  }
  .navbar-nav .nav-link.active::after {
    display: none;
  }
  .navbar-nav .nav-link {
    padding: .75rem 1rem;
  }
  .navbar-nav .btn-post-listing {
    margin: .5rem 1rem;
    display: inline-flex;
  }
  .navbar .btn-signup {
    margin: .25rem 1rem;
    display: inline-block;
  }
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow-sm);
  background: var(--pt-card);
}

.card-body {
  padding: 1.25rem;
}

/* ── Listing Cards ─────────────────────────────────────────── */
.listing-card {
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  box-shadow: var(--pt-shadow-sm);
  overflow: hidden;
  transition: var(--pt-transition);
  cursor: pointer;
  background: var(--pt-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
#browse-results .col > a {
  display: block;
  height: 100%;
}

.listing-card:hover {
  box-shadow: var(--pt-shadow-md);
  transform: translateY(-3px);
}

.listing-card .listing-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #000;
}

.listing-card .card-img-top,
.listing-card .listing-img-wrap img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.listing-card .listing-img-wrap img.portrait {
  object-fit: contain;
}

.carousel-item img.portrait {
  object-fit: contain;
  background: #000;
}

.listing-card:hover .card-img-top,
.listing-card:hover .listing-img-wrap img {
  transform: scale(1.03);
}

.listing-card .listing-price-badge {
  position: absolute;
  bottom: .6rem;
  left: .6rem;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: var(--pt-radius-sm);
  backdrop-filter: blur(4px);
}

.listing-card .listing-type-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: rgba(255,255,255,.92);
  color: var(--pt-text);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: var(--pt-radius-sm);
  backdrop-filter: blur(4px);
}

/* Demo listing watermark — shown on browse cards and carousel images, not thumbnails */
.demo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.55);
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .35rem 1rem;
  border-radius: .45rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  backdrop-filter: blur(2px);
}

/* Larger overlay for the full-size listing detail carousel */
#listingCarousel .demo-overlay {
  font-size: 1.25rem;
  letter-spacing: .15em;
  padding: 1.1rem 2.25rem;
  border-radius: .6rem;
}

.listing-card .card-body {
  padding: .875rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-card .card-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--pt-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .35rem;
}

.listing-card .listing-location {
  font-size: .78rem;
  color: var(--pt-text-muted);
}

.listing-card .listing-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--pt-blue);
  margin-bottom: .35rem;
}

/* Verified badge on cards */
.badge-verified-seller {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  background: var(--pt-green-light);
  color: var(--pt-green);
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 100px;
  border: 1px solid rgba(22,163,74,.2);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  font-weight: 500;
  min-height: 38px;
  border-radius: var(--pt-radius-sm);
  transition: var(--pt-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
  }
}

.btn-primary {
  background: var(--pt-blue);
  border-color: var(--pt-blue);
  box-shadow: 0 1px 3px rgba(26,107,255,.25);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--pt-blue-dark);
  border-color: var(--pt-blue-dark);
  box-shadow: 0 2px 6px rgba(26,107,255,.35);
}

.btn-outline-primary {
  color: var(--pt-blue);
  border-color: var(--pt-blue);
}

.btn-outline-primary:hover {
  background: var(--pt-blue);
  border-color: var(--pt-blue);
}

.btn-outline-secondary {
  color: var(--pt-text-muted);
  border-color: var(--pt-border);
  background: #fff;
}

.btn-outline-secondary:hover {
  background: var(--pt-surface);
  color: var(--pt-text);
  border-color: #cbd5e1;
}

/* ── Form Controls ─────────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--pt-border);
  border-radius: var(--pt-radius-sm);
  font-size: .9375rem;
  padding: .5rem .75rem;
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--pt-blue);
  box-shadow: 0 0 0 3px rgba(26,107,255,.12);
  outline: none;
}

.form-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--pt-text-muted);
  margin-bottom: .375rem;
}

.form-text {
  font-size: .78rem;
  color: var(--pt-text-light);
}

/* ── Autosave Indicator ────────────────────────────────────── */
#autosave-status {
  font-size: .78rem;
  transition: opacity .3s ease;
}
#autosave-status.status-idle    { color: var(--pt-text-light); }
#autosave-status.status-saving  { color: var(--pt-blue); }
#autosave-status.status-saved   { color: var(--pt-green); }
#autosave-status.status-error   { color: var(--pt-red); }

/* ── Skeleton Loading ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e8edf3 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--pt-radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  overflow: hidden;
  background: var(--pt-card);
  box-shadow: var(--pt-shadow-sm);
}

.skeleton-img {
  height: 200px;
  width: 100%;
}

.skeleton-text {
  height: .875rem;
  margin-bottom: .5rem;
}

.skeleton-text-sm {
  height: .75rem;
  margin-bottom: .375rem;
}

/* ── Hero (home page) ──────────────────────────────────────── */
.hero {
  background: #12A9F2;
  padding: 3.375rem 0 5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

#hero-ripple {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  position: relative;
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  opacity: .85;
  position: relative;
}

.hero .search-bar {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.hero .search-bar .form-control {
  height: 52px;
  border-radius: 100px 0 0 100px;
  border: none;
  font-size: 1rem;
  padding-left: 1.25rem;
  box-shadow: none;
}

.hero .search-bar .form-control:focus {
  box-shadow: none;
}

.hero .search-bar .btn {
  height: 52px;
  border-radius: 0 100px 100px 0;
  padding: 0 1.5rem;
  background: #fff;
  color: var(--pt-blue);
  font-weight: 600;
  border: none;
  min-height: unset;
}

.hero .search-bar .btn:hover {
  background: #f1f5f9;
  color: var(--pt-blue-dark);
}

/* ── Alert CTA Banner ──────────────────────────────────────── */
.alert-cta-banner {
  background: var(--pt-amber-light);
  border-top: 1px solid rgba(245,158,11,.2);
  border-bottom: 1px solid rgba(245,158,11,.2);
  padding: 1.5rem 0;
}

/* ── How It Works ──────────────────────────────────────────── */
.how-it-works-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pt-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: var(--pt-blue);
}

/* ── Auth Split Panel ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
}

.auth-panel-brand {
  background: linear-gradient(145deg, var(--pt-blue-dark) 0%, var(--pt-blue) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-panel-brand::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.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-panel-brand > * {
  position: relative;
}

.auth-panel-form {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
}

.auth-form-inner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .auth-panel-brand {
    display: none;
  }
  .auth-panel-form {
    flex: 1;
    padding: 2rem 1.25rem;
  }
  .auth-form-inner {
    max-width: 420px;
  }
}

/* ── Photo Upload Grid ─────────────────────────────────────── */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.photo-upload-zone {
  border: 2px dashed var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--pt-transition);
  cursor: pointer;
}

.photo-upload-zone:hover {
  border-color: var(--pt-blue);
  background: var(--pt-blue-light);
}

.photo-thumb {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: var(--pt-radius-sm);
  overflow: hidden;
  border: 2px solid var(--pt-border);
  cursor: grab;
  transition: var(--pt-transition);
}

.photo-thumb:hover {
  border-color: #94a3b8;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb .btn-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 0 .25rem;
  font-size: .7rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity .15s;
}

.photo-thumb:hover .btn-remove {
  opacity: 1;
}

.photo-thumb.primary-photo {
  border-color: var(--pt-blue);
  border-width: 2px;
}

.photo-thumb.primary-photo::after {
  content: 'Cover';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,107,255,.82);
  color: #fff;
  font-size: .6rem;
  font-weight: 600;
  text-align: center;
  padding: 2px 0;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Map Page ──────────────────────────────────────────────── */
#map-canvas {
  height: calc(100vh - 64px);
  width: 100%;
}

#map-results-panel {
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--pt-surface);
}

.map-filter-bar {
  background: var(--pt-card);
  border-bottom: 1px solid var(--pt-border);
  box-shadow: var(--pt-shadow-xs);
  position: sticky;
  top: 0;
  z-index: 10;
}

#search-this-area-btn {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  box-shadow: var(--pt-shadow-md);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 500;
  padding: .4rem 1rem;
}

/* Map list items */
.map-list-item {
  background: var(--pt-card);
  border-bottom: 1px solid var(--pt-border) !important;
  padding: .75rem !important;
  transition: var(--pt-transition);
  cursor: pointer;
}

.map-list-item:last-child {
  border-bottom: none !important;
}

.map-list-item:hover {
  background: var(--pt-blue-light);
}

.map-list-item.highlighted {
  background: var(--pt-blue-light);
  border-left: 3px solid var(--pt-blue) !important;
}

.map-list-item img {
  width: 76px;
  height: 57px;
  object-fit: cover;
  border-radius: var(--pt-radius-sm);
  flex-shrink: 0;
}

.map-list-item .item-title {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--pt-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .2rem;
}

.map-list-item .item-price {
  color: var(--pt-blue);
  font-weight: 700;
  font-size: .8125rem;
  margin-bottom: .25rem;
}

.map-list-item .item-badge {
  font-size: .65rem;
  font-weight: 500;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  color: var(--pt-text-muted);
  border-radius: 100px;
  padding: .1rem .45rem;
}

#map-items-list {
  padding: 0 !important;
}

@media (max-width: 991.98px) {
  #map-canvas {
    height: 55vh;
  }
  #map-results-panel {
    height: auto;
    max-height: 45vh;
    overflow-y: auto;
  }
}

/* ── Inbox ─────────────────────────────────────────────────── */
.inbox-sidebar {
  border-right: 1px solid var(--pt-border);
  height: calc(100vh - 160px);
  overflow-y: auto;
}

.inbox-thread {
  height: calc(100vh - 220px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.inbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  background: var(--pt-surface);
}

.inbox-compose {
  border-top: 1px solid var(--pt-border);
  padding: .875rem 1rem;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0,0,0,.04);
}

.inbox-compose textarea {
  resize: none;
  border-radius: var(--pt-radius);
  min-height: 44px;
}

.inbox-compose .btn {
  border-radius: var(--pt-radius);
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: unset;
  flex-shrink: 0;
}

.message-bubble {
  max-width: 72%;
  padding: .55rem .875rem;
  margin-bottom: .5rem;
  font-size: .9rem;
  line-height: 1.5;
}

.message-bubble.mine {
  background: var(--pt-blue);
  color: #fff;
  margin-left: auto;
  border-radius: 1rem 1rem .25rem 1rem;
}

.message-bubble.theirs {
  background: #fff;
  color: var(--pt-text);
  border: 1px solid var(--pt-border);
  border-radius: 1rem 1rem 1rem .25rem;
}

.thread-item {
  cursor: pointer;
  border-bottom: 1px solid var(--pt-divider);
  transition: background .12s;
  padding: .875rem 1rem;
}

.thread-item:hover {
  background: var(--pt-surface);
}

.thread-item.active {
  background: var(--pt-blue-light);
  border-left: 3px solid var(--pt-blue);
}

.thread-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  color: #fff;
  flex-shrink: 0;
}

.thread-item .preview {
  font-size: .79rem;
  color: var(--pt-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .15rem;
}

/* ── Verified Badge ────────────────────────────────────────── */
.verified-badge {
  color: var(--pt-blue);
  font-size: .85em;
}

/* ── Verification State Cards (Account page) ───────────────── */
.verify-card-verified {
  border-left: 4px solid var(--pt-green) !important;
}

.verify-card-pending {
  border-left: 4px solid var(--pt-amber) !important;
}

.verify-card-revoked {
  border-left: 4px solid var(--pt-red) !important;
}

/* ── Listing Detail ────────────────────────────────────────── */
.seller-card {
  background: var(--pt-blue-light);
  border: 1px solid var(--pt-blue-mid);
}

.carousel-thumbnail-strip {
  display: flex;
  gap: .375rem;
  overflow-x: auto;
  padding: .5rem 0;
  scrollbar-width: none;
}

.carousel-thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.carousel-thumb-btn {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: var(--pt-radius-sm);
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  transition: border-color .15s;
  background: none;
}

.carousel-thumb-btn.active,
.carousel-thumb-btn:hover {
  border-color: var(--pt-blue);
}

.carousel-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Comment replies left-border accent */
.comment-reply-indent {
  border-left: 2px solid var(--pt-blue-mid);
  padding-left: 1rem;
  margin-left: .5rem;
  margin-top: .75rem;
}

/* ── Browse Page ───────────────────────────────────────────── */
.filter-sidebar .card {
  position: sticky;
  top: 1rem;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: 1rem;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--pt-blue-light);
  color: var(--pt-blue);
  border: 1px solid rgba(26,107,255,.2);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  padding: .25rem .65rem;
}

.active-filter-chip .chip-remove {
  cursor: pointer;
  opacity: .6;
  font-size: .7rem;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  line-height: 1;
  min-height: unset;
}

.active-filter-chip .chip-remove:hover {
  opacity: 1;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--pt-text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  opacity: .25;
  display: block;
  margin-bottom: 1rem;
}

/* ── Edit Listing Page ─────────────────────────────────────── */
.publish-status-card {
  border-top: 3px solid var(--pt-blue);
}

.section-card-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pt-text);
  margin-bottom: 1rem;
}

.section-card-title i {
  color: var(--pt-blue);
  font-size: 1rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: #fff;
  border-top: 1px solid var(--pt-border);
}

.footer-brand-tagline {
  font-size: .875rem;
  color: var(--pt-text-muted);
  margin-top: .25rem;
}

.footer-heading {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pt-text-light);
  margin-bottom: .75rem;
}

.footer-link {
  display: block;
  font-size: .875rem;
  color: var(--pt-text-muted);
  text-decoration: none;
  margin-bottom: .35rem;
  transition: color .15s;
}

.footer-link:hover {
  color: var(--pt-blue);
}

.footer-bottom {
  border-top: 1px solid var(--pt-divider);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

/* ── Utility overrides ─────────────────────────────────────── */
.text-primary   { color: var(--pt-blue) !important; }
.bg-primary     { background-color: var(--pt-blue) !important; }
.border-primary { border-color: var(--pt-blue) !important; }

.badge.text-bg-primary {
  background-color: var(--pt-blue) !important;
}

/* Pagination */
.page-link {
  color: var(--pt-text-muted);
  border-color: var(--pt-border);
  border-radius: var(--pt-radius-sm) !important;
  min-width: 36px;
  text-align: center;
}

.page-item.active .page-link {
  background-color: var(--pt-blue);
  border-color: var(--pt-blue);
}

.page-link:hover {
  color: var(--pt-blue);
  background-color: var(--pt-blue-light);
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow-md);
  padding: .375rem;
  z-index: 1100;
}

.dropdown-item {
  border-radius: var(--pt-radius-sm);
  font-size: .9rem;
  padding: .45rem .75rem;
  transition: background .12s;
}

.dropdown-item:hover {
  background: var(--pt-blue-light);
  color: var(--pt-blue);
}

/* Alert/badge variants */
.alert {
  border-radius: var(--pt-radius);
}

/* Breadcrumb */
.breadcrumb-item a {
  color: var(--pt-blue);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Offcanvas */
.offcanvas {
  border-right: 1px solid var(--pt-border);
}
#filtersOffcanvas {
  top: 81px;
  height: calc(100% - 81px);
  width: 300px;
}
.filter-panel-close {
  display: none;
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0 4px;
  z-index: 1;
}
.offcanvas-body .filter-panel-close {
  display: block;
}

/* ── Chip / Tag Input ───────────────────────────────────────── */
.chip-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  padding: .35rem .5rem;
  min-height: 40px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  background: #fff;
  cursor: text;
  transition: var(--pt-transition);
}
.chip-input-wrap:focus-within {
  border-color: var(--pt-blue);
  box-shadow: 0 0 0 3px rgba(26,107,255,.12);
}
.chip-input-wrap.is-invalid {
  border-color: var(--pt-red);
}
.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  background: var(--pt-blue-light);
  color: var(--pt-blue-dark);
  border: 1px solid var(--pt-blue-mid);
  border-radius: 100px;
  padding: .15rem .55rem;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: .1rem;
  cursor: pointer;
  color: var(--pt-blue);
  opacity: .55;
  font-size: .8rem;
  line-height: 1;
  transition: opacity .1s;
}
.chip-remove:hover { opacity: 1; }
.chip-text-input {
  flex: 1;
  min-width: 110px;
  border: none;
  outline: none;
  background: transparent;
  font-size: .8125rem;
  padding: .1rem .2rem;
  color: var(--pt-text);
}
.chip-text-input::placeholder { color: var(--pt-text-light); }
.chip-input-wrap.at-max .chip-text-input { display: none; }
.chip-at-max-msg {
  font-size: .72rem;
  color: var(--pt-text-muted);
  font-style: italic;
}

/* Break long unbreakable strings (URLs, etc.) so they don't overflow on mobile */
[style*="white-space:pre-line"], [style*="white-space: pre-line"] {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Prevent flex children in comment items from overflowing on mobile */
.comment-item > .flex-grow-1 {
  min-width: 0;
}
.reply-form {
  width: 95%;
  box-sizing: border-box;
}
.reply-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  resize: vertical;
}

/* legacy signup compat */
.hp-website {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
