/* =========================================================
   PURSHVEDA CLINICS LISTING SPECIFIC STYLES
   ========================================================= */

/* Theme Colors & Tokens */
:root {
  --pv-card-shadow: 0 10px 30px -10px rgba(17, 28, 36, 0.08);
  --pv-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   SECTION 1: HERO BANNER (Static Hotspots)
   ========================================= */
.clinics-hero {
  background-color: #fafbfc !important;
}



/* =========================================
   SECTION 2: CLINIC SEARCH BAR
   ========================================= */
.search-filter-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}

.search-track-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(17, 28, 36, 0.08);
}

.search-field-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.search-field-wrap i {
  color: #9aa5b1;
  font-size: 1.1rem;
}

.search-field-wrap input,
.search-field-wrap select {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 0.95rem;
  color: var(--navy);
  background: transparent;
}

.search-field-wrap select {
  cursor: pointer;
}

@media (min-width: 992px) {
  .border-end-lg {
    border-right: 1px solid #e7ebf0 !important;
  }
}

/* Custom classes for responsive text in search bar */
.consult-type-short {
  display: none;
}
.consult-type-long {
  display: inline;
}
.search-btn-long {
  display: inline;
}

@media (max-width: 1199px) {
  .consult-type-short {
    display: inline;
  }
  .consult-type-long {
    display: none;
  }
  .search-btn-long {
    display: none;
  }
}

/* Custom scaling for small laptops / iPads (1024px) to fit horizontally */
@media (min-width: 992px) and (max-width: 1199px) {
  .search-track-card {
    padding: 0.75rem 1rem !important;
  }
  .search-field-wrap input,
  .search-field-wrap span,
  #stateSelectBtn,
  #consultTypeSelectBtn {
    font-size: 0.82rem !important;
  }
  .search-field-wrap i {
    font-size: 0.95rem !important;
  }
  .search-field-wrap {
    gap: 0.35rem !important;
  }
  .search-track-card .pv-btn {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.82rem !important;
  }
  #clearFiltersBtn {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 991px) {
  .search-filter-section {
    margin-top: 1.5rem !important;
    padding: 0 1rem;
  }
  .search-track-card {
    border-radius: 16px;
    padding: 1.25rem;
  }
  .search-field-wrap {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
  }

  /* Collapsible Search on Mobile */
  #clinicSearchForm:not(.expanded) .col-12:not(:first-child) {
    display: none !important;
  }

  body {
    padding-bottom: 80px !important;
  }
}

/* =========================================
   SECTION 3: CLINIC MAP SEGMENT
   ========================================= */
.map-section {
  padding: 3rem 0;
  background: #f4f6f8;
}

.map-container {
  height: 400px;
  background-color: #e5e3df;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05), var(--pv-card-shadow);
  border: 1px solid #e2e8f0;
}

/* Vector Map Styling */
.stylized-map-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* Map Markers */
.map-marker {
  position: absolute;
  cursor: pointer;
  z-index: 5;
  transform: translate(-50%, -100%);
  transition: var(--pv-transition);
}

.map-marker .pin-icon {
  font-size: 2.2rem;
  color: var(--pv);
  filter: drop-shadow(0 4px 8px rgba(230, 29, 79, 0.4));
  transition: var(--pv-transition);
}

.map-marker:hover .pin-icon,
.map-marker.active .pin-icon {
  color: var(--navy);
  filter: drop-shadow(0 4px 12px rgba(17, 28, 36, 0.6));
  transform: scale(1.15);
}

/* Map Popovers */
.map-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(17, 28, 36, 0.15);
  padding: 1rem;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(17, 28, 36, 0.05);
}

.map-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

.map-marker.active .map-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.popover-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.popover-body {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.popover-footer {
  margin-top: 0.75rem;
  border-top: 1px solid #f1f3f5;
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
}

.popover-footer a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pv);
  text-decoration: none;
}

.popover-footer a:hover {
  text-decoration: underline;
  color: var(--pv-dark);
}

/* Close button for Popover */
.popover-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #a0aec0;
  font-size: 0.85rem;
  cursor: pointer;
}

.popover-close:hover {
  color: #4a5568;
}

/* =========================================
   SECTION 4: CLINIC LISTING GRID
   ========================================= */
.listing-section {
  padding: 5rem 0;
  background: #fff;
}

.clinic-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: var(--pv-card-shadow);
  transition: var(--pv-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clinic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(17, 28, 36, 0.15);
  border-color: rgba(230, 29, 79, 0.2);
}

.clinic-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.clinic-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--pv-transition);
}

.clinic-card:hover .clinic-img-container img {
  transform: scale(1.05);
}

.clinic-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.clinic-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.clinic-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.clinic-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.clinic-info-list li i {
  color: var(--pv);
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.clinic-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.clinic-tag {
  background-color: #f1f3f5;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
}

.clinic-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid #f1f3f5;
  padding: 1rem 1.5rem 1.5rem;
  background: #fafbfc;
}

.clinic-card-footer .btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: var(--pv-transition);
}

.clinic-card-footer .btn-outline {
  border: 1px solid var(--pv);
  color: var(--pv);
  background: transparent;
}

.clinic-card-footer .btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
}

.clinic-card-footer .btn-solid {
  background-color: var(--pv);
  color: #fff;
  border: 1px solid var(--pv);
}

.clinic-card-footer .btn-solid:hover {
  background-color: var(--pv-dark);
  border-color: var(--pv-dark);
}

/* =========================================
   SECTION 5: WHY CHOOSE PURSHVEDA CLINICS
   ========================================= */
.why-choose-section {
  padding: 5rem 0;
  background: #fafbfc;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--pv-card-shadow);
  transition: var(--pv-transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 29, 79, 0.2);
}

.why-icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--pv);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

/* Recovered Treatments Card styling */
.tr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.tr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(230, 29, 79, 0.15);
  border-color: rgba(230, 29, 79, 0.2);
  color: var(--pv) !important;
}

.tr-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #f8f9fa;
  transition: all 0.3s ease;
}

.tr-card:hover img {
  border-color: var(--pv);
}

.tr-card span {
  font-size: 0.95rem;
  font-weight: 600;
}

.why-card h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .why-card {
    display: flex;
    text-align: left;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .why-icon-wrap {
    margin: 0;
    flex-shrink: 0;
  }
  .why-card-content {
    flex-grow: 1;
  }
}

/* =========================================
   SECTION 6: TREATMENTS AVAILABLE
   ========================================= */
.treatments-section {
  padding: 5rem 0;
  background: #fff;
}

.treatment-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.treatment-card-v {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--pv-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-decoration: none !important;
}

.treatment-card-v:hover {
  border-color: var(--pv-green);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -10px rgba(40, 167, 69, 0.15);
}

.treatment-icon {
  font-size: 2.2rem;
  color: var(--pv-green);
  margin-bottom: 1rem;
  transition: var(--pv-transition);
}

.treatment-card-v:hover .treatment-icon {
  transform: scale(1.1);
}

.treatment-card-v span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 991px) {
  .treatment-grid-8 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .treatment-card-v {
    flex-direction: row;
    padding: 1rem 1.25rem;
    gap: 1rem;
    border-radius: 12px;
  }
  .treatment-icon {
    margin-bottom: 0;
    font-size: 1.6rem;
  }
}

/* =========================================
   SECTION 7: DOCTORS SECTION
   ========================================= */
.doctors-section {
  padding: 5rem 0;
  background: #fafbfc;
  border-top: 1px solid #e9ecef;
}

.doc-card-slider {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: var(--pv-card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doc-headshot {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff0f2;
  border: 3px solid var(--pv);
  margin: 1.5rem auto 0.75rem auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-headshot i.fallback-icon {
  font-size: 2.5rem;
  color: var(--pv);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.doc-details-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doc-details-body h6 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.doc-qualifications {
  font-size: 0.8rem;
  color: var(--pv);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.doc-exp-spec {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  width: 100%;
}

.doc-specializations-pills {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.doc-pill-tag {
  background: #fff0f2;
  color: var(--pv);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 30px;
  border: 1px solid rgba(225, 36, 84, 0.15);
}

.doc-footer-link {
  border-top: 1px solid #f1f3f5;
  padding: 0.8rem 1.25rem;
  text-align: center;
  background: #fafbfc;
}

.doc-footer-link a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pv);
  text-decoration: none;
}

.doc-footer-link a:hover {
  text-decoration: underline;
}

/* =========================================
   SECTION 8: PATIENT TESTIMONIALS
   ========================================= */
.testimonials-section {
  padding: 5rem 0;
  background: #fff;
}

.testi-carousel-card {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 2.5rem 3rem;
  box-shadow: var(--pv-card-shadow);
  text-align: center;
}

.testi-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testi-blockquote {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.testi-author {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.testi-origin {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* =========================================
   SECTION 9: FAQ SECTION
   ========================================= */
.clinics-faq-section {
  padding: 5rem 0;
  background: #f7f9fc;
}

.clinics-faq-section .accordion-item {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.clinics-faq-section .accordion-button {
  font-weight: 600;
  color: #2d3748;
  padding: 1.25rem 1.5rem;
  font-size: 1.02rem;
  transition: var(--pv-transition);
}

.clinics-faq-section .accordion-button:not(.collapsed) {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: var(--pv) !important;
  box-shadow: none;
}

.clinics-faq-section .accordion-button::after {
  background-size: 1rem;
  transition: var(--pv-transition);
}

.clinics-faq-section .accordion-body {
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.6;
  background: #fff;
}

/* =========================================
   SECTION 10: HELP SECTION
   ========================================= */
.support-strip-section {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
}

.support-strip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.support-strip-title h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: #fff;
}

.support-strip-title p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.support-strip-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.support-strip-actions .btn {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: var(--pv-transition);
}

.support-strip-actions .btn-call {
  background-color: #25d366;
  color: #fff;
  border: 1px solid #25d366;
}

.support-strip-actions .btn-call:hover {
  background-color: #20ba5a;
  border-color: #20ba5a;
}

.support-strip-actions .btn-appt {
  background-color: var(--pv);
  color: #fff;
  border: 1px solid var(--pv);
}

.support-strip-actions .btn-appt:hover {
  background-color: var(--pv-dark);
  border-color: var(--pv-dark);
}

.support-strip-actions .btn-online {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

.support-strip-actions .btn-online:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #fff;
}

@media (max-width: 991px) {
  .support-strip-card {
    flex-direction: column;
    text-align: center;
  }
  .support-strip-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .support-strip-actions .btn {
    width: 100%;
  }
}

/* =========================================
   ADDITIONAL MODERN CLINIC LISTING OVERRIDES
   ========================================= */
.tr-card {
  border: 1px solid #e7ebf0 !important;
  transition: var(--pv-transition) !important;
}
.tr-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 15px 35px rgba(17, 28, 36, 0.08) !important;
  border-color: var(--pv) !important;
}
.tr-card .icon-wrap {
  transition: var(--pv-transition) !important;
}
.tr-card:hover .icon-wrap {
  transform: scale(1.1) !important;
}

/* Sticky Mobile CTA styling */
.sticky-bottom-cta {
  box-shadow: 0 -10px 30px rgba(17, 28, 36, 0.08) !important;
  background: #fff;
  border-top: 1px solid #e7ebf0;
}

/* Centering Specialized Care Images */
.category-img-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 60px;
}

.category-img-wrap img {
  display: block !important;
  margin: 0 auto !important;
}

/* Testimonial & Doctor slider pink-theme customizations */
.testimonials-section .slider-arrow,
.doctors-section .slider-arrow {
  color: var(--pv) !important;
  border: 1px solid rgba(225, 36, 84, 0.2) !important;
  background-color: #fff0f2 !important;
  width: 44px;
  height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: var(--pv-transition);
}

.testimonials-section .slider-arrow:hover,
.doctors-section .slider-arrow:hover {
  background-color: var(--pv) !important;
  color: #fff !important;
  border-color: var(--pv) !important;
}

/* Position overrides to pull arrows outside the card boundaries */
.testimonials-section .slider-arrow.left,
.doctors-section .slider-arrow.left {
  left: -25px !important;
}

.testimonials-section .slider-arrow.right,
.doctors-section .slider-arrow.right {
  right: -25px !important;
}

@media (max-width: 1199px) {
  .testimonials-section .slider-arrow.left,
  .doctors-section .slider-arrow.left {
    left: -15px !important;
  }
  .testimonials-section .slider-arrow.right,
  .doctors-section .slider-arrow.right {
    right: -15px !important;
  }
}

@media (max-width: 768px) {
  .testimonials-section .slider-arrow,
  .doctors-section .slider-arrow {
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }
  .testimonials-section .slider-arrow.left,
  .doctors-section .slider-arrow.left {
    left: -5px !important;
  }
  .testimonials-section .slider-arrow.right,
  .doctors-section .slider-arrow.right {
    right: -5px !important;
  }
}

.testimonials-section .ts-card {
  border: 1px solid rgba(225, 36, 84, 0.1) !important;
  box-shadow: 0 4px 15px rgba(225, 36, 84, 0.02) !important;
  transition: var(--pv-transition);
}

.testimonials-section .ts-card:hover {
  border-color: var(--pv) !important;
  box-shadow: 0 8px 25px rgba(225, 36, 84, 0.08) !important;
}

/* Leaflet map custom pin & popup styles */
.pv-map-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-map-marker-pin {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--pv);
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(225, 36, 84, 0.4);
  transition: var(--pv-transition);
}

.pv-map-marker-container:hover .pv-map-marker-pin {
  transform: rotate(-45deg) scale(1.2);
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(17, 28, 36, 0.5);
}

.pv-map-popup-card {
  font-family: 'Poppins', sans-serif;
  padding: 0.25rem;
}

.pv-map-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.pv-map-popup-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.6rem !important;
}

.pv-map-popup-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pv) !important;
  text-decoration: none !important;
  transition: var(--pv-transition);
}

.pv-map-popup-btn:hover {
  color: var(--pv-dark) !important;
  transform: translateX(2px);
}

/* Override default leaflet styling for premium look */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(17, 28, 36, 0.1) !important;
  border: 1px solid rgba(17, 28, 36, 0.05) !important;
  padding: 0.4rem !important;
}

.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
}

/* ============================================================
   NEED ASSISTANCE CTA CARD — RED THEME CLINIC OVERRIDES
   ============================================================ */
.pv-assistance-cta {
  background: linear-gradient(145deg, #e61d4f 0%, #c2133f 60%, #9e0f32 100%) !important;
  border-radius: 20px !important;
  padding: 2rem 1.8rem !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .9rem !important;
  box-shadow: 0 20px 50px -15px rgba(230, 29, 79, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  position: relative !important;
  overflow: hidden !important;
  text-align: center !important;
}

.pv-assistance-cta::before {
  content: '' !important;
  position: absolute !important;
  top: -40px !important;
  right: -40px !important;
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.07) !important;
  pointer-events: none !important;
}

.pv-assistance-cta::after {
  content: '' !important;
  position: absolute !important;
  bottom: -30px !important;
  left: -30px !important;
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  pointer-events: none !important;
}

.pv-assistance-cta h4 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 6px !important;
  line-height: 1.25 !important;
}

.pv-assistance-cta .sub {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.5 !important;
  margin: 0 0 14px !important;
}

.pv-assistance-cta form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  position: relative !important;
  z-index: 1 !important;
}

.pv-assistance-cta .form-control,
.pv-assistance-cta textarea {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  color: #1a202c !important;
  font-size: 0.9rem !important;
  outline: none !important;
  transition: all 0.25s !important;
  font-family: inherit !important;
  resize: none !important;
  box-shadow: none !important;
}

.pv-assistance-cta .form-control:focus,
.pv-assistance-cta textarea:focus {
  border-color: #e61d4f !important;
  box-shadow: 0 0 0 3px rgba(230, 29, 79, 0.15) !important;
}

.pv-assistance-cta .form-check {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 4px 0 !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.pv-assistance-cta .form-check input {
  accent-color: #e61d4f !important;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
}

.pv-assistance-cta .terms {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-align: center !important;
  margin: 4px 0 10px !important;
}

.pv-assistance-cta .terms a {
  color: #fff !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

.pv-assistance-cta .pv-btn-book {
  width: 100% !important;
  height: 48px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: var(--pv) !important; /* Branded primary theme color */
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(230, 29, 79, 0.3) !important;
}

.pv-assistance-cta .pv-btn-book:hover {
  background: #df1b4c !important; /* Darker theme red hover */
  transform: translateY(-1px) !important;
}

.pv-assistance-cta .note {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-align: center !important;
  margin: 10px 0 0 !important;
}

.pv-assistance-cta .note strong {
  color: #fff !important;
}

/* ============================================================
   MAP & CLINIC LISTINGS OVERLAY LAYOUT
   ============================================================ */
.map-listing-combined {
  position: relative;
  padding-bottom: 6rem !important;
}

.map-container-wrap {
  position: relative;
  z-index: 1;
}

.listings-overlay-wrap {
  position: relative;
  z-index: 2;
  margin-top: -240px; /* Float card grid higher on top of Leaflet map */
  padding: 0 15px;
}

/* Ensure the Leaflet controls and popups have correct z-index layered below cards */
#map {
  position: relative;
}

@media (max-width: 991px) {
  .listings-overlay-wrap {
    margin-top: -230px; /* Float cards higher over the map on mobile */
    padding: 0 15px;
  }
  .map-listing-combined {
    padding-bottom: 3rem !important;
  }
}

/* ============================================================
   HERO BANNER OVERLAYS
   ============================================================ */
.hero-desktop-wrap {
  position: relative;
  width: 100%;
}

.hero-desktop-overlay {
  position: absolute;
  top: 64%; /* Centered vertically in the white space below subtitle */
  left: 73%; /* Centered horizontally in the right-side content area */
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1.25rem;
  z-index: 10;
}

/* Base style for hero buttons on desktop */
.hero-desktop-overlay .pv-btn,
.hero-desktop-overlay .btn-pv-outline {
  font-size: 1rem !important;
  padding: 0.75rem 2.2rem !important;
  transition: all 0.25s ease-in-out;
  border-radius: 50px !important;
}

.hero-desktop-overlay .btn-pv-outline {
  border: 2px solid var(--pv) !important;
  color: var(--pv) !important;
  background: transparent !important;
}

.hero-desktop-overlay .btn-pv-outline:hover {
  background: var(--pv) !important;
  color: #fff !important;
}

/* Larger hero buttons for 1440px+ screens */
@media (min-width: 1440px) {
  .hero-desktop-overlay {
    top: 62%;
  }
  .hero-desktop-overlay .pv-btn,
  .hero-desktop-overlay .btn-pv-outline {
    font-size: 1rem !important;
    padding: 0.8rem 2.5rem !important;
  }
}

.hero-mobile-wrap {
  position: relative;
  width: 100%;
}

.hero-mobile-overlay {
  position: absolute;
  bottom: 8%; /* Placed in the white space at the bottom wave */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  width: 90%;
  max-width: 400px;
  justify-content: center;
  z-index: 10;
}

/* ============================================================
   SEARCH FILTER BAR STYLING
   ============================================================ */
.search-field-wrap i {
  color: var(--pv) !important; /* Theme pink for prefix icons */
}

/* Remove all outline borders and box shadows on focus/active */
.search-field-wrap .form-control:focus,
.search-field-wrap .form-select:focus,
.search-field-wrap .btn:focus,
.search-field-wrap .dropdown-toggle:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Style the custom select dropdown list to match brand palette */
.search-field-wrap .dropdown-menu {
  border-radius: 12px;
  padding: 8px 0;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
  margin-top: 8px !important;
}

.search-field-wrap .dropdown-item {
  padding: 8px 16px;
  color: var(--navy) !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-field-wrap .dropdown-item:hover,
.search-field-wrap .dropdown-item:focus,
.search-field-wrap .dropdown-item.active {
  background-color: var(--pv) !important;
  color: #fff !important;
}

.search-field-wrap .dropdown-toggle::after {
  color: var(--pv) !important; /* Branded pink chevron arrow */
  margin-left: 8px;
}

/* Custom Pink Styling for Reset Filter Button */
#clearFiltersBtn {
  border: 1px solid var(--pv) !important;
  color: var(--pv) !important;
  background-color: transparent !important;
  transition: all 0.2s ease-in-out;
}

#clearFiltersBtn:hover {
  background-color: var(--pv) !important;
  color: #fff !important;
}

/* Custom Cursors for click-to-activate map state */
#map {
  cursor: pointer !important;
}
#map.map-active {
  cursor: grab !important;
}

/* Premium Pink Brand View-All Buttons */
.btn-view-all-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.8rem;
  border-radius: 50px;
  border: 2px solid var(--pv) !important;
  color: var(--pv) !important;
  background-color: transparent !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.25s ease-in-out;
}
.btn-view-all-pink:hover {
  background-color: var(--pv) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(225, 36, 84, 0.2) !important;
}
.btn-view-all-pink i {
  transition: transform 0.25s ease-in-out;
}
.btn-view-all-pink:hover i {
  transform: translateX(5px);
}

/* Custom Doctor Slider Card styling */
.doc-slide-card {
  flex: 0 0 285px;
  max-width: 285px;
  scroll-snap-align: start;
  padding: 0.25rem 0.5rem;
}

@media (min-width: 576px) and (max-width: 991px) {
  .doc-slide-card {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 575px) {
  .doc-slide-card {
    flex: 0 0 85%;
    max-width: 85%;
  }
}

@media (min-width: 992px) {
  .doctors-section .slider-arrow {
    display: none !important;
  }
}

/* Hide 3rd clinic card by default in tablet view to avoid a single card on the second row */
@media (min-width: 768px) and (max-width: 991px) {
  #clinicsContainer:not(.search-active) .clinic-card-item:nth-child(3) {
    display: none !important;
  }
}

