.miami-dade-layout {
  background: #f2f2f2;
  color: #222;
  font-family: "Montserrat", sans-serif;
}

.miami-dade-landing {
  background: #f2f2f2;
  color: #222;
}

.md-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

@media (min-width: 1024px) {
  .md-hero { min-height: 877px; }
}

.md-hero-photo {
  position: absolute;
  left: 0;
  width: 100%;
  height: 109%;
  top: -7.8%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.md-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(192deg, rgba(0, 0, 0, 0.12), rgba(9, 9, 9, 0.8));
}

.md-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px;
}

.md-hero-kicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 1.87px;
  line-height: 1.1;
  text-transform: uppercase;
}

.md-hero-logo {
  display: block;
  width: min(512px, 100%);
  height: auto;
  margin: 18px auto 0;
}

.md-hero-intro {
  max-width: 640px;
  margin: 22px auto 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
}

.md-hero-count {
  margin: 28px 0 0;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 55px;
  line-height: 1;
}

.md-hero-count-label {
  margin: 4px 0 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.md-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 260px;
  height: 34px;
  border-radius: 15px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.87px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.md-btn-red { background: #d62433; color: #fff; }
.md-btn-white { background: #fff; color: #222; }
.md-btn-red:hover { background: #b81e2b; }
.md-btn-white:hover { background: #f4f4f4; }

.md-finder {
  background: #f2f2f2;
  padding: 64px 24px 72px;
}

.md-finder-inner { max-width: 1180px; margin: 0 auto; }

.md-finder-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.md-finder-label {
  margin: 0;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2.64px;
  text-transform: uppercase;
}

.md-finder-title {
  margin: 4px 0 0;
  color: #222;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.4px;
  line-height: 1.05;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .md-finder-title { font-size: 48px; }
}

.md-finder-subtitle {
  margin: 0;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 16px;
}

.md-search { max-width: 720px; margin: 28px auto 0; }

.md-search-field { position: relative; }

.md-search input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 22px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.md-search input::placeholder { color: #9a9a9a; }

.md-search input[type="search"]::-webkit-search-cancel-button,
.md-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.md-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6c6c6c;
  transform: translateY(-50%);
  cursor: pointer;
}

.md-search-clear[hidden] { display: none; }

.md-search-clear:hover,
.md-search-clear:focus-visible { color: #d62433; }

.md-results-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0 14px;
  color: #6c6c6c;
  font-size: 13px;
}

@media (min-width: 640px) {
  .md-results-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.md-results-meta strong { color: #222; font-weight: 600; }

.md-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .md-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.md-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-height: 112px;
  padding: 22px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #222;
  text-decoration: none;
}

.md-card-name {
  display: block;
  color: #222;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}

.md-card-place {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: #6c6c6c;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.8px;
  line-height: 1.2;
  text-transform: uppercase;
}

.md-card-chevron { width: 16px; height: 16px; flex: none; }

.md-card:hover,
.md-card:focus-visible {
  border-color: #d62433;
}

.md-card:hover .md-card-name,
.md-card:hover .md-card-place,
.md-card:focus-visible .md-card-name,
.md-card:focus-visible .md-card-place {
  color: #d62433;
}

.md-pin { color: #6c6c6c; flex: none; }

.md-card:hover .md-pin,
.md-card:focus-visible .md-pin { color: #d62433; }

.md-empty {
  padding: 32px 20px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.md-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e3e3e3;
}

.md-page-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 112px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.md-page-step.is-disabled {
  border-color: #ececec;
  background: #f7f7f7;
  color: #b5b5b5;
}

.md-page-numbers { display: flex; align-items: center; gap: 8px; }

.md-pages-mobile,
.md-pages-desktop { align-items: center; gap: 8px; }
.md-pages-mobile { display: flex; }
.md-pages-desktop { display: none; }

@media (min-width: 768px) {
  .md-pages-mobile { display: none; }
  .md-pages-desktop { display: flex; }
}

.md-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.md-page-num.is-current {
  border-color: #d62433;
  background: #d62433;
  color: #fff;
}

.md-page-gap { color: #6c6c6c; font-size: 14px; }

@media (max-width: 767px) {
  .md-page-step { min-width: 0; height: 36px; padding: 0 10px; font-size: 13px; }
  .md-finder { padding: 40px 16px 56px; }
}
