/* Category pages at the public names (/cleaning/). Loads after
   halbie-homepage.css for its tokens, header and footer. public-category-page.php
   owns the markup. The look follows the captain's Airbnb landing page
   references: white space, soft shadows, rounded photos, plain type, one
   search card as the only call to action. Vertical rhythm is measured off
   those pages at 1280 wide: 80px between sections, 32px h1, 26px h2, an
   8px gap to a section's one line, 32px to its content. */

.ht-cp {
  --cp-max: 1120px;
  --cp-radius: 20px;
  --cp-line: #e6e3de;
  --cp-shadow: 0 6px 20px rgba(26, 22, 18, 0.08);
  --cp-ink-soft: #5c5853;
  background: #fff;
  color: var(--ht-ink);
}
.ht-cp-section {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 40px var(--page-inset);
}
.ht-cp-hero + .ht-cp-section { padding-top: 80px; }
.ht-cp-h2 {
  margin: 0 0 32px;
  font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 30px;
  color: var(--ht-ink);
}
.ht-cp-h2:has(+ .ht-cp-sub) { margin-bottom: 8px; }
.ht-cp-h2--center { text-align: center; }
.ht-cp-sub {
  margin: 0 0 32px; font-size: 16px; line-height: 22px; color: var(--cp-ink-soft);
}
.ht-cp-sub--center { text-align: center; }

/* Hero: a big rounded panel on the right, the search card floating over its left edge. */
.ht-cp-hero {
  position: relative;
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 24px var(--page-inset) 0;
  min-height: 546px;
}
.ht-cp-hero__media {
  position: absolute;
  top: 24px; right: var(--page-inset); bottom: 0;
  left: calc(var(--page-inset) + 260px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 30%, #ffe2bf 0, rgba(255, 226, 191, 0) 55%),
    linear-gradient(135deg, #fff4e6 0%, #ffe7cc 100%);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 6%;
  overflow: hidden;
}
.ht-cp-hero__media--photo { padding: 0; background: #e9e4dc; }
.ht-cp-hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 40%;
}
.ht-cp-hero__media .halbie-halbert-cat { width: 360px; height: 360px; }
.ht-cp-hero__halbert {
  position: absolute; top: -30px; right: 22px;
  width: 72px; height: 72px;
}
.ht-cp-hero__halbert .halbie-halbert-cat { width: 72px; height: 72px; }
.ht-cp-hero__faces {
  position: absolute; right: 24px; bottom: 24px;
  display: flex; align-items: center;
  padding: 6px 16px 6px 6px;
  background: #fff; border-radius: 999px; box-shadow: var(--cp-shadow);
  font-size: 14px; font-weight: 600; color: var(--ht-ink);
}
.ht-cp-hero__faces img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; margin-left: -10px;
}
.ht-cp-hero__faces img:first-child { margin-left: 0; }
.ht-cp-hero__faces span { margin-left: 10px; }
.ht-cp-hero__card {
  position: relative; z-index: 1;
  width: 420px; margin-top: 72px;
  padding: 32px;
  background: #fff; border-radius: var(--cp-radius);
  box-shadow: 0 12px 40px rgba(26, 22, 18, 0.14);
}
.ht-cp-hero__h1 {
  margin: 0 0 8px;
  font-size: 32px; font-weight: 700; line-height: 36px; letter-spacing: -0.02em;
  color: var(--ht-ink);
}
.ht-cp-hero__sub {
  margin: 0 0 24px; font-size: 16px; line-height: 22px; color: var(--cp-ink-soft);
}

/* Fields keep their label inside the box, like Airbnb's Location box. */
.ht-cp-find { display: flex; flex-direction: column; gap: 10px; }
.ht-cp-field {
  position: relative; display: block; margin: 0;
  border: 1px solid #b9b5af; border-radius: 12px; background: #fff;
}
.ht-cp-field:focus-within { border-color: var(--ht-ink); box-shadow: 0 0 0 1px var(--ht-ink); }
.ht-cp-field__label {
  position: absolute; top: 10px; left: 16px;
  font-size: 12px; font-weight: 600; color: var(--ht-ink);
  pointer-events: none;
}
.ht-cp-field__input {
  display: block; width: 100%; height: 60px;
  padding: 26px 16px 8px;
  border: 0; border-radius: 12px; background: transparent;
  font-size: 16px; font-family: inherit; color: var(--ht-ink);
  outline: none; -webkit-appearance: none; appearance: none;
}
select.ht-cp-field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1612' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px; cursor: pointer;
}
.ht-cp-field__input::placeholder { color: #8a857f; }
.ht-cp-find__go {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; margin-top: 6px;
  border: 0; border-radius: 12px;
  background: linear-gradient(90deg, #f7880c 0%, #e8650a 100%); color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer;
}
.ht-cp-find__go:hover { filter: brightness(0.96); color: #fff; }

/* "Browse by kind" chips: Airbnb's "Browse by categories" row. */
.ht-cp-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.ht-cp-chip {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border: 1px solid #dddad5; border-radius: 999px; background: #fff;
  font-size: 16px; color: var(--ht-ink); text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ht-cp-chip:hover { color: var(--ht-ink); border-color: var(--ht-ink); box-shadow: 0 2px 8px rgba(26, 22, 18, 0.08); }

/* Quick facts */
.ht-cp-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.ht-cp-fact {
  display: flex; align-items: center; gap: 18px;
  min-height: 128px; padding: 24px; border-radius: 16px;
  background: #fff; box-shadow: 0 1px 2px rgba(26, 22, 18, 0.06), 0 4px 14px rgba(26, 22, 18, 0.06);
}
.ht-cp-fact__icon { flex: 0 0 32px; color: var(--ht-orange); }
.ht-cp-fact__body { display: flex; flex-direction: column; gap: 3px; }
.ht-cp-fact__title { font-size: 16px; font-weight: 600; color: var(--ht-ink); }
.ht-cp-fact__text { font-size: 14px; color: var(--cp-ink-soft); }

/* Photo row with a "1 / 3" pager */
.ht-cp-row__head { margin-bottom: 32px; }
.ht-cp-row__head .ht-cp-sub { text-align: center; margin-bottom: 16px; }
.ht-cp-pager { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ht-cp-pager__btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #f2f0ed; color: var(--ht-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ht-cp-pager__btn:disabled { color: #c9c5bf; background: #f7f6f4; cursor: default; }
.ht-cp-pager__count { font-size: 14px; color: var(--ht-ink); min-width: 40px; text-align: center; }
.ht-cp-row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ht-cp-row::-webkit-scrollbar { display: none; }
.ht-cp-person {
  display: flex; flex-direction: column; gap: 2px;
  scroll-snap-align: start; text-decoration: none; color: var(--ht-ink);
}
.ht-cp-person:hover { color: var(--ht-ink); }
/* Every face is a circle: many HappyTaskers upload a photo already cut to a
   circle, which looked clipped inside a square. The circle is on the photo,
   not the frame, so the Featured badge can sit across its lower edge. */
.ht-cp-person__photo {
  position: relative; display: block;
  aspect-ratio: 1 / 1; margin-bottom: 14px;
  border-radius: 50%; background: #f3efe6;
}
.ht-cp-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; transition: transform .3s ease; }
.ht-cp-person:hover .ht-cp-person__photo img { transform: scale(1.03); }
.ht-cp-person__initial {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 56px; font-weight: 800; color: var(--ht-orange);
}
.ht-cp-person__badge {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 9px; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  font-size: 12px; font-weight: 600; color: var(--ht-ink);
}
.ht-cp-person__name { font-size: 15px; font-weight: 600; }
.ht-cp-person__line { font-size: 14px; color: var(--cp-ink-soft); }
.ht-cp-person__line strong { color: var(--ht-ink); font-weight: 600; }
.ht-cp-person__rating { font-size: 14px; color: var(--ht-ink); margin-top: 2px; }

/* Service tiles */
.ht-cp-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.ht-cp-tile {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 22px 20px; border-radius: 16px;
  background: #fff; box-shadow: 0 1px 2px rgba(26, 22, 18, 0.06), 0 4px 14px rgba(26, 22, 18, 0.06);
  text-decoration: none; color: var(--ht-ink);
  transition: box-shadow .2s ease;
}
.ht-cp-tile:hover { color: var(--ht-ink); box-shadow: 0 2px 4px rgba(26, 22, 18, 0.08), 0 10px 24px rgba(26, 22, 18, 0.1); }
.ht-cp-tile__name { font-size: 16px; font-weight: 600; }
.ht-cp-tile__price { font-size: 15px; color: var(--ht-ink); }
.ht-cp-tile__count { font-size: 14px; color: var(--cp-ink-soft); }

/* Areas: a plain link-list grid, like Airbnb's destinations block. */
.ht-cp-areas {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px;
}
.ht-cp-area { display: flex; flex-direction: column; gap: 2px; }
.ht-cp-area__name { font-size: 15px; font-weight: 600; color: var(--ht-ink); }
.ht-cp-area__count { font-size: 14px; color: var(--cp-ink-soft); }

/* "Discover more" links: Airbnb's link grid at the foot. */
.ht-cp-more {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px;
}
.ht-cp-more__link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.ht-cp-more__name { font-size: 15px; font-weight: 600; color: var(--ht-ink); }
.ht-cp-more__place { font-size: 14px; color: var(--cp-ink-soft); }
.ht-cp-more__link:hover .ht-cp-more__name { text-decoration: underline; }

/* How it works */
.ht-cp-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.ht-cp-steps li { display: flex; flex-direction: column; gap: 4px; }
.ht-cp-steps__num {
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ht-orange-tint); color: var(--ht-orange-dark); font-weight: 700; font-size: 15px;
}
.ht-cp-steps__title { font-size: 16px; font-weight: 600; }
.ht-cp-steps__text { font-size: 15px; color: var(--cp-ink-soft); }

/* Questions, always open: question on the left, answer on the right. */
.ht-cp-faq { margin: -22px 0 0; }
.ht-cp-faq__item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--cp-line);
}
.ht-cp-faq__item:last-child { border-bottom: 0; }
.ht-cp-faq dt { margin: 0; font-size: 17px; font-weight: 600; color: var(--ht-ink); }
.ht-cp-faq dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--cp-ink-soft); }

.ht-cp-crumbs {
  max-width: var(--cp-max); margin: 0 auto;
  padding: 40px var(--page-inset) 48px;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 14px; color: var(--cp-ink-soft);
}
.ht-cp-crumbs a { color: var(--ht-ink); text-decoration: underline; }

@media (max-width: 1000px) {
  .ht-cp-row { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .ht-cp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ht-cp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ht-cp-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phone: the panel goes on top, the card sits under it, as Airbnb does. */
@media (max-width: 760px) {
  .ht-cp-hero { min-height: 0; padding-top: 12px; }
  .ht-cp-hero__media {
    position: relative; top: auto; left: auto; right: auto; bottom: auto;
    height: 230px; border-radius: 20px; justify-content: center; padding-right: 0;
  }
  .ht-cp-hero__media .halbie-halbert-cat { width: 210px; height: 210px; }
  .ht-cp-hero__faces { right: 12px; bottom: 12px; font-size: 13px; }
  .ht-cp-hero__faces img { width: 30px; height: 30px; }
  .ht-cp-hero__card { width: auto; margin-top: 0; padding: 20px 0 0; box-shadow: none; border-radius: 0; }
  .ht-cp-hero__halbert { display: none; }
  .ht-cp-hero__h1 { font-size: 26px; line-height: 30px; }
  .ht-cp-section { padding-top: 28px; padding-bottom: 28px; }
  .ht-cp-hero + .ht-cp-section { padding-top: 56px; }
  .ht-cp-h2 { font-size: 22px; line-height: 26px; margin-bottom: 24px; }
  .ht-cp-sub { margin-bottom: 24px; }
  .ht-cp-row__head { margin-bottom: 24px; }
  .ht-cp-fact { min-height: 0; }
  .ht-cp-facts { grid-template-columns: 1fr; gap: 12px; }
  .ht-cp-fact { padding: 18px 20px; }
  .ht-cp-row { grid-auto-columns: 40%; gap: 12px; }
  .ht-cp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ht-cp-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ht-cp-steps { grid-template-columns: 1fr; gap: 18px; }
  .ht-cp-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--page-inset)); padding: 0 var(--page-inset); }
  .ht-cp-chips::-webkit-scrollbar { display: none; }
  .ht-cp-chip { height: 44px; padding: 0 18px; font-size: 15px; }
  .ht-cp-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ht-cp-faq__item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}
