/* Trassami brand kit integration. Keep the source artwork in assets/brand. */
.brand {
  min-width: 148px;
  height: 42px;
  gap: 0;
}

.brand-logo {
  display: block;
  width: 148px;
  height: auto;
  max-height: 42px;
}

.auth-card::before {
  content: "";
  display: block;
  width: 168px;
  height: 45px;
  margin: 0 0 18px;
  background: url("assets/brand/trassami-logo-white.svg") left center / contain no-repeat;
}

.footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer > span:first-child::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: url("assets/brand/trassami-mark.svg") center / contain no-repeat;
}

.header-location-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 245px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.header-location-button::before {
  content: "⌖";
  color: var(--accent);
  font-size: 18px;
}

.header-location-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.home-discovery {
  position: relative;
  display: grid;
  gap: 13px;
  max-width: 700px;
  margin-top: 28px;
}

.home-location-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-location-row > div {
  min-width: 0;
  flex: 1;
}

.home-location-row strong,
.home-location-row small {
  display: block;
}

.home-location-row small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-location-pin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(140,255,122,.22);
  border-radius: 13px;
  color: var(--accent);
  background: rgba(140,255,122,.08);
  font-size: 20px;
}

.home-discovery-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5,15,26,.58);
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
}

.home-discovery-search .input {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.home-location-editor {
  position: absolute;
  z-index: 20;
  top: 50px;
  left: 0;
  width: min(520px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9,23,38,.98);
  box-shadow: var(--shadow);
}

.home-location-editor[hidden] { display: none; }

.home-location-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-location-editor-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  font-size: 22px;
}

.home-location-results {
  display: grid;
  gap: 6px;
  max-height: 245px;
  margin: 10px 0;
  overflow: auto;
}

.home-location-results > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  text-align: left;
  cursor: pointer;
}

.home-location-results > button:hover {
  border-color: rgba(140,255,122,.22);
  background: rgba(140,255,122,.06);
}

.home-location-results > button span,
.home-location-results > small {
  color: var(--muted);
  font-size: 12px;
}

.home-sport-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-sport-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.home-sport-chip:hover {
  border-color: rgba(140,255,122,.28);
  color: var(--text);
}

.hero-map-cta {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  min-height: 40px;
  background: rgba(7,16,28,.88);
  backdrop-filter: blur(12px);
}

@media (max-width: 1180px) {
  .header-location-button { display: none; }
}

@media (max-width: 700px) {
  .brand {
    min-width: 124px;
    height: 36px;
  }

  .brand-logo {
    width: 124px;
    max-height: 36px;
  }

  .auth-card::before {
    width: 148px;
    height: 40px;
  }

  .home-discovery-search { grid-template-columns: 1fr; }
  .home-discovery-search .button { width: 100%; }
  .home-location-row { align-items: flex-start; flex-wrap: wrap; }
  .home-location-row > .button { margin-left: 50px; }
  .home-location-editor { top: 92px; }
  .hero-map-cta { right: 12px; bottom: 12px; left: 12px; }
}
