:root {
  --accent: #dc2626;
  --primary: #dc2626;
  --dark: #1f2937;
  --success: #10b981;
  --danger: #dc2626;
  --light: #ffffff;
  --gray-light: #f9fafb;
  --gray: #e5e7eb;
  --box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  --box-shadow-hover: 0 8px 24px rgba(220, 38, 38, 0.25);
}

html {
  margin: 0;
  padding: 0;
  background: #ffffff;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
               'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111827;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.9rem; }

.animated-bg {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.animated-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/img/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(8px) brightness(115%);
  opacity: 0.85;
  z-index: 0;
}

.animated-bg::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatBubbles {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.main-wrapper {
  max-width: 1400px;
  margin: 30px auto 30px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 30px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.container, .row, .col-lg-9, .col-lg-3, main {
  overflow: visible !important;
}

.card {
  overflow: visible !important;
}

.map-card {
  overflow: hidden !important;
}

.map-card .card-body {
  overflow: hidden !important;
}

#bulgaria-map {
  overflow: hidden !important;
  border-radius: 15px;
}

.navbar {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: var(--dark) !important;
  z-index: 1000;
  position: relative;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 100%);
  animation: navbarShine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes navbarShine {
  0%, 100% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20% {
    left: 100%;
    opacity: 1;
  }
  20.1%, 100% {
    opacity: 0;
  }
}

.navbar .container {
  position: relative;
  z-index: 10;
}

.navbar .navbar-collapse,
.navbar .navbar-nav,
.navbar .nav-item,
.navbar .nav-link {
  position: relative;
  z-index: 10;
}

.navbar .dropdown {
  position: relative;
  z-index: 1060;
}

.navbar .dropdown-menu {
  z-index: 2000 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: absolute !important;
  background: white !important;
}

.navbar .dropdown-toggle {
  z-index: 1060;
  position: relative;
}

.navbar .dropdown.show .dropdown-menu {
  display: block;
  z-index: 2000 !important;
}

.nav-link-custom {
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 1.2px !important;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #991b1b);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link-custom:hover {
  color: #dc2626 !important;
  transform: translateY(-2px);
  text-shadow: 2px 2px 4px rgba(220, 38, 38, 0.4);
}

.nav-link-custom:hover::after {
  width: 80%;
}

.navbar .nav-link {
  color: white !important;
}

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

.navbar .btn-accent {
  z-index: 1001;
  position: relative;
}

.navbar .btn-outline-dark {
  border-color: white;
  color: white;
}

.navbar .btn-outline-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.navbar-brand {
  color: white !important;
}

.navbar .badge {
  z-index: 1002;
}

.hero {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 9px;
  padding: 48px 28px;
  color: white;
}

.hero h1, .hero .lead { color: white; }

.hero-slide-small {
  min-height: 250px;
  padding: 40px 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  opacity: 0.5;
}

.carousel-indicators button.active {
  opacity: 1;
  background-color: var(--accent);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.3) !important;
  border-color: var(--accent);
}

.property-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  max-width: 100%;
  width: 100%;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25) !important;
  border-color: var(--accent);
}

.property-card .card-body {
  overflow: hidden;
  max-width: 100%;
  padding: 12px;
}

.property-card .card-body h5,
.property-card .card-body p,
.property-card .card-body div {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.product-img-wrapper,
.property-img-wrapper {
  position: relative;
  overflow: hidden;
}

.product-card .card-img-top {
  object-fit: cover;
  height: 240px;
  transition: transform 0.3s ease;
}

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

.product-card:hover .card-img-top,
.property-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-overlay,
.property-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay,
.property-card:hover .property-overlay {
  opacity: 1;
}

.price-tag {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #2d2d2d;
  display: inline-block;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

.price-tag::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  animation: priceShine 3s infinite;
  pointer-events: none;
}

@keyframes priceShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  10%, 100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.price-tag .currency {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.text-danger.fw-bold, .property-price, .price-box {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  color: #1a1a1a !important;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #2d2d2d;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.5;
  height: 31px;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.text-danger.fw-bold::before, .property-price::before, .price-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  animation: priceShine 3s infinite;
  pointer-events: none;
}

.service-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

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

.sidebar-categories {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(25, 55, 48, 0.25);
  border: 2px solid rgba(20, 40, 35, 0.9);
}

.sidebar-categories h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.sidebar-categories h5 {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border: none;
  text-align: center;
}

.sidebar-categories h5::after {
  display: none;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 8px;
}

.category-list a {
  display: block;
  padding: 10px 15px;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.category-list a:hover {
  background: var(--gray-light);
  color: var(--accent);
  padding-left: 20px;
}

.category-list a.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.cart-product-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--gray);
}

.table {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.table thead {
  background: var(--dark);
  color: white;
  border-bottom: 2px solid var(--accent);
}

.table tbody tr {
  border-bottom: 1px solid var(--gray);
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: var(--gray-light);
}

.table tfoot {
  font-size: 1.1rem;
  background: var(--gray-light);
}

.alert {
  border-radius: 6px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.footer-min {
  color: #6b7280;
  font-size: 11px;
}

.footer-dark {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #9ca3af;
  font-size: 0.75rem;
}

.footer-dark h6 {
  color: white;
  font-size: 0.85rem;
}

.footer-dark h5 {
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  font-size: 0.75rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: white;
}

.product-detail-img img {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.price-detail {
  padding: 24px;
  background: var(--gray-light);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--box-shadow);
}

.product-features {
  padding: 24px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--box-shadow);
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.badge.bg-success {
  background: var(--accent) !important;
}

.text-success {
  color: var(--accent) !important;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: var(--accent);
  font-weight: 500;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.card {
  border-radius: 6px;
}

.hero-full {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 56px 30px;
  background: linear-gradient(120deg, rgba(99,102,241,0.15), rgba(16,185,129,0.08));
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(13, 16, 30, 0.12);
}

.hero-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(600px 300px at 10% 30%, rgba(99,102,241,0.08), transparent 20%),
    radial-gradient(500px 250px at 80% 70%, rgba(236,72,153,0.07), transparent 18%),
    linear-gradient(120deg, rgba(16,185,129,0.02), rgba(99,102,241,0.02));
  animation: heroOverlayFloat 18s linear infinite;
}

.hero-visual {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  background: conic-gradient(from 90deg at 50% 50%, #7c3aed 0deg, #06b6d4 90deg, #f97316 180deg, #ef4444 270deg, #7c3aed 360deg);
  box-shadow: 0 10px 30px rgba(124,58,237,0.18), inset 0 2px 20px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 12% 6% 6% 12%;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 25%),
              radial-gradient(circle at 80% 70%, rgba(0,0,0,0.06), transparent 30%);
  border-radius: 12px;
  filter: blur(8px);
  transform: translateZ(0);
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 6px 28px rgba(7,10,25,0.18);
}

.hero-sub {
  opacity: 0.95;
  max-width: 520px;
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.85);
  color: white;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}

@keyframes heroOverlayFloat {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-8px) translateX(6px) rotate(2deg); }
  50% { transform: translateY(6px) translateX(-6px) rotate(-1deg); }
  75% { transform: translateY(-4px) translateX(4px) rotate(1deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

.hero-full .float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero-full .shape-1 {
  width: 260px; height: 260px; background: rgba(124,58,237,0.18); top: -60px; left: -40px; animation: floatSlow 14s infinite linear;
}
.hero-full .shape-2 {
  width: 180px; height: 180px; background: rgba(6,182,212,0.14); bottom: -40px; right: 40px; animation: floatSlow 17s infinite linear reverse;
}
.hero-full .shape-3 {
  width: 120px; height: 120px; background: rgba(249,115,22,0.12); top: 30%; right: -30px; animation: floatSlow 12s infinite linear;
}

@keyframes floatSlow {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(6px); }
  100% { transform: translateY(0) translateX(0); }
}

@media (max-width: 991px) {
  .hero-visual { height: 220px; }
  .hero-full { padding: 36px 18px; }
}

.region-stats-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.4;
}

.region-item-horizontal,
.city-item-horizontal {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border: 1px solid #9ca3af;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.region-item-horizontal .region-name,
.city-item-horizontal .city-name {
  color: #374151;
  font-weight: 500;
  transition: color 0.25s ease;
}

.region-item-horizontal .badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  margin-left: 4px;
  transition: all 0.25s ease;
}

.region-item-horizontal:hover,
.city-item-horizontal:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
  border-color: #dc2626;
}

.region-item-horizontal:hover .region-name,
.city-item-horizontal:hover .city-name {
  color: white !important;
}

.region-item-horizontal:hover .badge {
  background: white !important;
  color: #dc2626 !important;
}

.region-highlight-nesebar {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.region-highlight-nesebar:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-color: #dc2626;
}

.cities-divider {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #9ca3af 20%,
    #6b7280 50%,
    #9ca3af 80%,
    transparent 100%);
  margin: 1rem 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(107, 114, 128, 0.2);
  position: relative;
}

.cities-divider::before {
  content: '▼';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #6b7280;
  background: white;
  padding: 0 8px;
}

.decorative-divider {
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    #dc2626 15%,
    #991b1b 50%,
    #dc2626 85%,
    transparent 100%);
  margin: 3rem 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  position: relative;
}

.decorative-divider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

@media (max-width: 768px) {
  .main-wrapper {
    margin: 15px;
    padding: 15px;
    border-radius: 8px;
  }

  .hero-slide-small {
    min-height: 200px;
    padding: 25px 20px;
  }

  .product-card .card-img-top,
  .property-card .card-img-top {
    height: 180px;
  }

  .cart-product-img {
    width: 60px;
    height: 45px;
  }

  .sidebar-categories {
    margin-bottom: 20px;
  }

  .col-lg-3 .product-card .card-img-top,
  .col-lg-3 .property-card .card-img-top {
    height: 180px;
  }

  .region-item-horizontal,
  .city-item-horizontal {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

.sidebar-categories label {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-categories .form-control,
.sidebar-categories .form-select {
  font-size: 0.85rem;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-categories .form-control:focus,
.sidebar-categories .form-select:focus {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.sidebar-categories .form-check-label {
  font-size: 0.8rem;
  color: #ffffff;
}

.sidebar-categories .form-check-input {
  border-color: rgba(255, 255, 255, 0.5);
}

.sidebar-categories .form-check-input {
  display: none !important;
}

.sidebar-categories .form-check {
  cursor: pointer;
}

.selected-tag {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(220,38,38,0.25) !important;
}
.selected-tag .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.sidebar-categories .form-check-input:checked {
  background-color: #ffffff;
  border-color: #ffffff;
}

#filters-form .btn-dark,
#filters-form .btn-outline-secondary {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow:
    0 3px 5px rgba(25, 55, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

#filters-form .btn-dark:hover,
#filters-form .btn-outline-secondary:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow:
    0 4px 7px rgba(30, 60, 52, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

#filters-form .btn-dark:active,
#filters-form .btn-outline-secondary:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(25, 55, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-sm.btn-dark {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-color: #991b1b;
  color: white;
  padding: 4px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  height: 31px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
}

.btn-sm.btn-dark:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  border-color: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
}

.btn-sm.btn-dark:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.region-stats .region-item .badge {
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 50%, #ff8c00 100%) !important;
  color: #1a1a1a !important;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #2d2d2d;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.region-stats .region-item .badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  animation: priceShine 3s infinite;
  pointer-events: none;
}

.region-stats .region-item:hover .badge {
  transform: scale(1.05);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.map-card {
  border: 3px solid #dc2626 !important;
  border-radius: 9px;
}

.region-item {
  transition: background-color 0.2s ease;
}

.region-item:hover {
  background-color: var(--gray-light);
}

.footer-col {
  position: relative;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.footer-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent);
}
@media (max-width: 991px) {
  .footer-col:not(:last-child)::after {
    display: none;
  }
  .footer-col:nth-child(2n)::after {
    display: block;
  }
}
@media (max-width: 767px) {
  .footer-col::after {
    display: none !important;
  }
}
footer.footer-dark,
.footer-dark,
footer {
  background: #000000 !important;
  background-color: #000000 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 3rem 0 !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  z-index: 100 !important;
}

.form-check-label.active,
.city-item-horizontal.active,
.region-item-horizontal.active,
.location-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(220,38,38,0.30);
  transition: all 0.18s ease;
}

.form-check-label.active {
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
}

.city-item-horizontal.active, .region-item-horizontal.active {
  padding: 6px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

input[type="checkbox"][name="cities"]:checked + label.form-check-label,
input.city-checkbox[type="checkbox"]:checked + label.form-check-label {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
  color: #fff;
}

.form-check.active {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
  padding: 6px 8px;
  border-radius: 8px;
}

.sidebar-categories .form-check.active {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%) !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(220,38,38,0.30) !important;
}
.sidebar-categories .form-check.active .form-check-label {
  color: #fff !important;
  font-weight: 700 !important;
}
.sidebar-categories .form-check.active .form-check-input {
  border-color: rgba(255,255,255,0.6) !important;
}

@keyframes subtlePulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 4px rgba(220,38,38,0.28);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 20px rgba(220,38,38,0.28);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 4px rgba(220,38,38,0.28);
  }
}

.property-card .btn-sm.btn-dark {
  animation: subtlePulse 3.6s ease-in-out infinite;
  transform-origin: center;
}

