/* TQ 5.17 - service landing + carousel fixes */

/* Homepage carousel: no browser scrollbar, controls always functional */
.tq516-blog-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  -ms-overflow-style:none;
  scrollbar-width:none;
  overscroll-behavior-inline:contain
}
.tq516-blog-viewport::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.tq516-carousel-controls{display:flex;align-items:center;gap:8px}
.tq516-carousel-controls .section-link{white-space:nowrap}
.tq516-carousel-btn{touch-action:manipulation}
.tq516-carousel-btn:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}

/* Service landings */
.tq517-service-page{background:#f8fafc}
.tq517-service-hero{
  padding:34px 0 30px;
  border-bottom:1px solid #e2e8f0;
  background:linear-gradient(180deg,#fff,#f8fbff)
}
.tq517-service-hero-grid{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-top:22px
}
.tq517-service-hero h1{
  max-width:900px;
  margin:5px 0 10px;
  color:#0f172a;
  font-size:clamp(36px,5vw,60px);
  line-height:1.04;
  letter-spacing:-.045em
}
.tq517-service-hero p{
  max-width:780px;
  margin:0;
  color:#526174;
  font-size:15px;
  line-height:1.7
}
.tq517-service-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px
}
.tq517-service-meta span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 9px;
  border:1px solid #dbe4ee;
  border-radius:999px;
  background:#fff;
  color:#334155;
  font-size:11px;
  font-weight:800
}
.tq517-service-content{
  display:grid;
  gap:26px;
  padding-top:32px;
  padding-bottom:48px
}
.tq517-featured-providers,
.tq517-organic-providers,
.tq517-service-cities{
  padding:28px;
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.035)
}
.tq517-featured-providers{
  border-color:#facc15;
  background:linear-gradient(180deg,#fffef7,#fff)
}
.tq517-section-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-end;
  margin-bottom:18px
}
.tq517-section-head h2{
  margin:5px 0 0;
  color:#0f172a;
  font-size:28px;
  line-height:1.14;
  letter-spacing:-.035em
}
.tq517-section-head>p{
  max-width:520px;
  margin:0;
  color:#526174;
  font-size:12px;
  line-height:1.6
}
.tq517-provider-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px
}
.tq517-provider-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  padding:20px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff
}
.tq517-provider-card.is-featured{
  border-color:#facc15;
  box-shadow:0 12px 26px rgba(161,98,7,.08)
}
.tq517-provider-top{
  display:flex;
  gap:13px;
  align-items:flex-start
}
.tq517-provider-logo{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff
}
.tq517-provider-logo img{width:100%;height:100%;object-fit:contain}
.tq517-provider-logo.is-fallback{background:#eff6ff;color:#1d4ed8;font-weight:900;font-size:20px}
.tq517-provider-heading{min-width:0}
.tq517-provider-heading h3{
  margin:6px 0 4px;
  color:#0f172a;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.025em;
  overflow-wrap:anywhere
}
.tq517-provider-heading h3 a{color:inherit;text-decoration:none}
.tq517-provider-heading p,
.tq517-provider-desc{
  margin:0;
  color:#526174;
  font-size:12px;
  line-height:1.6
}
.tq517-provider-desc{margin-top:14px}
.tq517-provider-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.tq517-provider-badges span,
.tq517-provider-badges strong{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 7px;
  border-radius:999px;
  font-size:9px;
  font-weight:850;
  letter-spacing:.035em
}
.tq517-provider-badges span{background:#eff6ff;color:#1d4ed8}
.tq517-provider-badges strong{background:#fffbeb;color:#92400e;border:1px solid #fde68a}
.tq517-provider-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
  padding-top:16px
}
.tq517-provider-actions .tq-btn{
  min-height:42px;
  padding:9px 12px;
  white-space:normal;
  text-align:center
}
.tq517-empty{
  padding:28px;
  border:1px dashed #cbd5e1;
  border-radius:18px;
  background:#f8fafc;
  text-align:center
}
.tq517-empty h3{margin:0 0 8px;font-size:20px}
.tq517-empty p{margin:0 0 16px;color:#526174}
.tq517-city-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px
}
.tq517-city-grid a{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  min-height:52px;
  padding:11px 13px;
  border:1px solid #dbe4ee;
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  text-decoration:none
}
.tq517-city-grid a:hover{border-color:#93c5fd;background:#f8fbff}
.tq517-city-grid strong{font-size:13px}
.tq517-city-grid span{color:#526174;font-size:11px;white-space:nowrap}

/* Admin injected button */
.tq517-edit-profile{white-space:nowrap}

@media(max-width:900px){
  .tq517-service-hero-grid,
  .tq517-section-head{align-items:flex-start;flex-direction:column}
  .tq517-provider-grid{grid-template-columns:1fr}
  .tq517-city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .tq516-carousel-controls{
    width:100%;
    flex-wrap:wrap
  }
  .tq516-carousel-controls .section-link{
    order:-1;
    width:100%;
    margin-bottom:4px
  }
  .tq517-service-hero{padding:24px 0 22px}
  .tq517-service-hero h1{font-size:32px}
  .tq517-service-hero-grid>.tq-btn{width:100%}
  .tq517-featured-providers,
  .tq517-organic-providers,
  .tq517-service-cities{padding:20px;border-radius:18px}
  .tq517-section-head h2{font-size:24px}
  .tq517-city-grid{grid-template-columns:1fr}
  .tq517-provider-actions{flex-direction:column}
  .tq517-provider-actions .tq-btn{width:100%}
}
