/* ==========================================================================
   Business Detail — modern + aurora glass + dock tabs
   ========================================================================== */

.biz{
  /* let the business page background follow the global theme background */
  --bg: var(--theme-background, #f6f7fb);
  --surface:#ffffff;
  --surface-soft:rgba(255,255,255,.88);
  --ink:#0f172a;
  --muted:#6b7280;
  --line:#e6e9f2;
  --brand:#6366f1;
  --brand-ink:#4338ca;
  /* Use site-wide theme primary as the accent inside business pages so admin setting controls CTAs */
  --accent: var(--theme-primary, #10b981);
  /* Slightly darker accent for hover/ink; fallback to a darker mix of accent */
  --accent-ink: color-mix(in srgb, var(--accent, var(--theme-primary, #10b981)) 24%, black);
  --radius:20px;
  --shadow-xs:0 4px 14px rgba(2,6,23,.05);
  --shadow-sm:0 8px 20px rgba(2,6,23,.06);
  --shadow-lg:0 18px 38px rgba(2,6,23,.08);
  --hero-gap:clamp(16px,2.8vw,30px);
}

.biz *{box-sizing:border-box}
.biz img{max-width:100%;display:block}
.biz a{color:var(--brand);text-decoration:none}
.biz a:hover{color:var(--brand-ink)}
.biz .container{max-width:1224px;margin:0 auto;padding:0 24px}

/* Inline SVG icon utilities */
.ico{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.ico svg{display:block;fill:currentColor;height:1em;width:1em}
.ico-star{color: #FFD166; /* warm gold */}
.ico-pin{color: #ef4444; /* red pin */}
.ico-phone{color: #1e3a8a; /* blue phone */}
.ico-directions{color: #065f46; /* green */}

.dir-ico .ico{height:1.1em}

/* Contact tile (modern cards for address and phone) */
.contact-tile{display:flex;align-items:center;gap:14px;padding:14px;border-radius:14px;background:#fff;border:1px solid rgba(2,6,23,0.04);box-shadow:0 8px 20px rgba(2,6,23,0.04);}
.contact-tile .tile-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 4px 12px rgba(2,6,23,0.04);}
.contact-tile .tile-ico .ico{color:var(--accent);}
.contact-tile .tile-body{flex:1}
.contact-tile .tile-title{color:var(--ink);line-height:1.35}
.contact-tile .tile-phone{color:var(--accent);font-weight:900;text-decoration:none}

/* Large CTA (Yol Tarifi Al) style */
.cta-large{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;border-radius:12px;background:#fff;color:var(--accent);font-weight:900;text-decoration:none;border:1px solid color-mix(in srgb, var(--accent) 28%, rgba(2,6,23,0.04));}
.cta-large{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;border-radius:12px;background:#fff !important;color:var(--accent) !important;font-weight:900;text-decoration:none;border:1px solid color-mix(in srgb, var(--accent) 28%, rgba(2,6,23,0.04));min-width:220px}
/* Keep the CTA visually stable on hover: enforce white background and visible label */
.cta-large:hover{background:#fff !important;filter:brightness(.98) !important}
.cta-large .dir-ico{width:44px;height:44px;border-radius:999px;background:var(--accent);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(2,6,23,0.06);flex-shrink:0}
.cta-large .dir-ico .ico{color:#fff}
.cta-large .cta-text{font-size:1rem;color:var(--accent) !important;opacity:1 !important}

/* prevent child text from collapsing or being hidden by overflow: ensure padding and alignment */
.cta-large .cta-text{white-space:nowrap;overflow:visible}

/* background */
.biz-mainwrap{
  /* pull up so content sits directly under tabs now that tabs are non-sticky */
  background:var(--bg);
  position:relative; z-index:2; margin-top:calc(var(--hero-gap) - 22px);
  padding-top:6px;
}

/* HERO */
.biz-hero{position:relative;width:100vw;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;min-height:min(52vh,520px);display:flex;align-items:flex-end;overflow:hidden;z-index:1}
.biz-hero__bg{position:absolute;inset:0;background-position:center;background-size:cover;filter:brightness(.92)}
.biz-hero__overlay{position:absolute;inset:0;background:transparent; /* overlay kaldırıldı, arka plan görseli direkt görünür */}
.biz-hero__bar{position:relative;width:100%;padding:0 0 28px}
.biz-hero__wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.biz-hero__title{margin:6px 0 0;color:var(--hero-text, #ffffff);font-weight:900;line-height:1.05;font-size:52px;text-shadow:0 3px 18px rgba(0,0,0,.45)}
.biz-hero__right{display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.biz-hero__badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.biz-hero{padding:0;min-height:min(40vh,360px);position:relative}
/* anchor the bar to the bottom edge of the hero image */
.biz-hero__bar{position:absolute;left:0;right:0;bottom:12px;padding-bottom:0}
.biz-hero__wrap{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto;gap:8px;align-items:end}
.biz-hero__title{grid-column:1/2;align-self:end;font-size:28px;color:var(--theme-text, #0f172a);text-shadow:none;margin:6px 0}
.crumbs{grid-column:1/2;align-self:start}
.biz-hero__badges{grid-column:2/3;justify-self:end;align-self:end}

/* Lighter hero title: plain white text with subtle shadow (no large dark pill) */
.biz-hero__title{
  font-size:36px;
  font-weight:900;
  color:#ffffff;
  position:relative;
  padding:0; /* no pill */
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-shadow:0 3px 12px rgba(0,0,0,0.5);
  transform:translateZ(0);
}

/* Breadcrumbs: small translucent chips for each crumb (subtle, low-profile) */
.crumbs nav{display:inline-flex;gap:6px;align-items:center;background:transparent;padding:0}
.crumbs nav a{color:rgba(255,255,255,0.9);font-size:13px;text-decoration:none;padding:4px 8px;border-radius:999px;background:rgba(0,0,0,0.18);transition:all .12s ease}
.crumbs nav a:hover{background:rgba(255,255,255,0.96);color:var(--accent);transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,0.16)}
.crumbs .sep{display:none}
.crumb-current{color:rgba(255,255,255,0.95);font-weight:800}
.biz-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--accent, var(--theme-primary, #10b981));
  border:1px solid color-mix(in srgb, var(--accent, var(--theme-primary, #10b981)) 28%, rgba(0,0,0,.06));
  color:var(--hero-text, #fff);
  padding:6px 12px;
  border-radius:999px;
  backdrop-filter:blur(6px);
  font-weight:800;
  font-size:0.95rem;
  max-width: 100%;
  white-space: normal; /* allow wrapping */
  overflow-wrap: anywhere; /* break long tokens if necessary */
  line-height:1.05;
  vertical-align:middle;
}
.biz-pill{
  /* Use site primary/accent as default pill background so theme controls these badges */
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, black 6%));
  color: #fff; /* high contrast on primary */
  border:1px solid color-mix(in srgb, var(--accent) 28%, rgba(0,0,0,.06));
  box-shadow:0 8px 18px rgba(2,6,23,0.04);
}
.biz-pill.isopen.open{background:linear-gradient(180deg,var(--accent), color-mix(in srgb,var(--accent) 60%, black 6%)); color:#fff}

/* Breadcrumbs */
.crumbs{margin-bottom:2px}
.crumbs nav{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:center}
.crumbs a{color:var(--muted);opacity:.85}
.crumbs .sep{opacity:.6;margin:0 6px}
/* Hover for crumbs is defined earlier to use accent color and lift */

/* Place badges under title (stacked) */
.biz-hero__right{width:100%;display:flex;justify-content:flex-start}
.biz-hero__badges{margin-top:6px}

/* Map card polish */
.loc-map{border-radius:14px;overflow:hidden;border:1px solid rgba(2,6,23,0.04);box-shadow:0 12px 30px rgba(2,6,23,0.06);}
.loc-map .biz-map{height:200px;border-radius:12px}

/* reduce spacing inside right column a bit */
.stack .biz-card__body{padding:14px}
.biz-pill.isopen.open{
  background:var(--accent, var(--theme-primary, #10b981));
  border-color:color-mix(in srgb, var(--accent, var(--theme-primary, #10b981)) 36%, rgba(0,0,0,.06));
  color:var(--hero-text, #fff);
}
.biz-pill.isopen.closed{
  background: color-mix(in srgb, var(--danger, #ef4444) 82%, black 6%);
  border-color: color-mix(in srgb, var(--danger, #ef4444) 60%, black 8%);
  color: #fff;
}
.biz-hero::after{content:"";position:absolute;left:0;right:0;bottom:-14px;height:40px;background:radial-gradient(60% 40px at 50% 0, rgba(0,0,0,.18) 0, rgba(0,0,0,0) 70%);filter:blur(8px);opacity:.25;pointer-events:none}

/* reduce hero ambient shadow so the tab rail can read as a continuous band */
.biz-hero::after{
  height:6px; filter:blur(2px); opacity:0.08;
}

/* GRID */
.biz-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:10px;align-items:start;position:relative}
.biz-grid::before,.biz-grid::after{content:none !important;display:none !important}

/* CARDS */
.biz-card{border-radius:var(--radius);overflow:hidden;transition:box-shadow .2s ease,transform .12s ease;position:relative;background:rgba(255,255,255,.58);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.45);box-shadow:0 16px 36px rgba(2,6,23,.10), inset 0 1px 0 rgba(255,255,255,.65)}
.biz-card:hover{transform:translateY(-2px)}
.biz-card__body{padding:18px 20px}
.biz-title{margin:0 0 10px;color:var(--ink);font-size:20px;font-weight:900;letter-spacing:.2px}
.biz-meta{color:var(--muted)}
/* Rich text styles for sanitized HTML inside .biz-meta */
.biz-meta{font-size:15px;line-height:1.75;color:var(--muted);margin-top:6px}
.biz-meta p{margin:0 0 1.05rem;color:var(--muted);font-size:15px}
.biz-meta h1,.biz-meta h2,.biz-meta h3{color:var(--ink);margin:0 0 .8rem;font-weight:900;line-height:1.15}
.biz-meta h1{font-size:34px;margin-top:.2rem}
.biz-meta h2{font-size:24px}
.biz-meta h3{font-size:20px}
.biz-meta strong,.biz-meta b{font-weight:900;color:var(--ink)}
.biz-meta em,.biz-meta i{font-style:italic;color:var(--muted)}
.biz-meta a{color:var(--brand);text-decoration:underline;font-weight:700}
.biz-meta ul,.biz-meta ol{margin:0 0 1rem 1.25rem;padding:0}
.biz-meta li{margin:0.35rem 0}
.biz-meta blockquote{margin:0 0 1rem;padding:12px 16px;border-left:4px solid color-mix(in srgb,var(--accent, #6366f1) 30%, rgba(0,0,0,0.06));background:rgba(99,102,241,0.03);color:var(--ink)}
.biz-meta img{max-width:100%;height:auto;border-radius:8px;margin:8px 0}

/* make sure headings inside description don't inherit overly small sizes from parent containers */
.biz-meta h1, .biz-meta h2, .biz-meta h3 { line-height:1.15 !important; }
.biz-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.biz .biz-card + .biz-card{margin-top:18px}

/* STACK SURFACE (left & right) */
.stack{border-radius:20px;background:rgba(255,255,255,.52);border:1px solid rgba(255,255,255,.45);box-shadow:0 10px 28px rgba(2,6,23,.08)}
.stack__inner{display:flex;flex-direction:column;padding:18px 20px;gap:18px}
.stack .biz-card{background:transparent;border:0;box-shadow:none}
.stack .biz-card__body{padding:18px 8px}
.stack .biz-card + .biz-card::before{content:"";display:block;height:1px;background:linear-gradient(90deg, rgba(2,6,23,0), rgba(2,6,23,.14), rgba(2,6,23,0));opacity:.9;margin:0 8px}

/* RIGHT sticky */
@media (min-width:1024px){ .biz-side .stack{position:sticky;top:88px} }

/* === Override: disable upward hover lift for sidebar cards ===
  The global .biz-card:hover applies translateY(-2px). For the
  left/right stacked sidebars we want no vertical movement on hover.
  Use a more specific rule to cancel transform on hover inside
  .stack containers (affects both left and right sidebars).
*/
.stack .biz-card:hover{ transform: none !important }

/* Rating (bars) */
.rating-card .big{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.rating-card .big .score{font-size:44px;font-weight:900;color:#111827}
.rating-card .big .qual{font-weight:900;color:#111827}
.rating-bars{display:flex;flex-direction:column;gap:8px}
.rating-row{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;font-size:13px;color:#334155}
.bar{height:10px;border-radius:999px;background:#eef2f7;overflow:hidden}
.bar__fill{height:100%;background:linear-gradient(90deg, var(--accent), #15b76a)}
.rating-card .small{color:#6b7280;font-size:12px;margin-top:10px}

/* Location */
.loc-card{padding-bottom:18px}
.loc-map{border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.48);box-shadow:0 16px 36px rgba(2,6,23,.10), inset 0 1px 0 rgba(255,255,255,.6);position:relative;background:#fff}
.loc-map .biz-map{height:260px}
.soft-sep{height:1px;margin:14px 0;background:linear-gradient(90deg, rgba(2,6,23,0), rgba(2,6,23,.14), rgba(2,6,23,0));opacity:.9}
.contact-list{display:flex;flex-direction:column;gap:4px;margin:12px 0 14px}
.loc-list .contact-row{position:relative;padding:12px 0;border-bottom:0}
.loc-list .contact-row + .contact-row::before{content:"";position:absolute;left:48px;right:0;top:0;height:1px;background:linear-gradient(90deg, rgba(2,6,23,.10), rgba(2,6,23,.02))}
.contact-ico{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;background:linear-gradient(180deg,#eef4ff,#ffffff);color:#1e3a8a;box-shadow:inset 0 0 0 1px rgba(37,99,235,.20), 0 3px 10px rgba(2,6,23,.06)}
.dir-btn{width:100%;min-height:48px;margin-top:12px;border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;background:var(--accent);color:#fff !important;font-weight:900;position:relative;overflow:hidden;transition:filter .12s ease, transform .06s ease}
/* Flat modern button: no gradient, subtle shadow, white icon capsule */
.dir-btn{box-shadow:0 6px 16px rgba(2,6,23,0.06)}
.dir-btn:hover{filter:brightness(.96);transform:none}
.dir-ico{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:#ffffff;margin-right:10px;flex-shrink:0;box-shadow:0 2px 8px rgba(2,6,23,0.04);}
.dir-ico .ico{display:flex;align-items:center;justify-content:center;color:var(--accent);}
.dir-ico .ico svg{width:18px;height:18px;fill:currentColor}


/* ========== RIGHT › Location card: compact contact tiles ========== */

/* Listeyi kutucuklara çeviriyoruz */
.loc-list{
  display:grid;
  gap:12px;
  margin:14px 0 6px;
}

/* Her satır: ikon + metin, küçük bir kart */
.loc-list .contact-row{
  display:grid;
  grid-template-columns: 44px 1fr;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  box-shadow:0 6px 16px rgba(2,6,23,.06);
}

/* Eski dashed çizgileri tamamen kapat */
.contact-row{ border-bottom:0 !important; }

/* İkon kapsülü */
.loc-list .contact-ico{
  width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:#1e3a8a;
  background:linear-gradient(180deg,#f3f7ff,#ffffff);
  box-shadow:
    0 1px 0 rgba(2,6,23,.08),
    inset 0 0 0 1px rgba(37,99,235,.18);
}

/* Metin tarafı */
.loc-list .contact-txt{ color:var(--ink); line-height:1.35; }
.loc-list .contact-txt a{ font-weight:800; text-decoration:none; }

/* CTA düğmesi beyaz yazı + minik “hover pop” */
.dir-btn{ color:#fff !important; font-weight:900; transition:background .08s ease; }
.dir-btn:hover{ transform:none; box-shadow:none }

/* ince (hairline) ayırıcı – düz çizgiler yerine gradient */
.soft-sep{
  height:1px; margin:14px 0;
  background:linear-gradient(90deg, rgba(2,6,23,0), rgba(2,6,23,.10), rgba(2,6,23,0));
  opacity:.7;
}

/* ========== RIGHT › Opening hours: başlık + chip tek satır ========== */

/* Sadece hours kartının başlığını esnek satır yap */
.biz-card#hours .biz-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

/* Chip’in satır atlamasını engelle, küçük ekranda otomatik küçült */
.biz-card#hours .chip{
  flex:0 1 auto;
  white-space:nowrap;
  font-size:12px;
  padding:4px 8px;
}
@media (max-width: 420px){
  .biz-card#hours .chip{ font-size:11px; padding:3px 7px; }
}

/* Saatler tablosundaki çizgileri modern hairline yap */
.biz-hours--pretty td{ border-bottom:0; position:relative; padding:12px 0; }
.biz-hours--pretty tr + tr td::before{

/* Additional responsive tweaks: ensure pills and tabs are mobile friendly */
@media (max-width:720px){
  .biz-hero__badges{ gap:8px; justify-content:flex-start }
  .biz-pill{ max-width:48%; padding:8px 10px; font-size:0.9rem }
  .page-tabs .container{ gap:10px; padding:8px 10px }
  .page-tabs a{ padding:10px 12px; min-height:44px; font-size:0.95rem }
}
@media (max-width:420px){
  .biz-pill{ max-width:100%; display:inline-flex; width:100%; padding:10px 12px; font-size:0.88rem }
  .page-tabs{ padding-bottom:12px }
  /* allow tabs to stack into multiple rows if needed, otherwise horizontal scroll remains */
  .page-tabs .container{ flex-wrap:wrap; align-items:stretch }
  .page-tabs a{ flex:1 1 auto; border-radius:12px; margin-bottom:8px; justify-content:center }
}
  content:""; position:absolute; left:0; right:0; top:-6px; height:1px;
  background:linear-gradient(90deg, rgba(2,6,23,0), rgba(2,6,23,.10), rgba(2,6,23,0));
}


/* Gallery */
.biz-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.biz-gallery img{aspect-ratio:4/3;object-fit:cover;border-radius:12px;cursor:pointer}

/* Hours (pretty) */
.biz-hours{width:100%;border-collapse:separate;border-spacing:0}
.biz-hours--pretty td{padding:12px 0;color:#0f172a}
.biz-hours--pretty .d{width:160px;font-weight:700;color:#111827}
.biz-hours--pretty tbody tr{position:relative}
.biz-hours--pretty tbody tr:not(:last-child)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg, rgba(2,6,23,0), rgba(2,6,23,.14), rgba(2,6,23,0))}
.biz-hours--pretty tr.today td:first-child{color:var(--brand-ink);font-weight:800;position:relative;padding-left:16px}
.biz-hours--pretty tr.today td:first-child::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(16,185,129,.22)}
.chip{display:inline-block;margin-left:10px;padding:4px 10px;border-radius:999px;font-weight:700;font-size:12px;background:#eef2ff;color:#1e293b}
.chip.open{background:rgba(34,197,94,.12);color:#065f46}
.chip.closed{background:rgba(239,68,68,.12);color:#991b1b}

/* Reviews – Trustpilot-like grid */
.reviews-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
@media (max-width:900px){ .reviews-grid{grid-template-columns:1fr} }
.review-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm);padding:18px 18px 12px}
.review-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:8px}
.avatar{width:44px;height:44px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:800;color:#1d4ed8;background:#e6eefc;flex-shrink:0}
.review-meta .name{font-weight:800;color:var(--ink);line-height:1.1}
.review-meta .date{font-size:12px;color:var(--muted);margin-top:2px}
.stars{display:flex;gap:6px;margin:8px 0 4px}
.starbox{width:14px;height:14px;border-radius:4px;background:#eef2f7;box-shadow:inset 0 0 0 1px rgba(2,6,23,.08)}
.starbox.on{background:linear-gradient(180deg, var(--accent, var(--theme-primary, #22c55e)), color-mix(in srgb, var(--accent, var(--theme-primary, #16a34a)) 72%, #16a34a)); box-shadow:none}
.review-body{color:#1f2937;margin-top:6px;display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.review-body.expanded{-webkit-line-clamp:unset;line-clamp:unset}
.review-more{margin-top:8px;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid #dbe2ef;background:#fff;color:#0b1220;font-weight:800;font-size:12px;cursor:pointer;transition:.15s}
.review-more::after{content:"▾";font-size:12px;opacity:.8}
.review-body.expanded + .review-more::after{content:"▴"}
.review-more:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(2,6,23,.08)}
.review-more:focus{outline:3px solid rgba(99,102,241,.35);outline-offset:2px}

/* Lightbox */
.biz-lightbox{position:fixed;inset:0;background:rgba(15,23,42,.78);display:none;align-items:center;justify-content:center;z-index:12000}
.biz-lightbox.open{display:flex}
.biz-lightbox img{max-width:92vw;max-height:92vh;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.biz-lightbox .close{position:absolute;top:18px;right:22px;background:#fff;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}

/* Leaflet */
.leaflet-container{transform:translateZ(0)}
.leaflet-container .leaflet-control-zoom a{box-shadow:none}

/* Responsive + mobile blur fix */
@media (max-width:1024px){
  .biz-grid{grid-template-columns:1fr;gap:22px}
  .biz-hero__wrap{flex-direction:column;align-items:flex-start;gap:12px}
  .biz-hero__right,.biz-hero__badges{align-items:flex-start;justify-content:flex-start}
  .biz-hero__title{font-size:38px}
}
/* Mobile hero polish: avoid badge/title overlap and stacking issues */
@media (max-width:720px){
  /* let the hero bar sit in normal flow so badges don't overlap the title */
  .biz-hero__bar{position:relative; bottom:auto; left:auto; right:auto; padding-bottom:12px}
  .biz-hero{min-height:auto;padding-bottom:12px}
  .biz-hero__wrap{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
  .biz-hero__title{font-size:26px;line-height:1.1;margin:0}
  /* badges wrap onto multiple lines and get smaller */
  .biz-hero__badges{display:flex;flex-wrap:wrap;gap:6px}
  .biz-pill{padding:6px 10px;font-size:13px;border-radius:999px}
  .biz-pill.isopen{padding:5px 8px;font-size:12px}
  /* ensure tabs don't sit on top of hero content */
  .page-tabs{ margin-top:6px }
}
@media (max-width:768px){
  /* mobile’de cam blur kaldır, net görünüm */
  .biz-card,.stack{backdrop-filter:none !important;-webkit-backdrop-filter:none !important;background:#fff}
}
@media (max-width:640px){
  .biz .container{padding:0 16px}
  .biz-hero__title{font-size:32px}
}

.page-tabs{ top:54px }

/* ===== Pagination (site-wide tiny theme-aware styles) ===== */
.pagination{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.pagination a{ display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:6px 10px; border-radius:8px; text-decoration:none; color:var(--theme-text, #111); background:transparent; border:1px solid rgba(0,0,0,0.06); font-weight:700; }
.pagination a:hover{ box-shadow:0 6px 18px rgba(2,6,23,0.06); transform:translateY(-2px); }
.pagination a.is-active{ background:var(--theme-primary, var(--accent, #22c55e)); color:#fff; border-color:color-mix(in srgb, var(--theme-primary, var(--accent, #22c55e)) 36%, rgba(0,0,0,0.06)); }
.pagination a[aria-disabled="true"], .pagination a.disabled{ opacity:0.5; pointer-events:none; }

/* small screen tweaks */
@media (max-width:720px){ .pagination a{ min-width:32px; height:32px; padding:6px 8px; border-radius:8px; } }

/* ===== TEMA 4: Threaded Beads — Improved contrast for hero overlays ===== */
.page-tabs{
  --tab-string: color-mix(in srgb, var(--theme-primary, var(--accent, #6366f1)) 12%, #e7ecf8);
  --tab-ink: #ffffff;
  --tab-active: var(--tab-accent, var(--theme-primary, var(--accent, #6366f1)));
  position:relative; z-index:60; background: transparent; isolation:isolate;
  display:flex; align-items:center; justify-content:center; /* center vertically */
}
.page-tabs .container{
  display:flex; justify-content:center; align-items:center; gap:14px;
  overflow:auto; position:relative;
  /* align with site content container */
  max-width:1224px; margin:0 auto; padding:18px 18px 4px 18px; /* inner band padding */
  background: transparent;
  box-shadow: none;
  border-top:0; border-bottom:0;
  height:auto; /* use auto so later padding overrides control band height */
  transform: translateY(8px); /* visually nudge buttons down without increasing outer gap */
}

/* Mobile / small screens: ensure tabs wrap and stay centered */
@media (max-width: 720px){
  .page-tabs{ transform: translateY(0); top:58px; }
  .page-tabs .container{ padding:12px 12px 4px 12px; gap:8px; max-width:100%; margin:0 12px; height:auto }
  .page-tabs [role="tab"]{ padding:10px 14px; font-size:15px; border-radius:12px; min-height:48px; display:inline-flex; align-items:center; gap:8px }
  .page-tabs .container{ flex-wrap:wrap; align-items:center; justify-content:center }
}
/* Mobile: make tabs full-width buttons and non-sticky */
@media (max-width:720px){
  .page-tabs{ position:static !important; box-shadow:none; }
  .page-tabs .container{ margin:0; padding:10px 12px; gap:10px }
  .page-tabs [role="tab"]{
    flex: 1 1 100%; /* full width */
    justify-content:center;
    padding:10px 14px;
    border-radius:12px;
    background:#fff; /* ensure contrast */
    box-shadow:0 6px 16px rgba(2,6,23,0.06);
    border:1px solid rgba(2,6,23,0.04);
    min-height:44px;
  }
  .page-tabs [role="tab"].active{ padding:10px 14px; }
}

/* Slightly smaller adjustments for very small screens */
@media (max-width:420px){
  .page-tabs{ top:54px }
  .page-tabs .container{ padding:6px 10px }
  .page-tabs [role="tab"]{ padding:7px 10px; font-size:13px }
}
.page-tabs .container::before{
  /* decorative inner line removed to avoid double-strip appearance */
  display:none;
}
/* compact bead-like tabs with high contrast (buttons with role=tab) */
.page-tabs [role="tab"]{
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; min-height:36px;
  font-weight:800; color:var(--ink); background: rgba(255,255,255,0.92); /* keep pills readable */
  border-radius:999px; box-shadow:0 4px 10px rgba(2,6,23,0.06);
  transform-origin:50% 50%; transition:transform .12s, box-shadow .12s, background .18s, color .12s;
  border:1px solid rgba(2,6,23,0.04); cursor:pointer;
}
.page-tabs [role="tab"]::before{
  content:""; width:8px; height:8px; border-radius:50%; display:inline-block;
  margin-right:6px; background: color-mix(in srgb, var(--tab-active, #6366f1) 64%, #9aa4bc);
  box-shadow:0 0 0 3px rgba(255,255,255,0.06) inset;
}
.page-tabs [role="tab"]:hover{ transform: translateY(-3px); box-shadow: 0 10px 22px rgba(2,6,23,0.08); }
.page-tabs [role="tab"].active{
  color:#fff; transform:translateY(0) scale(1); /* keep active flush with rail */
  background: var(--accent, #22c55e); /* strong accent background for readability */
  /* neutral subtle shadow only, no colored halo */
  box-shadow: 0 2px 6px rgba(2,6,23,0.08);
  border:1px solid color-mix(in srgb, var(--accent, #22c55e) 36%, rgba(0,0,0,.06));
  padding:7px 14px; border-radius:12px; position:relative; top:0;
}
.page-tabs [role="tab"].active::before{
  /* active tab: use white dot with subtle border for contrast */
  background:#fff;
  box-shadow:none;
  border:2px solid rgba(0,0,0,0.06);
}

/* Focus outline for keyboard users */
.page-tabs [role="tab"]:focus{
  outline:3px solid color-mix(in srgb, var(--accent, #22c55e) 28%, rgba(99,102,241,0.12));
  outline-offset:4px;
}

/* === Threaded Beads — Shadow Fix & Polish =================== */
/* kapsayıcıyı gölgeler için daha yüksek ve üstte tut */
.page-tabs{
  z-index: 60;                 /* gölgenin alttaki içerik tarafından kesilmemesi için */
  padding-bottom: 6px;        /* reduce breathing space under tabs */
  isolation: isolate;          /* blend/stack sorunlarını önler */
  /* give the tab band a unified background matching the site theme background */
  background: linear-gradient(180deg, var(--theme-background), var(--theme-background));
}

/* yatayda scroll kalsın, dikeyde kırpma olmasın */
.page-tabs .container{
  overflow-x: auto;
  overflow-y: visible;         /* ↓ gölgeler artık kırpılmayacak */
  padding: 12px 24px 4px;     /* reduce bottom padding so cards come up */
  max-width:1224px; margin:0 auto;
}

/* footer üstü ve tab bandı arası renk farkını gider: footer üstü alanı ile aynı arkaplan olsun */
/* removed extra decorative strip — backgrounds are unified via --bg / --theme-background */

/* alt kısımda yumuşak genel bir gölge (ambient) */
.page-tabs::after{
  /* remove ambient shadow beneath tabs to avoid dark halo */
  display:none;
}

/* ip hizasını yeni paddingle eşitle */
.page-tabs .container::before{
  display:none; /* ensure no inner string line */
}

/* kart gölgelerini biraz derinleştir (opsiyonel, daha hoş görünür) */
.page-tabs [role="tab"]{
  box-shadow: none; /* disable heavy halo */
}
.page-tabs [role="tab"].active{
  box-shadow: none; /* ensure active tab has no colored halo */
}

/* Safety override: ensure the right sidebar is present on wider screens.
   Some browsers/layout edge-cases can collapse minmax columns; this enforces
   a stable sidebar width at desktop sizes while preserving mobile stacking. */
@media (min-width:900px){
  .biz-grid{ grid-template-columns: 1fr 360px !important; }
  .biz-side{ display:block !important; min-width:320px; }
}

