:root {
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: #151E32;
  --bg-card-hover: #1A253F;
  --bg-input: #1F293D;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.35);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-purple: #8B5CF6;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px -5px rgba(59, 130, 246, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

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

.container-reading {
  max-width: 860px;
}

.container-narrow {
  max-width: 780px;
}

/* ----------------- HEADER & NAV ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text strong {
  color: var(--primary);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ----------------- BUTTONS ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
}
.btn-text:hover {
  color: var(--text-main);
}

/* ----------------- HERO SECTION ----------------- */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 18px;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
}

/* Search Box Component */
.search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 940px;
  margin: 0 auto 30px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.search-input-group,
.search-location-group,
.search-select-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.search-input-group {
  flex: 2;
}

.search-select-group {
  flex: 1.2;
}

.search-location-group {
  flex: 1;
}

.search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.search-box input,
.search-box select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  width: 100%;
}

.search-box select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.btn-search {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pills-label {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ----------------- STATS BAR ----------------- */
.stats-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.5);
  padding: 24px 0;
  margin-bottom: 50px;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-subtle);
}

/* ----------------- SECTIONS ----------------- */
.section {
  padding: 40px 0 60px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.section-header.text-center {
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
}

.section-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.section-link:hover {
  gap: 10px;
}

/* ----------------- CLASSIFIED ADS GRID ----------------- */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.ad-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.ad-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ad-image-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  background: #000;
  overflow: hidden;
}

.ad-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ad-card:hover .ad-image-wrap img {
  transform: scale(1.05);
}

.ad-category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.ad-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.ad-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ad-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ad-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.ad-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.ad-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-main);
}

.ad-snippet {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.ad-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.ad-seller {
  color: var(--text-dim);
}

.ad-view-link {
  color: var(--primary);
  font-weight: 600;
}

/* ----------------- CATEGORIES GRID ----------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.category-icon-wrap {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.category-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.category-cta {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* ----------------- ARTICLES GRID ----------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.article-img-wrap {
  position: relative;
  height: 190px;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.article-card-body {
  padding: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.article-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ----------------- CTA BANNER ----------------- */
.section-cta {
  padding: 40px 0 80px;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------- BREADCRUMBS & PAGE HEADER ----------------- */
.page-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 35px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 500;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 750px;
}

/* ----------------- CATALOG WITH SIDEBAR ----------------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-card,
.widget-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.filter-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

/* ----------------- AD DETAIL PAGE ----------------- */
.ad-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 35px;
  margin-bottom: 60px;
}

.ad-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.ad-featured-image-wrap {
  position: relative;
  width: 100%;
  max-height: 480px;
  background: #000;
}

.ad-featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 480px;
  display: block;
}

.ad-gallery-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border-subtle);
}

.ad-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.ad-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ad-detail-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.ad-detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.ad-detail-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.ad-price-tag {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ad-attributes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.attribute-item {
  background: var(--bg-input);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.attr-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.attr-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

.status-avail {
  color: var(--accent-emerald);
}

.ad-description-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.ad-description-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 30px;
}

.safety-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
}

.safety-icon {
  font-size: 1.8rem;
}

.safety-box h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.safety-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Seller Card Sidebar */
.seller-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.seller-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.seller-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.seller-badge {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.seller-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.seller-location {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.seller-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.seller-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
}

.meta-item strong {
  color: var(--text-main);
}

/* ----------------- ARTICLE DETAIL VIEW ----------------- */
.article-page {
  margin-bottom: 60px;
}

.article-header {
  border-bottom: none;
  padding-bottom: 10px;
}

.article-category-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.article-detail-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.article-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
}

.author-avatar {
  font-size: 1.5rem;
}

.author-name {
  font-weight: 600;
  display: block;
}

.author-date {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: var(--shadow-lg);
}

.article-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #E2E8F0;
  margin-bottom: 40px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-cta-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box-text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.cta-box-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-box-actions {
  display: flex;
  gap: 12px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.share-btn.whatsapp {
  background: #25D366;
  color: #fff;
}

.share-btn.twitter {
  background: #000;
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.share-btn.copy {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* ----------------- ARTICLES FULL LIST ----------------- */
.articles-full-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 50px;
}

.article-card-featured {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-card-featured:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}

.article-featured-link {
  display: grid;
  grid-template-columns: 340px 1fr;
  text-decoration: none;
  color: inherit;
}

.article-featured-img {
  position: relative;
  height: 100%;
  min-height: 220px;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.blog-seo-topics {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 60px;
}

.blog-seo-topics h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.topics-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.topic-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.topic-pill:hover,
.topic-pill.highlight {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ----------------- PUBLISH FORM VIEW ----------------- */
.publish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 60px;
}

.form-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-help {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 5px;
}

.publish-submit-row {
  text-align: center;
}

.publish-legal {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

/* ----------------- FOOTER ----------------- */
.site-footer {
  margin-top: auto;
  background: #070B14;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 320px;
}

.footer-security-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-hint {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer-bottom-links a:hover {
  color: var(--text-main);
}

/* ----------------- 3 CORE CATEGORIES GRID ----------------- */
.categories-3-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card-lg {
  padding: 35px 28px;
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(26, 37, 63, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.category-card-lg:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.category-card-lg .category-icon-wrap {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.category-card-lg .category-name {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.category-card-lg .category-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ----------------- PROVINCES & CAPITALS GRID ----------------- */
.provinces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.province-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.province-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.province-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.province-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.province-badge {
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.province-cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.city-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.city-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.city-link.capital-link {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

.province-all-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.sublocations-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ----------------- AD TAGS PILLS ----------------- */
.ad-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ad-pill {
  font-size: 0.75rem;
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.ad-pill.verified {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ----------------- ADMIN LOCATION MANAGEMENT ----------------- */
.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stat-pill strong {
  font-size: 1.35rem;
  color: var(--text-main);
}

.stat-pill strong.text-emerald {
  color: var(--accent-emerald);
}

.stat-pill-info {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.locations-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.province-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
}

.province-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.prov-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prov-icon {
  font-size: 1.8rem;
}

.prov-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.prov-subinfo {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.toggle-control-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-indicator {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cities-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.city-admin-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.city-admin-item.city-active {
  border-color: rgba(16, 185, 129, 0.3);
}

.city-admin-item.city-inactive {
  opacity: 0.45;
  filter: grayscale(1);
}

.capital-badge {
  display: block;
  font-size: 0.72rem;
  color: #FBBF24;
  font-weight: 700;
  margin-bottom: 2px;
}

.city-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ----------------- TOGGLE SWITCH STYLES ----------------- */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:checked + .slider {
  background-color: var(--accent-emerald);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.switch-sm {
  width: 38px;
  height: 20px;
}

.switch-sm .slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}

.switch-sm input:checked + .slider:before {
  transform: translateX(18px);
}

/* ----------------- RESPONSIVE DESIGN ----------------- */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .categories-3-grid { grid-template-columns: 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .ad-detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-featured-link { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .search-box { flex-direction: column; }
  .search-input-group, .search-select-group, .search-location-group { width: 100%; }
  .btn-search { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .publish-card { padding: 24px; }
  .cta-banner { padding: 40px 20px; }
  .nav-links { display: none; }
}

/* ----------------- BARCELONA METROPOLITAN INTERACTIVE MAP ----------------- */
.section-map {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.4) 0%, rgba(11, 15, 25, 0.8) 100%);
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.map-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.map-header-left {
  max-width: 820px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93C5FD;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.radar-ping {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3B82F6;
}

.radar-ping::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #3B82F6;
  opacity: 0.8;
  animation: radarWave 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes radarWave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-counter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.map-counter-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.map-counter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Map Toolbar */
.map-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 16px 20px;
}

.map-toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 100px;
}

.toolbar-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.map-btn-filter.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-hover);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.map-btn-city.active {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border-color: #6366F1;
}

/* Map Canvas Container */
.map-canvas-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#barcelonaMap {
  width: 100%;
  height: 520px;
  background: #0B0F19;
  z-index: 10;
}

/* Legend Overlay */
.map-legend-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-escorts { background: #F43F5E; box-shadow: 0 0 8px #F43F5E; }
.dot-masajes { background: #10B981; box-shadow: 0 0 8px #10B981; }
.dot-indep { background: #818CF8; box-shadow: 0 0 8px #818CF8; }

/* Custom Leaflet Map Pin */
.bunker-leaflet-icon {
  background: transparent !important;
  border: none !important;
}

.bunker-map-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bunker-map-pin:hover {
  transform: scale(1.15) translateY(-2px);
  z-index: 1000 !important;
}

.pin-radar {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 0;
  left: 6px;
  border-radius: 50%;
  animation: pinPulse 2.2s infinite;
  pointer-events: none;
}

@keyframes pinPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.pin-bubble {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #0B0F19;
  border: 2px solid #3B82F6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.pin-price-pill {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(11, 15, 25, 0.9);
  color: white;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Category pin colors */
.marker-escorts .pin-radar { border: 2px solid #F43F5E; }
.marker-escorts .pin-bubble { border-color: #F43F5E; box-shadow: 0 0 14px rgba(244, 63, 94, 0.5); }
.marker-escorts .pin-price-pill { border-color: rgba(244, 63, 94, 0.4); color: #FDA4AF; }

.marker-masajes .pin-radar { border: 2px solid #10B981; }
.marker-masajes .pin-bubble { border-color: #10B981; box-shadow: 0 0 14px rgba(16, 185, 129, 0.5); }
.marker-masajes .pin-price-pill { border-color: rgba(16, 185, 129, 0.4); color: #A7F3D0; }

.marker-indep .pin-radar { border: 2px solid #818CF8; }
.marker-indep .pin-bubble { border-color: #818CF8; box-shadow: 0 0 14px rgba(129, 140, 248, 0.5); }
.marker-indep .pin-price-pill { border-color: rgba(129, 140, 248, 0.4); color: #C7D2FE; }

/* Leaflet Popup Styling */
.bunker-leaflet-popup-wrap .leaflet-popup-content-wrapper {
  background: rgba(17, 24, 39, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md) !important;
  color: var(--text-main) !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6) !important;
}

.bunker-leaflet-popup-wrap .leaflet-popup-tip {
  background: rgba(17, 24, 39, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-left: none;
}

.bunker-leaflet-popup-wrap .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.bunker-leaflet-popup-wrap .leaflet-popup-close-button {
  color: #94A3B8 !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10;
  width: 24px !important;
  height: 24px !important;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px !important;
  padding: 0 !important;
}

.bunker-leaflet-popup-wrap .leaflet-popup-close-button:hover {
  color: white !important;
  background: rgba(0, 0, 0, 0.8);
}

.bunker-map-popup {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.popup-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #0B0F19;
}

.popup-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popup-thumb-link:hover .popup-thumb {
  transform: scale(1.05);
}

.popup-cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: white;
}

.popup-cat-badge.badge-escorts { border-left: 3px solid #F43F5E; }
.popup-cat-badge.badge-masajes { border-left: 3px solid #10B981; }
.popup-cat-badge.badge-indep { border-left: 3px solid #818CF8; }

.popup-price-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(11, 15, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.popup-body {
  padding: 12px 14px 14px;
}

.popup-location {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.popup-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.popup-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.popup-title a:hover {
  color: var(--primary);
}

.popup-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.popup-pill {
  font-size: 0.7rem;
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.popup-pill.verified {
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popup-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.popup-btn-wa:hover {
  background: #20BA59;
}

.popup-btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.popup-btn-detail:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

@media (max-width: 768px) {
  .map-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-counter-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }
  .map-toolbar {
    padding: 12px;
  }
  .toolbar-label {
    min-width: 100%;
    margin-bottom: 2px;
  }
  #barcelonaMap {
    height: 420px;
  }
  .map-legend-overlay {
    bottom: 8px;
    left: 8px;
    padding: 6px 10px;
    font-size: 0.7rem;
    gap: 6px;
  }
}

/* ----------------- PROVINCES GRID ----------------- */
.provinces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.province-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.province-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.province-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.province-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.province-badge {
  font-size: 0.75rem;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 500;
}

.province-cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.city-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.city-link:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
  background: #1F293D;
}

.city-link.capital-link {
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  font-weight: 500;
}

.province-all-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  transition: color 0.2s ease;
}

.province-all-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}


