  :root {
    --primary-color: #7b001c;
    --primary-hover: #5a0014;
    --primary-light: rgba(123, 0, 28, 0.1);
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --card-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  }

  body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
  }

  .active_title {
    color: #424141;
  }

  .navbar {
    background: var(--bg-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
  }

  .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a0030 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
  }

  .search-card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
  }

  .search-card .card-header {
    background: var(--bg-color);
    border-bottom: 2px solid var(--primary-light);
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
  }

  .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 0, 28, 0.3);
  }

  .btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
  }

  .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
  }

  .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(123, 0, 28, 0.1);
  }

  .professional-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
  }

  .professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .professional-card .card-body {
    padding: 1.5rem;
  }

  .rating-stars {
    color: #ffc107;
  }

  .badge-primary {
    background: rgba(90, 0, 20, 0.329);
    color: #000;
  }

  .location-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    margin: 0.25rem;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .location-badge:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
  }

  .category-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 3px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .category-card:hover {
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .category-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
  }

  .filter-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    display: inline-flex;
    align-items: center;
  }

  .filter-tag .close {
    margin-left: 0.5rem;
    font-size: 1.2rem;
  }

  .results-count {
    color: var(--primary-color);
    font-weight: 600;
  }

  .pagination .page-link {
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    margin: 0 0.25rem;
    border-radius: 8px;
  }

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

  .professional-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
  }

  .empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {

    .search-card .card-header h4 {
      font-size: 16px;
      font-weight: bold;

    }
  }

  /* Owl Carousel Custom Styling */
  .location-categories-carousel {
    padding: 7px 0 15px;
  }

  .location-categories-carousel .item {
    padding: 0 5px;
  }


  /* Owl Carousel Navigation */
  .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }

  .owl-nav button {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .owl-nav button:hover {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
  }

  .owl-nav button span {
    font-size: 24px;
    line-height: 1;
  }

  .owl-nav .disabled {
    opacity: 0.3;
    cursor: default;
  }

  /* Owl Carousel Dots */
  .owl-dots {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    margin-top: 15px !important;
  }

  .owl-dot {
    display: inline-block;
    margin: 0 4px;
  }

  .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ddd !important;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
  }

  .owl-dot.active span {
    background: #007bff !important;
    transform: scale(1.2);
  }

  .owl-dot:hover span {
    background: #007bff !important;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .category-card {
      min-height: 90px;
      padding: 15px !important;
    }

    .category-card h6 {
      font-size: 14px;
    }

    .category-card p {
      font-size: 12px;
    }

    .category-count {
      font-size: 12px;
      min-width: 28px;
    }

    .owl-nav button {
      width: 35px;
      height: 35px;
    }

    .owl-nav button span {
      font-size: 20px;
    }
  }

  @media (max-width: 576px) {
    .owl-nav {
      display: none;
      /* Hide arrows on very small screens */
    }
  }
















  /* Professional Modal Custom Navigation */
  .professional-modal-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid var(--border-color);
    background-color: transparent;
  }

  .professional-modal-nav-item {
    margin-bottom: -2px;
  }

  .professional-modal-nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
  }

  .professional-modal-nav-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-color: transparent;
    text-decoration: none;
  }

  .professional-modal-nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
    background-color: transparent;
  }

  .professional-modal-nav-link.active:hover {
    color: var(--primary-color);
    background-color: transparent;
  }

  /* Tab content */
  .professional-tab-content {
    padding: 0 0.5rem;
  }

  .professional-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
  }

  .professional-tab-pane.active {
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Tab indicator animation */
  .professional-modal-nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

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

  .professional-modal-nav-link.active::after {
    width: 100%;
  }

  /* Badge in tab */
  .professional-modal-nav-link .tab-badge {
    margin-left: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
  }

  /* Icon styling */
  .professional-modal-nav-link i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
  }

  .professional-modal-nav-link:hover i {
    transform: scale(1.1);
  }

  .professional-modal-nav-link.active i {
    color: var(--primary-color);
  }

  /* Responsive */
  @media (max-width: 768px) {
    .professional-modal-nav {
      flex-wrap: nowrap;
      overflow-x: auto;
      white-space: nowrap;
      margin-bottom: 1rem;
      -webkit-overflow-scrolling: touch;
    }

    .professional-modal-nav::-webkit-scrollbar {
      height: 3px;
    }

    .professional-modal-nav::-webkit-scrollbar-track {
      background: var(--border-color);
    }

    .professional-modal-nav::-webkit-scrollbar-thumb {
      background: var(--primary-color);
      border-radius: 3px;
    }

    .professional-modal-nav-item {
      flex: 0 0 auto;
    }

    .professional-modal-nav-link {
      padding: 0.75rem 1rem;
      font-size: 0.9rem;
    }

    .professional-modal-nav-link i {
      font-size: 0.85rem;
      margin-right: 0.375rem;
    }
  }

  @media (max-width: 480px) {
    .professional-modal-nav-link {
      padding: 0.625rem 0.75rem;
      font-size: 0.85rem;
    }

    .professional-modal-nav-link i {
      font-size: 0.8rem;
      margin-right: 0.25rem;
    }

    .professional-tab-content {
      padding: 0;
    }
  }

  /* Dark mode support (optional) */
  @media (prefers-color-scheme: dark) {
    .professional-modal-nav {
      border-bottom-color: #444;
    }

    .professional-modal-nav-link {
      color: #e0e0e0;
    }

    .professional-modal-nav-link:hover {
      color: var(--primary-color);
      background-color: rgba(123, 0, 28, 0.2);
    }

    .professional-modal-nav-link.active {
      color: var(--primary-color);
      border-bottom-color: var(--primary-color);
    }
  }


  /* Modal enhancements */
  .modal-xl {
    max-width: 1200px;
  }

  .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 2rem !important;
    /* Add padding to modal body */
  }

  /* Remove p-0 from modal body if it exists in HTML */
  .modal-body.p-0 {
    padding: 2rem !important;
  }

  /* Tab styling */
  .nav-tabs {
    border-bottom: 2px solid var(--primary-light);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .nav-tabs .nav-link {
    border: none;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    margin: 0 0.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
  }

  .nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
    background-color: var(--primary-light);
  }

  .nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
    font-weight: 600;
  }

  /* Content inside tabs */
  .tab-content {
    padding: 0 0.5rem;
  }

  .tab-pane {
    animation: fadeIn 0.3s ease-in;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Star rating */
  .star-rating i {
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 2px;
  }

  .star-rating i:hover {
    transform: scale(1.2);
  }

  .star-rating i.active {
    color: #ffc107;
  }

  /* Ratings list */
  #ratingsContainer {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
  }

  /* Custom scrollbar for ratings */
  #ratingsContainer::-webkit-scrollbar {
    width: 6px;
  }

  #ratingsContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  #ratingsContainer::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
  }

  .rating-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .rating-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Progress bars */
  .progress {
    background-color: #e9ecef;
    height: 10px;
    border-radius: 5px;
    margin: 0.5rem 0;
  }

  .progress-bar {
    border-radius: 5px;
    background-color: #ffc107;
  }

  /* Card styling in modal */
  .modal-body .card {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
  }

  .modal-body .card:last-child {
    margin-bottom: 0;
  }

  .modal-body .card-body {
    padding: 1.5rem;
  }

  /* Badge styling */
  .modal-body .badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 20px;
  }

  /* Form elements in modal */
  .modal-body .form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .modal-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
  }

  /* Button styling in modal */
  .modal-body .btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .modal-body .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }

  .modal-body .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* Sticky sidebar */
  .sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .modal-xl {
      margin: 10px;
      max-width: calc(100% - 20px);
    }

    .modal-body {
      padding: 1.5rem !important;
      max-height: 60vh;
    }

    .nav-tabs {
      margin-bottom: 1rem;
      padding: 0;
    }

    .nav-tabs .nav-link {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
      margin: 0 0.125rem;
    }

    #ratingsContainer {
      max-height: 300px;
    }

    .modal-body .card-body {
      padding: 1.25rem;
    }

    .sticky-top {
      position: static;
    }
  }

  @media (max-width: 576px) {
    .modal-body {
      padding: 1rem !important;
    }

    .nav-tabs .nav-link {
      padding: 0.4rem 0.75rem;
      font-size: 0.85rem;
    }

    .modal-body .card-body {
      padding: 1rem;
    }

    .professional-details .row {
      margin-left: -10px;
      margin-right: -10px;
    }

    .professional-details .col-md-8,
    .professional-details .col-md-4 {
      padding-left: 10px;
      padding-right: 10px;
    }
  }

  /* Additional spacing for content sections */
  .professional-details h6 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
  }

  .professional-details p {
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .professional-details .text-muted {
    color: #6c757d !important;
  }

  /* Rating summary styling */
  .rating-summary {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .rating-summary .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
  }

  /* Contact info styling */
  .contact-info i {
    min-width: 24px;
    color: var(--primary-color);
  }

  /* Fix for modal header on mobile */
  .modal-header {
    padding: 1rem 1.5rem;
  }

  @media (max-width: 768px) {
    .modal-header {
      padding: 0.75rem 1rem;
    }

    .modal-title {
      font-size: 1.1rem;
    }
  }