:root {
  --ink: #2b2623; --muted: #6b625c; --line: #e8e1db; --bg: #fff; --card: #fff; --soft: #f8f3ef;
  --primary: #bf460b; --primary-d: #9c3a09; --accent: #ff8f33; --accent-d: #e2640f; --dark: #26211e;
  --danger: #b3261e; --ok: #1f7a4d; --radius: 12px; --shadow: 0 1px 2px rgba(43,38,35,.06), 0 6px 20px rgba(43,38,35,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
small { font-size: .82em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .center { text-align: center; } .pre { white-space: pre-line; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stars { color: var(--accent-d); letter-spacing: 1px; white-space: nowrap; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-sm { padding: 6px 11px; font-size: .86rem; border-radius: 8px; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-d); }
.btn-accent { background: var(--accent); color: #2a1300; } .btn-accent:hover { background: var(--accent-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); } .btn-ghost:hover { border-color: #bfb3a8; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e6c3c0; } .btn-danger:hover { background: #fbeceb; }
.btn-wa { background: #177a43; color: #fff; } .btn-wa:hover { background: #12643a; }
.block-btn { display: flex; width: 100%; margin-bottom: 8px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Üst bar */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--primary); font-size: 1.25rem; letter-spacing: -.02em; }
.logo img { height: 46px; width: auto; }
.logo-light { color: #fff; font-weight: 700; } .logo-light b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.nav a, .nav .link-btn { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav .link-btn:hover { color: var(--primary); }
.nav a.btn { color: #2a1300; }
.nav form { margin: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }

.flash { margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid; }
.flash-success { background: #e9f6ee; border-color: #b9dfc8; color: #14532d; }
.flash-error { background: #fbeceb; border-color: #e6c3c0; color: #7a1a14; }
.flash-info { background: #fff6dd; border-color: #f0d995; color: #5c4300; }

/* Ana sayfa */
.hero { background: radial-gradient(900px 420px at 85% -10%, #8a3207 0, transparent 62%), radial-gradient(600px 300px at 0% 110%, #5a2408 0, transparent 60%), var(--dark); color: #fff; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 16em; margin-bottom: .3em; }
.hero p { color: #e6ddd6; font-size: 1.1rem; margin-bottom: 26px; }
.search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; max-width: 760px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.search input, .search select { border: 0; background: transparent; font: inherit; padding: 10px 12px; min-width: 0; color: var(--ink); }
.search input { flex: 1; } .search select { border-left: 1px solid var(--line); max-width: 190px; }
.section { padding-top: 44px; padding-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--primary); transform: translateY(-2px); }
.cat-icon { font-size: 1.6rem; } .cat small { color: var(--muted); }
.band { background: var(--soft); margin-top: 44px; padding-bottom: 36px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.review-mini { padding: 18px; } .review-mini footer { font-size: .9rem; color: var(--muted); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--dark); color: #fff; padding: 30px; border-radius: 16px; margin-bottom: 20px; }
.cta p { color: #e6ddd6; margin: 0; max-width: 40em; } .cta h2 { margin-bottom: .3em; }

/* Kartlar */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.firm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; }
.firm-card { display: block; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.firm-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(23,40,42,.13); }
.cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, hsl(var(--h) 42% 34%), hsl(calc(var(--h) + 40) 48% 22%)); display: grid; place-items: center; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover span { color: rgba(255,255,255,.9); font-size: 2rem; font-weight: 700; letter-spacing: .04em; }
.cover em { position: absolute; top: 10px; left: 10px; font-style: normal; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin-bottom: 4px; overflow-wrap: anywhere; }
.rating { font-size: .93rem; } .meta { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.badge { display: inline-block; white-space: nowrap; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: #eee; color: #444; }
.badge-accent { background: var(--accent); color: #2a1300; }
.badge-approved { background: #dff3e7; color: #14532d; } .badge-pending { background: #fff0c9; color: #5c4300; } .badge-rejected { background: #f9dedc; color: #7a1a14; }
.badge-role-admin { background: var(--dark); color: #fff; } .badge-role-firma { background: #fff0c9; color: #5c4300; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* Liste */
.list-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding-bottom: 48px; }
.filters form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; }
.filter-toggle { display: none; } .reset { font-size: .9rem; text-align: center; }
.page-title { font-size: 1.7rem; margin-bottom: 2px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; color: var(--ink); }
.pager a.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Formlar */
label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #8f857d; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
textarea { resize: vertical; }
.form { display: grid; gap: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.auth { max-width: 460px; padding-top: 44px; padding-bottom: 56px; } .auth.wide { max-width: 780px; }
.auth .form { padding: 28px; } .auth h1 { font-size: 1.6rem; margin: 0; }
.form-sub { font-size: 1rem; margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
fieldset.hours { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
fieldset.hours legend { font-weight: 600; font-size: .92rem; padding: 0 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Firma sayfası */
/* Firma sayfası başlığı: tüm firmalarda aynı, sitenin turuncu ve kömür grisi tonlarında. */
.firm-hero { position: relative; color: #fff; padding: 64px 0 28px; overflow: hidden;
  background: radial-gradient(700px 320px at 88% -20%, rgba(255,143,51,.55) 0, transparent 65%), radial-gradient(520px 260px at 0% 120%, rgba(204,76,14,.6) 0, transparent 62%), linear-gradient(120deg, #26211e 0%, #4a2412 55%, #cc4c0e 130%); }
.firm-hero .wrap { position: relative; z-index: 1; }
.firm-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .2em; overflow-wrap: anywhere; }
.firm-hero a { color: #fff; } .firm-hero .stars { color: var(--accent); }
.crumb { font-size: .9rem; opacity: .9; margin-bottom: 8px; }
.firm-layout { display: grid; grid-template-columns: 1fr 330px; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 56px; }
.block { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 small { color: var(--muted); font-weight: 400; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.product { overflow: hidden; } .product h3 { font-size: .98rem; }
.p-img { aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; font-size: 2rem; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.price { font-weight: 700; color: var(--primary); margin: 6px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
.gallery figure { margin: 0; display: grid; gap: 6px; justify-items: start; }
.side { display: grid; gap: 16px; position: sticky; top: 84px; }
.side-card { padding: 18px; } .side-card dl { margin: 10px 0 0; }
.side-card dt { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 10px; } .side-card dd { margin: 0; overflow-wrap: anywhere; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours-table td { padding: 4px 0; } .hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dist { display: flex; gap: 26px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.dist-score { display: grid; justify-items: center; } .dist-score b { font-size: 2.6rem; line-height: 1; }
.dist-bars { flex: 1; min-width: 200px; display: grid; gap: 4px; font-size: .86rem; }
.dist-bars div { display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: center; }
.dist-bars i { height: 8px; background: #eee6df; border-radius: 99px; overflow: hidden; } .dist-bars u { display: block; height: 100%; background: var(--accent); }
.note { padding: 14px 16px; }
.review-form { padding: 18px; display: grid; gap: 10px; margin-bottom: 20px; } .review-form h3 { margin: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: #d9cfc6; cursor: pointer; padding: 0 2px; display: inline; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent-d); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 4px; }
.review { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.review header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 4px; }
.review time { color: var(--muted); font-size: .85rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem; background: hsl(var(--h) 40% 38%); }
.reply { background: var(--soft); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-top: 8px; font-size: .95rem; }
.reply p { margin: 2px 0 0; }

/* Alt bilgi */
.site-footer { background: var(--dark); color: #d9cfc7; margin-top: 40px; padding: 40px 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; } .site-footer a { display: block; color: #d9cfc7; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; } .site-footer p { max-width: 26em; margin-top: 10px; }
.copy { border-top: 1px solid #40372f; margin-top: 30px; padding-top: 16px; padding-bottom: 16px; font-size: .86rem; }

/* Paneller */
.panel-body { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f6f2ee; }
.sidebar { background: var(--dark); color: #d9cfc7; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { padding: 0 8px 12px; }
.side-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .09em; margin: 6px 8px 0; color: #a89a8f; }
.side-firm { margin: 0 8px 8px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a, .sidebar .link-btn { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: #d9cfc7; text-decoration: none; }
.sidebar nav a:hover, .sidebar .link-btn:hover { background: #3a322c; color: #fff; }
.sidebar nav a.on { background: var(--accent); color: #2a1300; font-weight: 600; }
.side-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid #40372f; font-size: .92rem; }
.side-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid #40372f; }
.panel-main { padding: 22px 26px 48px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.panel-top { display: flex; align-items: center; gap: 12px; }
.panel-top h1 { font-size: 1.5rem; margin: 0; flex: 1; }
.panel-main .flash { margin: 0; }
.pad { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; display: grid; gap: 2px; } .stat small { color: var(--muted); } .stat b { font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-alert { border-color: var(--accent-d); background: #fff8e3; }
.todo { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.row-item { padding: 12px 0; border-top: 1px solid var(--line); } .row-item:first-of-type { border-top: 0; }
.row-item p { margin: 4px 0 0; overflow-wrap: anywhere; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: 0; }
.t-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .t-actions form { margin: 0; }
td.t-actions { min-width: 190px; }
.t-img { width: 60px; } .t-img img, .t-img span { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--soft); }
.thumb-wide { max-width: 320px; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: #eee6df; padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.tabs a.on { background: #fff; box-shadow: var(--shadow); }
.inline { display: flex; gap: 6px; margin-left: auto; } .inline input { width: 180px; padding: 6px 10px; }
.inline-fields { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; } .inline-fields label { flex: 1; min-width: 160px; }
.inline-fields .narrow { flex: 0 0 76px; min-width: 76px; } .grow { flex: 1; align-items: center; }

/* Üst bardaki arama */
.head-search { flex: 1; max-width: 430px; display: flex; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
.head-search input, .head-search select { border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; }
.head-search input { flex: 1.3; } .head-search select { flex: 1; border-left: 1px solid var(--line); border-radius: 0; }
.head-search button { border: 0; background: var(--primary); color: #fff; padding: 0 14px; border-radius: 0 9px 9px 0; cursor: pointer; display: grid; place-items: center; }
.head-search button:hover { background: var(--primary-d); }

/* Ana sayfa: kategori döşemeleri ve son hareketler */
.section > h2.mid, .band h2.mid { text-align: center; font-size: 1.6rem; margin-bottom: 22px; }
/* Kategori kutuları: hepsi aynı ölçüde; simge, ad ve firma sayısı her kutuda aynı hizada. */
.cat-grid.tiles { grid-template-columns: repeat(6, 1fr); }
.tiles .cat { display: grid; grid-template-rows: 44px 2.7em 1.3em; align-items: center; justify-items: center; text-align: center; padding: 18px 10px 14px; height: 158px; gap: 4px; }
.tiles .cat b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; font-size: .95rem; align-self: center; }
.tiles .cat:hover { box-shadow: var(--shadow); }
.tiles .cat-icon { font-size: 2rem; line-height: 1; margin: 0; }
.activity { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.activity header { display: flex; gap: 10px; align-items: center; padding: 14px 16px 10px; }
.activity header .avatar { width: 38px; height: 38px; font-size: .8rem; flex: none; }
.activity header p { margin: 0; font-size: .9rem; line-height: 1.3; } .activity header small { color: var(--muted); }
.activity .cover { aspect-ratio: 16 / 8; } .activity .cover span { font-size: 1.6rem; }
.activity .body { padding: 12px 16px 16px; } .activity .body a { font-weight: 700; text-decoration: none; font-size: 1.02rem; }
.activity .body p { margin: 4px 0 0; font-size: .93rem; }

/* Liste: satır görünümü */
.rows { display: grid; gap: 14px; margin-top: 16px; }
.row-card { display: grid; grid-template-columns: 210px 1fr; gap: 18px; padding: 16px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.row-card:hover { box-shadow: 0 8px 26px rgba(43,38,35,.14); }
.row-card .cover { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; }
.row-card h3 { font-size: 1.2rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.row-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tag { background: var(--soft); border-radius: 6px; padding: 2px 8px; font-size: .8rem; font-weight: 600; color: #4d443e; }
.snippet { color: var(--muted); font-size: .93rem; margin: 8px 0 0; display: flex; gap: 8px; }
.snippet::before { content: "💬"; }

/* Sabit boyutlu görseller, logo, harita, reklam, blog */
.p-img img, .gallery img, .cover img { object-fit: cover; }
.mini-logo { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); vertical-align: -7px; margin-right: 8px; background: #fff; object-fit: contain; }
.firm-title { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; } .firm-title h1 { margin: 0; }
.firm-hero img.firm-logo { position: static; width: 88px; height: 88px; flex: none; border-radius: 14px; background: #fff; object-fit: contain; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.thumb-logo { width: 96px; height: 96px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.map-card iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; display: block; }
.seller { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: .9rem; } .seller a { font-weight: 700; text-decoration: none; } .seller small { color: var(--muted); }
.product-grid.wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.matched { margin: 18px 0 8px; padding: 16px; background: var(--soft); border-radius: var(--radius); } .matched h2 { font-size: 1.1rem; }
.count { margin-top: 16px; }
.crumb-dark { font-size: .88rem; color: var(--muted); margin-bottom: 6px; } .crumb-dark a { color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; } .center-chips { justify-content: center; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; background: #fff; }
.chip:hover { border-color: var(--primary); color: var(--primary); } .chip small { color: var(--muted); font-weight: 400; }
.search.flat { box-shadow: none; border: 1px solid var(--line); margin-top: 14px; }
.ad { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; background: var(--soft); }
.ad img { width: 100%; height: 100%; object-fit: cover; }
.ad-yatay { aspect-ratio: 6 / 1; } .ad-kare { aspect-ratio: 6 / 5; }
.ad span { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; padding: 1px 7px; border-radius: 4px; letter-spacing: .04em; }
.ad-empty { display: grid; place-content: center; text-align: center; gap: 2px; padding: 10px; border-style: dashed; border-color: #d5cbc2; color: var(--muted); }
.ad-empty b { color: var(--primary); } .ad-empty:hover { border-color: var(--primary); }
.side-ad { margin-top: 16px; }
.ad-slots { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 20px; }
.ad-thumb { width: 120px; height: 44px; object-fit: cover; border-radius: 6px; float: left; margin-right: 12px; }
.hp { position: absolute; left: -9999px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card { display: block; text-decoration: none; color: var(--ink); overflow: hidden; } .post-card:hover { box-shadow: 0 10px 28px rgba(43,38,35,.13); }
.post-card .cover { aspect-ratio: 1200 / 630; } .post-card h3 { font-size: 1.1rem; margin-top: 4px; }
.post { min-width: 0; } .post h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .3em; }
.post-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
.lead { font-size: 1.15rem; color: #4d443e; margin-top: 14px; }
.post-body { font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; } .post-body h2 { margin-top: 1.5em; } .post-body h3 { margin-top: 1.2em; } .post-body li { margin-bottom: .35em; }
.plain { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; } .plain a { text-decoration: none; font-weight: 600; }
.bubble { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #2a1300; font-size: .75rem; font-weight: 700; text-align: center; margin-left: 6px; }
.sidebar nav a.on .bubble { background: #2a1300; color: #fff; }

/* Ürün gamı */
.ranges .chip { font-size: .95rem; padding: 8px 16px; background: var(--soft); border-color: transparent; }
.ranges a.chip:hover { background: #fff; border-color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; } .chip.on small { color: #ffe3d1; }
.chip-del { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-right: 6px !important; }
.chip-del button { border: 0; background: #e9ded5; color: var(--ink); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.chip-del button:hover { background: var(--danger); color: #fff; }
.range-line { margin: 8px 0 0; font-size: .93rem; }
.range-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.range { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 68px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; }
.range:hover { border-color: var(--primary); box-shadow: var(--shadow); } .range b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .range small { color: var(--muted); }
.source-note { font-size: .82rem; color: var(--muted); margin: 0; }

/* Görselli ürün gamı, sosyal medya, üyelik */
.range-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.range-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
a.range-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(43,38,35,.14); }
.range-card .p-img { background: linear-gradient(135deg, hsl(var(--h) 38% 40%), hsl(calc(var(--h) + 40) 44% 26%)); }
.range-card .p-img span { color: rgba(255,255,255,.92); font-size: 1.6rem; font-weight: 700; }
.range-card b { padding: 10px 12px; font-size: .95rem; line-height: 1.3; min-height: 3.2em; display: flex; align-items: center; overflow-wrap: anywhere; }
.range-cards.manage .range-card { gap: 6px; padding-bottom: 10px; } .range-cards.manage form { padding: 0 10px; margin: 0; }
.range-cards.manage { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mini-upload { display: grid; gap: 6px; } .mini-upload input { font-size: .75rem; padding: 4px; }
.range { flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 12px !important; padding: 0 12px !important; }
.range > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.range-thumb { width: 46px; height: 46px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(135deg, hsl(var(--h) 38% 42%), hsl(calc(var(--h) + 40) 44% 28%)); }
.range-thumb img { width: 100%; height: 100%; object-fit: cover; }
.social-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px !important; }
.social { display: inline-block; padding: 4px 11px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 600; }
.social:hover { border-color: var(--primary); color: var(--primary); }
.fee-box { border: 2px solid var(--primary); border-radius: var(--radius); padding: 18px; background: #fff8f3; }
.fee-box h2 { font-size: 1.05rem; margin: 0 0 4px; } .fee-box ul { margin: 8px 0 12px; padding-left: 20px; font-size: .93rem; }
.fee { font-size: 1.1rem; margin: 0; } .fee b { font-size: 1.7rem; color: var(--primary); } .fee small { color: var(--muted); }
.check { display: flex; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 600; } .check input { width: auto; margin-top: 4px; }
.pay-info { background: var(--soft); border-radius: 10px; padding: 14px; font-variant-numeric: tabular-nums; }
.small-link { font-size: .8rem; color: var(--primary); text-decoration: underline; }
.badge-role-uye { background: #eee6df; color: #4d443e; }

/* Mobil */
@media (max-width: 900px) {
  .list-layout, .firm-layout { grid-template-columns: 1fr; }
  .side, .filters form { position: static; }
  .filter-toggle { display: inline-flex; margin-bottom: 10px; }
  .filters form { display: none; } .filters form.open { display: grid; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .cat-grid.tiles { grid-template-columns: repeat(4, 1fr); }
  .ad-slots { grid-template-columns: 1fr; } .side-ad { display: none; } .ad-yatay { aspect-ratio: 3 / 1; }
  .firm-hero img.firm-logo { width: 64px; height: 64px; }
  .panel-body { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .panel-main { padding: 16px 16px 40px; }
  .panel-top .menu-btn { display: block; background: #fff; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .bar { flex-wrap: wrap; padding-bottom: 0; } .logo img { height: 40px; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 10px; }
  .row-card { grid-template-columns: 110px 1fr; gap: 12px; padding: 12px; } .row-card .cover { align-items: end; padding-bottom: 10px; } .row-card .cover em { top: 6px; left: 6px; } .row-card h3 { font-size: 1.05rem; } .row-card .cover span { font-size: 1.3rem; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; }
  .nav.open { display: flex; } .nav > * { padding: 10px 0; } .nav a.btn { margin-top: 6px; padding: 10px; }
  .search { flex-direction: column; } .search select { border-left: 0; border-top: 1px solid var(--line); max-width: none; }
  .grid2 { grid-template-columns: 1fr; }
  .cat-grid.tiles { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0 46px; }
  .inline { margin-left: 0; width: 100%; } .inline input { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.gallery img { height: auto; aspect-ratio: 4 / 3; }
.ad-thumb { float: none; display: block; margin: 0 0 6px; }

/* Görsel penceresi (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,12,10,.92); display: none; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 14px; right: 16px; } .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); } .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
.gallery a { cursor: zoom-in; display: block; }

/* Saat seçimi, ödeme seçenekleri, adresler, XML */
fieldset.hours-pick { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.hour-row { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; }
.hour-row select { padding: 8px 6px; }
fieldset.pay-pick { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pay-tags { display: flex; flex-wrap: wrap; gap: 6px; } .pay-tags .tag { background: #e9f6ee; color: #14532d; padding: 4px 10px; font-size: .86rem; }
.branches { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.xml-url { margin-top: 2px; font-size: .8rem; padding: 6px 8px; color: var(--muted); background: var(--soft); }
.self-start { justify-self: start; }
.order-no { min-width: 22px; text-align: center; }
.gallery.manage { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } .gallery.manage .t-actions { gap: 4px; }
button:disabled { opacity: .45; cursor: not-allowed; }

/* Alt bilgi iletişim, kategoriler sayfası, rapor, düzenleme kutusu */
.foot-mail { color: #fff !important; font-weight: 600; margin-top: 4px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.foot-social a { display: inline-block; padding: 4px 12px; border: 1px solid #5a4e45; border-radius: 99px; font-size: .86rem; }
.foot-social a:hover { border-color: var(--accent); }
.cat-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 20px; }
.cat-block { padding: 16px; display: grid; gap: 10px; align-content: start; }
.cat-block-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.cat-block-head .cat-icon { font-size: 1.8rem; line-height: 1; } .cat-block-head span:last-child { display: flex; flex-direction: column; }
.cat-block-head small { color: var(--muted); } a.cat-block-head:hover b { color: var(--primary); }
.cat-block .chips { margin: 0; } .small-note { margin: 0; font-size: .88rem; }
.report th:not(:first-child), .report td.num { text-align: right; font-variant-numeric: tabular-nums; } .report td.zero { color: #b9aea5; }
.edit-box { margin-top: 8px; } .edit-box summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: .88rem; } .edit-box form { margin-top: 10px; max-width: 520px; }
.mini-select { width: auto; padding: 5px 6px; font-size: .84rem; }
.ad-slots.three { grid-template-columns: repeat(3, 1fr); }
.nav a.btn { color: #fff; } .nav a.btn:hover { color: #fff; }
@media (max-width: 900px) { .ad-slots.three { grid-template-columns: 1fr; } .lightbox { padding: 56px 8px; } }

/* Kartlarda firma logosu: alanın içine oranı bozulmadan sığar, ekran boyutuna göre ölçeklenir. */
.cover img.logo-fit { object-fit: contain; background: #fff; padding: clamp(10px, 6%, 22px); }
.review-form label { font-size: .9rem; }

/* ---------- Erişilebilirlik, yasal ve yeni ekranlar ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--dark); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { left: 8px; }
#icerik:focus { outline: none; }
.pager .gap { padding: 6px 4px; color: var(--muted); }
.consent { font-weight: 400; font-size: .9rem; }
.consent a { font-weight: 600; }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 640px; margin: 0 auto; background: var(--dark); color: #fff;
  border-radius: 12px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; font-size: .9rem; } .cookie-note a { color: #ffd2b0; }
.map-slot { display: grid; gap: 8px; justify-items: start; }
.map-slot p { margin: 0; font-size: .86rem; }
.qr { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.secret { font-size: .95rem; background: var(--soft); padding: 2px 6px; border-radius: 6px; letter-spacing: .05em; }
.account { display: grid; gap: 18px; }
.account h2 { font-size: 1.15rem; margin: 0; }
.danger-zone { border-color: #e6c3c0; }
.warn-box { border-color: #f0d995; background: #fffaf0; }
.warn-box h2 { font-size: 1.05rem; }
.diff { margin: 6px 0 0; font-size: .88rem; } .diff dt { font-weight: 700; margin-top: 4px; } .diff dd { margin: 0; overflow-wrap: anywhere; }
.diff del { color: var(--danger); } .diff ins { color: var(--ok); text-decoration: none; }
.row-disabled td { opacity: .6; }
.nowrap { white-space: nowrap; }
a.stat { text-decoration: none; color: inherit; }
@media (max-width: 720px) {
  .cookie-note { flex-direction: column; align-items: stretch; }
  .hour-row { grid-template-columns: 80px 1fr 1fr; }
  fieldset.hours-pick { grid-template-columns: 1fr; }
}
/* Panel içeriği: geniş tablolar kendi kutusunda kayar, sayfa yana taşmaz. */
.panel-main { grid-template-columns: minmax(0, 1fr); }
.panel-main > * { min-width: 0; }
.panel-top h1 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .panel-top .muted { display: none; }
  .toolbar .tabs { width: 100%; }
}
