#app-home {
    --white: #FEFEFE;
    --pale: #F3F8FE;
    --navy: #001A45;
    --navy-2: #001B49;
    --royal: #003493;
    --bright: #48A0F8;
    --ink-70: rgba(0, 26, 69, 0.70);
    --line: rgba(0, 26, 69, 0.12);
    --shadow: 0 12px 32px rgba(0, 26, 69, 0.10);
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Outfit", sans-serif;
  }
  #app-home * { box-sizing: border-box; }
  #app-home { scroll-behavior: smooth; }
  #app-home {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
  }
  #app-home img { max-width: 100%; display: block; }
  #app-home a { color: inherit; text-decoration: none; }
  #app-home button, #app-home input, #app-home select { font-family: inherit; }
  #app-home .wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

  /* Header */
  #app-home .header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(0, 26, 69, 0.06);
  }
  #app-home .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 24px;
  }
  #app-home .logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    object-position: left center;
  }
  #app-home .nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
    font-size: 15px;
    color: var(--navy);
  }
  #app-home .nav a { transition: color 150ms ease; }
  #app-home .nav a:hover { color: var(--royal); }
  #app-home .icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--navy);
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 150ms ease;
  }
  #app-home .icon-btn:hover { background: var(--pale); }

  /* Hero */
  #app-home .hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
    min-height: 560px;
  }
  #app-home .city { position: absolute; inset: 0; z-index: 0; }
  #app-home .hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: min(58vw, 760px);
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }
  #app-home .scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
      #001A45 0%,
      #001A45 28%,
      rgba(0, 26, 69, 0.82) 42%,
      rgba(0, 26, 69, 0.28) 54%,
      rgba(0, 26, 69, 0) 66%);
    pointer-events: none;
  }
  #app-home .hero-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    padding: 64px 0 0;
  }
  #app-home .eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--royal);
  }
  #app-home .hero .eyebrow { color: var(--pale); }
  #app-home .hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 64px;
    line-height: 0.98;
    letter-spacing: -0.02em;
    max-width: 640px;
    color: #FEFEFE;
  }
  #app-home .hero h1 .accent { color: var(--bright); display: inline-block; margin-top: 2px; }
  #app-home .lede {
    margin: 18px 0 0;
    max-width: 460px;
    color: rgba(243, 248, 254, 0.88);
    font-size: 16px;
    line-height: 1.5;
  }
  #app-home .search-overlap {
    position: relative;
    z-index: 5;
    margin-top: -28px;
  }


  #app-home .search {
    display: flex;
    align-items: center;
    height: 56px;
    background: var(--white);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: 6px 6px 6px 8px;
    gap: 0;
  }
  #app-home .field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 14px;
    color: var(--royal);
  }
  #app-home .field + .field { border-left: 1px solid var(--line); }
  #app-home .field input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: var(--navy);
    font-weight: 500;
  }
  #app-home .field input::placeholder { color: rgba(0, 26, 69, 0.45); font-weight: 400; }
  #app-home .search-btn {
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: 999px;
    background: var(--royal);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
  }
  #app-home .search-btn:hover { transform: scale(1.04); background: #002a78; }

  /* Features */
  #app-home .features { padding: 64px 0 64px; background: var(--white); }
  #app-home .feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
  }
  #app-home .feature svg { display: block; margin: 0 auto 12px; }
  #app-home .feature h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  #app-home .feature p { margin: 0 auto; max-width: 220px; color: var(--ink-70); font-size: 14.5px; line-height: 1.45; }

  /* How */
  #app-home .how {
    background: var(--pale);
    padding: 64px 0;
  }
  #app-home .how-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 48px;
    align-items: center;
  }
  #app-home .how h2, #app-home .sec h2, #app-home .browse h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 36px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--navy);
  }
  #app-home .how .body {
    margin: 12px 0 22px;
    max-width: 380px;
    color: var(--ink-70);
    font-size: 15.5px;
  }
  #app-home .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--royal);
    color: var(--white);
    font-weight: 600;
    font-size: 14.5px;
    border: 0;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
  }
  #app-home .btn:hover { transform: translateY(-1px); background: #002a78; }
  #app-home .btn-light { background: var(--white); color: var(--navy); }
  #app-home .btn-light:hover { background: var(--pale); }
  #app-home .steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  #app-home .steps:before {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    top: 16px;
    height: 1px;
    background: rgba(0, 52, 147, 0.35);
  }
  #app-home .step { text-align: center; position: relative; }
  #app-home .num {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: var(--royal);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
  }
  #app-home .step h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; }
  #app-home .step p { margin: 0 auto; max-width: 180px; color: var(--ink-70); font-size: 14px; }

  /* Featured */
  #app-home .sec { padding: 64px 0; background: var(--white); }
  #app-home .sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
  }
  #app-home .viewall {
    color: var(--royal);
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
  }
  #app-home .viewall:hover { text-decoration: underline; }
  #app-home .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  #app-home .card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 150ms ease, box-shadow 150ms ease;
  }
  #app-home .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  #app-home .photo { position: relative; height: 188px; background: var(--navy); }
  #app-home .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--navy);
    color: var(--white);
    border-radius: 999px;
    padding: 4px 9px 4px 7px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    z-index: 2;
  }
  #app-home .card-body { padding: 14px 16px 16px; }
  #app-home .card-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
  #app-home .meta { display: flex; align-items: center; gap: 6px; color: var(--ink-70); font-size: 13.5px; margin: 0 0 10px; }
  #app-home .meta svg, #app-home .chips svg { flex: none; }
  #app-home .chips { display: flex; flex-wrap: wrap; gap: 12px 14px; color: var(--ink-70); font-size: 13px; }
  #app-home .chips span { display: inline-flex; align-items: center; gap: 6px; }
  #app-home .caption {
    margin: 14px 0 0;
    color: var(--ink-70);
    font-size: 12.5px;
  }

  /* Photo scenes — palette only, no external images */
  #app-home .scene { position: absolute; inset: 0; }
  #app-home .scene-albion {
    background: linear-gradient(180deg, #003493 0%, #001A45 55%, #001B49 100%);
  }
  #app-home .scene-albion .tower-art {
    position: absolute;
    right: 18px;
    bottom: 0;
    width: 46%;
    height: 92%;
    border-radius: 80px 80px 0 0;
    background-color: #001A45;
    background-image:
      radial-gradient(5px 8px at 7px 9px, rgba(254,254,254,.95) 0 48%, transparent 50%);
    background-size: 16px 20px;
    box-shadow: -16px 0 0 #001B49;
  }
  #app-home .scene-albion .base {
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 28%;
    background: linear-gradient(180deg, transparent, rgba(0,26,69,.55));
  }
  #app-home .scene-guild {
    background:
      linear-gradient(180deg, #F3F8FE 0%, #d5e4f8 40%, #F3F8FE 100%);
  }
  #app-home .scene-guild .court {
    position: absolute;
    inset: 18px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: inset 0 0 0 8px rgba(0, 26, 69, 0.06);
  }
  #app-home .scene-guild .pool {
    position: absolute;
    left: 22%;
    top: 22%;
    width: 56%;
    height: 52%;
    background: linear-gradient(180deg, #2456b8, #003493);
    border-radius: 10px;
    box-shadow: 0 0 0 7px rgba(254, 254, 254, 0.85), 0 0 0 10px rgba(0, 52, 147, 0.18);
  }
  #app-home .scene-guild .deck {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--navy);
    border-radius: 2px;
    opacity: 0.35;
  }
  #app-home .scene-joseph {
    background: linear-gradient(200deg, #001B49 0%, #003493 48%, #F3F8FE 100%);
  }
  #app-home .scene-joseph .glass {
    position: absolute;
    right: 28px;
    bottom: 0;
    width: 38%;
    height: 96%;
    background-color: #001A45;
    background-image: radial-gradient(6px 9px at 8px 10px, rgba(254,254,254,.92) 0 46%, transparent 48%);
    background-size: 18px 22px;
    border-left: 12px solid #001B49;
    box-shadow: -18px 0 0 rgba(0, 26, 69, 0.35);
  }
  #app-home .scene-joseph .glass:after {
    content: "";
    position: absolute;
    left: -28px;
    bottom: 0;
    width: 22px;
    height: 70%;
    background: #001B49;
    background-image: radial-gradient(circle at 50% 6px, #F3F8FE 1.2px, transparent 1.5px);
    background-size: 100% 14px;
  }

  /* Browse / product */
  #app-home .browse { background: var(--pale); padding: 64px 0 72px; }
  #app-home .browse-tools {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin: 22px 0 10px;
  }
  #app-home .browse-tools .search { flex: 1; box-shadow: none; border: 1px solid var(--line); }
  #app-home .city-filter { display: flex; flex-direction: column; gap: 4px; flex: none; }
  #app-home .city-filter span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--royal);
  }
  #app-home .city-filter select {
    appearance: none;
    height: 44px;
    min-width: 180px;
    padding: 0 40px 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%23003493' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 14px center;
    color: var(--navy);
    font-weight: 500;
    font-size: 15px;
  }
  #app-home .query-line {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ink-70);
  }
  #app-home .query-line strong { color: var(--navy); font-weight: 600; }
  #app-home .browse-grid {
    display: grid;
    grid-template-columns: 1.22fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
  #app-home .map {
    position: relative;
    min-height: 480px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #eaf2fc;
    overflow: hidden;
  }
  #app-home .map-streets {
    position: absolute;
    inset: 0;
    background-color: #e7f0fb;
    background-image:
      linear-gradient(rgba(0, 26, 69, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 26, 69, 0.05) 1px, transparent 1px),
      linear-gradient(rgba(254, 254, 254, 0.0) 0, rgba(254, 254, 254, 0.0) 0);
    background-size: 36px 36px, 36px 36px;
  }
  #app-home .block {
    position: absolute;
    background: rgba(0, 26, 69, 0.045);
    border: 1px solid rgba(0, 26, 69, 0.06);
    border-radius: 4px;
  }
  #app-home .ave {
    position: absolute;
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(0, 26, 69, 0.04);
  }
  #app-home .ave.h { left: 0; right: 0; top: 50%; height: 22px; transform: translateY(-50%); }
  #app-home .ave.v { top: 0; bottom: 0; left: 50%; width: 16px; transform: translateX(-50%); }
  #app-home .ave.v2 { top: 0; bottom: 0; left: 28%; width: 12px; }
  #app-home .ave.h2 { left: 0; right: 0; top: 27%; height: 12px; }
  #app-home .road-label {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 26, 69, 0.45);
    z-index: 1;
  }
  #app-home .radius {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(0, 52, 147, 0.55);
    background: rgba(0, 52, 147, 0.12);
    z-index: 2;
    pointer-events: none;
  }
  #app-home .radius-label {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--royal);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    white-space: nowrap;
  }
  #app-home .origin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  #app-home .origin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--royal);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 6px rgba(0, 52, 147, 0.22);
  }
  #app-home .origin-label, #app-home .mpin {
    background: var(--white);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 26, 69, 0.12);
    white-space: nowrap;
  }
  #app-home .origin-label { order: -1; }
  #app-home .mpin {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -50%);
    background: var(--navy);
    color: var(--white);
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  #app-home .results { display: flex; flex-direction: column; gap: 12px; }
  #app-home .result {
    display: grid;
    grid-template-columns: 118px 1fr;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    min-height: 108px;
    transition: transform 150ms ease, box-shadow 150ms ease;
  }
  #app-home .result:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  #app-home .result .photo { height: 100%; min-height: 108px; }
  #app-home .result .badge { top: 8px; left: 8px; font-size: 12px; padding: 3px 7px 3px 6px; }
  #app-home .result .card-body { padding: 12px 12px 12px 14px; display: flex; flex-direction: column; justify-content: center; }
  #app-home .result h3 { font-size: 15.5px; }
  #app-home .empty {
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 28px 18px;
    color: var(--ink-70);
    text-align: center;
  }

  /* Footer */
  #app-home .foot-top { background: var(--royal); color: var(--white); }
  #app-home .foot-top-inner {
    display: grid;
    grid-template-columns: auto 1px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 28px 0;
  }
  #app-home .logo-chip {
    background: var(--white);
    border-radius: 10px;
    padding: 8px 10px;
    display: inline-flex;
  }
  #app-home .logo-chip img { height: 56px; width: auto; }
  #app-home .vdiv { width: 1px; height: 52px; background: rgba(254, 254, 254, 0.35); }
  #app-home .tagline { margin: 0; font-size: 16px; line-height: 1.45; max-width: 420px; }
  #app-home .foot-bot { background: var(--navy-2); color: var(--white); }
  #app-home .foot-bot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
  }
  #app-home .foot-links { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
  #app-home .foot-links a:hover { color: var(--pale); }
  #app-home .social { display: flex; gap: 14px; align-items: center; }
  #app-home .social a { display: grid; place-items: center; color: var(--white); opacity: 0.92; }
  #app-home .social a:hover { opacity: 1; }

  @media (max-width: 980px) {
    #app-home .hero-photo { width: min(52vw, 420px); }
    #app-home .hero h1 { font-size: 48px; }
    #app-home .feature-grid, #app-home .cards, #app-home .how-grid, #app-home .browse-grid { grid-template-columns: 1fr; }
    #app-home .browse-tools { flex-direction: column; align-items: stretch; }
    #app-home .foot-top-inner { grid-template-columns: 1fr; }
    #app-home .vdiv { display: none; }
    #app-home .nav { gap: 16px; font-size: 14px; }
  }

#app-home { flex: 1; }
#app-home .hero:before { content: none; display: none; }
#app-home header:before { display: none; }
#app-home header {
  padding: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 26, 69, 0.06);
  background: #FEFEFE;
}
#app-home .header-inner { width: min(1200px, calc(100% - 48px)); }
#app-home h1, #app-home h2 { font-weight: 600; }
#app-home .hero h1 { max-width: 640px; font-size: 64px; margin: 0; color: #FEFEFE; }
#app-home .search { width: auto; max-width: none; border: 0; padding: 6px 6px 6px 8px; }
#app-home .search:focus-within { box-shadow: 0 12px 32px rgba(0, 26, 69, 0.10); }
#app-home .browse .search { box-shadow: none; border: 1px solid rgba(0, 26, 69, 0.12); }
#app-home .field .suggest-wrap { flex: 1; min-width: 0; position: relative; }
#app-home .field .suggest-wrap input { width: 100%; }
#app-home .suggest { text-align: left; width: max(280px, 100%); }
#app-home a.card, #app-home a.result, #app-home a.card-hit {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0;
  box-shadow: none;
}
#app-home .card { padding: 0; }
#app-home .card:hover { border-color: rgba(0, 26, 69, 0.12); }
#app-home footer {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
#app-home .foot-links a, #app-home .photo-credit a { color: inherit; }
#app-home .photo-img, #app-home .photo-fallback-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
#app-home .photo-fallback { display: none; }
#app-home .photo-empty { background: #001A45; }
#app-home .photo:not(.photo-empty) .photo-fallback-img { visibility: hidden; }
#app-home .result { display: block; }
#app-home .result > a.card-hit {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 108px;
  height: 100%;
  align-items: stretch;
}
#app-home .result .card-body { min-width: 0; }
#app-home .result h3, #app-home .result .meta { overflow: hidden; text-overflow: ellipsis; }
#app-home .photo-credit {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 11px;
  color: rgba(0, 26, 69, 0.55);
}
#app-home .nav-account { font-weight: 600; }
#app-home nav a.nav-user { border-color: #003493; color: #003493; }
#app-home #map {
  height: 100%;
  min-height: 480px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #e7f0fb;
}
#app-home .pin { background: #003493; }
#app-home .mappin { background: #003493; }
#app-home .radius-label {
  color: #003493;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html.route-profile {
  --ink: #001A45;
  --muted: rgba(0, 26, 69, 0.70);
  --line: rgba(0, 26, 69, 0.12);
  --paper: #FEFEFE;
  --card: #FEFEFE;
  --royal: #003493;
  --royal-press: #002a78;
  --link: #003493;
  --soft: #F3F8FE;
  --soft-ink: #001A45;
  --chip: #F3F8FE;
  --header: #FEFEFE;
  --shadow: 0 12px 32px rgba(0, 26, 69, 0.08);
}
html.route-profile body {
  background: #FEFEFE;
  color: #001A45;
  font-family: Outfit, sans-serif;
}
html.route-profile header:before { background: #003493; }
html.route-profile .brand .wordmark { height: 64px; }
html.route-profile h1, html.route-profile h2, html.route-profile .detail-title h2, html.route-profile .detail-body h2 {
  font-family: "Source Serif 4", Georgia, serif;
  color: #001A45;
}

#app-home .leaflet-container img { max-width: none; }
#app-home .leaflet-container { font-family: Outfit, sans-serif; }
