/* Home page (index.php). The search box (.search-fields) comes from search.css,
   the Businesses / Professionals choice (.view-choice) from main.css. */

.home-hero {
   padding: 120px 0 56px;
   background: linear-gradient(180deg, var(--bs-baby-blue) 0%, var(--bs-mist) 100%);
}

.home-hero-inner {
   max-width: 820px;
   text-align: center;
}

.home-hero h1 {
   margin: 0 0 12px;
   font-size: clamp(32px, 6vw, 52px);
   line-height: 1.08;
   font-weight: 800;
   letter-spacing: -0.03em;
   color: var(--bs-ink);
}

.home-lede {
   max-width: 560px;
   margin: 0 auto 26px;
   font-size: 17px;
   line-height: 1.55;
   color: var(--bs-slate);
}

.home-search {
   display: grid;
   justify-items: center;
   gap: 14px;
   margin: 0;
}

.home-search .view-choice {
   margin: 0;
}

.home-search .search-fields {
   width: 100%;
   padding: 6px;
   box-shadow: 0 10px 30px rgba(27, 58, 75, .1);
   border-color: var(--bs-line);
   text-align: left;
}

.home-search .search-field input {
   height: 46px;
   margin: 0;
   padding: 0 !important;
   border: 0;
   border-radius: 0;
   box-shadow: none !important;
   background: transparent;
   font-size: 16px;
   color: var(--bs-ink);
}

.home-search .search-field input::placeholder {
   color: var(--bs-slate);
   font-size: 15.5px;
   font-weight: 400;
   opacity: 1;
}

.home-search .search-go {
   height: 46px;
   margin: 0 !important;
   padding: 0 24px;
   line-height: 46px;
   font-size: 15px;
   letter-spacing: normal;
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.home-popular {
   display: flex;
   align-items: center;
   justify-content: center;
   flex-wrap: wrap;
   gap: 8px;
   margin-top: 18px;
   font-size: 14px;
   color: var(--bs-slate);
}

.home-popular a {
   padding: 5px 12px;
   border-radius: 999px;
   background-color: rgba(255, 255, 255, .8);
   border: 1px solid var(--bs-line);
   color: var(--bs-ink);
   font-weight: 600;
   text-decoration: none;
}

.home-popular a:hover {
   border-color: var(--bs-lagoon);
   color: var(--bs-lagoon);
}

.home-section {
   padding: 44px 0 0;
   background-color: var(--bs-mist);
}

.home-section:last-child {
   padding-bottom: 64px;
}

.home-section h2 {
   margin: 0 0 16px;
   font-size: 22px;
   font-weight: 800;
   letter-spacing: -0.01em;
   color: var(--bs-ink);
}

.home-categories {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
   gap: 12px;
}

.home-category {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 14px 16px;
   background-color: white;
   border: 1px solid var(--bs-line);
   border-radius: 14px;
   color: var(--bs-ink);
   font-weight: 700;
   text-decoration: none;
   transition: border-color .15s ease, box-shadow .15s ease;
}

.home-category:hover {
   color: var(--bs-ink);
   border-color: var(--bs-line-strong);
   box-shadow: var(--bs-shadow-sm);
}

.home-category-icon {
   display: grid;
   place-items: center;
   flex: none;
   width: 40px;
   height: 40px;
   border-radius: 12px;
   background-color: var(--bs-baby-blue);
   color: var(--bs-lagoon);
}

.home-pros {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 18px 32px;
   padding: 28px 30px;
   border-radius: 20px;
   background-color: var(--bs-ink);
   color: white;
}

.home-pros h2 {
   margin: 0 0 6px;
   color: white;
}

.home-pros p {
   max-width: 520px;
   margin: 0;
   color: rgba(255, 255, 255, .82);
   line-height: 1.55;
}

.home-pros-actions {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 12px 18px;
}

.home-pros .button {
   height: auto;
   margin: 0 !important;
   padding: 11px 22px;
   line-height: 1.4;
   font-size: 15px;
   letter-spacing: normal;
   background-color: white !important;
   border-color: white;
   color: var(--bs-ink);
}

.home-pros .button:hover {
   background-color: var(--bs-baby-blue) !important;
   border-color: var(--bs-baby-blue);
   color: var(--bs-ink);
}

.home-pros-secondary {
   color: var(--bs-baby-blue);
   font-weight: 700;
}

.home-pros-secondary:hover {
   color: white;
}

@media (max-width: 599px) {
   .home-hero {
      padding: 100px 0 40px;
   }

   .home-search .search-fields {
      flex-wrap: wrap;
      border-radius: 18px;
   }

   .home-search .search-field {
      flex-basis: 100%;
   }

   .home-search .search-field + .search-field {
      border-left: 0;
      border-top: 1px solid var(--bs-line);
   }

   .home-search .search-go {
      width: 100%;
      justify-content: center;
      margin-top: 4px !important;
   }

   .home-pros {
      padding: 22px 20px;
   }
}

/* Near you: a few businesses close to the visitor */
.home-section-head {
   display: flex;
   align-items: baseline;
   justify-content: space-between;
   gap: 12px;
   margin-bottom: 16px;
}

.home-section-head h2 {
   margin: 0;
}

.home-section-head a {
   font-size: 14.5px;
   font-weight: 700;
   text-decoration: none;
   white-space: nowrap;
}

.home-nearby {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
   gap: 12px;
}

.home-place {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 12px 14px;
   background-color: white;
   border: 1px solid var(--bs-line);
   border-radius: 14px;
   color: var(--bs-ink);
   text-decoration: none;
   transition: border-color .15s ease, box-shadow .15s ease;
}

.home-place:hover {
   color: var(--bs-ink);
   border-color: var(--bs-line-strong);
   box-shadow: var(--bs-shadow-sm);
}

.home-place:hover .home-place-name {
   color: var(--bs-lagoon);
}

.home-place-photo {
   flex: none;
   width: 60px;
   height: 60px;
   border-radius: 12px;
   object-fit: cover;
   background-color: var(--bs-baby-blue);
}

.home-place-text {
   min-width: 0;
   display: grid;
   gap: 2px;
}

.home-place-name {
   font-weight: 700;
   font-size: 15.5px;
   line-height: 1.3;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.home-place-meta {
   font-size: 13px;
   color: var(--bs-slate);
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.home-place-rating {
   color: var(--bs-ink);
   font-weight: 600;
}

.home-place-rating i {
   color: #E8A33D;
   font-size: 11px;
}

/* Page not found (404.php) */
.not-found {
   min-height: 60vh;
}

.not-found-home {
   margin: 22px 0 0;
   font-size: 15px;
   font-weight: 600;
}

.not-found-home a {
   text-decoration: none;
}
