.directory-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.directory-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}
.directory-hero .directory-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -0.5px;
}
.directory-hero .directory-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}
.directory-hero .hero-stats {
  position: relative;
}
.directory-hero .hero-stats .hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 24px;
  border-radius: 50px;
}
.directory-hero .hero-stats .hero-stat .hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e74c3c;
}
.directory-hero .hero-stats .hero-stat .hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.directory-search-section {
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
.directory-search-section .search-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.directory-search-section .search-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}
.directory-search-section .search-label i {
  color: #e74c3c;
  margin-right: 4px;
}
.directory-search-section .search-input {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.directory-search-section .search-input:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.directory-search-section .btn-clear-filters {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: #6c757d;
  transition: all 0.2s;
  height: 100%;
}
.directory-search-section .btn-clear-filters:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.results-bar .results-count {
  font-size: 0.9rem;
  color: #6c757d;
}

.directory-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.directory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(231, 76, 60, 0.2);
}
.directory-card:hover .card-cover-overlay {
  background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.5));
}
.directory-card:hover .btn-view-profile {
  background: #e74c3c;
  color: #fff;
}
.directory-card .card-cover {
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}
.directory-card .card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.3));
  transition: background 0.3s;
}
.directory-card .card-avatar {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  background: #fff;
}
.directory-card .card-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.directory-card .card-body-content {
  padding: 40px 16px 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.directory-card .card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.directory-card .card-occupation {
  font-size: 0.8rem;
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.directory-card .card-location {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 8px;
}
.directory-card .card-location i {
  color: #e74c3c;
  font-size: 0.7rem;
}
.directory-card .card-description {
  font-size: 0.8rem;
  color: #8c8c8c;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}
.directory-card .card-action {
  margin-top: auto;
}
.directory-card .btn-view-profile {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f8f9fa;
  color: #495057;
  transition: all 0.25s;
}
.directory-card .btn-view-profile i {
  margin-right: 4px;
}

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.profile-modal-panel {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  position: relative;
  border-radius: 20px 20px 0 0;
}

.modal-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.4));
  border-radius: 20px 20px 0 0;
}

.modal-avatar {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 2;
  background: #fff;
}
.modal-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.modal-body-content {
  padding: 50px 24px 24px;
  text-align: center;
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.modal-occupation {
  font-size: 0.95rem;
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-location {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 16px;
}
.modal-location i {
  color: #e74c3c;
}

.modal-description {
  text-align: left;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 16px;
}

.modal-section {
  text-align: left;
  margin-bottom: 16px;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f0f0f0;
}
.modal-section-title i {
  color: #e74c3c;
  margin-right: 6px;
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid rgba(231, 76, 60, 0.15);
  color: #c0392b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.85rem;
}
.product-item .product-price {
  font-weight: 700;
  color: #e74c3c;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.btn-action {
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-action i {
  margin-right: 6px;
}

.btn-action-primary {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.btn-action-primary:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
  transform: translateY(-1px);
}

.btn-action-success {
  background: transparent;
  color: #28a745;
  border-color: #28a745;
}
.btn-action-success:hover {
  background: #28a745;
  color: #fff;
  transform: translateY(-1px);
}

.btn-action-secondary {
  background: transparent;
  color: #6c757d;
  border-color: #6c757d;
}
.btn-action-secondary:hover {
  background: #6c757d;
  color: #fff;
  transform: translateY(-1px);
}

.modal-branding {
  margin-top: 16px;
  color: #adb5bd;
  font-size: 0.75rem;
}

.directory-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  padding: 60px 0;
  margin-top: 40px;
}
.directory-cta h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.directory-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.directory-cta .btn-cta {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
}
.directory-cta .btn-cta:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}
.directory-cta .btn-cta i {
  margin-right: 8px;
}

.directory-content {
  padding: 20px 0;
  min-height: 60vh;
  background: #fafbfc;
  color: #333;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.empty-state .empty-icon i {
  font-size: 2rem;
  color: #e74c3c;
}
.empty-state h5 {
  font-weight: 700;
  color: #1a1a2e;
}
.empty-state p {
  color: #6c757d;
}

body.modal-open-directory {
  overflow: hidden;
}

.directory-loading-more {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
}

.directory-spinner-lg {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid #e74c3c;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinLoader 0.75s linear infinite;
}

.loading-text {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.end-of-results {
  font-size: 0.85rem;
  color: #adb5bd;
  font-style: italic;
  padding: 12px 0;
}

.directory-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e74c3c;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinLoader 0.75s linear infinite;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}
.btn-outline-primary-custom {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-primary-custom:hover {
  background: #e74c3c;
  color: #fff;
}
.btn-outline-primary-custom i {
  margin-right: 6px;
}

.search-input {
  display: block;
  width: 100%;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #fff;
  color: #333;
  outline: none;
  -webkit-appearance: none;
}
.search-input:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.business-directory-wrapper nav[role=navigation] {
  display: flex;
  justify-content: center;
}
.business-directory-wrapper nav[role=navigation] .pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}
.business-directory-wrapper nav[role=navigation] .page-item .page-link {
  display: block;
  padding: 8px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.business-directory-wrapper nav[role=navigation] .page-item .page-link:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.business-directory-wrapper nav[role=navigation] .page-item.active .page-link {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.business-directory-wrapper nav[role=navigation] .page-item.disabled .page-link {
  color: #adb5bd;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .directory-hero {
    padding: 100px 0 50px;
  }
  .directory-hero .directory-hero-title {
    font-size: 2rem;
  }
  .directory-hero .directory-hero-subtitle {
    font-size: 1rem;
  }

  .directory-search-section {
    margin-top: -20px;
  }
  .directory-search-section .search-card {
    padding: 16px;
  }

  .profile-modal-panel {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }

  .profile-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn-action {
    width: 100%;
  }

  .directory-cta {
    padding: 40px 0;
  }
  .directory-cta h3 {
    font-size: 1.4rem;
  }
}
@media (max-width: 576px) {
  .directory-card .card-cover {
    height: 110px;
  }
}
.banner-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}
.banner-section .main-banner.left-curve-1 {
  display: none !important;
}
.banner-section .act-now {
  background: #e74c3c !important;
  border-color: #e74c3c !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}
.banner-section .act-now:hover {
  background: #c0392b !important;
}
