/*
 * DekhoBiz UI Corrections v1.3.13
 * Presentation-only follow-up to the v1.3.12 design system.
 * Keeps public markup, links, routes and SEO/AEO/GEO output unchanged.
 */

/* --------------------------------------------------------------------------
   1. Desktop rhythm: more breathing room between sections, not inside cards
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .db-home-section,
  .db-section {
    padding-block: 76px;
  }

  .db-directory-seo-section {
    padding-block: 72px 84px;
  }

  .db-section-head,
  .db-home-section__head,
  .db-center-head,
  .db-city-section-head {
    margin-bottom: 34px;
  }
}

@media (min-width: 1280px) {
  .db-home-section,
  .db-section {
    padding-block: 84px;
  }
}

/* --------------------------------------------------------------------------
   2. Dark-image heroes: restore contrast after global typography overrides
   -------------------------------------------------------------------------- */

.db-homepage-v2 .db-home-hero {
  isolation: isolate;
  background-position: center;
  background-size: cover;
}

.db-homepage-v2 .db-home-hero::before {
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 14, 30, 0.91) 0%,
    rgba(9, 19, 41, 0.82) 42%,
    rgba(9, 20, 43, 0.56) 68%,
    rgba(9, 20, 43, 0.35) 100%
  );
}

.db-homepage-v2 .db-home-hero .db-container {
  position: relative;
  z-index: 1;
}

.db-homepage-v2 .db-home-hero__content {
  max-width: 820px;
}

.db-homepage-v2 .db-home-hero h1,
.db-site-main .db-home-hero h1 {
  max-width: 800px;
  color: #fff !important;
  font-family: var(--db-font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.db-homepage-v2 .db-home-hero__text,
.db-site-main .db-home-hero .db-home-hero__text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}

.db-homepage-v2 .db-home-hero .db-home-eyebrow {
  width: fit-content;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.db-homepage-v2 .db-home-hero .db-home-eyebrow::before {
  display: none;
}

.db-homepage-v2 .db-home-hero .db-home-eyebrow .db-icon,
.db-homepage-v2 .db-home-hero .db-home-eyebrow svg {
  color: #ff4450;
}

@media (min-width: 1024px) {
  .db-homepage-v2 .db-home-hero .db-container {
    min-height: 620px;
    padding-block: 82px 74px;
  }

  .db-homepage-v2 .db-home-hero h1 {
    font-size: clamp(42px, 4vw, 58px);
  }
}

/* Inner/business/taxonomy/404 hero text sits on dark photography too. */
.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) :is(h1, h2) {
  color: #fff !important;
}

.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) > .db-container > p,
.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) .db-hero-copy,
.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) .db-business-detail-heading > p {
  color: rgba(255, 255, 255, 0.74) !important;
}

.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) :is(.db-breadcrumb, .db-blog-breadcrumb),
.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) :is(.db-breadcrumb, .db-blog-breadcrumb) a,
.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) :is(.db-breadcrumb, .db-blog-breadcrumb) strong {
  color: rgba(255, 255, 255, 0.76) !important;
}

.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) :is(.db-breadcrumb, .db-blog-breadcrumb) a:hover {
  color: #fff !important;
}

.db-site-main :is(.db-inner-hero, .db-tax-hero, .db-error-hero, .db-business-detail-hero, .db-blog-hero) .db-eyebrow {
  color: #ff626b !important;
}

/* --------------------------------------------------------------------------
   3. Buttons: consistent height, natural width on desktop, responsive on mobile
   -------------------------------------------------------------------------- */

.db-site-main :is(.db-btn, .btn, .db-mini-btn, .db-home-listing-card__action, .db-related-business-card__action) {
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 9px !important;
  line-height: 1.2;
  white-space: nowrap;
}

.db-homepage-v2 .db-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: auto;
}

.db-homepage-v2 .db-home-hero-actions .db-btn {
  width: auto !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
}

.db-homepage-v2 .db-home-hero-actions .db-btn-outline {
  border-color: rgba(255, 255, 255, 0.78);
  background: #fff;
  color: #20283a;
}

.db-homepage-v2 .db-home-hero-actions .db-btn-outline:hover,
.db-homepage-v2 .db-home-hero-actions .db-btn-outline:focus-visible {
  border-color: #fff;
  background: #f8fafc;
  color: #141b2b;
}

@media (max-width: 520px) {
  .db-homepage-v2 .db-home-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .db-homepage-v2 .db-home-hero-actions .db-btn {
    width: 100% !important;
  }
}

@media (min-width: 521px) and (max-width: 767px) {
  .db-homepage-v2 .db-home-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .db-homepage-v2 .db-home-hero-actions .db-btn {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   4. Homepage search: cleaner proportion and hierarchy
   -------------------------------------------------------------------------- */

.db-homepage-v2 .db-home-search {
  width: min(960px, 100%);
  margin-top: 18px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(4, 10, 24, 0.16);
}

.db-homepage-v2 .db-home-search :is(input, select, .form-control, .form-select) {
  font-weight: 400;
}

.db-homepage-v2 .db-home-search .db-search-submit,
.db-homepage-v2 .db-home-search button[type="submit"] {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   5. Homepage sections and featured listings: stop wasting desktop width
   -------------------------------------------------------------------------- */

.db-homepage-v2 .db-home-section__head {
  align-items: end;
  gap: 24px;
}

.db-homepage-v2 .db-home-section__head h2 {
  max-width: 820px;
}

.db-homepage-v2 .db-home-section__head p {
  max-width: 760px;
}

.db-homepage-v2 .db-home-listing-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.db-homepage-v2 .db-home-listing-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--db-line);
  border-radius: 14px !important;
  background: #fff;
  box-shadow: none !important;
}

.db-homepage-v2 .db-home-listing-card__main {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.db-homepage-v2 .db-home-listing-card__content {
  display: grid;
  gap: 6px;
}

.db-homepage-v2 .db-home-listing-card__content strong {
  color: var(--db-text-title, #2b3340);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.db-homepage-v2 .db-home-listing-card__meta {
  color: var(--db-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.db-homepage-v2 .db-home-listing-card__text {
  color: var(--db-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.db-homepage-v2 .db-home-listing-card__side {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--db-line);
}

.db-homepage-v2 .db-home-listing-card__badges,
.db-homepage-v2 .db-home-listing-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.db-homepage-v2 .db-home-listing-card__badges span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #f3f5f8;
  color: #657084;
  font-size: 12px;
  font-weight: 500;
}

.db-homepage-v2 .db-home-listing-card__action {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
}

@media (min-width: 720px) {
  .db-homepage-v2 .db-home-listing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .db-homepage-v2 .db-home-listing-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .db-homepage-v2 .db-home-listing-section--single .db-home-listing-list,
  .db-homepage-v2 .db-home-listing-block.is-single-card .db-home-listing-list {
    grid-template-columns: minmax(0, 520px) !important;
    justify-content: start !important;
  }

  .db-homepage-v2 .db-home-listing-section--single .db-home-listing-card,
  .db-homepage-v2 .db-home-listing-block.is-single-card .db-home-listing-card {
    width: 100% !important;
    max-width: 520px !important;
  }
}

/* --------------------------------------------------------------------------
   6. Category / city directory pages: readable, open, SEO content at bottom
   -------------------------------------------------------------------------- */

.db-directory-page .db-section-head,
.db-categories-page .db-section-head,
.db-city-route-section .db-section-head {
  align-items: end;
  gap: 24px;
}

.db-directory-page .db-category-grid,
.db-categories-page .db-category-grid,
.db-city-route-section .db-category-grid {
  gap: 14px;
}

.db-directory-page .db-category-card,
.db-categories-page .db-category-card,
.db-city-route-section .db-category-card {
  min-height: 132px;
  padding: 20px 16px;
  border: 1px solid var(--db-line);
  border-radius: 14px !important;
  background: #fff;
  box-shadow: none !important;
}

.db-directory-page .db-category-card:hover,
.db-directory-page .db-category-card:focus-visible,
.db-categories-page .db-category-card:hover,
.db-categories-page .db-category-card:focus-visible,
.db-city-route-section .db-category-card:hover,
.db-city-route-section .db-category-card:focus-visible {
  border-color: rgba(226, 29, 43, 0.25);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055) !important;
  transform: translateY(-2px);
}

.db-directory-page .db-category-card strong,
.db-categories-page .db-category-card strong,
.db-city-route-section .db-category-card strong {
  color: var(--db-text-title, #2b3340);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.db-directory-page .db-category-card small,
.db-categories-page .db-category-card small,
.db-city-route-section .db-category-card small {
  color: var(--db-text-faint);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.db-directory-page .db-category-icon,
.db-categories-page .db-category-icon,
.db-city-route-section .db-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

/* The automatic SEO/AEO/GEO content remains rendered by the plugin; only its
   presentation is made easier to read. */
.db-directory-seo-section {
  border-top: 1px solid #edf0f4;
  background: #fafbfc;
}

.db-directory-seo-block {
  max-width: 1120px;
  margin-inline: auto;
}

.db-directory-seo-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.db-directory-seo-intro h2 {
  margin-top: 8px;
  color: var(--db-text-strong);
  font-family: var(--db-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.22;
}

.db-directory-seo-intro p,
.db-directory-seo-copy-block p,
.db-directory-seo-copy-block li,
.db-directory-seo-richtext,
.db-directory-seo-faqs p,
.db-directory-seo-cta p {
  color: var(--db-text-muted);
  font-family: var(--db-font-body);
  font-weight: 400;
  line-height: 1.7;
}

.db-directory-seo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.db-directory-seo-copy-block,
.db-directory-seo-links,
.db-directory-seo-faqs {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.db-directory-seo-copy-block h3,
.db-directory-seo-links h3,
.db-directory-seo-faqs h3 {
  color: var(--db-text-title, #2b3340);
  font-family: var(--db-font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.db-directory-seo-links-wrap {
  gap: 18px;
}

.db-directory-seo-faqs .db-faq-item {
  border: 1px solid var(--db-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.db-directory-seo-cta {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--db-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

@media (min-width: 900px) {
  .db-directory-seo-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
    row-gap: 26px;
  }
}

/* --------------------------------------------------------------------------
   7. Empty/not-found category states: compact and useful instead of huge boxes
   -------------------------------------------------------------------------- */

.db-site-main .db-section > .db-container > .db-placeholder-box {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 56px);
  border: 1px solid var(--db-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  text-align: center;
}

.db-site-main .db-section > .db-container > .db-placeholder-box h1,
.db-site-main .db-section > .db-container > .db-placeholder-box h2 {
  margin: 0;
  color: var(--db-text-strong) !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.18;
}

.db-site-main .db-section > .db-container > .db-placeholder-box p {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--db-text-muted) !important;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. 404 hero: readable and proportionate
   -------------------------------------------------------------------------- */

.db-error-hero .db-container {
  max-width: 900px;
  text-align: center;
}

.db-error-hero .db-error-links {
  justify-content: center;
  gap: 10px;
}

.db-error-hero .db-error-links a {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: #303849 !important;
  font-weight: 500;
  text-decoration: none;
}

.db-error-hero .db-error-links a:hover,
.db-error-hero .db-error-links a:focus-visible {
  background: #fff;
  color: var(--db-brand) !important;
}

/* --------------------------------------------------------------------------
   9. Responsive section rhythm and cards
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .db-home-section,
  .db-section {
    padding-block: 58px;
  }
}

@media (max-width: 767px) {
  .db-home-section,
  .db-section {
    padding-block: 48px;
  }

  .db-homepage-v2 .db-home-hero .db-container {
    min-height: 0;
    padding-block: 58px 54px;
  }

  .db-homepage-v2 .db-home-hero h1 {
    font-size: clamp(30px, 8.7vw, 42px);
    line-height: 1.12;
  }

  .db-homepage-v2 .db-home-search {
    margin-top: 12px;
    border-radius: 14px;
  }

  .db-directory-page .db-category-card,
  .db-categories-page .db-category-card,
  .db-city-route-section .db-category-card {
    min-height: 118px;
    padding: 16px 12px;
  }
}

@media (max-width: 420px) {
  .db-home-section,
  .db-section {
    padding-block: 42px;
  }

  .db-site-main .db-section > .db-container > .db-placeholder-box {
    padding: 30px 20px;
  }
}
