.hdm-filter-wrap {
  margin: 20px 0;
}

.hdm-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hdm-controls select,
.hdm-controls input,
.hdm-controls button {
  padding: 8px;
}

.hdm-item {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.hdm-item img {
  max-width: 100px;
  float: left;
  margin-right: 10px;
}

/* ======== Start Location map =========== */

.home_location_section {
  text-align: center;
}

.hospital-locations-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 4rem;
}

.locations-left {
  flex: 1;
}

.locations-right {
  flex: 1;
  text-align: right;
}

.locations-left .tag {
  display: inline-block;
  background: #f5e5f8;
  color: #a42fb8;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 15px;
}

.home_location_section h2 {
  font-size: 2.5vw;
  font-family: 'Open Runde';
  font-weight: 700;
  color: #006EB7;
  margin-bottom: 20px;
}

.home_location_section p {
  font-size: 16px;
  font-family: 'Open Runde';
  color: #555;
  font-weight: 500;
}

.elementor-element-0fc82e7 .location-form {
  max-width: 72%;
  padding-bottom: 0px;
}

/* Form */

.location-form {
  margin-bottom: 40px;
  background: #FFFFFF;
  padding: 20px;
  border-radius: 27px;
  box-shadow: 0px 0px 60px 0px #0000000D;
  max-width: 70%;
  margin: 0 auto;
}

.location-form .row {
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.location-form .row .col-md-4 {
  width: 100%;
}

.location-form label {
  display: block;
  color: #006EB7;
  font-size: 20px;
  font-family: 'Open Runde';
  font-weight: 600;
  margin-bottom: 20px;
}

.location-form select,
.location-form button {
  color: #006EB7;
  width: 100%;
  font-family: 'Open Runde';
  font-weight: 500;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 50px;
  border: 1px solid #006EB724;
  font-size: 16px;
}

.location-form button {
  background: #0056a3;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.location-form button:hover {
  background: #004080;
}

.locateme_section {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

/* ======= Location List ======= */

.location-list {
  text-align: left;
}

.location-list h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  font-family: 'Open Runde';
  text-align: left;
}

.location-card {
  background: #0030fa2e !important;
  border-radius: 20px;
  padding: 24px 32px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  gap: 15px;
  height: 100%;
}

.location-icon {
  font-size: 20px;
  color: #d32f2f;
  margin-right: 8px;
}

.location-info {
  flex-grow: 1;
}

.location-info h4 {
  margin: 0;
  color: #006EB7;
  font-size: 18px;
  font-weight: 600;
}

.location-info p {
  margin: 5px 0;
  font-size: 16px;
  color: #555;
}

.status {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: green;
}

.hours {
  display: block;
  font-size: 12px;
  color: #777;
}

.order-btn {
  background: #006EB7;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.order-btn:hover {
  background: #ffcd33;
}

.location-list #hdm_results_location {
  height: 70vh;
  overflow-y: auto;
}

.resultslocationwithoutmap .location-desktop-wrapper {
  display: grid;
  grid-template-columns: 1fr 50%;
  gap: 24px;
  align-items: self-start;
}

/* ===== Pagination ===== */

.hdm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hdm-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid #7C7C7C;
  border-radius: 50%;

  text-decoration: none;
  color: #7C7C7C;
  font-size: 14px;
  font-weight: 500;

  transition: all 0.2s ease;
}

.hdm-pagination a:hover {
  background-color: #7C7C7C;
  color: #fff;
}

.hdm-pagination a.active {
  background-color: #0b66c3;
  border-color: #0b66c3;
  color: #fff;
}

.hdm-pagination a.disabled {
  pointer-events: none;
  opacity: 0.4;
}

/* ===== Desktop / Mobile ===== */

.location-desktop-wrapper {
  display: block;
}

.location-mobile-wrapper {
  display: none;
}

/* ===== Slick Dots ===== */

.location-mobile-wrapper .slick-dots li {
  width: 22px;
  height: 5px;
  margin: 0;
}

.location-mobile-wrapper .slick-dots li button {
  width: 100%;
  height: 100%;
  padding: 0;
}

.location-mobile-wrapper .slick-dots li button:before {
  content: '';
  width: 100%;
  height: 100%;
  background: #E6AC3F;
  border-radius: 10px;
  opacity: 1;
}

.location-mobile-wrapper .slick-dots li.slick-active button:before {
  background: #006EB7;
}

.location-mobile-wrapper .slick-dots {
  bottom: -25px;
}

/* ===== NEW ARROW BUTTONS ===== */

.location-slider .slick-prev,
.location-slider .slick-next {
  position: absolute;
  z-index: 30;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  background: #006EB7;
  border: none;
  border-radius: 50%;

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

  cursor: pointer;
  transition: all 0.3s ease;
}

.location-slider .slick-prev {
  left: -20px;
}

.location-slider .slick-next {
  right: -20px;
}

.location-slider .slick-prev:before,
.location-slider .slick-next:before {
  font-size: 20px;
  color: #fff;
  opacity: 1;
  font-family: slick;
}

.location-slider .slick-prev:hover,
.location-slider .slick-next:hover {
  background: #004080;
}

/* Dot Styling */

.slick-dots li button.slick-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
}

.slick-dots li.slick-active button.slick-dot {
  background: #006EB7;
}

/* ===== Responsive ===== */

@media screen and (max-width: 991px) {

  .hospital-locations-section {
    display: block;
  }

  .home_location_section h2 {
    font-size: 40px;
  }

  .locations-right iframe {
    height: 400px;
    margin-top: 30px;
  }

  .location-form {
    max-width: 80% !important;
  }
}

@media screen and (max-width: 767px) {

  .home_location_section {
    margin-bottom: 2rem;
  }

  .home_location_section h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .location-form {
    max-width: 100% !important;
  }

  .location-form .row {
    display: block;
  }

  .locateme_section {
    display: block;
  }

  .location-card {
    padding: 12px 24px;
    display: block;
  }

  .order-btn {
    padding: 8px 14px;
  }

  .locations-right {
    margin-top: 6rem !important;
  }

  .resultslocationwithoutmap #hdm_results_location {
    display: block;
  }

  .hospital_listings .elementor-element.elementor-element-85860cd {
    width: auto;
    padding: 6px 17px;
    margin-top: -13px;
  }
}

@media (max-width: 768px) {

  .location-desktop-wrapper {
    display: none !important;
  }

  .location-mobile-wrapper {
    display: block !important;
  }

  .location-slider .location-card-mobile {
    padding: 20px;
    border-radius: 16px;
    background: #fff;
  }

  .location-mobile-wrapper .slick-dots li {
    width: 16px;
    height: 4px;
  }

  .location-mobile-wrapper .slick-dots {
    gap: 4px;
  }

  .location-list #hdm_results_location {
    height: auto !important;
    overflow-y: inherit !important;
  }

  .location-slider .slick-prev {
    left: 0;
  }

  .location-slider .slick-next {
    right: 0;
  }

  .location-slider .slick-prev,
  .location-slider .slick-next {
    width: 38px;
    height: 38px;
  }

  .location-slider .slick-prev:before,
  .location-slider .slick-next:before {
    font-size: 16px;
  }
}

/* ======== END Location map =========== */