/* MekanBook — tek stil dosyası (derleme adımı yok; paylaşımlı sunucuda doğrudan çalışır) */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #1c1a17;
  --ink-2: #5b5650;
  --ink-3: #8a847c;
  --line: #e6dfd4;
  --brand: #e8601c;
  --brand-ink: #b8460c;
  --brand-soft: #fdeee4;
  --good: #1f7a4d;
  --good-soft: #e5f3ec;
  --warn: #9a6200;
  --warn-soft: #fbf0d9;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28,26,23,.06), 0 4px 16px rgba(28,26,23,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Üst menü */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav .btn { margin-left: 4px; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { text-decoration: none; border-color: var(--ink-3); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn-sm { padding: 6px 10px; min-height: 34px; font-size: .85rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--brand-ink); font: inherit; cursor: pointer; padding: 0; }

/* Kartlar ve ızgaralar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.section { padding: 28px 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }

/* Mekan kartı */
.venue-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.venue-card .ph { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.venue-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.venue-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.venue-card h3 { margin: 0; font-size: 1.05rem; }
.venue-card h3 a { color: var(--ink); }
.venue-card .meta { color: var(--ink-2); font-size: .88rem; }
.venue-card .fees { font-size: .82rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.sponsored-label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

/* Rozetler */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Ücret tablosu (sürpriz fiyat yok) */
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table th { font-weight: 600; width: 40%; }
.fee-yes { color: var(--ink); font-weight: 600; }
.fee-no { color: var(--good); font-weight: 600; }
.fee-unknown { color: var(--warn); font-weight: 600; }

/* Formlar */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field .error { font-size: .85rem; color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 1rem var(--font); min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* Uyarılar */
.alert { padding: 12px 14px; border-radius: 10px; margin: 12px 0; border: 1px solid transparent; }
.alert-success { background: var(--good-soft); color: var(--good); }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--surface-2); color: var(--ink-2); }

/* Tablolar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }

/* Breadcrumb */
.crumbs { font-size: .85rem; color: var(--ink-3); padding: 14px 0 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }

/* Hero */
.hero { padding: 36px 0 20px; }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.search-bar input, .search-bar select { flex: 1 1 180px; border: 0; min-height: 46px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: .9rem; }
.chip:hover, .chip.active { border-color: var(--ink); text-decoration: none; }
.chip.active { background: var(--ink); color: var(--bg); }

/* Mekan detay */
.venue-hero { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
@media (min-width: 900px) { .venue-hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.cover { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16/9; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.side-card { position: sticky; top: 76px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--ink-2); padding: 10px 0; }
.qa dt { font-weight: 600; margin-top: 12px; }
.qa dd { margin: 4px 0 0; color: var(--ink-2); }

/* Menü */
.menu-cat { margin-top: 18px; }
.menu-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-item .price { font-weight: 700; white-space: nowrap; }

/* Etkinlik */
.event-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.datebox { text-align: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); padding: 8px 4px; font-weight: 700; line-height: 1.1; }
.datebox .d { font-size: 1.5rem; }
.datebox .m { font-size: .75rem; text-transform: uppercase; }
.ticket-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Üye kartı */
.member-card { max-width: 380px; margin: 0 auto; border-radius: 20px; padding: 22px; background: linear-gradient(160deg, #201c18, #3a2a1f); color: #fbf6ef; box-shadow: var(--shadow); }
.member-card .qr { background: #fff; border-radius: 14px; padding: 14px; margin: 16px auto 8px; width: 240px; height: 240px; }
.member-card .qr svg { width: 100%; height: 100%; }
.countdown { height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
.countdown i { display: block; height: 100%; background: var(--brand); }

/* Kapı tarayıcı */
.scan-result { border-radius: 16px; padding: 22px; text-align: center; font-size: 1.15rem; }
.scan-ok { background: var(--good-soft); color: var(--good); }
.scan-no { background: var(--bad-soft); color: var(--bad); }

/* Panel yerleşimi */
.panel { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 980px) { .panel { grid-template-columns: 250px minmax(0, 1fr); } }
.panel-nav { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; }
.panel-nav .logo img { height: 30px; margin: 4px 8px 16px; }
.panel-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .93rem; }
.panel-nav a:hover, .panel-nav a.active { background: var(--surface-2); text-decoration: none; }
.panel-nav .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 10px 4px; font-weight: 700; }
@media (max-width: 979px) { .panel-nav { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); } .panel-nav .group { width: 100%; margin: 6px 4px 0; } }
.panel-main { padding: 20px 16px 48px; min-width: 0; }
@media (min-width: 980px) { .panel-main { padding: 28px 32px 64px; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h1 { margin: 0; font-size: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .n { font-size: 1.7rem; font-weight: 700; }
.stat .l { color: var(--ink-2); font-size: .85rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

/* Sayfalama */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 24px 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Alt bilgi */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 24px; font-size: .9rem; color: var(--ink-2); }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.site-footer h4 { color: var(--ink); margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--ink-2); }
.legal { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; font-size: .8rem; }

/* Reklam alanı */
.ad-slot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); position: relative; }
.ad-slot .sponsored-label { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.9); color: #5b5650; padding: 2px 6px; border-radius: 6px; }

/* Görev 33: bölgesel fiyat rozeti */
.price-badge { display: inline-block; font-size: .72rem; line-height: 1.3; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line, #ddd); color: var(--muted, #5b5650); white-space: nowrap; cursor: help; }
.price-badge-above { border-color: #c47a12; color: #8a5300; background: #fff6e6; }
.price-badge-below { border-color: #2f7d4f; color: #23633d; background: #eef8f1; }
/* Ana sayfa: ücretsiz hizmet çipleri, ince banner, liste arası reklam, çerez onayı, 3'lü kart satırı */
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.feature-chips .label { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.feature-chips .chip { padding: 6px 12px; font-size: .86rem; }
.mb-banner { position: relative; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mb-banner .sponsored-label { position: absolute; top: 6px; left: 8px; z-index: 1; background: rgba(255,255,255,.92); color: #5b5650; padding: 1px 6px; border-radius: 6px; font-size: .66rem; }
.mb-banner-close { position: absolute; top: 4px; right: 4px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #1c1a17; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.mb-banner-img, .mb-banner-img picture, .mb-banner-img img { display: block; width: 100%; }
.mb-banner--image .mb-banner-img { aspect-ratio: 1200 / 90; background: var(--surface-2); }
.mb-banner--image img { height: 100%; object-fit: cover; }
@media (max-width: 640px) { .mb-banner--image .mb-banner-img { aspect-ratio: 640 / 120; } }
.mb-banner-text { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 20px 48px 12px 14px; color: var(--ink); text-decoration: none; }
.mb-banner-text:hover { text-decoration: none; }
.mb-banner-venues { display: flex; gap: 10px; align-items: center; height: 88px; padding: 22px 44px 8px 12px; overflow-x: auto; scrollbar-width: thin; }
.mb-banner-title { flex: 0 0 auto; font-size: .92rem; margin-right: 4px; }
.mb-banner-venue { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; max-width: 240px; color: var(--ink); text-decoration: none; }
.mb-banner-venue img, .mb-banner-ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: 0 0 44px; }
.mb-banner-venue b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-banner-venue small { display: block; color: var(--ink-3); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-infeed { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-style: dashed; }
.ad-infeed .sponsored-label { position: absolute; top: 8px; left: 8px; z-index: 1; background: rgba(255,255,255,.92); color: #5b5650; padding: 2px 6px; border-radius: 6px; }
.ad-infeed-link { display: flex; flex-direction: column; gap: 6px; flex: 1; color: var(--ink); text-decoration: none; padding-bottom: 14px; }
.ad-infeed-link:hover { text-decoration: none; }
.ad-infeed-link img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: var(--surface-2); }
.ad-infeed-title, .ad-infeed-link > .small { padding: 0 14px; }
.ad-infeed-title { margin-top: 6px; }
.ad-infeed-cta { align-self: flex-start; margin: auto 14px 0; }
.ad-infeed--adsense { min-height: 280px; padding: 28px 8px 8px; }
.mb-consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.mb-consent[hidden] { display: none; }
.mb-consent p { margin: 0 0 8px; }
.mb-consent-opts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.mb-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cta-row { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cta-row .card { display: flex; flex-direction: column; margin: 0; }
.cta-row .card h2 { font-size: 1.2rem; margin: 0 0 6px; }
.cta-row .card p { flex: 1; margin: 0 0 14px; }
.cta-row .card .btn { align-self: flex-start; }
@media (max-width: 900px) { .cta-row { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 900px) { .cta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cta-row .card:last-child { grid-column: 1 / -1; } }
