html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
  color: #202124;
}

/* ── Header ── */
.bg-custom {
  background-color: #2b3a4e !important;
}

.bgcustom {
  background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.7)), url(/static/img/howdyprice.com/bg.png);
  background-size: cover;
  height: 500px;
}

.hp-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.hp-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.hp-logo:hover { color: #cde; }

.hp-search-form {
  width: 100%;
  max-width: 680px;
}

.hp-search-collapse {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Hamburger toggle: hidden on desktop, shown on mobile */
.hp-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

/* Desktop: search always visible on the right, toggle hidden */
@media (min-width: 768px) {
  .hp-search-collapse {
    display: flex !important;
  }
}

/* Mobile: search hides behind the hamburger, expands full-width below */
@media (max-width: 767.98px) {
  .hp-nav-toggle {
    display: block;
  }
  .hp-search-collapse {
    flex-basis: 100%;
    margin-left: 0 !important;
  }
  .hp-search-form {
    max-width: 100%;
    margin-top: 0.6rem;
  }
}

.hp-search-form .input-group input {
  border-radius: 24px 0 0 24px;
  border: none;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.hp-search-form .input-group button {
  border-radius: 0 24px 24px 0;
  background-color: #1a6b4a;
  border-color: #1a6b4a;
  color: #fff;
  padding: 0.45rem 1rem;
}

.hp-search-form .input-group button:hover {
  background-color: #145539;
}

.btn-lang {
  color: #fff;
  background-color: #1a6b4a;
  border-color: #1a6b4a;
  border-radius: 20px;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
}

.btn-lang:hover { background-color: #145539; }

/* ── Results page layout ── */
.hp-results-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
}

/* ── Ads label ── */
.ya-label {
  font-size: 0.73rem;
  color: #70757a;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

/* ── Individual ad ──
   Desktop: plain row, only a bottom border separates ads.
   Mobile: boxed card (see media query below). */
.hp-ad {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid #e6e6e6;
}

.hp-ad-main {
  flex: 1;
  min-width: 0;
}

.hp-ad-cta {
  flex-shrink: 0;
}

.hp-see-btn {
  display: inline-block;
  background-color: #1a6b4a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 1.3rem;
  border-radius: 22px;
  transition: background-color 0.15s ease;
}

.hp-see-btn:hover {
  background-color: #145539;
  color: #fff;
}

/* Mobile: each ad becomes a boxed card, CTA drops below the text */
@media (max-width: 767.98px) {
  .hp-ad {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.08);
  }
  .hp-ad .sitelink-row {
    display: none;
  }
}

.ad-description-container {
  margin-bottom: 0;
}

.ad-description-container .link {
  display: block;
  font-size: 0.78rem;
  color: #3c4043;
  margin-bottom: 2px;
  line-height: 1.4;
}

.ad-description-container .link a {
  color: #3c4043;
  text-decoration: none;
}

.ad-description-container .link a:hover {
  text-decoration: underline;
}

.ad-description-container .title {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 2px;
  line-height: 1.4;
}

.ad-description-container .title a {
  color: #1a0dab;
  text-decoration: none;
}

.ad-description-container .title a:hover {
  text-decoration: underline;
}

.ad-description-container .desc {
  display: block;
  font-size: 0.84rem;
  color: #4d5156;
  line-height: 1.55;
}

.ad-description-container .desc a {
  color: #4d5156;
  text-decoration: none;
}

/* ── Ad label badge ── */
span[style*="border:1px solid #777"] {
  display: inline-block;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  color: #595959 !important;
  border: 1px solid #aaa !important;
  border-radius: 3px !important;
  padding: 1px 3px !important;
  line-height: 1.1 !important;
  vertical-align: middle;
  margin-right: 3px;
}

/* ── Sitelinks ── */
.sitelink-row {
  margin-top: 4px;
  margin-bottom: 0.75rem;
}

.sitelink a {
  font-size: 0.82rem;
  color: #1a0dab;
  text-decoration: none;
}

.sitelink a:hover { text-decoration: underline; }

/* ── Divider between ads and organics ── */
.hp-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1.25rem 0;
}

/* ── Web results heading ── */
#organici-container-result-score {
  font-size: 0.85rem;
  font-weight: 400;
  color: #70757a;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#organici-container-result-score b {
  color: #202124;
}

/* ── Organic results ── */
.articles .row.row-no-gutters {
  margin-bottom: 1.4rem;
}

.articles p.title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a0dab;
  margin-bottom: 2px;
  line-height: 1.4;
}

.articles p.desc {
  font-size: 0.84rem;
  color: #4d5156;
  margin-bottom: 2px;
  line-height: 1.55;
}

.articles p.link {
  font-size: 0.78rem;
  color: #3c4043;
  margin-bottom: 0;
}

.articles p.link a {
  color: #3c4043;
  text-decoration: none;
}

.articles p.link a:hover { text-decoration: underline; }

/* ── Related searches sidebar ── */
#related {
  display: none;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-top: 0.25rem;
}

#related h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #70757a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

#related .row {
  margin-bottom: 0;
}

#related .row p.title {
  margin-bottom: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f1f1;
}

#related .row:last-child p.title {
  border-bottom: none;
}

#related .row p.title a {
  font-size: 0.87rem;
  color: #1a0dab;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#related .row p.title a::before {
  content: "🔍";
  font-size: 0.72rem;
  opacity: 0.6;
  flex-shrink: 0;
}

#related .row p.title a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .hp-search-form { max-width: 100%; }
  .hp-results-wrap { padding: 1rem 0.75rem 2rem; }
}
