/*
Theme Name: Directory Theme
Description: Theme για τον κατάλογο επιχειρήσεων ανακαίνισης. Απαιτεί το plugin Directory Core.
Version: 0.1.0
Author: MM Group Media
Requires PHP: 8.0
Text Domain: dir-theme
*/

:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --line: #E3E0D8;
  --line-strong: #D5D1C7;
  --ink: #1B1E22;
  --ink-2: #3A3F45;
  --muted: #5A6069;
  --accent: #1E5A85;
  --accent-dark: #14405F;
  --accent-soft: #E7EEF4;
  --cta: #B45A10;
  --cta-dark: #934909;
  --feat-bg: #FBEBDD;
  --feat-fg: #8A4310;
  --ok-bg: #E3F1EA;
  --ok-fg: #1D5C3D;
  --radius: 12px;
  --wrap: 1280px;
  --pad: 32px;
  --fbar: 69px;
  --abar: var(--wp-admin--admin-bar--height, 0px);
  --hdr: 73px; /* ύψος sticky header· το ενημερώνει το JS */
  --top: calc(var(--abar) + var(--hdr));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Commissioner, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn svg { flex: none; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn-outline[aria-pressed="true"] { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: var(--abar); z-index: 1100; }
html { scroll-padding-top: calc(var(--top) + 12px); }
.biz-map { isolation: isolate; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.site-header .wrap { max-width: none; padding-left: 28px; padding-right: 28px; }
@media (max-width: 640px) { .site-header .wrap { padding-left: var(--pad); padding-right: var(--pad); } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.site-nav { flex: 1 1 auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer { margin-top: 64px; background: var(--ink); color: #C9CDD2; font-size: 15px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer a { color: #C9CDD2; }
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs [aria-current] { color: var(--ink); }

/* Listing */
.dir-layout { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.dir-main { padding-top: 24px; min-width: 0; }
.dir-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 12px; }
.dir-head > div { min-width: 0; }
.dir-head h1 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.01em; }
.dir-intro { margin: 10px 0 0; color: var(--muted); max-width: 720px; }
.dir-intro p { margin: 0 0 8px; }

.dir-filters { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dir-filters .f-search { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; height: 44px; }
.dir-filters .f-search input { border: 0; outline: none; font: inherit; flex: 1; min-width: 0; background: transparent; }
.dir-filters label.f-sel { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dir-filters select { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; color: var(--ink); background: var(--surface); max-width: 220px; }
.dir-filters .f-check { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; cursor: pointer; }
.dir-filters .f-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.dir-filters .js-map-toggle { margin-left: auto; }
.dir-countbar { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Sticky filter bar (όπως spitogatos) */
.dir-filterbar { position: sticky; top: var(--top); z-index: 800; background: var(--surface); border-bottom: 1px solid var(--line); }
.dir-filterbar-in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--pad); height: var(--fbar); display: flex; align-items: center; }
.map-open .dir-filterbar-in { max-width: none; padding-left: 28px; padding-right: 28px; }
.dir-filterbar .dir-filters { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
.dir-filterbar .f-search { flex: 0 1 340px; }
.dir-filterbar label.f-sel, .dir-filterbar .f-check { flex: none; }
.dir-map { isolation: isolate; }
.dir-count { margin: 0; font-size: 14px; color: var(--muted); }
.f-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.f-sort select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; color: var(--ink); background: var(--surface); }

.dir-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.dir-results { transition: opacity .15s; }
.dir-results.is-loading { opacity: .45; pointer-events: none; }
.dir-empty { margin-top: 24px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.dir-map { display: none; }
.dir-map-canvas { position: absolute; inset: 0; background: #EEEAE1; }
.dir-map-note { position: absolute; left: 0; bottom: 0; z-index: 500; margin: 0; padding: 10px 16px; background: var(--surface); border-top-right-radius: 10px; font-size: 14px; box-shadow: 0 -1px 6px rgba(0,0,0,.12); }
.dir-map-close { display: none; }

/* Map open: full width split */
.map-open .dir-layout { max-width: none; padding: 0; display: flex; align-items: stretch; }
.map-open .dir-main { flex: 1 1 50%; padding: 20px 28px 32px; }
.map-open .dir-head h1 { font-size: 32px; }
.map-open .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.map-open .dir-map { display: block; flex: 1 1 50%; position: relative; border-left: 1px solid var(--line); }
.map-open .dir-map-sticky { position: sticky; top: calc(var(--top) + var(--fbar)); height: calc(100vh - var(--top) - var(--fbar)); }
.map-open .site-footer { margin-top: 0; }
.map-open .dir-seo { padding: 24px; }

/* Card */
.card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; transition: border-color .15s, box-shadow .15s; }
.card.is-hover, .card:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(30,90,133,.12); }
.card-top { display: flex; gap: 12px; align-items: center; min-height: 48px; }
.avatar { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.card h2, .card h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--accent); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.badge-feat { background: var(--feat-bg); color: var(--feat-fg); }
.badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.card-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.card-info li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.card-info svg { flex: none; margin-top: 3px; }
.card-info a { color: inherit; font: inherit; text-decoration: none; }
.card-info a:hover { color: var(--accent); text-decoration: underline; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1; font-size: 14px; padding: 0 10px; }

/* Pagination */
.pagination { margin: 32px 0 8px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* Below listing */
.dir-below h2 { font-size: 20px; font-weight: 600; margin: 40px 0 12px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; }
.chip span { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.dir-seo { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.dir-seo .content { flex: 999 1 560px; min-width: 0; color: var(--ink-2); }
.dir-seo .content h2 { margin-top: 0; font-size: 24px; font-weight: 700; color: var(--ink); }
.dir-seo aside { flex: 1 1 280px; align-self: flex-start; background: var(--accent-soft); border-radius: 10px; padding: 24px; }
.dir-seo aside h3 { margin: 0 0 8px; font-size: 18px; }
.dir-seo aside p { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }

/* Λιτό στυλ χάρτη: αποχρωματισμός μόνο των tiles (τα pins μένουν έγχρωμα) */
.tiles-soft .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.88); }
.tiles-soft { background: #F2F1EE; }

/* Leaflet markers */
.pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--cta); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin.is-active { background: var(--accent); width: 36px; height: 36px; }
.cluster { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); background-clip: padding-box; border: 5px solid rgba(30,90,133,.25); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.dir-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.dir-popup .leaflet-popup-content { margin: 0; width: 360px !important; max-width: calc(100vw - 48px); font-family: Commissioner, system-ui, sans-serif; line-height: 1.45; }
.dir-popup .leaflet-popup-content p { margin: 0; }
.dir-popup a.leaflet-popup-close-button { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 22px; color: var(--muted); }
.card-popup { border: 0; box-shadow: none; padding: 18px 18px 16px; }
.card-popup:hover { border: 0; box-shadow: none; }
.card-popup .card-top { padding-right: 18px; }
.card-popup .btn-cta, .card-popup .btn-cta:hover { color: #fff; }
.card-popup .btn-ghost { color: var(--ink); }
.card-popup .card-info a, .card-popup h3 a { color: inherit; }
.card-popup h3 a { color: var(--ink); }

/* Single business */
.biz-hero { margin-top: 16px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.biz-hero .avatar { width: 88px; height: 88px; border-radius: 16px; font-size: 30px; }
.biz-hero .who { flex: 999 1 420px; min-width: 0; }
.biz-hero h1 { margin: 0; font-size: 34px; font-weight: 700; overflow-wrap: anywhere; }
.biz-hero .addr { margin: 6px 0 0; color: var(--muted); }
.biz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.biz-cols { margin-top: 24px; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.biz-cols > main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.biz-cols > aside { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.panel h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.facts { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 15px; align-content: start; align-self: flex-start; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.biz-map { flex: 1 1 300px; height: 240px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.quote { display: flex; flex-direction: column; gap: 14px; }
.quote label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.quote input, .quote select, .quote textarea { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 400; background: var(--surface); }
.quote .check { flex-direction: row; align-items: flex-start; gap: 8px; }
.quote .check input { min-height: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.quote .q-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.quote .q-group legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.quote .q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote .q-row label { min-width: 0; }
.quote .q-pref { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.quote .q-pills { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
.quote .q-pref > span { width: 100%; }
.quote .q-pill { flex: 1 1 auto; justify-content: center; white-space: nowrap; flex-direction: row; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.quote .q-pill input { min-height: 0; width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.quote .q-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.quote .q-ok, .quote .q-alert { margin: 0; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.quote .q-ok { background: var(--ok-bg); color: var(--ok-fg); }
.quote .q-alert { background: var(--feat-bg); color: var(--feat-fg); }
.quote .q-err { color: #A4320E; font-size: 12px; font-weight: 500; }
.quote [aria-invalid="true"] { border-color: #C2410C; box-shadow: 0 0 0 1px #C2410C; }
.quote .js-q-submit[disabled] { opacity: .6; cursor: wait; }
.q-done { text-align: center; padding: 8px 0; }
.q-done .q-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: flex; align-items: center; justify-content: center; }
.q-done h2 { margin: 0 0 8px; font-size: 20px; }
.q-done p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.quote .q-note { margin: 0; font-size: 12px; color: var(--muted); }
.quote select { padding-right: 28px; }
.claim { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; }
.claim h2 { font-size: 17px; margin: 0 0 6px; }
.claim p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.claim-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.claim-row p { margin: 0; }
.claim-row > div:first-child { flex: 1 1 320px; }
.claim-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.claim-remove { font-size: 14px; font-weight: 600; color: var(--muted); }
.claim-links a { white-space: nowrap; }

/* Content pages */
.entry { max-width: 760px; }
.entry-full { max-width: none; }

/* Mobile */
.map-fab { display: none; }
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .dir-head h1, .map-open .dir-head h1 { font-size: 28px; }
  .dir-filters .js-map-toggle { display: none; }
  .map-fab { display: inline-flex; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; border-radius: 999px; background: var(--ink); color: #fff; min-height: 48px; padding: 0 22px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  .map-open .dir-layout { display: block; }
  .map-open .dir-main { padding: 16px; }
  .map-open .dir-grid { grid-template-columns: 1fr; }
  .map-open .dir-map { position: fixed; inset: var(--top) 0 0 0; z-index: 900; border: 0; }
  .map-open .dir-map-sticky { height: 100%; }
  body.map-open { overflow: hidden; }
  body.map-auto { overflow: auto; }
  .map-auto .dir-map { display: none; }
  .biz-hero h1 { font-size: 26px; }
}

@media (max-width: 400px) { .quote .q-pills { flex-wrap: wrap; } }

/* Template «Λογαριασμός επιχειρήσεων» */
.app-page { padding-top: 32px; padding-bottom: 48px; }
.app-title { margin: 0 0 20px; }

/* Header: σύνδεση / λογαριασμός */
.hdr-actions { display: flex; align-items: center; gap: 20px; }
.hdr-actions .btn { gap: 8px; }
.hdr-login { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr-login:hover { color: var(--accent); }
@media (max-width: 640px) { .hdr-cta { display: none; } }
.hdr-user { position: relative; }
.hdr-user-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; user-select: none; }
.hdr-user-btn::-webkit-details-marker { display: none; }
.hdr-user-btn:hover { border-color: var(--line-strong); background: var(--bg); }
.hdr-user[open] .hdr-user-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hdr-user-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hdr-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; flex: none; }
.hdr-avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.hdr-user .chev { color: var(--muted); transition: transform .15s; }
.hdr-user[open] .chev { transform: rotate(180deg); }
.hdr-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 1200; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(27,30,34,.16); padding: 8px; display: flex; flex-direction: column; animation: hdrIn .12s ease-out; }
@keyframes hdrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hdr-menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.hdr-menu a:hover, .hdr-menu a:focus-visible { background: var(--bg); color: var(--accent); outline: none; }
.hdr-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.hdr-who { display: flex; gap: 12px; align-items: center; padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.hdr-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.hdr-who strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-who small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-menu a:last-child { color: #A4320E; }
@media (max-width: 640px) { .hdr-name, .hdr-user .chev { display: none; } .hdr-user-btn { padding: 4px; } }

/* Google Maps κουμπιά στο προφίλ */
.biz-info { flex: 1 1 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0; }
.gmaps-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.gmaps-btns .btn svg { color: var(--accent); }

/* Social pills (σελίδα επιχείρησης) */
.social-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.soc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: color .15s, border-color .15s; }
.soc-pill svg { flex: none; }
.soc-pill:hover { border-color: currentColor; }
.soc-facebook:hover { color: #1877F2; } .soc-instagram:hover { color: #C13584; } .soc-youtube:hover { color: #E00000; }
.soc-tiktok:hover, .soc-x:hover { color: #111; } .soc-linkedin:hover { color: #0A66C2; }

/* Αρχική: περιφέρειες με υπο-περιοχές */
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.reg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.reg-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(27,30,34,.06); }
.reg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.reg-head strong { font-size: 17px; line-height: 1.3; }
.reg-head:hover strong { color: var(--accent); }
.reg-count { flex: none; min-width: 34px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 700; text-align: center; }
.reg-list { list-style: none; margin: 0; padding: 6px 8px; height: 196px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.reg-list::-webkit-scrollbar { width: 6px; } .reg-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.reg-list a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.reg-list a:hover { background: var(--bg); color: var(--accent); }
.reg-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-list em { font-style: normal; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.reg-all { margin-top: auto; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.reg-all:hover { text-decoration: underline; }
@media (min-width: 640px) {
  .reg-wide { grid-column: span 2; }
  .reg-wide .reg-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; align-content: start; }
}

/* Αρχική: hero */
.hero { position: relative; margin: 16px 16px 0; border-radius: 20px; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 420px at 85% 110%, rgba(232,140,60,.35), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(120,180,230,.25), transparent 60%),
    linear-gradient(120deg, #0F2B44 0%, #17476C 55%, #1E5A85 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%); mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }
.hero.has-img { background: linear-gradient(90deg, rgba(10,28,45,.88) 0%, rgba(10,28,45,.62) 45%, rgba(10,28,45,.12) 80%), var(--hero-img) center / cover no-repeat; }
.hero.has-img::before { display: none; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 88px var(--pad) 96px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -.01em; color: #fff; }
.hero-sub { margin: 14px 0 28px; max-width: 620px; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.82); }
.hero-search { display: flex; align-items: stretch; max-width: 820px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.hero-search label { display: flex; align-items: center; min-width: 0; }
.hs-region { flex: 0 0 210px; border-right: 1px solid var(--line); }
.hs-region select { width: 100%; height: 48px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 0 14px; cursor: pointer; }
.hs-q { flex: 1 1 auto; gap: 10px; padding: 0 14px; color: var(--muted); }
.hs-q input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; }
.hs-btn { flex: none; min-height: 52px; padding: 0 22px; border-radius: 10px; font-size: 16px; gap: 8px; }
.hero-search:focus-within { box-shadow: 0 18px 40px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.35); }
.hero-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.hero-pop span { color: rgba(255,255,255,.7); margin-right: 2px; }
.hero-pop a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); transition: background .15s, border-color .15s; }
.hero-pop a:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
@media (max-width: 720px) {
  .hero { margin: 8px 8px 0; border-radius: 14px; }
  .hero-in { padding: 48px 20px 52px; }
  .hero-search { flex-direction: column; gap: 6px; }
  .hs-region { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .hs-btn { width: 100%; }
}

/* Logo */
.brand-logo { display: block; height: 36px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 30px; } }

/* Λίστα: top επιλογές (προβεβλημένες) σε μία στήλη */
.dir-sec { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 20px; line-height: 1.3; }
.dir-sec svg { color: var(--feat-fg); fill: currentColor; }
.dir-sec-rest { margin-top: 32px; }
.dir-top .dir-grid { margin-top: 12px; }
.dir-grid-1, .map-open .dir-grid-1 { grid-template-columns: minmax(0, 1fr); }
.card-wide { display: grid; grid-template-columns: minmax(0, 1fr) 210px; grid-template-areas: "top act" "info act"; column-gap: 24px; row-gap: 10px;
  border-color: color-mix(in srgb, var(--feat-fg) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--feat-bg) 45%, var(--surface)), var(--surface) 70%); }
.card-wide .card-top { grid-area: top; }
.card-wide .card-info { grid-area: info; flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
.card-wide .card-actions { grid-area: act; flex-direction: column; justify-content: center; margin: 0; }
.card-wide .card-actions .btn { flex: none; }
@media (max-width: 720px) {
  .card-wide { display: flex; }
  .card-wide .card-info { flex-direction: column; }
  .card-wide .card-actions { flex-direction: row; }
  .card-wide .card-actions .btn { flex: 1; }
}
.card-wide .badge-feat { display: none; }

/* Autocomplete περιοχής */
.place-ac { position: relative; display: flex; align-items: center; gap: 8px; }
.place-ac > svg { color: var(--muted); flex: none; }
.pac-input { min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.pac-list { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 1300; min-width: 300px; width: max-content; max-width: 380px; max-height: 340px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(27,30,34,.16); }
.place-ac.is-open .pac-list { display: block; }
.pac-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 15px; }
.pac-list li.on, .pac-list li:hover { background: var(--bg); }
.pac-list li.is-region .pac-n { font-weight: 600; }
.pac-list mark { background: none; color: var(--accent); font-weight: 700; padding: 0; }
.pac-m { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pac-list .pac-empty { color: var(--muted); cursor: default; }
/* στη μπάρα φίλτρων */
.f-place .place-ac { height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); width: 240px; }
.f-place .place-ac:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-place .pac-input { flex: 1; height: 100%; font-size: 15px; }
/* στο hero */
.hs-region.place-ac { padding: 0 14px; color: var(--ink); }
.hs-region .pac-input { flex: 1; height: 48px; font-size: 16px; }
@media (max-width: 720px) { .f-place .place-ac { width: 100%; } .pac-list { max-width: calc(100vw - 16px); } }
.dir-filters .f-place { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); flex: none; }
