/* Front styles: clean, lightweight, white background (v1.1.0) */
.alix-gr{
  font: inherit;
  --alix-gr-title-color: inherit;
  --alix-gr-title-size: inherit;
  --alix-gr-title-weight: 700;
  --alix-gr-card-radius: 12px;
  --alix-gr-border-color: rgba(0,0,0,.08);
  --alix-gr-star-color: #FBBC05;
  --alix-gr-text-color: inherit;
}
.alix-gr-container{
  background:#fff;
  border:1px solid var(--alix-gr-border-color);
  border-radius: calc(var(--alix-gr-card-radius) + 2px);
  padding:16px;
}

.alix-gr-section-title{ color: var(--alix-gr-title-color); font-size: var(--alix-gr-title-size);
  margin:0 0 12px 0;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  line-height:1.2;
}
.alix-gr-title-text{ display:inline-block; }
.alix-gr-icon{ display:inline-block; vertical-align:middle; }

.alix-gr-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.alix-gr-place-name{ font-weight:700; font-size:1.05em; }
.alix-gr-summary{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
  white-space:nowrap;
}
.alix-gr-meta{ opacity:.85; font-size:.95em; }
.alix-gr-link a{ text-decoration:none; }

.alix-gr-items{ display:grid; gap:12px; }
.alix-gr-grid .alix-gr-items{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.alix-gr-list .alix-gr-items{ grid-template-columns: 1fr; }

.alix-gr-item{
  border:1px solid var(--alix-gr-border-color);
  border-radius: var(--alix-gr-card-radius);
  padding:12px;
  background:#fff;
}
.alix-gr-item-head{ display:flex; gap:10px; align-items:center; margin-bottom:8px; }
.alix-gr-avatar{ width:48px; height:48px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.alix-gr-author-name{ font-weight:600; line-height:1.2; }
.alix-gr-author-stars{ display:flex; gap:8px; align-items:center; font-size:.95em; opacity:.9; flex-wrap:wrap; }
.alix-gr-text{ margin-top:6px; line-height:1.5; white-space:pre-wrap; }
.alix-gr-date{ font-size:.9em; opacity:.75; }
.alix-gr-empty{ opacity:.8; padding:6px 0; }

.alix-gr-error{
  padding:10px;
  border:1px solid rgba(220,50,50,.3);
  background:#fff5f5;
  border-radius: var(--alix-gr-card-radius);
}


.alix-gr, .alix-gr *{ color: var(--alix-gr-text-color); }

.alix-gr-starwrap{ display:inline-flex; gap:2px; align-items:center; }
.alix-gr-star{ width:16px; height:16px; fill: var(--alix-gr-star-color); }
.alix-gr-star-empty{ fill: rgba(0,0,0,.18); }

.alix-gr-link{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.alix-gr-link-a{ opacity:.9; }
.alix-gr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--alix-gr-border-color);
  background:#fff;
  text-decoration:none;
  font-weight:600;
  line-height:1;
}
.alix-gr-btn:hover{ filter: brightness(0.98); }

/* Carousel layout */
.alix-gr-carousel{
  overflow:auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.alix-gr-track{ position:relative; }
.alix-gr-carousel .alix-gr-items{
  display:flex;
  gap:12px;
  padding-bottom: 6px;
}
.alix-gr-carousel .alix-gr-item{
  flex: 0 0 auto; /* basis set via JS */
  flex: 0 0 min(420px, 85vw);
  scroll-snap-align: start;
}
.alix-gr-carousel-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:10px;
}
.alix-gr-arrow{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--alix-gr-border-color);
  background:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.alix-gr-dots{ display:flex; gap:8px; align-items:center; }
.alix-gr-dot{
  width:8px; height:8px; border-radius:999px;
  border:1px solid var(--alix-gr-border-color);
  background:transparent;
  cursor:pointer;
  padding:0;
}
.alix-gr-dot.is-active{ background: var(--alix-gr-star-color); border-color: var(--alix-gr-star-color); }

.alix-gr-loadmore-wrap{ display:flex; justify-content:center; margin-top:12px; }
.alix-gr-loadmore{ cursor:pointer; }

.alix-gr-carousel .alix-gr-item-head{
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}
.alix-gr-carousel .alix-gr-author-stars{ justify-content:center; }
