/* =========================================================
   Sarı Sayfalar - Responsive Stil Dosyası (mobil öncelikli)
   ========================================================= */
:root {
    --yellow: #ffcc00;
    --yellow-d: #e6b800;
    --yellow-l: #fff6cc;
    --ink: #1d1d1f;
    --ink-2: #4a4a4f;
    --muted: #7a7a80;
    --line: #e7e5df;
    --bg: #faf9f6;
    --white: #fff;
    --green: #1f9d55;
    --red: #d64545;
    --blue: #2563eb;
    --gold: #c99a06;
    --business: #1d1d1f;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px;
}
a { color: var(--ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 16px; }
.narrow { max-width: 520px; }
.narrow-card { max-width: 520px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
code, .code { background: #f1efe8; padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.code { display: block; padding: 10px; overflow-x: auto; white-space: pre; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent;
    font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
    background: var(--white); color: var(--ink); transition: .15s; font-family: inherit; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-d); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-outline { border-color: var(--line); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); background: transparent; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-x { background: #000; color: #fff; }
.btn-linkedin { background: #0a66c2; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--yellow); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { background: var(--ink); color: var(--yellow); font-weight: 800; border-radius: 8px; padding: 4px 7px; font-size: .95rem; letter-spacing: .5px; }
.logo-text { font-size: 1.25rem; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { text-decoration: none; font-weight: 600; }
.main-nav a.btn-dark { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero / Arama ---------- */
.hero { background: linear-gradient(180deg, var(--yellow) 0%, #ffe066 100%); padding: 40px 0 48px; text-align: center; }
.hero h1 { font-size: 2.2rem; margin-bottom: .25em; }
.hero p { margin: 0 0 22px; color: var(--ink-2); }
.search-box {
    display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px;
    background: var(--white); padding: 8px; border-radius: 14px; box-shadow: var(--shadow); max-width: 920px; margin: 0 auto;
}
.search-box input, .search-box select { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 1rem; min-width: 0; background: #fff; font-family: inherit; }
.hero-stats { display: flex; justify-content: center; gap: 22px; margin-top: 18px; flex-wrap: wrap; color: var(--ink-2); }
.search-top { background: var(--yellow); padding: 14px 0; }
.search-box-compact { box-shadow: none; max-width: none; }
.results-title { margin-bottom: .1em; }

/* ---------- Bölümler ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 14px; gap: 10px; }
.section-head a { font-weight: 600; text-decoration: none; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sector-tile {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
    text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: .15s;
}
.sector-tile:hover { border-color: var(--yellow-d); box-shadow: var(--shadow); }
.sector-icon { font-size: 1.6rem; }
.sector-name { font-weight: 700; }
.sector-count { color: var(--muted); font-size: .85rem; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.city-tile { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; }
.city-tile span:nth-child(2) { flex: 1; font-weight: 600; }
.plate { background: var(--ink); color: var(--yellow); font-weight: 700; border-radius: 6px; padding: 2px 6px; font-size: .8rem; }

/* ---------- Firma kartları ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.result-list { display: grid; gap: 12px; }
.company-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.company-card.plan-gold { border: 2px solid var(--gold); background: linear-gradient(180deg, #fffaf0, #fff 50%); }
.company-card.plan-business { border: 2px solid var(--business); background: linear-gradient(180deg, #fff6cc, #fff 50%); }
.cc-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cc-head h3 { margin: 0; font-size: 1.1rem; }
.cc-head h3 a { text-decoration: none; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; background: var(--yellow-l); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.chip-light { background: #f1efe8; }
.cc-addr, .cc-products { margin: 0; color: var(--ink-2); font-size: .92rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .3px; white-space: nowrap; vertical-align: middle; }
.badge-gold { background: var(--gold); color: #fff; }
.badge-business { background: var(--business); color: var(--yellow); }

/* ---------- Firma detay ---------- */
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.company-layout { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; margin-bottom: 24px; }
.company-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.company-title h1 { margin: 0; }
.company-desc { margin: 14px 0; color: var(--ink-2); }
.info-list { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 16px 0; }
.info-list dt { color: var(--muted); font-weight: 600; }
.info-list dd { margin: 0; word-break: break-word; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.map-wrap { position: relative; width: 100%; padding-top: 75%; border-radius: 10px; overflow: hidden; background: #eee; margin-bottom: 8px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.product { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.product img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 8px; }
.product h3 { margin: 0 0 4px; }
.product p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.price { font-weight: 800; margin-top: 6px; }

/* ---------- Kart / form ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea,
.filter-bar input, .filter-bar select, .table input[type=text], .table input[type=number] {
    width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus, .search-box input:focus, .search-box select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow-d); }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.form .check input { margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.map-fieldset { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.map-fieldset legend { font-weight: 700; padding: 0 6px; }
.thumb { max-width: 160px; border-radius: 8px; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-weight: 500; }
.alert-success { background: #e6f6ec; color: #135c33; }
.alert-danger  { background: #fdeaea; color: #8a1f1f; }
.alert-warning { background: #fff4d6; color: #7a5a00; }
.alert-info    { background: #e8f0fe; color: #1e3a8a; }
.empty { text-align: center; padding: 40px 10px; }

/* ---------- Paketler ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 22px 0; }
.plan-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan-card ul { padding-left: 18px; margin: 6px 0 14px; flex: 1; }
.plan-card li { margin: 4px 0; }
.plan-card-gold { border-color: var(--gold); }
.plan-card-business { border-color: var(--ink); background: linear-gradient(180deg, var(--yellow-l), #fff 40%); }
.plan-price b { font-size: 1.8rem; }
.plan-price span { color: var(--muted); margin-left: 4px; }
.plan-limit { font-weight: 700; color: var(--ink-2); }
.ribbon { position: absolute; top: -12px; right: 16px; background: var(--ink); color: var(--yellow); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.plan-select { cursor: pointer; }
.plan-select input { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; accent-color: var(--ink); }
.plan-select:has(input:checked) { box-shadow: 0 0 0 4px var(--yellow); }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; padding: 34px 0; margin-top: 20px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cta h2 { color: var(--yellow); }
.cta p { margin: 0; color: #ddd; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-dark { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cta .btn-outline-dark { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #111; color: #bbb; padding: 36px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer a { display: block; color: #bbb; text-decoration: none; margin: 4px 0; }
.site-footer a:hover { color: var(--yellow); }
.logo-footer .logo-mark { background: var(--yellow); color: var(--ink); }
.logo-footer .logo-text { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 24px; padding: 16px; font-size: .85rem; text-align: center; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pagination a, .pagination span { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Panel ---------- */
.panel-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.panel-nav a { white-space: nowrap; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.panel-nav a.active { background: var(--yellow); border-color: var(--yellow); }
.panel-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel-two.wide-left { grid-template-columns: 2fr 1fr; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat b { font-size: 1.4rem; }
.stat small { color: var(--muted); }
.limit-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.progress { height: 8px; background: #eee; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--yellow-d); }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.item-actions { display: flex; gap: 6px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: #f7f6f2; font-weight: 700; white-space: nowrap; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #eee; }
.status-approved, .status-paid { background: #e6f6ec; color: #135c33; }
.status-pending { background: #fff4d6; color: #7a5a00; }
.status-rejected, .status-failed { background: #fdeaea; color: #8a1f1f; }
.status-passive { background: #eee; color: #555; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-bar input, .filter-bar select { width: auto; flex: 1 1 160px; }
form.inline { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* ---------- Yönetim paneli ---------- */
.admin-body { background: #f3f2ee; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { color: #fff; margin-bottom: 18px; padding: 0 8px; }
.admin-side .logo-mark { background: var(--yellow); color: var(--ink); }
.admin-side a:not(.logo) { color: #ddd; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.admin-side a.active, .admin-side a:not(.logo):hover { background: #333; color: var(--yellow); }
.admin-side hr { border: 0; border-top: 1px solid #333; width: 100%; }
.admin-main { padding: 20px; min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.admin-top h1 { margin: 0; font-size: 1.4rem; }
.admin-toggle { display: none; }
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; background: var(--yellow); }
.admin-login .card { width: 100%; }
.admin-login .logo { margin-bottom: 16px; }

/* =================== Responsive =================== */
@media (max-width: 960px) {
    .company-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .panel-two, .panel-two.wide-left { grid-template-columns: 1fr; }
    .search-box { grid-template-columns: 1fr 1fr; }
    .search-box input[type=text] { grid-column: 1 / -1; }
    .search-box button { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 64px; left: 0; right: 0; background: var(--yellow);
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
        box-shadow: 0 8px 16px rgba(0,0,0,.1); display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(0,0,0,.08); }
    .main-nav a.btn { margin-top: 8px; border-bottom: 0; }
    .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .hero { padding: 28px 0 32px; }
    .hero h1 { font-size: 1.6rem; }
    .search-box { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .card-grid { grid-template-columns: 1fr; }
    .info-list { grid-template-columns: 1fr; gap: 2px; }
    .info-list dd { margin-bottom: 8px; }
    .sector-grid { grid-template-columns: repeat(2, 1fr); }
    .city-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .card { padding: 16px; }
    .section { padding: 20px 12px; }
    h1 { font-size: 1.35rem; }
    .action-row .btn { flex: 1 1 auto; }

    .admin-layout { grid-template-columns: 1fr; }
    .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 100; transform: translateX(-100%); transition: transform .2s; }
    .admin-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
    .admin-toggle { display: block; }
    .admin-main { padding: 12px; }
}
@media (max-width: 380px) {
    .share-grid { grid-template-columns: 1fr; }
    .sector-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
