/* Find Doctors only: visual system follows the approved red, green, and navy card reference. */
body.landing-mode2 #doctorList.doctor-list {
  align-items: stretch;
  gap: 28px;
}

body.landing-mode2 .public-page-main .doctor-list,
body.landing-mode2 .public-page-main .doctor-results-header {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body.landing-mode2 .public-page-main .doctor-list {
  padding-left: 0;
  padding-right: 0;
}

body.landing-mode2 #doctorList .doctor-card {
  position: relative;
  overflow: hidden;
  padding: 44px 18px 18px;
  border: 1px solid #dce5f0;
  border-radius: 26px;
  background: #fff;
  color: #102f69;
  text-align: left;
  box-shadow: 0 14px 34px rgba(10, 47, 104, 0.12);
  /* 4 cards per row on desktop instead of the default 3-per-row flex-wrap sizing. */
  flex: 1 1 calc(25% - 21px);
  max-width: calc(25% - 21px);
}

@media (max-width: 1200px) {
  body.landing-mode2 #doctorList .doctor-card {
    flex-basis: calc(50% - 14px);
    max-width: calc(50% - 14px);
  }
}

@media (max-width: 560px) {
  body.landing-mode2 #doctorList .doctor-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}


body.landing-mode2 #doctorList .doctor-card-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, #f61d27 0 40%, #00a64f 40% 70%, #06367f 70% 100%);
}

body.landing-mode2 #doctorList .verified-badge {
  position: absolute;
  top: 16px;
  right: 16px;

  display: flex;
  align-items: center;
  gap: 7px;

  width: max-content;
  margin: 0;

  border: 1px solid #ccebd9;
  background: #f1fbf5;
  color: #009846;

  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;

  padding: 6px 12px;
  border-radius: 12px;
  z-index: 3;
}

body.landing-mode2 #doctorList .doctor-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  margin-bottom: 4px;
  padding: 6px 0 0;
}

body.landing-mode2 #doctorList .doctor-avatar {
  flex: 0 0 104px;
  width: 88px;
  height: 118px;
  padding: 3px;
  border-radius: 50%;
  overflow: hidden;

    background: conic-gradient(
        #f51d26 0deg 120deg,
        #00a64f 120deg 240deg,
        #06367f 240deg 360deg
    );

  position: relative;
  top: -8px;
  z-index: 2;
}

body.landing-mode2 #doctorList .doctor-avatar img,
body.landing-mode2 #doctorList .doctor-avatar-placeholder {
  width: 100%;
  height: 100%;
}


body.landing-mode2 #doctorList .doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 3px solid #fff;
    object-fit:cover;
    border-radius:inherit;
}



  body.landing-mode2 #doctorList .doctor-avatar-placeholder {
    position: absolute;
    inset: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef4ff;
    color: #6b87b7;
    font-size: 2rem;
}

body.landing-mode2 #doctorList .doctor-avatar img + .doctor-avatar-placeholder {
    display: none;
}

body.landing-mode2 #doctorList .doctor-avatar.is-placeholder .doctor-avatar-placeholder {
  display: grid;
}

body.landing-mode2 #doctorList .doctor-card-identity {
  min-width: 0;
  flex: 1;
}

body.landing-mode2 #doctorList .doctor-card h3 {
  min-height: 0;
  margin: 0 0 7px;
  color: #07347b;
  font-size: 16px;
font-weight: 700;
line-height: 1.25;
margin: 0 0 6px;
}

body.landing-mode2 #doctorList .doctor-card .specialization {
  display: block;
  min-height: 0;
  margin: 0;
  color: #00a64f;
  font-size: 12px;
font-weight: 700;
line-height: 1.35;
margin-bottom: 4px;
}

body.landing-mode2 #doctorList .doctor-qualification {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

body.landing-mode2 #doctorList .specialization-more {
  color: #52647f;
  white-space: nowrap;
}

body.landing-mode2 #doctorList .doctor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 10px 0 0;
}

body.landing-mode2 #doctorList .doctor-stats > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 32px;
  padding: 3px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  color: #0c367c;
  transition: transform .2s ease,
                box-shadow .2s ease;
  gap: 1px;
}

body.landing-mode2 #doctorList .doctor-stats .stat-value {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}


body.landing-mode2 #doctorList .doctor-stats > span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6,54,127,.08);
}

body.landing-mode2 #doctorList .doctor-stats i {
  flex: 0 0 auto;
  font-size: 0.3rem;
}

body.landing-mode2 #doctorList .doctor-stats b {
  font-size: 0.75rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.landing-mode2 #doctorList .doctor-stats small {
  color: #6b7280;
  font-size: 0.62rem;
  line-height: 1.2;
  white-space: normal;
}

body.landing-mode2 #doctorList .doctor-stats .fa-star {
  color: #f21c25;
}

body.landing-mode2 #doctorList .doctor-stats .fa-users {
  color: #00a64f;
}

body.landing-mode2 #doctorList .doctor-stats .fa-shield {
  color: #06367f;
}


body.landing-mode2 #doctorList .doctor-details {
    display: flex;
flex-direction: column;
gap: 12px;
}

body.landing-mode2 #doctorList .detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.landing-mode2 #doctorList .detail-row>i {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f2f7ff;
  color: #073d92;
  font-size: 0.9rem;
  flex-shrink: 0;
}

body.landing-mode2 #doctorList .detail-row.fee>i {
  background: #effaf3;
  color: #00a64f;
}

body.landing-mode2 #doctorList .detail-row.clinic>i {
  background: #fff1f1;
  color: #f21c25;
}

body.landing-mode2 #doctorList .detail-row span {
  min-width: 0;
  flex: 1;
    display: flex;
    flex-direction: column;
}

body.landing-mode2 #doctorList .detail-row strong,
body.landing-mode2 #doctorList .detail-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing-mode2 #doctorList .detail-row strong {
  color: #0b3477;
  font-size: 0.9rem;
  font-weight:700;
    line-height:1.25;
}

body.landing-mode2 #doctorList .detail-row small {
  margin-top: 2px;
  color: #68758b;
  font-size: 0.8rem;
  line-height:1.35;
}

body.landing-mode2 #doctorList .clinic-location {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.landing-mode2 #doctorList .clinic-location small {
  min-width: 0;
}

body.landing-mode2 #doctorList .view-map-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #00a64f;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

body.landing-mode2 #doctorList .view-map-link:hover {
  color: #008f43;
  text-decoration: underline;
}


body.landing-mode2 #doctorList .doctor-card .doctor-bio {
  min-height: 42px;
  margin: 14px 0;
  color: #63718a;
  font-size: 0.8rem;
  line-height: 1.4;
}

body.landing-mode2 #doctorList .doctor-card .doctor-bio.is-empty {
  color: #8a96a8;
  font-style: italic;
}

body.landing-mode2 #doctorList .doctor-card .availability {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 12px;
  margin: 0 0 10px;
  border: 1px solid #d2edda;
  border-radius: 14px;
  background: #f1fbf5;
  color: #009846;
}
/*
body.landing-mode2 #doctorList .availability i{
    flex-shrink:0;
    font-size:20px;
    color:#00a64f;
}
    */

body.landing-mode2 #doctorList .availability > i {
    flex-shrink: 0;
    font-size: 16px;
    color: #00a64f;
}

body.landing-mode2 #doctorList .availability strong,
body.landing-mode2 #doctorList .availability small {
  display: block;
}

body.landing-mode2 #doctorList .availability strong {
  font-size: 0.78rem;
  /*text-transform: uppercase;*/
  color:#009846;
    font-weight: 700;
}

body.landing-mode2 #doctorList .availability small {
  margin-top: 3px;
 /* color: #60718a; */
  font-size: 0.62rem;
  color:#4f6d5d;
}

body.landing-mode2 #doctorList .doctor-card .primary-btn {
  min-height: 32px;
  border-radius: 8px;
  background: linear-gradient(105deg, #06367f, #0a4ba1);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
        transform .2s ease,
        box-shadow .2s ease;
}

body.landing-mode2 #doctorList .doctor-card .primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(6,54,127,.25);
}

body.landing-mode2 #doctorList .card-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 6px;
}

body.landing-mode2 #doctorList .card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fff;
  color: #073d92;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

body.landing-mode2 #doctorList .card-action > i {
    display: grid;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    font-size: 0.65rem;
    color: #fff;
}

body.landing-mode2 #doctorList .card-action:hover {
    background: #f5f9ff;
    border-color: #0a4ba1;
    transform: translateY(-1px);
}

body.landing-mode2 #doctorList .call-action > i {
  background: #e51c26;
}

/* .profile-action i {color} alone loses to the #doctorList > i ID rule above,
   leaving the icon circle with no background — give it one to match the button color. */
body.landing-mode2 #doctorList .profile-action > i {
  background: #0b4da2;
  color: #fff;
}

.call-action i{
    color:#dc2626;
}

.call-action:disabled{
    color:#9ca3af;
}

.call-action:disabled i{
    color:#9ca3af;
}

.profile-action{
    color:#0b4da2;
}

.profile-action i{
    color:#0b4da2;
}



body.landing-mode2 #doctorList .card-action:disabled{
    border-color:#dce5f0;
    background:#fff;
    color:#9aa5b5;
    cursor:not-allowed;
}

body.landing-mode2 #doctorList .card-action:disabled > i{
    background:#9aa5b5;
}

@media (max-width: 480px) {
  body.landing-mode2 #doctorList .doctor-card {
    padding: 44px 19px 19px;
  }

  body.landing-mode2 #doctorList .doctor-avatar {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }

  body.landing-mode2 #doctorList .doctor-stats {
    gap: 6px;
  }

  body.landing-mode2 #doctorList .card-secondary-actions {
    grid-template-columns: 1fr;
  }
}

.detail-row.fee {
    display: flex;
    align-items: center;
}

body.landing-mode2 #doctorList .doctor-details .detail-row.fee {
    margin: 0;
}

.detail-row.fee .fee-content{
    flex:1;
    display:flex;
    flex-direction:column;
}

.fee-label{
    flex:1;
    font-weight:700;
}

.fee-value{
    white-space:nowrap;
    font-size:14px;
}

.detail-row.fee .fee-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 0px;
}

body.landing-mode2 #doctorList .detail-row.fee .fee-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
    color: #16a34a;
    white-space:nowrap;
}

@media (max-width:380px){
    body.landing-mode2 #doctorList .card-secondary-actions{
        grid-template-columns:1fr;
    }
}

body.landing-mode2 #doctorList .doctor-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Call Now popup — reuses .popup-overlay/.popup-box/.close-btn from popup.css. */
#callDoctorOverlay .popup-box {
  width: min(92vw, 460px);
    max-width: 460px;
    padding: 28px 30px 30px;
    border-radius: 16px;
    border: 1px solid #dfe8f2;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(11, 63, 117, 0.18);
}

#callDoctorOverlay #callDoctorName {
  margin: 0 0 4px;
    color: #0b3f75;
    font-size: 23px;
    font-weight: 700;
}

#callDoctorOverlay .call-doctor-specialization {
 margin: 0 0 20px;
    color: #0aa864;
    font-size: 14px;
    font-weight: 600;
}

#callDoctorOverlay .call-doctor-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: #334155;
    font-size: 0.9rem;
}


#callDoctorOverlay .call-doctor-details i {
    width: 20px;
    margin-top: 2px;
    text-align: center;
    font-size: 16px;
    color: #0b4da2;
}

/* Hospital / Clinic icon — BRAND RED */
#callDoctorOverlay .call-doctor-details p:first-child i {
    color: #f21c25;
}


/* Location icon — BRAND BLUE */
#callDoctorOverlay .call-doctor-details p:nth-child(2) i {
    color: #0b4da2;
}



/* Phone is the final focal element — larger, centered, no Call Now link. */
#callDoctorOverlay .call-doctor-phone {
    display: flex;

    /* IMPORTANT: icon + number SAME ROW */
    flex-direction: row;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin: 30px 0 6px;

    text-align: center;
}


#callDoctorOverlay .call-doctor-phone i {
    color: #00a64f;

    font-size: 30px;

    flex-shrink: 0;
}

#callDoctorOverlay .call-doctor-phone span {
    color: #f21c25;

    font-size: 26px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;
}

#callDoctorOverlay .close-btn {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f1f5f9;
    color: #173a5e;
}

#callDoctorOverlay .close-btn:hover {
    background: #e2e8f0;
}

/* =========================================================
   COMPACT DOCTOR RESULTS HEADER
========================================================= */

body.landing-mode2 .doctor-results-header {
  width: 100%;
  max-width: none;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin: 20px auto 24px;
  padding: 16px 0;

  box-sizing: border-box;

  background: #ffffff;

  border-top: 1px solid #dfe8f2;
  border-bottom: 1px solid #dfe8f2;
  border-radius: 14px;

  box-shadow: 0 6px 20px rgba(11, 63, 117, 0.06);
}

body.landing-mode2 .doctor-results-text {
  min-width: 0;
}

body.landing-mode2 #results-title {
  margin: 0;

  color: #0b3f75;

  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

body.landing-mode2 #results-description {
  margin: 4px 0 0;

  color: #6a788c;

  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}

body.landing-mode2 .doctor-results-count {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 90px;

  padding: 8px 14px;

  background: #eef9f3;
  color: #008f49;

  border: 1px solid #caebd8;
  border-radius: 999px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;
}

body.landing-mode2 .doctor-results-count.is-loading {
  background: #f1f5fa;
  color: #718096;
  border-color: #dce5ef;
}

@media (max-width: 600px) {
  body.landing-mode2 .doctor-results-header {
    width: 100%;

    align-items: flex-start;
    flex-direction: column;

    gap: 10px;

    margin: 16px auto 20px;
    padding: 14px 0;
  }

  body.landing-mode2 #results-title {
    font-size: 18px;
  }

  body.landing-mode2 .doctor-results-count {
    min-width: 0;
  }
}

/* Result count and reset actions */

body.landing-mode2 .doctor-results-actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;
}

body.landing-mode2 .doctor-reset-button {
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 7px 14px;

  background: #ffffff;
  color: #0b4b96;

  border: 1px solid #b9cde5;
  border-radius: 999px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

body.landing-mode2 .doctor-reset-button:hover {
  background: #edf5ff;
  border-color: #0a58ca;
  transform: translateY(-1px);
}

body.landing-mode2 .doctor-reset-button:focus-visible {
  outline: 3px solid rgba(10, 88, 202, 0.22);
  outline-offset: 2px;
}

body.landing-mode2 .doctor-reset-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

body.landing-mode2 .doctor-reset-button[hidden] {
  display: none;
}