/* =========================
   GRID / CARD LAYOUT
========================= */
.top5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .top5-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .top5-grid {
    grid-template-columns: 1fr;
  }
}
/* Hero inline link */
.lead .hero-link {
  color: #fff;                 /* aqua highlight */
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.lead .hero-link:hover {
  color: #ffffff;                 /* turns white on hover */
  opacity: 0.95;
}

.listing-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(16, 24, 40, 0.06);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-width: 0;
}

/* =========================
   HEADER (LOGO + TITLE)
========================= */
.listing-card .listing-header {
  margin: -16px -16px 0 -16px;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
}

.listing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 120px;
  background: linear-gradient(90deg, #4d6bff 0%, #00c6c7 100%);
  color: #fff;
}

.listing-logo {
  flex: 0 0 30%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #e6e9ee;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-biz {
  flex: 1;
  min-width: 0;
}

.listing-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.listing-biz {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}

.biz-name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   META ROW
========================= */
.meta-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}
.meta-item {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}
.meta-pill {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #e6e9ee;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}
.meta-pill[data-type="established"] {
  color: #111827;
}
.meta-row .meta-item:only-child .meta-pill {
  width: 75%;
  margin: 0 auto;
}

/* =========================
   TEXT / DESCRIPTION
========================= */
.short-desc {
  font-size: 0.98rem;
  color: #111827;
  line-height: 1.4;
}
.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  background: none;
  border: 0;
  color: #0a74ff;
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
}

/* =========================
   SECTION TITLES
========================= */
.section-title {
  font-weight: 700;
  margin: 8px 0;
  font-size: 1rem;
}

/* =========================
   WEBSITE LINK (FIXED WRAP)
========================= */
.website-link {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  color: #0a74ff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.website-link .web-icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.website-link .web-url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   SERVICES
========================= */
/*.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}*/
/*services list--->only one per row*/
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
  word-break: break-word;
}
.service-item .svc-icon {
  flex: 0 0 20px;
  margin-top: 2px;
  color: #0a74ff;
}
.service-item .svc-text {
  flex: 1;
  min-width: 0;
}

/* =========================
   ADDRESS / CONTACT
========================= */
.address {
  font-size: 0.95rem;
  color: #374151;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.35;
}
.address .addr-icon {
  flex: 0 0 20px;
  margin-top: 2px;
}
.address .addr-text {
  flex: 1;
  min-width: 0;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-item a {
  color: #0a74ff;
  text-decoration: none;
}

/* =========================
   DIRECTIONS BUTTON
========================= */
.directions-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  
}
.directions-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #76c7ff;
  background: linear-gradient(#5ac9ff, #00a4e4);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  justify-content: center;
}
.offer-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 6px 0;
}

.offers-list .offer-item .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-1px);
}
/* Offers list (keeps existing behavior) */
.offers-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.offer-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 6px 0;
}

/* For offer items, also use icon + text children pattern if needed:
   <li class="offer-item"><span class="offer-icon">🏷️</span><span class="offer-text">Free estimate</span></li>
*/
.offer-item > .offer-icon {
  flex: 0 0 20px;
  margin-top: 2px;
}
.offer-item > .offer-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* coupon box */
.coupon-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #e6e9ee;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.hours-list .hour-item {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}

/* =========================
   UTIL
========================= */
.hidden {
  display: none !important;
}

/* Home Link */
.breadcrumb-small {
  margin-top: 20px;
  margin-left: 12px;
}
.breadcrumb-small .crumb-home {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  /* matches Elite5Pro gradient buttons */
  background: linear-gradient(90deg, #4d6bff, #00c6c7) !important;
  color: #fff;
  font-weight: 600;
  transition: 0.22s ease;
  box-shadow: 0 4px 14px rgba(65, 91, 224, 0.15);
}

/* Hover effect */
.breadcrumb-small .crumb-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65, 91, 224, 0.22);
}

/* Slash separator */
.breadcrumb-small .crumb-sep {
  color: var(--muted, #6b7280);
  opacity: 0.65;
}

/* Current category */
.breadcrumb-small .crumb-cat {
  color: #0a74ff;
  font-weight: 600;
  cursor: pointer;
}

.breadcrumb-small .crumb-city {
  
  font-weight: 700;
 
}

/* Recommendations container */
.recommendations {
  max-width: var(--maxW);
  /*margin: 40px auto 0;*/
  padding: 28px var(--container-side) 15px;
  /*border: 2px solid rgba(0, 0, 0, 0.08);*/
  border-radius: 14px;
  background: #fff;

  /*text-align: center;*/
}

/* Section title */
.recommend-title {
  /* display: inline-flex;*/
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  padding: 10px 22px;

  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, #4d6bff, #00c6c7);
  border-radius: 8px; /* pill */
  box-shadow: 0 6px 16px rgba(77, 107, 255, 0.25);
}

.recommend-list {
  column-count: 3; /* desktop */
  column-gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommend-list li {
  break-inside: avoid;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

.recommend-list li::before {
  content: "»";
  color: var(--primary-500);
  font-weight: 700;
  flex: 0 0 14px;
  font-size: 1.3em;
  transform: translateY(-20%);
}

/* links */
.recommend-list a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.recommend-list a:hover {
  text-decoration: underline;
}

/* tablet */
@media (max-width: 1024px) {
  .recommend-list {
    column-count: 2;
  }
}

/* mobile */
@media (max-width: 640px) {
  .recommend-list {
    column-count: 1;
  }
}

/* ===== PRICING SECTION ===== */

/* Outer wrapper (optional spacing) */
.pricing-box {
  border: 2px solid #e6e9ee;
  border-radius: 10px;
  background: #fafafa;
  padding: 8px 12px;   /* reduced padding */
  margin-top: 6px;
}

/* List container */
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 4px; /* tighter spacing */
}

/* Each row */
.price-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline; /* 🔥 key fix */
  column-gap: 6px;

  font-size: 0.95rem;
}

/* Left text (service name) */
.price-key {
  white-space: nowrap;
  font-weight: 500;
  color: #111827;
}

/* Dynamic filler (dots/lines) */
.price-dots {
  flex: 1;
  border-bottom: 1px dashed #9ca3af; /* 🔥 change to dashed/solid if needed */
  margin: 0 6px;
  height: 0; 
   /* align with text baseline */
}

/* Colon */
.price-sep {
  font-weight: 600;
  margin-right: 4px; /* very small gap after : */
}

/* Price value */
.price-value {
  font-weight: 700;
  color: #111827;
  min-width: 70px;
 
}

/* ===== ACHIEVEMENTS (PREMIUM) ===== */

.achievements-box {
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 6px;

  /* soft premium gradient */
  background: linear-gradient(135deg, #f9fafb, #f1f5ff);

  /* subtle highlight border */
  border: 1px solid rgba(77, 107, 255, 0.15);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* Each row */
.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;

  font-size: 0.95rem;
  color: #111827;
  line-height: 1.3;

  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover polish */
.achievement-item:hover {
  transform: translateX(3px);
  color: #0a74ff;
}

/* Icon */
.ach-icon {
  flex: 0 0 20px;
  font-size: 15px;

  /* slight glow */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Text */
.ach-text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.achievement-item:first-child .ach-text {
  font-weight: 600;
}


/* ===== SERVING AREAS ===== */

.serving-box {
  border: 2px solid #e6e9ee;
  border-radius: 10px;
  background: #fafafa;
  padding: 8px 12px;
  margin-top: 6px;

  display: flex;
  flex-wrap: wrap;   /* 🔥 allows inline wrapping */
  gap: 6px 12px;     /* row gap / column gap */
}

/* Each item (inline style) */
.serving-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 0.95rem;
  color: #111827;
  line-height: 1.3;
}

/* Tick icon */
.tick {
  color: #0a74ff;   /* matches your theme blue */
  font-size: 13px;
  line-height: 1;
}

/* Text */
.serving-text {
  white-space: nowrap; /* keeps each item together */
}

/* ===== NEW: ACTION BUTTONS (ADD THIS) ===== */

.actions-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Two buttons layout */
.dual-actions {
  justify-content: space-between;
}

/* Single View More */
.single-action {
  justify-content: center;
}

/* View More button */
.view-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 10px;

  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;

  color: #4d6bff;
  background: #eef2ff;

  border: 1px solid rgba(77, 107, 255, 0.25);

  transition: all 0.2s ease;
}

.view-more-btn:hover {
  background: #e0e7ff;
}

/* Equal width when both buttons present */
.dual-actions .view-more-btn,
.dual-actions .directions-btn {
  flex: 1;
}

/* Only View More → slightly wider */
.single-action .view-more-btn {
  min-width: 60%;
}

/* ===== EXCLUSIVE DISCOUNTS ===== */

.discount-box {
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 6px;

  /* subtle premium gradient */
  background: linear-gradient(135deg, #fff7ed, #fff1f2);

  /* soft highlight border */
  border: 1px solid rgba(255, 115, 0, 0.2);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* Each row */
.discount-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;

  font-size: 0.95rem;
  color: #111827;
  line-height: 1.3;

  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover polish */
.discount-item:hover {
  transform: translateX(3px);
  color: #ea580c; /* warm highlight */
}

/* Icon */
.discount-icon {
  flex: 0 0 20px;
  font-size: 15px;

  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Text */
.discount-text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

/* Highlight first discount slightly */
.discount-item:first-child .discount-text {
  font-weight: 600;
}

/* ===== PRIMARY CTA BUTTON ===== */

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 75%;              /* 🔥 full width inside card */
  padding: 11px 14px;

  border-radius: 10px;

  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;

  color: #fff;

 /* background: linear-gradient(90deg, #16a34a, #22c55e);*/
  background: linear-gradient(#5ac9ff, #00a4e4);
  border: 1px solid rgba(0,0,0,0.08);

  box-shadow: 0 8px 18px rgba(65, 91, 224, 0.28);

  transition: all 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(65, 91, 224, 0.35);
}


/* Verified badge */
.listing-card {
  position: relative;
  overflow: visible; /* critical */
}

/* ===== FLOATING CORNER BADGE ===== */
.badge {
  position: absolute;
  top: -14px;
  right: -14px;

  z-index: 50;

  padding: 7px 14px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;

  display: flex;
  align-items: center;
  gap: 6px;

  color: #fff;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 12px rgba(255,255,255,0.2) inset;

  transform: scale(1.05);

  backdrop-filter: blur(6px);
}

/* ===== VERIFIED (HIGH VISIBILITY GREEN) ===== */
.badge-verified {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow:
    0 10px 25px rgba(34,197,94,0.6),
    0 0 12px rgba(255,255,255,0.2) inset;
}

/* ===== TRUSTED (BRIGHT BLUE) ===== */
.badge-trusted {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow:
    0 10px 25px rgba(59,130,246,0.6),
    0 0 12px rgba(255,255,255,0.2) inset;
}

/* ICON */
.badge-icon {
  font-size: 13px;
}

 🔥 HOVER POP 
.listing-card:hover .badge {
  transform: scale(1.12) rotate(3deg);
}

.actions-row:has(.directions-btn:only-child) {
  justify-content: center;
}

.actions-row:has(.directions-btn:only-child) .directions-btn {
  width: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
