/* A2Z Search - main stylesheet. Colors come from the logo: saffron, blue, green. */
:root {
  --saffron: #e8541a;
  --saffron-d: #c9430f;
  --blue: #1b4f9c;
  --blue-d: #123a78;
  --green: #4c8c0a;
  --green-d: #3a6e06;
  --ink: #14213d;
  --text: #2b3550;
  --muted: #6b7690;
  --line: #e4e8f1;
  --bg: #f5f7fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
  --shadow-s: 0 2px 8px rgba(20, 33, 61, .07);
  --font: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--saffron); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 94%); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; } .mt2 { margin-top: 32px; }
.hide { display: none !important; }

/* page transition + progress bar */
#a2z-root { animation: fadein .18s ease; }
@keyframes fadein { from { opacity: .4; } to { opacity: 1; } }
#a2z-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; background: linear-gradient(90deg, var(--saffron), var(--blue), var(--green)); transition: width .25s ease, opacity .3s; opacity: 0; }
#a2z-bar.on { opacity: 1; }
#a2z-toast { position: fixed; right: 16px; bottom: 16px; z-index: 9998; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 340px; animation: fadein .2s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: .18s; background: var(--blue); color: #fff; font-size: .95rem; white-space: nowrap; }
.btn:hover { background: var(--blue-d); color: #fff; transform: translateY(-1px); }
.btn.saffron { background: var(--saffron); } .btn.saffron:hover { background: var(--saffron-d); }
.btn.green { background: var(--green); } .btn.green:hover { background: var(--green-d); }
.btn.ghost { background: transparent; color: var(--blue); border-color: var(--blue); } .btn.ghost:hover { background: var(--blue); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: var(--line); } .btn.light:hover { border-color: var(--blue); color: var(--blue); }
.btn.danger { background: #d63a3a; } .btn.danger:hover { background: #b52c2c; }
.btn.sm { padding: 6px 14px; font-size: .82rem; }
.btn.lg { padding: 13px 28px; font-size: 1.02rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* header */
.topbar { background: var(--ink); color: #cfd6ea; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; padding: 6px 0; gap: 12px; }
.topbar a { color: #cfd6ea; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .92rem; }
.nav a:hover, .nav a.active { background: var(--bg); color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; margin-left: auto; }
.loc-chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--text); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-chip:hover { border-color: var(--saffron); }

/* search box */
.searchbar { display: flex; background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 6px; gap: 6px; position: relative; max-width: 820px; margin: 0 auto; }
.searchbar input { border: 0; outline: 0; background: transparent; font: inherit; padding: 10px 14px; flex: 1; min-width: 0; }
.searchbar .sep { width: 1px; background: var(--line); margin: 6px 0; }
.searchbar .city { max-width: 200px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; z-index: 30; text-align: left; }
.suggest a { display: flex; gap: 10px; padding: 10px 16px; color: var(--text); align-items: center; }
.suggest a:hover { background: var(--bg); }
.suggest small { margin-left: auto; color: var(--muted); }

/* hero */
.hero { background: radial-gradient(1000px 400px at 85% -10%, rgba(232, 84, 26, .14), transparent), radial-gradient(900px 400px at 0% 0%, rgba(27, 79, 156, .14), transparent), radial-gradient(800px 400px at 50% 120%, rgba(76, 140, 10, .13), transparent), #fff; padding: 60px 0 56px; text-align: center; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 780px; margin: 0 auto 12px; }
.hero h1 span.s { color: var(--saffron); } .hero h1 span.b { color: var(--blue); } .hero h1 span.g { color: var(--green); }
.hero p.lead { color: var(--muted); max-width: 640px; margin: 0 auto 26px; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--text); }
.chip:hover { border-color: var(--saffron); color: var(--saffron); }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.stats { display: flex; justify-content: center; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stats b { display: block; font-size: 1.7rem; color: var(--ink); }
.stats span { color: var(--muted); font-size: .85rem; }

/* sections and cards */
.section { padding: 44px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-title h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-s); border: 1px solid var(--line); padding: 20px; }
.card.hover { transition: .2s; } .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3daea; }
.card h3 a { color: var(--ink); }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; text-align: center; color: var(--ink); font-weight: 500; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.cat-tile .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: linear-gradient(135deg, rgba(232, 84, 26, .12), rgba(27, 79, 156, .12)); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--saffron); }

/* business card */
.biz { display: flex; gap: 16px; align-items: flex-start; }
.biz .logo-box { width: 84px; height: 84px; border-radius: 16px; flex: none; background: linear-gradient(135deg, var(--blue), var(--saffron)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; overflow: hidden; }
.biz .logo-box img { width: 100%; height: 100%; object-fit: cover; }
.biz h3 { margin-bottom: 2px; }
.biz .meta { color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .7rem; vertical-align: middle; margin-left: 4px; }
.stars { color: #f5a623; letter-spacing: 1px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--bg); color: var(--muted); }
.pill.green { background: #e6f4d9; color: #2f6a05; } .pill.amber { background: #fff1d6; color: #9a6200; } .pill.red { background: #fde4e4; color: #b52c2c; }
.pill.blue { background: #e1ebfb; color: #1b4f9c; } .pill.gray { background: #eceff5; color: #6b7690; } .pill.saffron { background: #ffe6da; color: #c9430f; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* forms */
label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 4px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], input[type=date], select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfd6e6; border-radius: 10px; background: #fff; color: var(--text); transition: .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 79, 156, .15); }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #cfd6e6; border-radius: 10px; background: #fff; cursor: pointer; }
input[type=file] { font-size: .85rem; }
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.hint.ok { color: var(--green); } .hint.bad { color: #d63a3a; }
.error { color: #d63a3a; font-size: .82rem; margin-top: 3px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.alert.ok { background: #e6f4d9; color: #2a5d04; border: 1px solid #c9e5ad; }
.alert.err { background: #fde4e4; color: #9d2424; border: 1px solid #f4c0c0; }
.alert.info { background: #e1ebfb; color: #123a78; border: 1px solid #bcd0f2; }
.alert.warn { background: #fff1d6; color: #7d5100; border: 1px solid #f2d9a0; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; }

.auth { min-height: 70vh; display: grid; place-items: center; padding: 40px 0; }
.auth .card { width: min(460px, 94vw); padding: 30px; }
.auth.wide .card { width: min(560px, 94vw); }

/* tables */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; background: #f1f4fb; color: var(--ink); font-weight: 600; padding: 10px 14px; white-space: nowrap; }
td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #fafbfe; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .88rem; color: var(--text); }
.pagination .active span { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .disabled span { opacity: .4; }

/* dashboard shell */
.shell { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 26px 0 50px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 80px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .92rem; }
.side a:hover { background: var(--bg); }
.side a.active { background: linear-gradient(90deg, rgba(232, 84, 26, .12), rgba(27, 79, 156, .08)); color: var(--saffron-d); }
.side h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 12px 4px; }
.side .who { padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--saffron), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.s { border-left: 4px solid var(--saffron); } .stat.b { border-left: 4px solid var(--blue); } .stat.g { border-left: 4px solid var(--green); } .stat.k { border-left: 4px solid var(--ink); }
.meter { height: 8px; background: #e8ecf5; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 99px; }
.meter.hot i { background: linear-gradient(90deg, var(--saffron), #d63a3a); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--saffron-d); border-color: var(--saffron); }

/* studio */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tpl { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.tpl.on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(76, 140, 10, .15); }
.tpl:hover { box-shadow: var(--shadow); }
.tpl .thumb { height: 118px; position: relative; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.tpl .thumb i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .75); }
.tpl .thumb i.a { width: 60%; height: 12px; background: #fff; } .tpl .thumb i.b { width: 85%; } .tpl .thumb i.c { width: 40%; }
.tpl .thumb .bx { display: flex; gap: 6px; margin-top: auto; } .tpl .thumb .bx u { flex: 1; height: 28px; background: rgba(255, 255, 255, .85); border-radius: 6px; }
.tpl .info { padding: 10px 12px; }
.tpl .info b { display: block; font-size: .88rem; }
.preview-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.preview-frame { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; position: sticky; top: 80px; }
.preview-frame .bar { background: #eef1f8; padding: 8px 12px; font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.preview-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #c8d0e3; display: inline-block; }
.preview-frame iframe { width: 100%; height: 70vh; border: 0; display: block; }
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.colors label { font-size: .75rem; }
.dns { background: #0f1b34; color: #cfe0ff; border-radius: 12px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; overflow-x: auto; }

/* leaflet */
.map { height: 320px; border-radius: 14px; border: 1px solid var(--line); z-index: 1; }
.map.sm { height: 240px; }

/* plans */
.plan { text-align: center; position: relative; }
.plan .price { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 6px 0; }
.plan .price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; text-align: left; }
.plan li { padding: 5px 0 5px 24px; position: relative; font-size: .9rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan.best { border: 2px solid var(--saffron); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--saffron); color: #fff; font-size: .72rem; padding: 3px 12px; border-radius: 99px; font-weight: 600; }

/* footer */
.footer { background: var(--ink); color: #b9c3dd; padding: 40px 0 20px; margin-top: 30px; }
.footer a { color: #b9c3dd; } .footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { padding: 3px 0; font-size: .9rem; }
.footer .copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; font-size: .82rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tricolor { height: 4px; background: linear-gradient(90deg, var(--saffron) 33%, #fff 33% 66%, var(--green) 66%); }

/* admin accent */
.admin .side a.active { background: linear-gradient(90deg, rgba(27, 79, 156, .14), rgba(76, 140, 10, .08)); color: var(--blue); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--blue), var(--saffron)); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; }
.bars div span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .62rem; color: var(--muted); white-space: nowrap; }
.rank { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rank li { counter-increment: r; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank li::before { content: counter(r); width: 22px; height: 22px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: .75rem; font-weight: 600; margin-right: 8px; flex: none; }
.rank li span:first-of-type { flex: 1; }

@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g6 { grid-template-columns: repeat(3, 1fr); }
  .shell { grid-template-columns: 1fr; } .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; } .side a { white-space: nowrap; } .side h4, .side .who { display: none; }
  .preview-wrap { grid-template-columns: 1fr; } .preview-frame { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 3%; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; } .colors { grid-template-columns: repeat(2, 1fr); }
  .searchbar { flex-wrap: wrap; border-radius: 22px; } .searchbar .sep { display: none; } .searchbar .city { max-width: none; width: 100%; }
  .hero { padding: 40px 0; } .footer .cols { grid-template-columns: 1fr; } .topbar .hide-m { display: none; }
  .biz { flex-direction: column; }
}

/* ===== "Download our app" strip, shown just above the footer (Admin > Settings > Mobile app) ===== */
.app-strip { background: linear-gradient(120deg, #14213d 0%, #1f3b73 55%, #e8541a 140%); color: #fff; padding: 34px 0; position: relative; overflow: hidden; }
.app-strip .container { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; }
.app-strip-phone { width: 92px; height: 170px; border-radius: 18px; background: #0b1020; border: 3px solid #cfd6ea; box-shadow: 0 14px 30px rgba(0,0,0,.35); position: relative; transform: rotate(-8deg); }
.app-strip-phone .scr { position: absolute; inset: 10px 8px; border-radius: 12px; background: linear-gradient(180deg, #ffffff 0 22%, #f3f5fa 22% 100%); display: flex; flex-direction: column; gap: 7px; padding: 30px 8px 8px; }
.app-strip-phone .scr i { display: block; height: 18px; border-radius: 6px; background: #fff; border: 1px solid #e3e7f0; }
.app-strip-phone .scr i:first-child { background: linear-gradient(90deg, #e8541a, #f59e0b); border: 0; height: 14px; }
.app-strip-text h3 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; }
.app-strip-text p { margin: 0 0 8px; color: #e4e8f3; max-width: 620px; }
.app-strip-meta { font-size: .8rem; color: #c3cbe0; }
.app-strip-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 220px; }
.app-strip-actions .btn { justify-content: center; }
.app-strip-actions .btn .ic { font-size: 1.1em; margin-right: 6px; }
.app-strip-how { color: #fff; text-align: center; font-size: .85rem; text-decoration: underline; }
@media (max-width: 760px) { .app-strip .container { grid-template-columns: 1fr; text-align: center; } .app-strip-phone { display: none; } .app-strip-text p { margin-left: auto; margin-right: auto; } }
/* Pages opened inside the mobile app: no big header / footer */
body.in-app .header, body.in-app .tricolor, body.in-app .footer, body.in-app .app-strip, body.in-app .side { display: none !important; }
body.in-app .shell { display: block; padding-top: 10px; }
