/**
 * COE Map Styles
 */

/* Container */
.coe-map-container {
  display: flex;
  gap: 0;
  max-width: 100%;
  margin: 0;
  height: 800px;
  position: relative;
}

/* Map Wrapper - Left Side - 70% */
.coe-map-wrapper {
  flex: 0 0 60%;
  width: 60%;
  position: relative;
}

/* Map Styles */
.coe-map {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

/* Results Container - Right Side - 30% */
.coe-map-results-container {
  flex: 0 0 40%;
  width: 40%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Search Container - Top of Right Panel */
.coe-map-search-container {
}

.coe-map-search-form {
  display: flex;
  width: 100%;
  gap: 8px;
}

.coe-map-search-input {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
}

.coe-map-search-input input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 24px 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
  background: transparent;
  outline: none;
}

.coe-map-search-button {
  background-color: #fd671c;
  border: none;
  border-radius: 24px;
  padding: 12px 16px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.coe-map-search-button:hover {
  background-color: #e64a19;
}

/* Search button states */
.coe-map-search-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.icon-location {
  margin-left: 12px;
}
.icon-gps {
  margin-right: 12px;
}

.coe-map-distance-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coe-map-distance-dropdown select {
  flex: 1;
  padding: 0 15px;
  border: none;
  border-left: 1px solid #e0e0e0;
  background-color: transparent;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath fill='%23FD671C' d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 25px;
}

.coe-map-results-header {
}

.coe-map-results-count {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.coe-map-results-count span:first-child {
  color: #ff5722;
}

/* Facility List */
.coe-map-facility-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}

.coe-map-facility-item {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 8px;
  border: 2px solid rgba(253, 103, 28, 1);
  border-color: transparent;
  box-shadow: 0px 4px 12px 0px rgba(0, 34, 37, 0.08);
}

.coe-map-facility-item.active {
  border: 2px solid rgba(253, 103, 28, 1);
}

.coe-map-facility-item:hover {
  border: 2px solid rgba(253, 103, 28, 1);
}

.coe-map-facility-item:last-child {
  margin-bottom: 0;
}

.coe-map-facility-name {
  font-size: 18px;
  margin: 0 0 8px;
  color: #333;
  font-weight: 600;
}

.coe-map-facility-details {
  font-size: 14px;
  color: #666;
}

.coe-map-facility-details p {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.coe-map-facility-details a {
  color: #666 !important;
  text-decoration: none;
}

.coe-map-facility-details a:hover {
  text-decoration: underline;
}
.coe-map-facility-details a:after {
  display: none !important;
}

.coe-map-facility-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #666;
  margin: 8px 0;
  position: relative;
  padding-left: 0;
}

.coe-map-facility-contact svg {
  flex-shrink: 0;
}

.coe-map-facility-distance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #666;
  margin: 8px 0;
}

.coe-map-facility-distance svg {
  flex-shrink: 0;
}

.coe-map-facility-distance .distance-value {
  font-weight: normal;
  color: #666;
}

.coe-map-facility-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 8px 0;
  gap: 8px;
}

.coe-map-clinicians {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f4f4f5;
}

.coe-map-clinicians-title {
  font-weight: 600;
  margin: 0 0 5px;
  font-size: 16px;
  color: #333;
}

.coe-map-clinicians-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: #666;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.coe-map-clinicians-list li {
  margin: 0;
  padding: 0;
}

/* Pagination */
.coe-map-pagination {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

.coe-map-pagination-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #666;
}

.coe-map-pagination-btn:hover:not(:disabled) {
  color: #ff5722;
}

.coe-map-pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.coe-map-pagination-btn svg {
  vertical-align: middle;
  width: 18px;
  height: 18px;
}

#coe-map-pagination-numbers {
  display: flex;
  gap: 8px;
}

.coe-map-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #71717a;
  background: #f8f8f8;
}

.coe-map-page-number:hover {
  background: #fd671c;
  color: white;
}

.coe-map-page-number.active {
  background: #fd671c;
  color: white;
}
#coe-map-prev-page,
#coe-map-next-page {
  background: #f8f8f8;
  color: white;
  border-radius: 50%;
  margin: 0 8px;
}

/* Info Window */
.coe-map-info-window {
  padding: 0;
  max-width: 320px;
  color: #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.coe-map-info-header {
  padding: 16px;
  border-bottom: 1px solid #334155;
  background-color: #212b42;
}
.gm-ui-hover-effect > span {
  filter: brightness(0) saturate(100%) invert(1);
}

.gm-style-iw-chr {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
}

.coe-map-info-header h3 {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.coe-map-info-section {
  padding: 12px 0;
  margin: 0 15px;
  display: flex;
  border-bottom: 1px solid #334155;
  gap: 10px;
  align-items: center;
}
.coe-map-info-section:last-child {
  border-bottom: none;
}

.coe-map-info-icon {
  flex: 0 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.coe-map-info-content {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #334155;
}

.coe-map-info-label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #334155;
}

.coe-map-info-content a {
  color: #334155 !important;
  text-decoration: none;
}

.coe-map-info-content a:after {
  display: none !important;
}

.coe-map-info-content a:hover {
  text-decoration: underline;
}
.coe-map-info-content a:focus-visible {
  outline-width: 0px;
}

.coe-map-info-list {
  margin: 5px 0 0;
  padding: 0;
  /* list-style-type: none; */
}

.coe-map-info-list li {
  margin-bottom: 5px;
  font-size: 13px;
  position: relative;
  margin-left: 20px; /* Indent for bullet point */
}

.coe-map-info-actions {
  padding: 12px 15px;
  text-align: right;
  display: none; /* Hide view details link */
}

.coe-map-info-view-link {
  display: inline-block;
  padding: 6px 14px;
  background-color: #ff5722;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.2s ease;
  font-weight: 500;
}

.coe-map-info-view-link:hover {
  background-color: #e64a19;
  color: #fff;
}

/* Additional Styles for Results */
.coe-map-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0px 4px 12px 0px rgba(0, 34, 37, 0.08);
  margin: 20px 0;
}

.coe-map-no-results svg {
  margin-bottom: 15px;
}

.coe-map-no-results p {
  margin: 5px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.4;
}

.coe-map-no-results p:first-of-type {
  font-weight: 600;
  color: #333;
  font-size: 18px;
}

.coe-map-no-results strong {
  color: #fd671c;
}

/* Google Places Autocomplete Styles */
.pac-container {
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pac-item {
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
}

.pac-item:hover {
  background-color: #f9f9f9;
}

.pac-item-selected {
  background-color: #f0f0f0;
}

/* Custom styles for the facilities list to match the screenshot */
.coe-map-results-header {
  padding: 16px 0;
}
#coe-map-search-radius-top,#coe-map-search-radius-bottom {
  font-size: 14px;
  font-weight: normal;
  color: #000;
}

.coe-map-results-count {
  font-size: 14px;
  margin: 0;
  color: #fd671c;
}

.coe-map-results-count span:first-child {
  font-weight: 600;
  color: #fd671c;
}

/* Hide Google Maps attribution elements */
.gm-style-cc {
  display: none;
}

/* Hide Google logo and terms of use */
a[href^="https://maps.google.com/maps"]
{
  display: none !important;
}

.gm-style a[title="Report errors in the road map"] {
  display: none !important;
}

/* Custom marker colors */
.gm-style .gm-style-iw {
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-t::after {
  background: #fff !important;
}

.coe-map-clear-search {
  background: transparent;
  border: none;
  font-size: 24px;
}

/* Custom Zoom Controls */
.coe-map-zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coe-map-zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.coe-map-zoom-btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.coe-map-zoom-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.coe-map-zoom-btn svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

/* Hide default Google Maps zoom controls */
.gm-control-active {
  display: none !important;
}

/* Responsiveness */
/* Tablet and larger screens maintain 70/30 layout */
@media (min-width: 769px) {
  .coe-map-wrapper {
    flex: 0 0 60%;
    width: 60%;
  }

  .coe-map-results-container {
    flex: 0 0 40%;
    width: 40%;
  }
}

@media (max-width: 1285px) {
  .coe-map-search-form {
    flex-wrap: wrap;
  }
}
.bth-map-view {
  display: none;
}
.bth-map-view button {
  background-color: white;
  border: none;
  border-radius: 24px;
  padding: 12px 16px;
  cursor: pointer;
  color: #e16c33;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
#coe-map-view-list-only {
  display: none;
}
/* Mobile screens - stack vertically */
@media (max-width: 991px) {
  .bth-map-view {
    display: block;
    position: absolute;
    top: -4rem;
    right: 1rem;
    z-index: 1000;
  }
  .coe-map-wrapper {
    flex: none;
    width: 100%;
    min-width: 100%;
  }
  .coe-map-results-container {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding-bottom: 0;
  }

  .coe-map-search-form {
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .coe-map-search-form .coe-map-search-button span {
    display: none;
  }

  .coe-map-search-input {
    width: 100%;
  }

  .coe-map-distance-dropdown select {
    width: 100%;
  }
}

.coe-map-results-header-top {
  display: none;
}
.coe-map-results-header-bottom {
  display: none;
}

@media (min-width: 991px) {
  .coe-map-results-header-bottom {
    display: block;
  }
}

/* Mobile view styles */
@media (max-width: 991px) {
  .list-only .coe-map-wrapper {
    display: none;
  }
  .list-only .coe-map-results-container .coe-map-results-header-bottom {
    display: block;
  }
  .coe-map-results-header-top {
    display: block;
  }
  .coe-map-container {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .coe-map-clinicians-list,
  .coe-map-facility-icons {
    grid-template-columns: repeat(1, 1fr);
  }
  .coe-map-facility-icons {
    gap: 0;
  }
}

/* Error message styling */
.coe-map-error-message {
  background-color: #fee;
  border: 1px solid #f66;
  color: #a00;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 14px;
}
.coe-disclaimer{
  padding:2em;
}