/* =====================================================================
   Go Muslim — gomuslim-theme.css
   Brand / override layer for the Elementor + Voxel directory build.
   Layout specifics still come from Elementor per-page CSS and Voxel's
   component stylesheets; this file owns the brand: color, type,
   buttons, form controls, listing cards, and the small signature detail.

   Direction: deep indigo ink (#1C2033, the brand's own icon color)
   + warm brass-gold accent. Fonts: Roboto (UI) + Merienda (accent),
   both already loaded by the page. Signature: an 8-point geometric
   star on the listing status badges.

   NOTE ON SPECIFICITY: this file is linked before the framework CSS,
   so brand-critical color/type rules are scoped under the body archive
   class (and a few use !important) so they win against Voxel/Elementor.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------------- */
:root {
  --gm-ink:        #1c2033;   /* brand indigo — text, nav, headings   */
  --gm-ink-soft:   #4b5268;   /* secondary text                       */
  --gm-muted:      #737a8e;   /* meta / captions                      */
  --gm-bg:         #eef1f6;   /* page background                      */
  --gm-surface:    #ffffff;   /* cards, bars, popups                  */
  --gm-surface-2:  #f6f8fb;   /* insets, hovers                       */
  --gm-line:       #e2e6ef;   /* borders & rules                      */

  --gm-gold:       #b57e22;   /* primary accent — CTAs, highlights    */
  --gm-gold-deep:  #93641a;   /* accent hover / pressed               */
  --gm-gold-tint:  rgba(181, 126, 34, .12);

  --gm-star:       #d99a2b;   /* rating stars                         */

  --gm-radius:     12px;
  --gm-radius-sm:  8px;
  --gm-radius-pill: 999px;

  --gm-shadow:     0 1px 2px rgba(28, 32, 51, .05), 0 8px 24px rgba(28, 32, 51, .06);
  --gm-shadow-lg:  0 10px 34px rgba(28, 32, 51, .14);

  --gm-font-ui:      'Roboto', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gm-font-accent:  'Merienda', 'Roboto', Georgia, serif;

  --gm-ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
body.post-type-archive-places {
  font-family: var(--gm-font-ui);
  color: var(--gm-ink);
  background: var(--gm-bg);
  -webkit-font-smoothing: antialiased;
}

body.post-type-archive-places a { color: var(--gm-gold-deep); }
body.post-type-archive-places a:hover { color: var(--gm-gold); }

/* recolor the theme's inline SVG icons (presentation fill is overridden
   by the CSS fill property) so they follow the brand ink */
body.post-type-archive-places .ts-item-icon svg,
body.post-type-archive-places .ts-comp-icon svg,
body.post-type-archive-places .ts-filter > span svg,
body.post-type-archive-places .ts-input-icon svg { fill: var(--gm-ink); }

:where(body.post-type-archive-places) *:focus-visible {
  outline: 2px solid var(--gm-gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Top bar — navbar / logo / quick search / user area  (container 316)
   --------------------------------------------------------------------- */
.elementor-316 .elementor-element-51236101 {
  background: var(--gm-surface) !important;
  box-shadow: 0 1px 0 var(--gm-line), 0 6px 20px rgba(28, 32, 51, .05);
}
.elementor-316 .elementor-element-31e4f4c6 { align-items: center; }

/* logo */
.elementor-316 .elementor-widget-image img { display: block; height: auto; }

/* horizontal nav */
.ts-nav-menu .ts-nav { gap: 4px; }
.ts-nav .menu-item > a.ts-item-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--gm-radius-sm);
  color: var(--gm-ink);
  font-weight: 500;
  font-size: 15px;
  transition: background .18s var(--gm-ease), color .18s var(--gm-ease);
}
.ts-nav .menu-item > a.ts-item-link:hover {
  background: var(--gm-gold-tint);
  color: var(--gm-gold-deep);
}
.ts-nav .ts-item-icon svg { width: 20px; height: 20px; }
.ts-nav .ts-item-link span { line-height: 1; }

/* quick search pill ("Chercher sur Go Muslim  CTRL+K") */
.quick-search .ts-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  padding: 9px 14px;
  background: var(--gm-surface-2);
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius-pill);
  color: var(--gm-muted);
  cursor: text;
  transition: border-color .18s var(--gm-ease), background .18s var(--gm-ease);
}
.quick-search .ts-filter:hover {
  border-color: var(--gm-gold);
  background: var(--gm-surface);
}
.quick-search .ts-filter svg { width: 18px; height: 18px; }
.quick-search .ts-filter-text { flex: 1; font-size: 14px; }
.quick-search .ts-shortcut {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gm-muted);
  background: var(--gm-surface);
  border: 1px solid var(--gm-line);
  border-radius: 5px;
  padding: 2px 7px;
}

/* user area — "Poster" (+) */
.ts-user-area .user-area-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  background: var(--gm-ink);
  color: #fff;
  border-radius: var(--gm-radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s var(--gm-ease), transform .2s var(--gm-ease);
}
.ts-user-area .user-area-menu > li > a:hover {
  background: var(--gm-gold-deep);
  color: #fff;
  transform: translateY(-1px);
}
.ts-user-area .ts-comp-icon svg { width: 16px; height: 16px; fill: #fff; }

/* ---------------------------------------------------------------------
   Hero  (heading + subtitle, container 7c57da60)
   --------------------------------------------------------------------- */
.elementor-25274 .elementor-element-7c57da60 { text-align: center; gap: 6px; }

.elementor-25274 .elementor-element-417a5a6d .elementor-icon svg {
  width: 40px; height: 40px; fill: var(--gm-gold);
}

.elementor-25274 h1.elementor-heading-title {
  font-family: var(--gm-font-accent);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.18;
  color: var(--gm-ink);
  position: relative;
  padding-bottom: 14px;
}
/* signature: a short gold rule with a star node under the H1 */
.elementor-25274 h1.elementor-heading-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background:
    radial-gradient(circle at center, var(--gm-gold) 0 4px, transparent 5px) center/12px 12px no-repeat,
    linear-gradient(90deg, transparent, var(--gm-gold) 22px, var(--gm-gold) calc(100% - 22px), transparent);
}
.elementor-25274 .elementor-element-6434f778 p.elementor-heading-title {
  font-size: 1.02rem;
  color: var(--gm-ink-soft);
  font-weight: 400;
}

/* ---------------------------------------------------------------------
   Buttons (Voxel ts-btn system)
   --------------------------------------------------------------------- */
body.post-type-archive-places .ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--gm-font-ui);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--gm-radius-sm);
  border: 1px solid transparent;
  padding: 11px 18px;
  cursor: pointer;
  transition: background .18s var(--gm-ease), border-color .18s var(--gm-ease),
              color .18s var(--gm-ease), transform .18s var(--gm-ease);
}
body.post-type-archive-places .ts-btn svg { width: 17px; height: 17px; }
body.post-type-archive-places .ts-btn-large { padding: 13px 22px; font-size: 15px; }

/* primary — brass CTA (the signature action color) */
body.post-type-archive-places .ts-btn-2 {
  background: var(--gm-gold) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(181, 126, 34, .28);
}
body.post-type-archive-places .ts-btn-2 svg { fill: #fff; }
body.post-type-archive-places .ts-btn-2:hover {
  background: var(--gm-gold-deep) !important;
  transform: translateY(-1px);
}

/* secondary — light with ink label */
body.post-type-archive-places .ts-btn-1 {
  background: var(--gm-surface) !important;
  color: var(--gm-ink) !important;
  border-color: var(--gm-line) !important;
}
body.post-type-archive-places .ts-btn-1 svg { fill: var(--gm-ink); }
body.post-type-archive-places .ts-btn-1:hover {
  border-color: var(--gm-gold) !important;
  color: var(--gm-gold-deep) !important;
}

/* text / ghost */
body.post-type-archive-places .ts-btn-4 {
  background: transparent !important;
  color: var(--gm-ink) !important;
}
body.post-type-archive-places .ts-btn-4:hover { color: var(--gm-gold-deep) !important; }

/* icon-only round buttons (popup close, map nav, etc.) */
body.post-type-archive-places .ts-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gm-surface-2);
  transition: background .18s var(--gm-ease);
}
body.post-type-archive-places .ts-icon-btn:hover { background: var(--gm-gold-tint); }
body.post-type-archive-places .ts-icon-btn svg { width: 18px; height: 18px; fill: var(--gm-ink); }

/* ---------------------------------------------------------------------
   Search form (filters row)
   --------------------------------------------------------------------- */
.ts-search-widget .ts-filter-wrapper { gap: 10px; }

.ts-search-widget .ts-form-group > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gm-muted);
}

/* a filter control */
.ts-search-widget .ts-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--gm-surface);
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius-sm);
  color: var(--gm-ink);
  cursor: pointer;
  transition: border-color .18s var(--gm-ease), box-shadow .18s var(--gm-ease);
}
.ts-search-widget .ts-filter:hover { border-color: #cfd6e4; }
.ts-search-widget .ts-filter svg { width: 18px; height: 18px; flex: 0 0 auto; }
.ts-search-widget .ts-filter-text { font-size: 14px; white-space: nowrap; }
.ts-search-widget .ts-down-icon {
  width: 0; height: 0; margin-left: auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gm-muted);
}
/* active/filled filter */
.ts-search-widget .ts-filter.ts-filled {
  border-color: var(--gm-gold);
  box-shadow: 0 0 0 3px var(--gm-gold-tint);
}

/* inline text input filter (keyword) */
.ts-search-widget .ts-input-icon {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--gm-surface);
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius-sm);
}
.ts-search-widget .ts-input-icon svg { width: 18px; height: 18px; }
.ts-search-widget .inline-input {
  border: 0;
  background: transparent;
  font-family: var(--gm-font-ui);
  font-size: 14px;
  color: var(--gm-ink);
  width: 100%;
  outline: none;
}

/* mobile "Filtrer les résultats" toggle + count badge */
.ts-search-widget .ts-filter-toggle .ts-toggle-text { font-weight: 600; }
.ts-search-widget .ts-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--gm-gold);
  border-radius: var(--gm-radius-pill);
}

/* ---------------------------------------------------------------------
   Popups / dropdowns / inputs (shared)
   --------------------------------------------------------------------- */
body.post-type-archive-places .ts-field-popup,
body.post-type-archive-places .ts-popup-content-wrapper,
body.post-type-archive-places .ts-term-dropdown {
  background: var(--gm-surface);
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow-lg);
}
body.post-type-archive-places .ts-term-dropdown-list li a.flexify {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--gm-radius-sm);
  color: var(--gm-ink);
}
body.post-type-archive-places .ts-term-dropdown-list li a.flexify:hover {
  background: var(--gm-surface-2);
}
body.post-type-archive-places .ts-term-dropdown-list li.ts-selected > a { color: var(--gm-gold-deep); }
body.post-type-archive-places .ts-term-icon svg { width: 20px; height: 20px; fill: var(--gm-ink); }

body.post-type-archive-places input[type="text"].autofocus,
body.post-type-archive-places input[type="text"].border-none {
  border: 0; outline: none; width: 100%;
  font-family: var(--gm-font-ui); font-size: 15px; color: var(--gm-ink);
}

/* ---------------------------------------------------------------------
   Results feed
   --------------------------------------------------------------------- */
.post-feed-header .result-count {
  margin: 8px 0 18px;
  font-size: 14px;
  color: var(--gm-muted);
}

/* responsive card grid (two classes to out-specify the framework) */
.sf-post-feed.post-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* ---- listing card (each .ts-preview wraps an Elementor card) ---- */
.ts-preview {
  background: var(--gm-surface);
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius);
  overflow: hidden;
  box-shadow: var(--gm-shadow);
  transition: transform .22s var(--gm-ease), box-shadow .22s var(--gm-ease),
              border-color .22s var(--gm-ease);
}
.ts-preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--gm-shadow-lg);
  border-color: #d6ddea;
}
/* gold reveal line along the top on hover — the brand tell */
.ts-preview { position: relative; }
.ts-preview::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gm-gold), var(--gm-gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--gm-ease);
  z-index: 2;
}
.ts-preview:hover::before { transform: scaleX(1); }

.ts-preview .elementor-25273,
.ts-preview .elementor-element-8caae20,
.ts-preview .e-con-inner { height: 100%; }
.ts-preview a.elementor-element-6e3d5bc0 {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  position: relative;
}

/* banner image (top) */
.ts-preview .elementor-element-3c55c659 img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* logo thumbnail — lift it over the banner as a rounded avatar */
.ts-preview .elementor-element-7380fe60 {
  margin-top: -34px;
  padding-left: 16px;
  position: relative;
  z-index: 1;
}
.ts-preview .elementor-element-7380fe60 img {
  width: 62px; height: 62px;
  border-radius: 12px;
  border: 3px solid var(--gm-surface);
  object-fit: cover;
  background: var(--gm-surface);
  box-shadow: 0 4px 10px rgba(28, 32, 51, .12);
}

/* padding for the text blocks */
.ts-preview .elementor-element-888af8c,
.ts-preview .elementor-element-42c33d12,
.ts-preview .elementor-element-61baa0d7,
.ts-preview .elementor-element-4c9d922b { padding-left: 16px; padding-right: 16px; }
.ts-preview .elementor-element-61baa0d7 { padding-bottom: 16px; margin-top: auto; }

/* business name */
.ts-preview .elementor-element-5d2fffb3 h3.elementor-heading-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gm-ink);
  line-height: 1.25;
  margin-top: 8px;
}
.ts-preview a:hover .elementor-element-5d2fffb3 h3 { color: var(--gm-gold-deep); }

/* category (first) + region (second) */
.ts-preview .elementor-element-4d0bc9b p.elementor-heading-title {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gm-gold-deep);
  background: var(--gm-gold-tint);
  padding: 3px 10px;
  border-radius: var(--gm-radius-pill);
  margin-bottom: 6px;
}
.ts-preview .elementor-element-935c9dd p.elementor-heading-title {
  font-size: 13px;
  color: var(--gm-muted);
}
.ts-preview .elementor-element-935c9dd p::before {
  content: "\1F4CD";  /* pin */
  margin-right: 5px;
  filter: grayscale(1) opacity(.6);
}

/* rating row */
.ts-preview .elementor-star-rating { color: #d7dce6; font-size: 15px; }
.ts-preview .elementor-star-rating i.elementor-star-full { color: var(--gm-star); }
.ts-preview .elementor-element-2181631 p.elementor-heading-title {
  font-size: 12px;
  color: var(--gm-muted);
  margin-top: 2px;
}

/* status badge ("Ouvert" / "sur RDV") with the geometric-star signature */
.ts-preview .ts-advanced-list .ts-action {
  padding-top: 12px;
}
.ts-preview .ts-action-con {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gm-ink);
  background: var(--gm-surface-2);
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius-pill);
  padding: 4px 11px 4px 9px;
}
.ts-preview .ts-action-icon {
  width: 12px; height: 12px;
  background: var(--gm-gold);
  /* 8-point star */
  clip-path: polygon(50% 0, 61% 26%, 87% 15%, 76% 40%, 100% 50%, 76% 60%, 87% 85%,
                     61% 74%, 50% 100%, 39% 74%, 13% 85%, 24% 60%, 0 50%, 24% 40%, 13% 15%, 39% 26%);
}

/* load-more + empty state */
.feed-pagination { justify-content: center; margin-top: 28px; }
.ts-no-posts {
  text-align: center;
  padding: 48px 20px;
  color: var(--gm-muted);
}
.ts-no-posts svg { width: 44px; height: 44px; fill: #c3cad8; margin-bottom: 10px; }
.ts-no-posts p { margin-bottom: 16px; font-size: 15px; }

/* ---------------------------------------------------------------------
   Map
   --------------------------------------------------------------------- */
.ts-map {
  border-radius: var(--gm-radius);
  overflow: hidden;
  border: 1px solid var(--gm-line);
  min-height: 420px;
}
.ts-search-area.ts-btn {
  box-shadow: var(--gm-shadow-lg);
}

/* ---------------------------------------------------------------------
   Alerts / notices
   --------------------------------------------------------------------- */
.ts-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gm-surface);
  border: 1px solid var(--gm-line);
  border-left: 4px solid var(--gm-gold);
  border-radius: var(--gm-radius-sm);
  box-shadow: var(--gm-shadow-lg);
  padding: 14px 16px;
}
.ts-notice .alert-ic svg { width: 22px; height: 22px; fill: var(--gm-gold-deep); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .quick-search .ts-filter { min-width: 0; }
}
@media (max-width: 767px) {
  .sf-post-feed.post-feed-grid { grid-template-columns: 1fr; gap: 16px; }
  .elementor-25274 h1.elementor-heading-title { font-size: 1.6rem; }
  .ts-nav .menu-item > a.ts-item-link span { font-size: 14px; }
}

/* ---------------------------------------------------------------------
   Motion preference
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.post-type-archive-places * { transition: none !important; }
  .ts-preview:hover { transform: none; }
  .ts-preview::before { transition: none; }
}