/* KorinthiaSpot — supplementary styles on top of the Mobilekit template.
   Only covers what assets/css/style.css doesn't already provide. */

:root {
  --ks-blue: #1A56A0;
  --ks-blue-dark: #0F3870;
  --ks-blue-light: #E8F1FC;
  --ks-orange: #F5820D;
  --ks-orange-light: #FFF4E5;
  --ks-border: #DDE3F0;
  --ks-muted: #6B7A99;
}

/* TYPOGRAPHY
   Mobilekit's compiled CSS defaults everything to Inter. Nunito is the
   KorinthiaSpot body font. Syne is reserved for the single hero headline
   only — everywhere else uses plain bold Nunito for a calmer, less
   "decorative" look. */
body {
  font-family: Inter, sans-serif;
}

#appCapsule {
  padding-left: 2%;
  padding-right: 2%;
}

/* The hero now sits before #appCapsule (moved out by the user) instead of
   as its first child, so it no longer inherits appCapsule's own
   padding-top:56px that clears the fixed appHeader — give it that
   clearance directly, and drop the now-duplicate padding-top from
   appCapsule so the gap after the hero isn't doubled. */
.hero-wrap {
  padding-top: calc(56px + env(safe-area-inset-top));
}

.hero-wrap ~ #appCapsule {
  padding-top: 6px;
  /* padding-bottom stays at the base #appCapsule value (56px) — that's the
     clearance the fixed .appBottomMenu needs. Zeroing it here (as a past
     copy-paste from the padding-top fix) squeezed out the last section on
     every page using this pattern (e.g. index.php's Fun Zone card sitting
     under the bottom nav instead of above it). */
}

.appHeader .pageTitle,
.section-title,
.stat-number,
.appFooter .footer-title,
.profileBox strong,
.listview-title {
  font-weight: 400;
}

.section-title {
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ks-text, #1A2340);
}

.listview .item .in > div > div:first-child {
  font-weight: 700;
  font-size: 14px;
}

.section-more-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #141515;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s;
}

.section-more-btn:hover,
.section-more-btn:active {
  background: var(--ks-blue-dark);
  color: #fff;
}

/* BRAND COLOR OVERRIDES
   Mobilekit's default "primary" is #1E74FD; the KorinthiaSpot brand blue
   used across the hero slider is the darker #1A56A0. Overriding the few
   utility classes the page actually uses keeps the two consistent.
   (!important matches the specificity Mobilekit's own utilities use.) */
.bg-primary,
.badge-primary,
a.badge-primary,
.btn-primary,
.chip-primary {
  background-color: var(--ks-blue) !important;
  border-color: var(--ks-blue) !important;
}

.text-primary,
a.text-primary {
  background-color: transparent !important;
  color: var(--ks-blue) !important;
}

.btn-outline-primary {
  background-color: transparent !important;
  border-color: var(--ks-blue) !important;
  color: var(--ks-blue) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
  background-color: var(--ks-blue) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background: var(--ks-blue-dark) !important;
  border-color: var(--ks-blue-dark) !important;
}

.appBottomMenu .item.active i.bi,
.appBottomMenu .item.active i.icon,
.appBottomMenu .item.active ion-icon,
.appBottomMenu .item.active strong {
  color: var(--ks-blue) !important;
}

/* HERO SLIDER (real Splide carousel, mounted in index.php)
   Fixed height on the outer wrapper itself (not just the slides) so the
   box never collapses/stacks before Splide finishes mounting — that gap
   is what let the next section render underneath it. */
.hero-slider {
  border-radius: 18px;
  overflow: hidden;
  height: 250px !important;
}

/* Splide's JS measures the slide content and writes its own inline
   height style on the track/list/slide — an inline style beats a plain
   CSS rule, which is why 190px kept getting ignored. !important is the
   only thing that wins over an inline style. */
.hero-slider .splide__track,
.hero-slider .splide__list,
.hero-slider .splide__slide {
  height: 100% !important;
}

.slide {
  /* Absolute + inset instead of height:100% — Splide's own slide has
     position:relative already, so this guarantees the gradient panel
     fills it exactly, regardless of how the track/list height cascades. */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 18px;
  text-decoration: none;
}

.slide-1 { background: linear-gradient(160deg, #0F3870 0%, #1A56A0 50%, #1E6BBA 100%); }
.slide-2 { background: linear-gradient(160deg, #8B3A00 0%, #C25A0A 50%, #F5820D 100%); }
.slide-3 { background: linear-gradient(160deg, #0A3D2E 0%, #136844 50%, #1A9A65 100%); }
.slide-4 { background: linear-gradient(160deg, #0f172a 0%, #311042 100%); }
.slide-5 { background: linear-gradient(160deg, #063B4A 0%, #0E6E8C 50%, #0EA5B7 100%); }

.slide-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: repeating-linear-gradient(45deg, white 0, white 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: white;
  font-weight: 400;
  margin-bottom: 8px;
  width: fit-content;
  position: relative;
}

.slide h2 {
  font-size: 20px;
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin-bottom: 6px;
  position: relative;
}

.slide p {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  position: relative;
}

/* Re-skin Splide's own pagination bullets to match the previous dot look */
.hero-slider .splide__pagination {
  bottom: 34px;
  right: 18px;
  left: auto;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 4px;
}

.hero-slider .splide__pagination__page {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  opacity: 1;
  margin: 0;
  transition: width 0.3s;
}

.hero-slider .splide__pagination__page.is-active {
  width: 18px;
  background: #fff;
  transform: none;
}

/* STAT CARDS */
.stat-card .card-body { padding: 16px; }
.stat-number { font-size: 22px; font-weight: 400; line-height: 1; }
.stat-label { font-size: 12px; color: var(--ks-muted); font-weight: 400; margin-top: 4px; }

/* CHIP ROWS (Mobilekit's real .chip/.chip-media component, horizontally
   scrollable — used for the category filter row and the points-of-interest
   quick-links row) */
.cat-chip-row,
.poi-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px 12px;
}

.cat-chip-row::-webkit-scrollbar,
.poi-chip-row::-webkit-scrollbar {
  display: none;
}

.cat-chip-row .chip,
.poi-chip-row .chip {
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

/* Ίδιο chip styling με .cat-chip-row, αλλά τυλίγει σε πολλές γραμμές αντί
   να κάνει οριζόντιο scroll (π.χ. "Εξερεύνηση ανά κατηγορία" στο company_list.php) */
.cat-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 16px 12px;
}

.cat-chip-wrap .chip {
  cursor: pointer;
  text-decoration: none;
}

.poi-chip-row .chip.chip-media {
  padding-right: 14px;
}

/* LISTVIEW ROWS (used for business/job listings)
   Plain rows: no icon avatars, one neutral tag color, muted meta text —
   color is reserved for the rank/salary accent only. */
.plain-listview > li .item {
  padding: 14px 16px;
}

.cat-tag {
  display: inline-block;
  background: #F2F3F5;
  color: #5B6472;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.meta-line {
  font-size: 12px;
  color: var(--ks-muted);
  margin-top: 4px;
}

.trend-badge {
  flex-shrink: 0;
  color: var(--ks-orange);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  align-self: center;
}

.job-salary {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ks-text, #1A2340);
  white-space: nowrap;
  align-self: center;
}

/* PROMO CARDS */
.promo-card {
  background: linear-gradient(135deg, var(--ks-blue-dark) 0%, var(--ks-blue) 100%);
  color: #fff;
  border: none;
  text-decoration: none;
  display: block;
}

.promo-card .card-title,
.promo-card .card-text {
  color: #fff;
}

.promo-eyebrow {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ks-orange);
  margin-bottom: 4px;
}

.promo-card.promo-card-dark {
  background: linear-gradient(135deg, #0f172a 0%, #311042 100%);
}

.promo-card .btn-primary {
  margin-top: 10px;
  background: var(--ks-orange) !important;
  border-color: var(--ks-orange) !important;
}

/* SEASONAL EXPERIENCES CAROUSEL */
.seasonal-card {
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.seasonal-card .card-img-top {
  height: 130px;
  object-fit: cover;
}

.seasonal-card .card-body {
  padding: 10px 12px;
}

.seasonal-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ks-text, #1A2340);
}

/* FOOTER */
/* TEXT LOGO (CSS+text lockup, matches the desktop site's approach — no image request) */
.ks-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ks-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ks-blue) 0%, var(--ks-blue-dark) 100%);
  color: #fff;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.ks-logo-mark span {
  color: var(--ks-orange);
}
.ks-logo-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--ks-text, #1A2340);
  letter-spacing: -0.3px;
}
.ks-logo-text span {
  color: var(--ks-orange);
  font-weight: 400;
}
.ks-logo-lg .ks-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
}
.ks-logo-lg .ks-logo-text {
  font-size: 22px;
}

/* REGISTER PAGE (password toggle + strength meter) */
.pw-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  bottom: 0;
  height: 42px;
  width: 40px;
  color: var(--ks-muted);
  font-size: 18px;
  cursor: pointer;
}

.pw-strength-track {
  height: 4px;
  border-radius: 2px;
  background: var(--ks-border);
  margin-top: 6px;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  background: transparent;
  transition: width 0.2s, background 0.2s;
}

.pw-strength-label {
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
  min-height: 14px;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--ks-muted);
}

.empty-state p {
  font-size: 13px;
  margin: 0;
}

/* SPOT DETAILS PAGE */
.spot-header .cat-tag {
  margin-top: 0;
}

.spot-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--ks-text, #1A2340);
  margin: 6px 0 8px;
}

.spot-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.spot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 20px;
}

.spot-badge ion-icon {
  font-size: 12px;
}

.spot-badge-featured {
  background: var(--ks-orange-light);
  color: #C25A0A;
}

.spot-badge-verified {
  background: #E7F6EC;
  color: #1A8A55;
}

.spot-badge-neutral {
  background: #F2F3F5;
  color: #5B6472;
}

.spot-badge-open {
  background: #E7F6EC;
  color: #1A8A55;
}

.spot-badge-closed {
  background: #FDECEA;
  color: #B42318;
}

.section-title .spot-badge {
  margin-left: 8px;
  vertical-align: middle;
}

.hours-time {
  font-weight: 700;
  color: var(--ks-text, #1A2340);
}

.hours-today {
  font-weight: 400;
}

.hours-today .hours-time {
  color: #1A8A55;
}

.spot-actions {
  display: flex;
  gap: 10px;
}

.spot-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.social-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
}

.social-link-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--ks-blue);
  background: var(--ks-blue-light);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
}

.map-card {
  overflow: hidden;
  padding: 0;
}

.map-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.correction-link {
  font-size: 12px;
  color: var(--ks-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--ks-muted);
}

/* Divider separating real business content (jobs, contact, map) from
   secondary/helper actions (claim, correction) further down the page. */
.spot-utility-block {
  border-top: 1px solid var(--ks-border);
  padding-top: 20px;
}

/* FORM (contact page) — match the brand blue instead of Mobilekit's default */
.form-group.boxed .form-control:focus {
  border-color: var(--ks-blue);
}

/* OFFER CARDS (prosfores.php example cards) */
.offer-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 0;
}

.offer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.offer-biz-info {
  flex: 1;
  min-width: 0;
}

.offer-biz-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--ks-text, #1A2340);
}

.offer-biz-cat {
  font-size: 11px;
  color: var(--ks-muted);
  margin-top: 1px;
}

.offer-discount-badge {
  flex-shrink: 0;
  background: var(--ks-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 20px;
}

.offer-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--ks-text, #1A2340);
  margin-bottom: 4px;
}

.offer-desc {
  font-size: 12px;
  color: var(--ks-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.offer-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.offer-price-old {
  font-size: 13px;
  color: var(--ks-muted);
  text-decoration: line-through;
}

.offer-price-new {
  font-size: 18px;
  font-weight: 400;
  color: var(--ks-text, #1A2340);
}

.offer-saving {
  font-size: 11px;
  font-weight: 700;
  color: #1A8A55;
}

.offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ks-border);
}

.offer-expiry {
  font-size: 11px;
  color: var(--ks-muted);
}

/* MAP PAGE
   A map screen shouldn't scroll like a normal content page — the filter
   strip is a fixed, non-scrolling block right under the header, and the
   map itself fills all remaining viewport height down to the bottom nav. */
.map-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: calc(56px + env(safe-area-inset-top));
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.map-filter-strip {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--ks-border);
  padding-top: 6px;
}

.map-filter-strip .cat-chip-row {
  padding: 6px 16px;
}

/* Category search-as-you-type (map.php) — replaces a 70+ chip slider */
.map-cat-search {
  position: relative;
  padding: 6px 16px;
}

.map-cat-search-results {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 100%;
  margin-top: 2px;
  background: #fff;
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
}

.map-cat-search-result {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ks-text, #1A2340);
}

.map-cat-search-result:hover,
.map-cat-search-result:active {
  background: var(--ks-blue-light);
}

.map-cat-search-empty {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ks-muted);
}

.map-premium-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ks-text, #1A2340);
}

#map {
  flex: 1;
  min-height: 0;
  width: 100%;
}

#map-empty {
  position: absolute;
  inset: auto 10px 74px auto;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  font-size: 13px;
  z-index: 5;
  display: none;
}

/* Brand-color switch (matches the blue used across chips/buttons) */
.form-check-input:checked ~ .form-check-label:after {
  background-color: var(--ks-blue) !important;
  border-color: var(--ks-blue) !important;
}

/* Google Maps InfoWindow content */
.iw-wrap {
  padding: 4px 8px 4px 2px;
  font-size: 13px;
}

.iw-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.iw-name {
  font-weight: 700;
  color: var(--ks-text, #1A2340);
}

.iw-cat {
  font-size: 12px;
  color: var(--ks-muted);
  margin-top: 1px;
}

.iw-featured {
  flex-shrink: 0;
  background: var(--ks-orange-light);
  color: #C25A0A;
  font-size: 10px;
  font-weight: 400;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.iw-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ks-blue);
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
}

.iw-link:hover {
  text-decoration: underline;
}

.iw-globe {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.iw-details-link {
  font-weight: 700;
}

/* Remove ugly focus rings on the InfoWindow — keep Google's own close
   button visible (native, discoverable), just clean up the outline. */
.gm-style-iw-c,
.gm-style-iw-d,
.gm-style-iw-t::before,
.gm-style-iw-t::after {
  outline: none !important;
  box-shadow: none !important;
}

/* DASHBOARD (business-owner area) */
.ds-plan-badge {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
  color: #fff;
}

.ds-stat-delta {
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

.ds-stat-delta.up { color: #1A8A55; }
.ds-stat-delta.down { color: #D64545; }

.ds-completion-pct {
  font-size: 14px;
  font-weight: 400;
  color: var(--ks-blue);
}

.ds-progress-track {
  height: 8px;
  border-radius: 4px;
  background: #F2F3F5;
  overflow: hidden;
}

.ds-progress-fill {
  height: 100%;
  background: var(--ks-blue);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.alert.ds-alert-info,
.alert.ds-alert-warning,
.alert.ds-alert-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}

.alert.ds-alert-info ion-icon,
.alert.ds-alert-warning ion-icon,
.alert.ds-alert-success ion-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ds-alert-info { background: var(--ks-blue-light); color: var(--ks-blue-dark); }
.ds-alert-info ion-icon { color: var(--ks-blue); }

.ds-alert-warning { background: #FFF4E5; color: #8A5200; }
.ds-alert-warning ion-icon { color: var(--ks-orange); }

.ds-alert-success { background: #E7F6EC; color: #14532D; }
.ds-alert-success ion-icon { color: #1A8A55; }

.alert.ds-alert-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}
.alert.ds-alert-error ion-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.ds-alert-error { background: #FDECEC; color: #8A1F1F; }
.ds-alert-error ion-icon { color: #D64545; }
.ds-alert-error ul { margin: 0; padding-left: 18px; }

.ds-alert-body {
  flex: 1;
  min-width: 0;
}

.ds-alert-title {
  font-weight: 700;
  font-size: 13px;
}

.ds-alert-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.ds-alert-btn {
  flex-shrink: 0;
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  white-space: nowrap;
}

/* COMPANY LIST (company_list.php) */
.company-list-header {
  background: linear-gradient(135deg, var(--ks-blue-dark) 0%, var(--ks-blue) 100%);
  margin: 12px 12px 14px;
  border-radius: 18px;
  padding: 20px 16px 16px;
  color: white;
}
.company-list-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: white;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-list-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin: 0;
  font-weight: 500;
}
.results-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: white;
  font-weight: 400;
  margin-top: 10px;
}
.company-cards-grid {
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.company-card {
  background: var(--ks-white, #fff);
  border: 1px solid var(--ks-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--ks-card-shadow, 0 2px 8px rgba(26,86,160,0.06));
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.company-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,86,160,0.12);
  text-decoration: none;
  color: inherit;
}
.company-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ks-text, #1A2340);
  line-height: 1.2;
  word-break: break-word;
  flex: 1;
}
.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.company-cat-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--ks-blue);
  background: var(--ks-blue-light);
  border-radius: 5px;
  padding: 2px 6px;
  text-transform: uppercase;
}
.company-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 700;
  color: #C25A0A;
  background: var(--ks-orange-light);
  border-radius: 5px;
  padding: 2px 6px;
  text-transform: uppercase;
}
.company-rank-badge {
  font-size: 9px;
  font-weight: 400;
  color: var(--ks-orange);
  background: var(--ks-orange-light);
  border-radius: 5px;
  padding: 2px 6px;
}
.company-meta {
  font-size: 10px;
  color: var(--ks-muted);
  font-weight: 400;
  margin-top: 2px;
}
.no-results-msg {
  display: none;
  grid-column: 1 / -1;
}
@media (max-width: 479px) {
  .company-cards-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) {
  .company-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PAGINATION (company_list.php) */
.ks-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 12px 8px;
}
.ks-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--ks-border);
  background: var(--ks-white, #fff);
  color: var(--ks-text, #1A2340);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ks-page-btn.active {
  background: var(--ks-blue);
  border-color: var(--ks-blue);
  color: #fff;
}

/* DASHBOARD — shared list/limit chip (products.php, jobs.php headers) */
.ds-limit-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--ks-blue-light);
  color: var(--ks-blue-dark);
}
.ds-limit-chip.limit-reached {
  background: #FFF4E5;
  color: #8A5200;
}

/* DASHBOARD — filter bar (search + status select, products/jobs) */
.ds-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 12px 10px;
}
.ds-filter-bar .form-group.boxed {
  margin: 0;
  flex: 1;
}
.ds-filter-bar select.form-control {
  max-width: 130px;
}

/* DASHBOARD — item card (products/jobs list rows) */
.ds-item-card {
  background: var(--ks-white, #fff);
  border: 1px solid var(--ks-border);
  border-radius: 14px;
  padding: 14px;
  margin: 0 12px 10px;
  box-shadow: 0 1px 3px rgba(26, 35, 64, 0.04);
  transition: box-shadow 0.15s, opacity 0.15s;
}
.ds-item-card.is-dim { opacity: 0.6; }
.ds-item-card .ds-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ds-item-card .ds-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ks-blue-light);
  color: var(--ks-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ds-item-card.is-dim .ds-item-icon {
  background: #F2F3F5;
  color: var(--ks-muted);
}
.ds-item-card .ds-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.ds-item-card .ds-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-item-card .ds-item-main {
  flex: 1;
  min-width: 0;
}
.ds-item-card .ds-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ks-text, #1A2340);
  line-height: 1.35;
}
.ds-item-card .ds-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: 11.5px;
  color: var(--ks-muted);
  margin-top: 8px;
}
.ds-item-card .ds-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ds-item-card .ds-item-meta ion-icon {
  font-size: 13px;
  flex-shrink: 0;
}
.ds-item-card .ds-item-desc {
  font-size: 12px;
  color: var(--ks-muted);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-item-card .ds-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ks-border);
}
.ds-item-card .ds-item-actions a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: var(--ks-blue-light);
  color: var(--ks-blue);
  transition: transform 0.1s, opacity 0.1s;
}
.ds-item-card .ds-item-actions a:active {
  transform: scale(0.93);
  opacity: 0.8;
}
.ds-item-card .ds-item-actions a.danger {
  background: #FDECEC;
  color: #D64545;
}
.ds-item-card .ds-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.ds-item-card .ds-item-badges .badge {
  font-weight: 400;
  padding: 4px 9px;
  border-radius: 6px;
}

/* DASHBOARD — business hours schedule (dashboard_business.php) */
.ds-schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ks-border);
}
.ds-schedule-row:last-child { border-bottom: none; }
.ds-schedule-day {
  width: 78px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.ds-schedule-row input[type="time"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ks-border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}
.ds-schedule-row .form-check.form-switch {
  flex-shrink: 0;
  margin: 0;
}

/* DASHBOARD — photo grid (dashboard_business.php) */
.ds-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 12px;
}
.ds-photo-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ks-blue-light);
}
.ds-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ds-photo-slot.ds-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--ks-border);
  color: var(--ks-blue);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}
.ds-photo-slot.ds-photo-add ion-icon { font-size: 22px; }
.ds-photo-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.ds-photo-main-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

/* DASHBOARD — billing: plan strip, usage bars, plan cards */
.ds-plan-strip {
  background: linear-gradient(135deg, var(--ks-blue-dark) 0%, var(--ks-blue) 100%);
  margin: 12px 12px 14px;
  border-radius: 16px;
  padding: 16px;
  color: #fff;
}
.ds-plan-strip .ds-plan-strip-name {
  font-size: 18px;
  font-weight: 400;
}
.ds-plan-strip .ds-plan-strip-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 3px;
}
.ds-plan-strip .btn {
  margin-top: 12px;
}

.ds-usage-row { margin-bottom: 14px; }
.ds-usage-row:last-child { margin-bottom: 0; }
.ds-usage-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 5px;
}
.ds-usage-labels .muted { color: var(--ks-muted); font-weight: 500; }
.ds-usage-track {
  height: 7px;
  border-radius: 4px;
  background: #F2F3F5;
  overflow: hidden;
}
.ds-usage-fill {
  height: 100%;
  border-radius: 4px;
}
.ds-usage-fill.ok { background: #1A8A55; }
.ds-usage-fill.warn { background: var(--ks-orange); }
.ds-usage-fill.full { background: #D64545; }

.ds-period-toggle {
  display: flex;
  background: #F2F3F5;
  border-radius: 12px;
  padding: 3px;
  margin: 0 12px 12px;
}
.ds-period-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ks-muted);
}
.ds-period-toggle button.active {
  background: #fff;
  color: var(--ks-blue-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.ds-plan-card {
  background: var(--ks-white, #fff);
  border: 1px solid var(--ks-border);
  border-radius: 14px;
  padding: 14px;
  margin: 0 12px 10px;
}
.ds-plan-card.is-current {
  border-color: var(--ks-blue);
  box-shadow: 0 0 0 1px var(--ks-blue);
}
.ds-plan-card .ds-plan-card-name {
  font-size: 15px;
  font-weight: 400;
}
.ds-plan-card .ds-plan-card-price {
  font-size: 20px;
  font-weight: 400;
  color: var(--ks-blue);
  margin-top: 2px;
}
.ds-plan-card .ds-plan-card-price span {
  font-size: 11px;
  font-weight: 400;
  color: var(--ks-muted);
}
.ds-plan-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.ds-plan-card ul li {
  font-size: 12px;
  color: var(--ks-muted);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ds-plan-card ul li ion-icon {
  color: #1A8A55;
  flex-shrink: 0;
  margin-top: 1px;
}
.ds-plan-card .btn { width: 100%; justify-content: center; margin-top: 12px; }

.ds-bank-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--ks-border);
  font-size: 12px;
}
.ds-bank-row:last-child { border-bottom: none; }
.ds-bank-row .bank-name { font-weight: 700; }
.ds-bank-row .bank-iban { color: var(--ks-muted); font-family: monospace; margin-top: 2px; word-break: break-all; }

/* DASHBOARD — account.php password strength meter */
.ds-pw-strength-track {
  height: 5px;
  border-radius: 3px;
  background: #F2F3F5;
  overflow: hidden;
  margin-top: 6px;
}
.ds-pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.2s ease;
  background: #D64545;
}
.ds-pw-strength-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--ks-muted);
  margin-top: 4px;
}

/* DASHBOARD — help.php FAQ */
.ds-faq-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 12px 10px;
}
.ds-faq-tab {
  flex-shrink: 0;
  border: 1px solid var(--ks-border);
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ks-muted);
  white-space: nowrap;
}
.ds-faq-tab.active {
  background: var(--ks-blue);
  border-color: var(--ks-blue);
  color: #fff;
}
.ds-faq-item {
  background: #fff;
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  margin: 0 12px 8px;
  overflow: hidden;
}
.ds-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ds-faq-q ion-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--ks-muted);
}
.ds-faq-item.open .ds-faq-q ion-icon { transform: rotate(180deg); }
.ds-faq-a {
  display: none;
  padding: 0 14px 14px;
  font-size: 12px;
  color: var(--ks-muted);
  line-height: 1.5;
}
.ds-faq-item.open .ds-faq-a { display: block; }
.ds-faq-empty {
  display: none;
  text-align: center;
  padding: 24px 16px;
  color: var(--ks-muted);
  font-size: 13px;
}

/* DASHBOARD — Quill WYSIWYG editor (dashboard_jobs.php job_description) */
.ds-editor {
  border: 1px solid #E1E1E1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.ds-editor .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid #E1E1E1;
  font-family: inherit;
}
.ds-editor .ql-container.ql-snow {
  border: none;
  font-family: inherit;
  font-size: 14px;
}
.ds-editor .ql-editor {
  min-height: 140px;
}
.ds-editor .ql-editor.ql-blank::before {
  color: var(--ks-muted);
  font-style: normal;
}

/* ============================================================
   NAV REDESIGN v2 — top bar / left drawer / quick-link grid /
   bottom nav. Applies sitewide via cs_sticky_menu.php,
   cs_sidebar_menu.php and cs_bottom_menu.php (the dashboard's own
   separate cs_dashboard_header.php is untouched on purpose).
   ============================================================ */

/* TOP BAR — white bg (Mobilekit's own .appHeader default already is),
   logo image centered instead of text, rounded light-gray icon buttons
   instead of bare icons. */
.appHeader.ks-header-v2 .pageTitle .logo {
  max-height: 26px;
}

.ks-header-btn {
  width: 38px;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 12px;
  background: #F5F7FB;
  border: 1px solid var(--ks-border);
}

/* LEFT DRAWER (#sidebarPanel) — brand strip above the existing profile
   box; lighter, rounder icon chips on every row instead of Mobilekit's
   solid saturated bg-* colors. All existing links/sections are kept
   as-is, this only restyles them. */
.ks-drawer-brand {
  display: flex;
  align-items: center;
  padding: 4px 16px 14px;
  border-bottom: 1px solid var(--ks-border);
  margin-bottom: 4px;
}

.ks-drawer-brand img {
  height: 24px;
}

/* Flat icon style, matching index2.php's drawer proposal — plain glyph in
   front of the label, no colored circle/chip behind it. */
#sidebarPanel .listview .icon-box {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ks-blue) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

#sidebarPanel .listview-title {
  font-size: 11px;
  color: var(--ks-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* QUICK-LINK GRID — homepage shortcuts to the main sections (Επιχειρήσεις,
   Αγγελίες, Προσφορές, Καταλύματα, Υπηρεσίες, Σημεία Ενδιαφέροντος, Χάρτης,
   Όλες οι Κατηγορίες). Separate from .cat-chip-row, which does live
   category filtering further down the same page. */
.ks-quicklink-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  padding: 4px 16px 8px;
}

.ks-quicklink-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.ks-quicklink-grid .ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: #fff;
}

.ks-quicklink-grid span {
  font-size: 12px;
  text-align: center;
  line-height: 1.25;
  color: var(--ks-text, #1A2340);
}

/* DASHBOARD — account.php info card */
.ds-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ks-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
}
