.sal-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 45%) minmax(0, 55%);
  width: 100%;
  /*height: 650px;*/
  min-height: 650px;
  background: linear-gradient(
    180deg,
    rgba(246, 245, 247, 0) 20%,
    #e9e8ec 98.79%
  );
  overflow: hidden;
}

.sal-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 80px);
}

.sal-title {
  max-width: 620px;
  margin: 0 0 18px;
  color: #000;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.sal-subtitle,
.sal-content {
  max-width: 620px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.42;
}

.sal-content p {
  margin: 0 0 28px;
}

.sal-title {
  margin-bottom: 26px !important;
}
.sal-search {
  margin-top: 0;
  margin-bottom: 25px;
}

.sal-reset-filter {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e31b23;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.sal-reset-filter:hover,
.sal-reset-filter:focus {
  text-decoration: underline;
}

.sal-zip-form {
  display: flex;
  gap: 0;
  align-items: stretch;
  max-width: 560px;
  height: 70px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sal-zip-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 28px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 24px;
  line-height: 1.4;
  outline: 0;
}

.sal-zip-form input[type="text"]::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.sal-search-button {
  position: relative;
  width: 76px;
  flex: 0 0 76px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.sal-search-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sal-search-button::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 19px;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.sal-search-button::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 36px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.sal-zip-form.is-loading .sal-search-button {
  opacity: 0.7;
  pointer-events: none;
}

#service-area-map {
  width: 100%;
  min-height: 650px;
  height: 100%;
  background: #f1f5f9;
}

.sal-map-status {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #991b1b;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.sal-map-status:empty {
  display: none;
}

.sal-results {
  grid-column: 1 / -1;
  margin-top:0;
  padding: 0 ;
}

.sal-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.sal-result-card {
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sal-result-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.sal-result-card p {
  margin: 8px 0 0;
}

.sal-distance {
  color: #0f766e;
  font-weight: 700;
}

.sal-fallback {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
}

.sal-empty,
.sal-error,
.sal-loading {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: #f8fafc;
}

.sal-error {
  background: #fef2f2;
  color: #991b1b;
}

.sal-map-popup {
  display: grid;
  gap: 4px;
	min-width: 260px;
	font-family: inherit;

	.sal-popup-header {
		margin-bottom: 8px;

		.sal-popup-title {
			font-size: 1.15rem;
			font-weight: 700;
			color: #eb1717; // swap for your brand red variable
		}
	}

	.sal-popup-meta {
		display: flex;
		flex-direction: column;
		gap: 2px;
		margin-bottom: 12px;
		font-size: 0.9rem;

		.sal-popup-address {
			color: #333;
		}

		.sal-popup-phone {
			color: #1a1a1a;
			text-decoration: none;

			i {
				margin-right: 6px;
				color: #eb1717;
			}

			&:hover {
				text-decoration: underline;
			}
		}
	}

	.sal-popup-services {
		background: #f2f4f6;
		border-radius: 6px;
		padding: 10px 12px;
		margin-bottom: 12px;

		.sal-popup-services-title {
			display: block;
			font-size: 0.85rem;
			color: #1a3a5c;
			margin-bottom: 6px;
		}

		.sal-popup-services-list {
			list-style: none;
			margin: 0;
			padding: 0;
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 4px 12px;

			li {
				font-size: 0.85rem;
				display: flex;
				align-items: flex-start;
				gap: 6px;

				i {
					color: #000;
					margin-top: 3px;
					flex-shrink: 0;
				}
			}
		}
	}

	.sal-popup-learn-more {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: #eb1717;
		font-weight: 700;
		text-decoration: none;
		font-size: 0.9rem;

		&:hover {
			text-decoration: underline;
		}
	}
}

// Leaflet popup wrapper overrides so it renders as a clean white card
.leaflet-popup-content-wrapper {
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.leaflet-popup-content {
	margin: 16px;
}
@media (max-width: 640px) {
  .sal-wrapper {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .sal-panel {
    padding: 32px 24px;
  }

  .sal-title {
    font-size: 34px;
  }

  .sal-subtitle,
  .sal-content {
    font-size: 19px;
  }

  .sal-zip-form {
   height: 60px;
    padding: 10px;
	    align-items: center;
  }

  .sal-zip-form input[type="text"] {
    font-size: 18px;
    padding-left: 20px;
  }

  .sal-search-button {
    width: 64px;
    flex-basis: 64px;
	height: 64px;
  }

  #service-area-map {
    height: 420px;
    min-height: 420px;
  }

  .sal-map-status {
    position: static;
    max-width: none;
    margin: 12px 24px 0;
  }
}
