/*
Theme Name: GeneratePress Child - ASRV
Theme URI: https://asrv.kz
Description: Тема городского справочника, каталога услуг, отзывов и расследований ASRV.KZ в стиле Zoon.
Author: Редакция ASRV
Template: generatepress
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@800;900&display=swap');

* { box-sizing: border-box; }
body {
  background-color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #222222;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ZOON TOP HEADER - STATUS DARK TO MATCH EXACT APPROVED LOGO */
.asrv-header {
  background: #0A0F19;
  border-bottom: 1px solid #1E293B;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.asrv-header-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.asrv-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #283548;
  background: #141C2B;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.asrv-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #CBD5E1;
  border-radius: 2px;
}

/* LOGO - EXACT USER APPROVED BRAND */
.asrv-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.asrv-logo-icon {
  width: 44px;
  height: 44px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.asrv-logo-icon svg {
  width: 24px;
  height: 24px;
}
.asrv-logo-text {
  display: flex;
  flex-direction: column;
}
.asrv-logo-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 900;
  font-style: normal;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1;
}
.asrv-logo-title span { color: #F59E0B; }
.asrv-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #94A3B8;
  margin-top: 4px;
  text-transform: uppercase;
}

/* CITY PICKER */
.asrv-city-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  background: #141C2B;
  border: 1px solid #283548;
  flex-shrink: 0;
}
.asrv-city-picker svg { stroke: #F59E0B; }

/* ZOON SEARCH FORM */
.asrv-search-form {
  flex: 1;
  max-width: 680px;
  position: relative;
  display: flex;
}
.asrv-search-input {
  width: 100%;
  height: 44px;
  background: #141C2B;
  border: 1px solid #283548;
  border-radius: 8px;
  padding: 0 50px 0 16px;
  font-size: 14px;
  font-family: inherit;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.asrv-search-input::placeholder { color: #64748B; }
.asrv-search-input:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.asrv-search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.asrv-search-btn svg { stroke: #F59E0B; }

/* HEADER RIGHT */
.asrv-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.asrv-link-btn {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.asrv-link-btn:hover {
  background: #1E293B;
  color: #FFFFFF;
}
.asrv-btn-complaint {
  background: #DC2626;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}
.asrv-btn-complaint svg { stroke: #FFFFFF; }

/* CATEGORY BAR */
.asrv-cat-bar {
  background: #0A0F19;
  border-bottom: 1px solid #1E293B;
}
.asrv-cat-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scrollbar-width: none;
}
.asrv-cat-inner::-webkit-scrollbar {
  display: none;
}
.asrv-cat-item {
  padding: 12px 0;
  color: #94A3B8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.asrv-cat-item:hover, .asrv-cat-item.active {
  color: #F59E0B;
  border-bottom-color: #F59E0B;
}
.asrv-cat-item.hot { color: #EF4444; }
.asrv-cat-item.hot:hover, .asrv-cat-item.hot.active {
  color: #F87171;
  border-bottom-color: #EF4444;
}

/* MAIN CONTENT CONTAINER */
.asrv-container {
  max-width: 1360px;
  margin: 24px auto 60px auto;
  padding: 0 24px;
}

/* ZOON CATEGORY TILES (RESPONSIVE GRID) */
.asrv-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
@media (max-width: 1200px) {
  .asrv-tiles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .asrv-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .asrv-tiles-grid { grid-template-columns: 1fr; }
}
.asrv-tile {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.asrv-tile:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.asrv-tile-icon {
  width: 42px;
  height: 42px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  padding: 7px;
}
.asrv-tile-icon img, .asrv-tile-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asrv-tile-body { flex: 1; min-width: 0; }
.asrv-tile-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.asrv-tile-count {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}
.asrv-tile-subs {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SECTION HEADERS ZOON */
.asrv-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 36px 0 16px 0;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 10px;
}
.asrv-sec-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.asrv-sec-header a {
  font-size: 13px;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
}

/* 2-COLUMN LAYOUT */
.asrv-cols-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
@media (max-width: 960px) {
  .asrv-cols-wrap { grid-template-columns: 1fr; }
}

/* ZOON COMPANY CARD */
.asrv-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.asrv-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.asrv-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.asrv-card-photo {
  width: 170px;
  height: 140px;
  background: #F3F4F6;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.asrv-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.asrv-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.asrv-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}
.asrv-card-title:hover { color: #0F172A; text-decoration: underline; }

/* ZOON RATING BADGE */
.asrv-rating-badge {
  background: #10B981;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.asrv-rating-badge.bad { background: #EF4444; }
.asrv-rating-badge.mid { background: #F59E0B; }

.asrv-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 8px;
}
.asrv-card-meta strong { color: #111827; }

.asrv-card-address {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
}
.asrv-open-status {
  color: #10B981;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.asrv-card-prices {
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 10px;
}
.asrv-card-prices span {
  display: inline-block;
  margin-right: 12px;
}
.asrv-card-prices strong { color: #111827; }

/* ALERTS */
.asrv-strip-verified {
  background: #F0FDF4;
  border-left: 3px solid #16A34A;
  padding: 6px 10px;
  font-size: 12px;
  color: #166534;
  font-weight: 600;
  margin-bottom: 10px;
  border-radius: 0 4px 4px 0;
}
.asrv-strip-alert {
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  padding: 6px 10px;
  font-size: 12px;
  color: #991B1B;
  font-weight: 600;
  margin-bottom: 10px;
  border-radius: 0 4px 4px 0;
}

.asrv-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F3F4F6;
  padding-top: 10px;
}
.asrv-card-phone {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}
.asrv-card-link {
  color: #2563EB;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* SIDEBAR WIDGETS */
.asrv-sidebar-box {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.asrv-sidebar-title {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.asrv-sidebar-title a {
  font-size: 12px;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
}

.asrv-mag-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}
.asrv-mag-item:last-child { border-bottom: none; }
.asrv-mag-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #DC2626;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.asrv-mag-tag.neutral { color: #F59E0B; }
.asrv-mag-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  text-decoration: none;
  margin-bottom: 4px;
}
.asrv-mag-title:hover { color: #2563EB; }
.asrv-mag-meta {
  font-size: 12px;
  color: #9CA3AF;
}

.asrv-review-item {
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}
.asrv-review-item:last-child { border-bottom: none; }
.asrv-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  font-size: 13px;
}
.asrv-review-author { font-weight: 700; color: #111827; }
.asrv-review-target { font-size: 12px; color: #2563EB; font-weight: 600; }
.asrv-review-text {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.45;
}

/* ZOON FOOTER */
.asrv-footer {
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  padding: 48px 24px 32px 24px;
  margin-top: 60px;
}
.asrv-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .asrv-footer-inner { grid-template-columns: 1fr; }
}
.asrv-footer-brand p {
  font-size: 13px;
  color: #6B7280;
  margin-top: 12px;
  line-height: 1.5;
  max-width: 320px;
}
.asrv-footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}
.asrv-footer-col ul { list-style: none; }
.asrv-footer-col li { margin-bottom: 8px; }
.asrv-footer-col a {
  color: #6B7280;
  text-decoration: none;
  font-size: 13px;
}
.asrv-footer-col a:hover { color: #111827; }
.asrv-footer-bottom {
  max-width: 1360px;
  margin: 36px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9CA3AF;
}

/* ==========================================================================
   IMAGE & ICON ENHANCEMENTS FOR ASRV.KZ
   ========================================================================== */

/* Category Tile Icon (Vector SVG) */
.asrv-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.asrv-tile:hover .asrv-tile-icon {
  transform: scale(1.06);
}
.asrv-tile-icon img,
.asrv-tile-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

/* Card Photo Thumbnail (Real Photo) */
.asrv-card-photo-box {
  width: 170px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #0F172A;
}
.asrv-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.asrv-card:hover .asrv-card-img {
  transform: scale(1.05);
}

/* Company Badge Overlay on Photo */
.asrv-photo-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* Sidebar Magazine Article with Thumbnail */
.asrv-mag-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}
.asrv-mag-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.asrv-mag-thumb {
  width: 76px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0F172A;
}
.asrv-mag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.asrv-mag-row:hover .asrv-mag-thumb img {
  transform: scale(1.08);
}
.asrv-mag-info {
  flex: 1;
}

/* Single Article Featured Hero Image */
.asrv-article-hero-wrap {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.asrv-article-hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.asrv-article-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,0.85) 100%);
  color: #F8FAFC;
  font-size: 12px;
}

/* Single Company Hero Photo */
.asrv-company-hero-photo {
  width: 240px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.asrv-company-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .asrv-card-photo-box {
    width: 100%;
    height: 160px;
  }
  .asrv-company-hero-photo {
    width: 100%;
    height: 180px;
  }
}

/* DISTRICT TABS & WHATSAPP PILL */
.asrv-district-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 20px 0;
}
.asrv-dist-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.asrv-dist-tab:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}
.asrv-dist-tab.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}
.asrv-wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #DCFCE7;
  border: 1px solid #BBF7D0;
  color: #15803D;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.asrv-wa-pill:hover {
  background: #22C55E;
  border-color: #22C55E;
  color: #FFFFFF;
}
.asrv-wa-pill:hover svg {
  fill: #FFFFFF;
}

/* ========================================================
   INTERACTIVE DISTRICT SELECTOR & LIVE SEARCH DROPDOWNS
   ======================================================== */
.asrv-city-wrapper {
  position: relative;
}
.asrv-city-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  background: #141C2B;
  border: 1px solid #283548;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-family: inherit;
}
.asrv-city-picker:hover {
  border-color: #F59E0B;
  background: #1A2436;
}
.asrv-city-picker .asrv-arrow-icon {
  transition: transform 0.2s ease;
}
.asrv-city-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  display: none;
  z-index: 1100;
}
.asrv-city-dropdown.active {
  display: block;
  animation: asrvFadeDown 0.18s ease-out;
}
.asrv-city-dd-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  padding: 8px 10px 4px 10px;
  letter-spacing: 0.05em;
}
.asrv-city-dd-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
  color: #F8FAFC;
}
.asrv-city-dd-item:hover {
  background: #1E293B;
}
.asrv-city-dd-item.active {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.asrv-city-dd-title {
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
}
.asrv-city-dd-item.active .asrv-city-dd-title {
  color: #F59E0B;
}
.asrv-city-dd-desc {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

/* AJAX LIVE SEARCH DROPDOWN */
.asrv-search-wrapper {
  flex: 1;
  max-width: 680px;
  position: relative;
}
.asrv-live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  display: none;
  z-index: 1200;
  max-height: 480px;
  overflow-y: auto;
}
.asrv-live-search-dropdown.active {
  display: block;
  animation: asrvFadeDown 0.18s ease-out;
}
.asrv-ls-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  padding: 8px 10px 4px 10px;
  letter-spacing: 0.05em;
}
.asrv-ls-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.asrv-ls-item:hover {
  background: #F1F5F9;
}
.asrv-ls-photo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #E2E8F0;
}
.asrv-ls-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asrv-ls-post-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.asrv-ls-info {
  flex: 1;
  min-width: 0;
}
.asrv-ls-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asrv-ls-meta {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
}
.asrv-ls-rating {
  color: #059669;
  font-weight: 700;
}
.asrv-ls-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
.asrv-ls-all {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #2563EB;
  text-decoration: none;
  border-top: 1px solid #F1F5F9;
  margin-top: 6px;
  border-radius: 6px;
}
.asrv-ls-all:hover {
  background: #EFF6FF;
}

/* STAR PICKER */
.asrv-star-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.asrv-star-opt input {
  display: none;
}
.asrv-star-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.asrv-star-opt input:checked + .asrv-star-pill {
  background: #0F172A;
  border-color: #0F172A;
  color: #F59E0B;
}

@keyframes asrvFadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* OFF-CANVAS MOBILE DRAWER */
.asrv-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 25, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.asrv-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.asrv-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 86vw;
  height: 100%;
  background: #0F172A;
  z-index: 2010;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 40px rgba(0,0,0,0.5);
}
.asrv-mobile-drawer.active {
  transform: translateX(0);
}
.asrv-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1E293B;
}
.asrv-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1E293B;
  border: 1px solid #334155;
  color: #94A3B8;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.asrv-drawer-close:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}
.asrv-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.asrv-drawer-search {
  display: flex;
  position: relative;
  margin-bottom: 20px;
}
.asrv-drawer-search input {
  width: 100%;
  height: 42px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0 40px 0 12px;
  color: #FFFFFF;
  font-size: 13.5px;
  outline: none;
}
.asrv-drawer-search button {
  position: absolute;
  right: 0;
  top: 0;
  height: 42px;
  width: 40px;
  background: transparent;
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.asrv-drawer-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.asrv-drawer-districts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.asrv-drawer-districts a {
  padding: 5px 11px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #CBD5E1;
  text-decoration: none;
  transition: all 0.15s ease;
}
.asrv-drawer-districts a:hover {
  background: #F59E0B;
  color: #0F172A;
  border-color: #F59E0B;
}
.asrv-drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}
.asrv-drawer-nav li {
  margin-bottom: 4px;
}
.asrv-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #E2E8F0;
  text-decoration: none;
  transition: background 0.15s ease;
}
.asrv-drawer-nav a:hover {
  background: #1E293B;
  color: #F59E0B;
}
.asrv-drawer-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.asrv-drawer-tools a {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.asrv-drawer-tool-calc {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #F59E0B;
}
.asrv-drawer-tool-claim {
  background: #DC2626;
  color: #FFFFFF;
}
.asrv-drawer-tool-biz {
  background: #1E293B;
  border: 1px solid #334155;
  color: #38BDF8;
}

/* TYPE AND CLASS CARDS FOR CALCULATOR */
.asrv-type-card:has(input:checked) {
  border-color: #F59E0B !important;
  background: #FFFBEB !important;
}
.asrv-class-card:has(input:checked) {
  border-color: #0F172A !important;
  background: #F8FAFC !important;
}

/* Mobile Article Refinements */
@media (max-width: 768px) {
  .asrv-container {
    padding: 0 12px !important;
    margin: 12px auto !important;
  }
  .asrv-catalog-col {
    padding: 18px 14px !important;
    border-radius: 12px !important;
  }
  .asrv-article-body {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .asrv-article-body h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
  .asrv-article-body h2 {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }
  .asrv-article-body table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  .asrv-article-body blockquote {
    padding: 14px 16px !important;
    margin: 16px 0 !important;
  }
}

/* ==========================================================================
   GLOBAL MOBILE OVERFLOW & HEADER RESPONSIVE FIX (Oct 2026 Audit)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.asrv-header {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 900px) {
  .asrv-header-main {
    padding: 10px 14px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }
  .asrv-header-right {
    display: none !important;
  }
  .asrv-city-wrapper {
    display: none !important;
  }
  .asrv-logo-sub {
    display: none !important;
  }
  .asrv-search-wrapper {
    order: 3 !important; flex: 0 0 100% !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
    max-width: 100% !important;
  }
  .asrv-search-form {
    width: 100% !important;
  }
  .asrv-search-input {
    width: 100% !important;
    font-size: 13px !important;
  }
  .asrv-cat-inner {
    padding: 0 14px !important;
    gap: 14px !important;
  }
  .asrv-article-body table,
  .asrv-container table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Full Mobile Responsiveness Fixes */
.asrv-calc-grid,
.asrv-two-col-layout,
.asrv-add-company-grid,
.asrv-complaint-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}
.asrv-calc-box {
  padding: 32px;
}

@media (max-width: 900px) {
  .asrv-container {
    padding: 0 14px !important;
    margin: 16px auto 40px auto !important;
  }
  .asrv-calc-grid,
  .asrv-two-col-layout,
  .asrv-add-company-grid,
  .asrv-complaint-grid,
  .asrv-main-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .asrv-form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .asrv-calc-box {
    padding: 20px 16px !important;
  }
  .asrv-repair-rooms-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .asrv-repair-levels-grid {
    grid-template-columns: 1fr !important;
  }
  .asrv-repair-features-grid {
    grid-template-columns: 1fr !important;
  }
  .asrv-card {
    flex-direction: column !important;
    padding: 16px !important;
    gap: 14px !important;
  }
  .asrv-card-photo-box {
    width: 100% !important;
    height: 180px !important;
  }
  .asrv-card-content {
    width: 100% !important;
  }
  .asrv-company-hero {
    flex-direction: column !important;
  }
}
