:root {
  --bg: #0f1222;
  --panel: rgba(18, 22, 39, 0.86);
  --panel-strong: rgba(23, 28, 48, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --text: #edf2ff;
  --muted: #a8b3d3;
  --primary: #8a7dff;
  --primary-2: #5bd4ff;
  --success: #6ae5b1;
  --warning: #ffd66b;
  --pink: #ff7ec7;
  --shadow: 0 28px 60px rgba(14, 20, 39, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(138, 125, 255, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(91, 212, 255, 0.18), transparent 25%),
    var(--bg);
  color: var(--text);
}

button,
a {
  font: inherit;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.topbar,
.hero,
.filters,
.list-section {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18rem;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 1.7rem;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.feedback-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 30;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 14px 20px;
  box-shadow: 0 16px 32px rgba(94, 106, 255, 0.38);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(94, 106, 255, 0.45);
}

.detail-modal,
.feedback-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  z-index: 50;
  padding: 20px;
}

.detail-modal.hidden,
.feedback-modal.hidden {
  display: none;
}

.detail-panel,
.feedback-panel {
  position: relative;
  width: min(100%, 760px);
  background: linear-gradient(180deg, rgba(18, 22, 39, 0.98), rgba(14, 18, 30, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px 22px 20px;
  box-shadow: var(--shadow);
}

.detail-panel {
  max-height: 86vh;
  overflow-y: auto;
}

.detail-header {
  margin-bottom: 18px;
}

.review-hint {
  margin: 0 0 18px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
}

.review-note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.feedback-header {
  margin-bottom: 18px;
}

.eyebrow.small {
  margin: 0 0 8px;
  letter-spacing: 0.14rem;
  font-size: 0.68rem;
}

.feedback-header h3 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
}

#feedbackForm {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(168, 179, 211, 0.8);
}

.field-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #bfffe1;
  font-size: 0.82rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0 16px;
}

.hero-copy {
  padding-right: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: rgba(137, 125, 255, 0.18);
  border: 1px solid rgba(137, 125, 255, 0.42);
  color: #d9d5ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.location-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 360px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.location-box .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #3dd6a8);
  box-shadow: 0 0 0 6px rgba(39, 208, 126, 0.15);
}

.location-box label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.location-box strong {
  font-size: 1.02rem;
}

.hero-visual {
  position: relative;
  min-height: 310px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23, 28, 48, 0.9), rgba(17, 22, 35, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-card {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.stat-card span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.06em;
}

.stat-card.primary {
  background: linear-gradient(135deg, rgba(138, 125, 255, 0.28), rgba(91, 212, 255, 0.16));
  margin-top: 30px;
}

.stat-card.secondary {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.plan-map {
  position: absolute;
  inset: 18px 18px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(12, 16, 27, 0.78);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  overflow: hidden;
}

.plan-road {
  position: absolute;
  background: rgba(132, 148, 196, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.road-horizontal {
  left: 0;
  right: 0;
  top: 50%;
  height: 28%;
  transform: translateY(-50%);
}

.road-vertical {
  top: 0;
  bottom: 0;
  left: 52%;
  width: 24%;
  transform: translateX(-50%);
}

.plan-block {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #dfe8ff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 6px 8px;
}

.block-a {
  left: 14%;
  top: 17%;
  width: 26%;
  height: 18%;
}

.block-b {
  right: 12%;
  top: 15%;
  width: 22%;
  height: 20%;
}

.block-c {
  left: 18%;
  bottom: 18%;
  width: 28%;
  height: 16%;
}

.block-d {
  right: 16%;
  bottom: 20%;
  width: 24%;
  height: 18%;
}

.block-e {
  left: 44%;
  top: 40%;
  width: 18%;
  height: 15%;
  background: rgba(91, 212, 255, 0.12);
}

.filters {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-top: 2px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.filter-chip.active {
  color: var(--text);
  background: rgba(138, 125, 255, 0.15);
  border-color: rgba(138, 125, 255, 0.35);
}

.search-wrap {
  display: flex;
  gap: 10px;
  width: min(100%, 1100px);
  margin: 18px auto 0;
}

.search-wrap input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.search-wrap input::placeholder {
  color: rgba(168, 179, 211, 0.8);
}

.search-wrap button {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

.sort-row {
  display: flex;
  gap: 10px;
  width: min(100%, 1100px);
  margin: 18px auto 0;
  flex-wrap: wrap;
}

.sort-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-btn.active {
  color: var(--text);
  background: rgba(138, 125, 255, 0.15);
  border-color: rgba(138, 125, 255, 0.35);
}

.city-status {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.list-section {
  margin-top: 30px;
  background: rgba(15, 18, 34, 0.55);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 20px 10px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.22rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  border: 1px solid rgba(106, 229, 177, 0.28);
  background: rgba(106, 229, 177, 0.08);
  color: #beffe2;
}

.category-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.summary-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 14px 16px;
}

.summary-pill .label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.summary-pill strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.category-list {
  display: grid;
  gap: 18px;
}

.category-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 18px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.category-header span {
  color: var(--muted);
  font-size: 0.8rem;
}

.subcategory-wrap {
  display: grid;
  gap: 12px;
}

.subcategory-block {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.subcategory-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.subcategory-heading strong {
  color: var(--text);
}

.place-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.place-card {
  background: linear-gradient(180deg, rgba(22, 26, 43, 0.95), rgba(18, 22, 38, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px 16px 12px;
}

.place-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.place-category {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(91, 212, 255, 0.11);
  color: #bfeeff;
  font-size: 0.74rem;
  font-weight: 700;
}

.place-distance {
  font-size: 0.8rem;
  color: var(--muted);
}

.place-card h4 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.place-summary {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 52px;
}

.place-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.rating-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 214, 107, 0.08);
  color: #ffe58d;
  font-weight: 700;
}

.rating-box .star {
  color: #ffd66b;
}

.review-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-list li {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-actions .route-link,
.review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(138, 125, 255, 0.2), rgba(91, 212, 255, 0.2));
  border: 1px solid rgba(138, 125, 255, 0.35);
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
}

.review-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(106, 229, 177, 0.1);
  color: #c5ffe3;
  border: 1px solid rgba(106, 229, 177, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .place-list {
    grid-template-columns: 1fr;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-box {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding-inline: 14px;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
