/* ========================= PSYCHOLOGIST LISTING PAGE STYLES ========================= */

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-sm-6,
.col-sm-12,
.col-md-4,
.col-md-8,
.col-lg-3,
.col-lg-4,
.col-lg-9 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Mobile first - all full width */
.col-sm-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Small devices (≥576px) */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.listingPage {
  background-color: #f8f9fc;
  min-height: 100vh;
}

.listingPage .listingMain {
  padding: 20px 0 40px;
}

.listingPage .listingTopSection .title_Wrap {
  padding: 32px 0;
}

.listingPage .listingTopSection .title_Wrap h2 {
  color: rgba(29, 36, 51, 1);
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 40px !important;
}

.listingPage .listingTopSection .filterWrapper ul::-webkit-scrollbar {
  display: none;
}

.listingPage .listingTopSection .filterWrapper ul {
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 0 8px;
  list-style: none;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.listingPage .listingTopSection .filterWrapper ul li button {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e6ef;
  background: #fff;
  border-radius: 10px;
  color: #333;
  text-transform: capitalize;
  white-space: nowrap;
  font-weight: 500;
  cursor: pointer;
}

.filter-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grid-fill" viewBox="0 0 16 16"><path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.filter-icon.all {
  background-color: #fff;
}

.filter-icon.anxiety {
  background-color: #e3dffc;
}

.filter-icon.career {
  background-color: #dceefc;
}

.filter-icon.clinical {
  background-color: #fce3e3;
}

.filter-icon.depression {
  background-color: #e0f2fe;
}

.filter-icon.marital {
  background-color: #fceee3;
}

.filter-icon.rehab {
  background-color: #f5f5f5;
}

.activeCategory {
  background: #0d6efd !important;
  color: white !important;
  border-color: #0d6efd !important;
}

.listingPage .filterSidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.listingPage .filterSidebar .accordion {
  border: 1px solid #e1e6ef;
  border-radius: 20px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.clear-filters-btn {
  width: 100%;
  padding: 12px 20px;
  background-color: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  color: #dc3545;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clear-filters-btn:hover {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.clear-filters-btn svg {
  flex-shrink: 0;
}

.listingPage .filterSidebar .accordion-item {
  border: none;
  border-bottom: 1px solid #e1e6ef;
  padding: 16px 0;
}

.listingPage .filterSidebar .accordion-item:first-child {
  padding-top: 0;
}

.listingPage .filterSidebar .accordion-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.listingPage .filterSidebar .accordion-button {
  padding: 0;
  width: 100%;
  border: none;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-transform: capitalize;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listingPage .filterSidebar .accordion-button::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708 .708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.listingPage .filterSidebar .accordion-button.open::after {
  transform: rotate(180deg);
}

.listingPage .filterSidebar .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding-top 0.35s ease-out;
  padding-top: 0;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.35s ease-out, padding-top 0.35s ease-out, opacity 0.35s ease-out, visibility 0.35s ease-out;
}

.listingPage .filterSidebar .accordion-body.open {
  padding-top: 15px;
  visibility: visible;
  opacity: 1;
}

.listingPage .filterSidebar .accordion-body ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.listingPage .filterSidebar .accordion-body ul li {
  margin: 12px 0;
}

.listingPage .filterSidebar .accordion-body ul li label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.listingPage .filterSidebar input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  outline: none;
  flex-shrink: 0;
}

.listingPage .filterSidebar input[type="radio"]:checked {
  border-color: #0d6efd;
}

.listingPage .filterSidebar input[type="radio"]:checked::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background-color: #0d6efd;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.psychologistBlockId {
  border: 1px solid #e1e6ef;
  border-radius: 20px;
  padding: 24px 20px;
  background: #fff;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.psychologistBlockId:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.psychologistBlockId .imgWrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.psychologistBlockId img,
.psychologistBlockId svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.psychologistBlockId h4 {
  color: #1d2433;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
}

.psychologistBlockId p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  min-height: 63px;
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

.psychologistBlockId ul.language {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 12px 0;
  font-size: 13px;
  color: #777;
  min-height: 20px;
  text-align: center;
  padding: 0;
  list-style: none;
}

.psychologistBlockId ul.language li {
  margin: 0 4px;
  display: inline-block;
}

.psychologistBlockId ul.language li:not(:last-child)::after {
  content: '•';
  margin-left: 8px;
  color: #ccc;
}

.view-profile-btn {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background-color: #0d6efd;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0;
  transition: all 0.2s ease;
}

.view-profile-btn:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.psychologistBlockId .btnsWrap {
  border-top: 1px solid #e1e6ef;
  padding-top: 15px;
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.psychologistBlockId .btnsWrap button {
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.psychologistBlockId .btnsWrap button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.psychologistBlockId .btnsWrap button.chatBlueBtn {
  color: #0d6efd;
}

.psychologistBlockId .btnsWrap button.callBlueBtn {
  color: #198754;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.get-app-modal {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .get-app-modal {
  transform: scale(0.9);
}

.get-app-modal .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #0d6efd;
  cursor: pointer;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.get-app-modal .close-btn:hover {
  background-color: #f0f0f0;
}

.get-app-modal h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1d2433;
}

.get-app-modal p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.8rem;
}

.get-app-modal .app-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
}

.get-app-modal .app-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 42px;
  min-width: 140px;
}

.get-app-modal .app-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.get-app-modal .app-buttons a.google-play {
  background-color: #000;
  color: #fff;
}

.get-app-modal .app-buttons a.app-store {
  background-color: #000;
  color: #fff;
}

.get-app-modal .app-buttons a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.get-app-modal .app-buttons a .store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.get-app-modal .app-buttons a .store-text .small {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.85;
  text-transform: uppercase;
}

.get-app-modal .app-buttons a .store-text .large {
  font-size: 14px;
  font-weight: 600;
}

.no-scroll {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .listingPage .filterSidebar {
    position: static;
    margin-bottom: 20px;
  }
  
  .listingPage .listingTopSection .filterWrapper ul {
    padding-bottom: 16px;
  }
}
