/* act1-cend.css — Act 1 C-end consumer mobile styles */

/* ── view layout ── */
[data-view="home-map"],
[data-view="home-detail"],
[data-view="home-feedback"],
[data-view="home-list"] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

/* ── header ── */
.c-header {
  padding: 14px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.c-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.c-header-eyebrow {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.c-header-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-header-actions {
  display: flex;
  gap: 6px;
}

/* ── search ── */
.c-search {
  position: relative;
}

.c-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.c-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg-elev);
  color: var(--ink);
  font-family: inherit;
  outline: none;
}

.c-search input::placeholder {
  color: var(--ink-4);
}

/* ── filter chips ── */
.c-filter-chips-wrap {
  background: var(--surface);
  padding-top: 8px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.c-filter-chips {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.c-filter-chips::-webkit-scrollbar {
  display: none;
}

.c-filter-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.c-filter-chip--active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.c-filter-chip--tag-active {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}

.c-chip-divider {
  flex-shrink: 0;
  width: 1px;
  background: var(--border);
  margin: 4px 2px;
  align-self: stretch;
}

/* ── map body ── */
.c-map-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.c-map-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.c-map-canvas {
  position: absolute;
  inset: 0;
}

.c-map-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.c-map-canvas.is-zoomed svg {
  transform: scale(1.15);
  transform-origin: center center;
}

/* ── map controls ── */
.c-map-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

/* ── map legend ── */
.c-map-legend {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  padding: 6px 10px;
  font-size: 10px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.c-map-legend-label {
  font-weight: 500;
}

.c-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.c-map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── icon buttons ── */
.c-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.c-map-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

/* ── store peek card ── */
.c-store-peek {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 96px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 14px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.c-store-peek-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--ink-3);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.c-store-peek-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.c-store-peek-score {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.c-store-peek-score-num {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.c-store-peek-score-lv {
  font-size: 9px;
  opacity: 0.85;
  margin-top: 2px;
}

.c-store-peek-info {
  flex: 1;
  min-width: 0;
  padding-right: 18px;
}

.c-store-peek-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.c-store-peek-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.c-store-peek-addr {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 8px;
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.c-store-peek-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.c-store-peek-cta {
  width: 100%;
  margin-top: 12px;
}

/* ── tab bar ── */
.c-tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  display: flex;
  padding-bottom: 18px;
  z-index: 20;
}

.c-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 10px;
  font-family: inherit;
  transition: color 0.15s;
}

.c-tab--active {
  color: var(--primary);
}

/* ── toast ── */
.c-toast {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* ── detail view ── */
[data-view="home-detail"] {
  display: flex;
  flex-direction: column;
}

.c-detail-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
}

.c-detail-scroll::-webkit-scrollbar {
  display: none;
}

.c-detail-hero {
  position: relative;
  height: 160px;
  padding: 14px 16px;
  color: white;
  flex-shrink: 0;
}

.c-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-detail-back {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}

.c-detail-nav-right {
  display: flex;
  gap: 6px;
}

.c-detail-hero-info {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 140px;
}

.c-detail-cat-label {
  font-size: 10px;
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.c-detail-store-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.c-detail-donut-wrap {
  position: absolute;
  right: 16px;
  bottom: 14px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 8px;
}

.c-detail-donut-container {
  position: relative;
  width: 72px;
  height: 72px;
}

.c-detail-donut-svg {
  display: block;
}

.c-detail-donut-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.c-detail-donut-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.c-detail-donut-lv {
  font-size: 10px;
  font-weight: 600;
  margin-top: 1px;
  font-family: var(--font-mono);
}

/* ── detail sections ── */
.c-detail-info {
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}

.c-detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-2);
}

.c-detail-badge {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--primary);
  margin-top: 4px;
}

.c-detail-section {
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 8px;
}

.c-detail-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.c-detail-section-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  margin-bottom: 10px;
}

.c-detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── score bars ── */
.c-bar-row {
  margin-bottom: 10px;
}

.c-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.c-bar-name {
  color: var(--ink-2);
}

.c-bar-score {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.c-bar-track {
  height: 5px;
  background: var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
}

.c-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%;
}

/* ── feedback cards in detail ── */
.c-feedback-card {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.c-feedback-card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  align-items: center;
}

.c-feedback-card-date {
  font-size: 10px;
  color: var(--ink-4);
}

.c-feedback-card-content {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.c-detail-spacer {
  height: 80px;
}

/* ── feedback sheet modal ── */
[data-view="home-feedback"] {
  background: transparent;
  z-index: 30;
}

.c-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.c-feedback-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px 24px;
  z-index: 2;
  transform: translateY(100%);
}

.c-feedback-drag {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.c-feedback-form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.c-feedback-form-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.c-feedback-type-label {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.c-feedback-types {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.c-feedback-type {
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.c-feedback-type--active {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}

.c-feedback-desc-label {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.c-feedback-textarea {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  resize: none;
  outline: none;
  display: block;
  box-sizing: border-box;
}

.c-feedback-upload-btn {
  width: 100%;
  height: 42px;
  gap: 6px;
  margin-top: 10px;
  background: var(--bg-elev);
  color: var(--ink-2);
  border-color: var(--border);
}

.c-feedback-submit-btn {
  width: 100%;
  margin-top: 14px;
  height: 46px;
}

.c-feedback-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.c-feedback-success.is-visible {
  display: block;
}

.c-feedback-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.c-feedback-success-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.c-feedback-success-body {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ── list view ── */
[data-view="home-list"] {
  display: flex;
  flex-direction: column;
}

.c-list-count {
  padding: 12px 16px;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.c-list-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
  padding-bottom: 78px;
}

.c-list-scroll::-webkit-scrollbar {
  display: none;
}

.c-list-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  background: var(--surface);
  align-items: center;
  transition: background 0.12s;
}

.c-list-row:active {
  background: var(--bg-elev);
}

.c-list-score-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.c-list-score-num {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.c-list-score-lv {
  font-size: 8px;
  opacity: 0.85;
}

.c-list-info {
  flex: 1;
  min-width: 0;
}

.c-list-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.c-list-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-list-tags {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.c-list-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
