/* Layout-only corrections for shared frontend listing components. */

/* Keep homepage package cards fully visible and aligned. */
.home section.packeg .items {
  align-items: stretch;
  min-height: 205px;
  margin-bottom: 10px;
  overflow: visible;
}

.home section.packeg .items > .rolling,
.home section.packeg .items .slick-list,
.home section.packeg .items .slick-track,
.home section.packeg .items .slick-slide {
  height: 205px !important;
  min-height: 205px !important;
  box-sizing: border-box;
}

.home section.packeg .items > .rolling .main,
.home section.packeg .items > .rolling .service,
.home section.packeg .items .slick-slide .main,
.home section.packeg .items .slick-slide .service {
  height: 205px !important;
  min-height: 205px !important;
  box-sizing: border-box;
}

.home section.packeg .items .slick-list {
  overflow: visible !important;
  padding: 0 !important;
}

.home section.packeg .items .slick-track {
  display: flex !important;
  align-items: stretch;
}

.home section.packeg .items > .rolling,
.home section.packeg .items .slick-slide {
  display: flex !important;
}

.home section.packeg .items > .rolling .main,
.home section.packeg .items > .rolling .service,
.home section.packeg .items .slick-slide .main,
.home section.packeg .items .slick-slide .service {
  display: flex;
  width: 100%;
  flex: 1 1 auto;
}

.home section.packeg .items > .rolling .service,
.home section.packeg .items .slick-slide .service {
  flex-direction: column;
  overflow: hidden !important;
}

.home section.packeg .items > .rolling .field-content2,
.home section.packeg .items .slick-slide .field-content2 {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.home section.packeg .items > .rolling .title,
.home section.packeg .items .slick-slide .title {
  display: block;
  flex: 0 0 auto;
  min-height: 19px;
  line-height: 1.3;
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home section.packeg .items > .rolling .call-btn,
.home section.packeg .items .slick-slide .call-btn {
  position: static !important;
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  margin-top: auto !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.home section.packeg .items > .rolling .call-btn a,
.home section.packeg .items .slick-slide .call-btn a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 33px;
  box-sizing: border-box;
  padding: 8px 5px !important;
  white-space: nowrap;
}

/* Present the health-checkup test list as horizontal pill filters. */
.home .wrapper {
  width: 100%;
  margin: 18px auto 28px;
  overflow: visible !important;
}

.home .wrapper > .icon {
  display: none !important;
}

.home .wrapper .tabs_box {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 0 4px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  list-style: none;
  white-space: nowrap;
  scrollbar-width: thin;
}

.home .wrapper .tabs_box .tab {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid #e3e8eb;
  border-radius: 999px;
  background: #ffffff;
  color: #4c6174;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(40, 39, 48, 0.1);
}

.home .wrapper .tabs_box .tab.active,
.home .wrapper .tabs_box .tab:hover {
  border-color: #16a7b7;
  background: #eefafb;
  color: #004368;
}

@media (max-width: 767px) {
  .home section.packeg .items {
    min-height: 0;
  }

  .home section.packeg .items .slick-list,
  .home section.packeg .items .slick-track,
  .home section.packeg .items > .rolling,
  .home section.packeg .items .slick-slide,
  .home section.packeg .items > .rolling .main,
  .home section.packeg .items > .rolling .service,
  .home section.packeg .items .slick-slide .main,
  .home section.packeg .items .slick-slide .service {
    height: auto !important;
    min-height: 0 !important;
  }

  .home section.packeg .items .slick-slide,
  .home section.packeg .items > .rolling,
  .home section.packeg .items > .rolling .main,
  .home section.packeg .items > .rolling .service,
  .home section.packeg .items .slick-slide .main,
  .home section.packeg .items .slick-slide .service {
    display: block !important;
  }

  .home section.packeg .items > .rolling {
    width: 100% !important;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
  }

  .home section.packeg .items > .rolling .main,
  .home section.packeg .items > .rolling .service,
  .home section.packeg .items > .rolling .field-content2 {
    width: 100%;
    box-sizing: border-box;
  }

  .home section.packeg .items .slick-slide .field-content2 {
    height: auto !important;
    min-height: 0;
  }
}

#cityIconPopup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#cityIconPopup.openCityBlock,
#cityIconPopup.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#cityIconPopup .cityIconPopup_body {
  width: min(600px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  margin: 0;
  overflow-y: auto;
  box-sizing: border-box;
}

#cityIconPopup ul.cityIcon,
#cityIconPopup ul.secondcityIcon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#cityIconPopup ul.cityIcon li,
#cityIconPopup ul.secondcityIcon li {
  width: auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

#cityIconPopup ul.cityIcon li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

#cityIconPopup .citIocn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

#cityIconPopup .citIocn img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

#cityIconPopup ul.secondcityIcon {
  max-height: 418px;
  overflow-y: auto;
  align-content: start;
}

.hospital-listings > .container,
.hospital-listings .row {
  width: 100%;
}

.hospital-listings .row {
  align-items: stretch;
  row-gap: 20px;
}

.hospital-listings .col-md-6 {
  display: flex;
}

.hospital-listings .hospital-card {
  width: 100%;
  min-height: 235px;
  height: auto;
  box-sizing: border-box;
}

.hospital-listings .hospital-logo {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.hospital-listings .hospital-info {
  min-width: 0;
  padding-bottom: 46px;
}

.hospital-listings .hospital-info h3,
.hospital-listings .hospital-info p,
.hospital-listings .google-map-link {
  overflow-wrap: anywhere;
}

.hospital-listings .google-map-link {
  display: inline-block;
}

/* Restore the desktop hospital-list card layout after the page-local migration CSS. */
.lablist_wrapper {
  background: #f4f7f8;
  margin-top: 0;
  padding: 18px 0 45px;
}

.lablist_wrapper > .container {
  max-width: 1240px;
}

.lablist_wrapper .lab_left {
  float: none;
  margin-top: 0;
}

.hospital-listings .col-md-6 {
  display: flex;
  padding-right: 12px;
  padding-left: 12px;
}

.hospital-listings .hospital-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 235px;
  min-height: 235px;
  margin: 10px 0;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hospital-listings .hospital-logo {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  margin: 0 20px 0 0;
  object-fit: contain;
  border-radius: 50%;
}

.hospital-listings .hospital-info {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 46px;
}

.hospital-listings .hospital-info h3 {
  margin: 0 0 10px;
  color: #16a7b7;
  font-size: 20px;
}

.hospital-listings .hospital-info p {
  margin: 0 0 6px;
  color: #555;
  font-size: 15px;
}

.hospital-listings .book-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 30%;
  padding: 10px 20px;
  box-sizing: border-box;
  border-radius: 5px;
  background: #e8571e;
  color: #fff;
  text-align: center;
}

@media (max-width: 767px) {
  .lablist_wrapper {
    padding: 18px 0 30px;
  }

  .hospital-listings .col-md-6 {
    width: 100%;
  }

  .hospital-listings .hospital-card {
    height: auto;
    min-height: 265px;
  }

  .hospital-listings .hospital-logo {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    margin-right: 12px;
  }

  .hospital-listings .book-btn {
    width: calc(100% - 40px);
  }
}

/* Package details: compact test-parameter panel without the legacy yellow header. */
#height .package-test-details {
  min-height: 0 !important;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d5e4e9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 67, 104, 0.08);
}

#height .package-test-details > .row {
  width: 100%;
  margin: 0;
}

#height .package-test-details .ctmblock {
  width: 100%;
  margin: 0;
  padding: 15px 20px;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #004368, #0f7889);
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

#height .package-test-details .parameter_section {
  width: 100%;
  margin: 0;
  padding: 16px 20px 20px;
}

#height .package-test-details .package-parameter-head p {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #c7e3e8;
  border-radius: 8px;
  background: #eaf7f8;
  color: #004368;
  font-size: 14px;
  font-weight: 700;
}

#height .package-test-details .accordion {
  margin-top: 10px;
}

#height .package-test-details .accordion-item {
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid #dce8eb;
  border-radius: 8px;
}

#height .package-test-details .accordion-button {
  padding: 13px 14px;
  background: #ffffff;
  color: #173d4b;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

#height .package-test-details .accordion-button:not(.collapsed) {
  background: #eaf7f8;
  color: #004368;
}

#height .package-test-details .accordion-body {
  padding: 14px;
  color: #4a5e66;
}

@media (max-width: 767px) {
  #height .package-test-details .ctmblock {
    padding: 13px 15px;
    font-size: 16px;
  }

  #height .package-test-details .parameter_section {
    padding: 12px 15px 16px;
  }

  #height .package-test-details .package-parameter-head p {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  #cityIconPopup ul.cityIcon,
  #cityIconPopup ul.secondcityIcon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hospital-listings .col-md-6 {
    width: 100%;
  }
}
