/* Home, map, activities, and search retain their existing content and order. */
#root .gr-original-home,
#root :is([code-path$="Activities.tsx:52:5"], [code-path$="Misc.tsx:173:5"]),
#root .gr-amap-page {
  background:
    radial-gradient(ellipse at 12% 0%, #dce2ff 0%, transparent 67%) top / 100% 340px no-repeat,
    linear-gradient(108deg, #eef0fc, #eaf6f9 82%, #f4f7fa) top / 100% 296px no-repeat
    var(--gr-visual-ground, #f4f5f8) !important;
}

#root :is(.gr-original-home, [code-path$="Activities.tsx:52:5"]) > [code-path$="ui.tsx:172:5"] {
  min-height: 47px;
  border-color: rgb(255 255 255 / 84%);
  border-radius: 15px;
  background: var(--gr-visual-surface, #fff) !important;
  box-shadow: 0 4px 12px rgb(32 54 110 / 7%);
}

#root :is(.gr-original-home, [code-path$="Activities.tsx:52:5"]) > [code-path$="ui.tsx:172:5"] > svg {
  fill: var(--gr-visual-blue, #2c58a1);
}

#root :is(.gr-original-home, [code-path$="Activities.tsx:52:5"]) [code-path$="ui.tsx:174:7"] {
  color: var(--gr-visual-muted, #626c81) !important;
}

/* The existing map leads with a single navy panel and a separate white caption. */
#root .gr-amap-card {
  --gr-map-brand: var(--gr-visual-blue, #2c58a1);
  border-color: #e5e9f4;
  border-radius: 23px;
  box-shadow: 0 8px 22px rgb(29 53 110 / 10%);
}

#root .gr-amap-card .gr-amap-card-head {
  min-height: 81px;
  padding: 13px 15px;
  background:
    radial-gradient(ellipse at 95% 0%, rgb(121 154 229 / 37%), transparent 66%),
    linear-gradient(113deg, #192f59, #234781 74%, #315a99);
  color: #fff;
}

#root .gr-amap-card-head h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: .015em;
}

#root .gr-amap-card-head p {
  margin-block-start: 5px;
  color: #d8e5ff;
}

#root .gr-amap-count {
  min-width: 72px;
  border-color: rgb(255 246 220 / 22%);
  border-radius: 13px;
  background: rgb(255 248 226 / 12%);
  color: #fff2d5;
}

#root .gr-amap-card .gr-amap-surface.is-preview {
  height: clamp(140px, 40vw, 170px);
}

#root .gr-amap-placeholder {
  background: radial-gradient(ellipse at 50% 35%, #fff 3%, #edf0fa 64%, #e8edf8);
  color: var(--gr-visual-muted, #626c81);
}

#root .gr-amap-placeholder > svg {
  box-sizing: content-box;
  padding: 8px;
  border: 1px solid #d9e1f5;
  border-radius: 15px;
  background: #fff;
  color: var(--gr-visual-blue, #2c58a1);
  box-shadow: 0 3px 9px rgb(25 51 103 / 9%);
}

#root .gr-amap-card .gr-amap-card-foot {
  padding: 11px 13px 11px 15px;
}

#root .gr-amap-legend strong {
  color: var(--gr-visual-navy, #193367);
  font-weight: 750;
}

#root .gr-amap-open {
  padding-inline: 12px;
  border-color: var(--gr-map-brand);
  border-radius: 999px;
  background: var(--gr-map-brand);
  box-shadow: 0 2px 6px rgb(28 71 141 / 15%);
}

#root .gr-amap-open:active {
  background: var(--gr-visual-navy, #193367);
}

#root .gr-amap-page {
  --gr-map-brand: var(--gr-visual-blue, #2c58a1);
  --gr-map-tint: var(--gr-visual-tile, #e9edfd);
}

#root .gr-amap-page-header {
  background: #f6f8ff;
}

#root .gr-amap-page :is(.gr-amap-context, .gr-amap-reading) {
  padding: 10px 13px;
  border: 1px solid #e5e9f4;
  border-radius: 15px;
  background: var(--gr-visual-surface, #fff);
}

#root .gr-amap-page :is(.gr-amap-surface, .gr-amap-company, .gr-amap-list) {
  border-color: #e1e7f3;
  border-radius: 18px;
}

/* Two existing entry points get distinct icon wells and legible text groups. */
#root .gr-original-home > [code-path$="Home.tsx:72:7"] {
  gap: 10px;
  padding-block: 13px 5px;
}

#root .gr-original-home [code-path$="Home.tsx:77:11"] {
  --shortcut-accent: #795932;
  --shortcut-caption: #624d35;
  --shortcut-icon: rgb(255 255 255 / 58%);
  border-color: #e8d9c4;
  border-radius: 17px;
  background: linear-gradient(129deg, #fffaf2, #f1dfc6) !important;
  box-shadow: none;
}

#root .gr-original-home [code-path$="Home.tsx:77:11"]:first-child {
  --shortcut-accent: #fff;
  --shortcut-caption: #e8f0ff;
  --shortcut-icon: rgb(236 244 255 / 22%);
  border-color: #3c60a4;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(174 198 247 / 36%), transparent 63%),
    linear-gradient(130deg, #234a8c, #436db5) !important;
}

#root .gr-original-home [code-path$="Home.tsx:78:13"] {
  padding: 15px 12px 12px;
}

#root .gr-original-home [code-path$="Home.tsx:79:15"] {
  padding-inline-end: 34px;
  color: var(--shortcut-accent) !important;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#root .gr-original-home [code-path$="Home.tsx:80:15"] {
  margin-block-start: 10px;
  color: var(--shortcut-caption) !important;
  font-size: 11px;
}

#root .gr-original-home [code-path$="Home.tsx:77:11"] [code-path$="Home.tsx:82:13"] {
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(255 255 255 / 23%);
  border-radius: 11px;
  background: var(--shortcut-icon) !important;
  color: var(--shortcut-accent);
}

#root .gr-original-home [code-path$="Home.tsx:77:11"]:first-child [code-path$="Home.tsx:82:13"] {
  color: var(--shortcut-accent);
}

/* The following modules use white surfaces and fine separators for reading. */
#root .gr-original-home > [code-path$="ui.tsx:159:5"] {
  margin-block-start: 23px;
}

#root .gr-original-home > [code-path$="ui.tsx:159:5"] > [code-path$="ui.tsx:160:7"] {
  color: var(--gr-visual-navy, #193367) !important;
  font-size: 21px;
  font-weight: 760;
}

#root .gr-original-home > [code-path$="ui.tsx:159:5"] > [code-path$="ui.tsx:163:9"] {
  color: var(--gr-visual-blue, #2c58a1) !important;
  font-weight: 650;
}

#root .gr-original-home :is(
  [code-path$="ui.tsx:338:5"],
  [code-path$="Home.tsx:118:7"],
  [code-path$="Home.tsx:146:13"],
  [code-path$="Home.tsx:165:11"],
  .gb-home-empty
) {
  border-color: #edf0f5;
  border-radius: 18px;
  box-shadow: 0 3px 9px rgb(25 51 103 / 4%);
}

#root .gr-original-home :is([code-path$="ui.tsx:338:5"], [code-path$="Home.tsx:118:7"]) {
  padding: 15px;
}

#root .gr-original-home [code-path$="ui.tsx:150:5"] {
  border-radius: 6px;
  background: #f9ecd5 !important;
  color: #6b4b18;
}

#root .gr-original-home [code-path$="ui.tsx:367:7"] {
  margin-block-start: 12px;
  padding-block-start: 8px;
  border-color: #eef0f5;
}

#root .gr-original-home [code-path$="Home.tsx:151:15"] {
  padding: 12px 13px;
}

/* Activity discovery uses a compact category strip and photo-led event cards. */
#root [code-path$="Activities.tsx:52:5"] {
  --gr-event-accent: #a4272d;
  --gr-event-ink: #2f2524;
  --gr-event-subtle: #695d59;
  --gr-event-line: #eadbd4;
  --gr-event-paper: #fffdfb;
  min-block-size: calc(100dvh - var(--gr-pro-nav-height, 62px) - env(safe-area-inset-bottom, 0px));
  background: linear-gradient(115deg, #792326, #ab3838 75%, #b6473e) top / 100% 105px no-repeat #f7f3ef !important;
}

#root [code-path$="Activities.tsx:52:5"] > [code-path$="ui.tsx:198:5"] {
  height: 50px;
  background: transparent !important;
}

#root [code-path$="Activities.tsx:52:5"] > [code-path$="ui.tsx:198:5"] [code-path$="ui.tsx:200:7"] {
  color: #fffaf6 !important;
  font-size: 19px;
  font-weight: 750;
}

#root [code-path$="Activities.tsx:52:5"] > [code-path$="ui.tsx:172:5"] {
  margin: 0 14px 11px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--gr-event-paper) !important;
  box-shadow: none;
}

#root [code-path$="Activities.tsx:52:5"] > [code-path$="ui.tsx:172:5"] > svg {
  fill: var(--gr-event-accent);
}

#root [code-path$="Activities.tsx:52:5"] > [code-path$="ui.tsx:172:5"] [code-path$="ui.tsx:174:7"] {
  color: var(--gr-event-subtle) !important;
}

#root [code-path$="Activities.tsx:57:7"] {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 8px 14px;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid var(--gr-event-line);
  border-radius: 0;
  background: var(--gr-event-paper);
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #dec3ba transparent;
}

#root [code-path$="Activities.tsx:59:11"] {
  display: contents;
}

#root [code-path$="Activities.tsx:71:9"] {
  display: none;
}

#root [code-path$="Activities.tsx:63:17"] {
  flex: 0 0 auto;
  gap: 5px;
  min-height: 54px;
  min-width: 62px;
  padding: 5px 7px;
  border-radius: 9px;
}

#root [code-path$="Activities.tsx:63:17"] > svg {
  box-sizing: border-box;
  width: 27px;
  height: 27px;
  padding: 5px;
  border-radius: 7px;
  background: #f5e8e3;
  fill: #8e3634;
}

#root [code-path$="Activities.tsx:63:17"]:nth-child(even) > svg {
  background: #f0e8dc;
  fill: #775436;
}

#root [code-path$="Activities.tsx:65:19"] {
  margin: 0;
  white-space: nowrap;
  color: var(--gr-event-subtle) !important;
  font-size: 12px;
}

#root [code-path$="Activities.tsx:63:17"]:has(span[style*="font-weight: 700"]) {
  background: #f7e7e4 !important;
}

#root [code-path$="Activities.tsx:63:17"]:has(span[style*="font-weight: 700"]) > svg {
  background: var(--gr-event-accent);
  fill: #fffaf6;
}

#root [code-path$="Activities.tsx:63:17"]:has(span[style*="font-weight: 700"]) [code-path$="Activities.tsx:65:19"] {
  color: var(--gr-event-accent) !important;
}

#root [code-path$="Activities.tsx:79:7"] {
  gap: 3px;
  min-height: 47px;
  margin: 5px 0 2px;
  padding-inline: 14px;
}

#root [code-path$="Activities.tsx:81:11"] {
  position: relative;
  min-height: 44px;
  padding: 7px 8px;
  border-bottom-color: transparent;
  border-radius: 0;
  color: var(--gr-event-subtle) !important;
  font-size: 14px;
  white-space: nowrap;
}

#root [code-path$="Activities.tsx:81:11"][style*="font-weight: 700"] {
  border-bottom-color: transparent;
  background: transparent;
  color: var(--gr-event-accent) !important;
}

#root [code-path$="Activities.tsx:81:11"][style*="font-weight: 700"]::after {
  position: absolute;
  inset: auto 9px 4px;
  border-bottom: 2px solid var(--gr-event-accent);
  content: "";
}

#root [code-path$="Activities.tsx:87:9"] {
  min-height: 44px;
  max-width: 108px;
  padding: 5px 8px;
  border: 1px solid var(--gr-event-line);
  border-radius: 999px;
  background: var(--gr-event-paper) !important;
  white-space: nowrap;
}

#root [code-path$="Activities.tsx:87:9"] [code-path$="Activities.tsx:88:11"] {
  color: var(--gr-event-accent) !important;
}

#root [code-path$="Activities.tsx:87:9"] > svg {
  fill: var(--gr-event-subtle);
}

#root [code-path$="Activities.tsx:93:9"] {
  min-height: 44px;
  color: var(--gr-event-accent) !important;
}

#root [code-path$="Activities.tsx:105:11"] {
  margin: 0 14px 12px;
  overflow: hidden;
  border: 1px solid var(--gr-event-line);
  border-radius: 13px;
  background: var(--gr-event-paper) !important;
  box-shadow: none;
}

#root [code-path$="Activities.tsx:106:13"] {
  display: block;
  padding: 0;
}

#root [code-path$="Activities.tsx:106:13"] > img:first-child {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 122px;
  max-height: 190px;
  aspect-ratio: 2.08 / 1;
  border-radius: 0 !important;
  object-fit: cover;
}

#root [code-path$="Activities.tsx:106:13"] > :first-child:not(img) {
  display: grid;
  width: 100% !important;
  height: 40px !important;
  padding: 0 14px;
  place-items: center start;
  border-radius: 0;
  background: #f2e5dc !important;
  color: #774b3c !important;
  font-size: 12px;
}

#root [code-path$="Activities.tsx:106:13"] > [code-path$="ui.tsx:98:5"] > div {
  display: none;
}

#root [code-path$="Activities.tsx:106:13"] > [code-path$="ui.tsx:98:5"] > span {
  position: static;
  padding: 0;
  color: #774b3c !important;
}

#root [code-path$="Activities.tsx:108:15"] {
  gap: 3px;
  margin: 0;
  padding: 12px 14px 10px;
}

#root [code-path$="Activities.tsx:109:17"] {
  color: var(--gr-event-ink) !important;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

#root [code-path$="Activities.tsx:52:5"] :is([code-path$="Activities.tsx:110:17"], [code-path$="Activities.tsx:111:17"]) {
  margin: 0;
  color: var(--gr-event-subtle) !important;
  font-size: 13px;
  line-height: 1.45;
}

#root [code-path$="Activities.tsx:111:17"] {
  white-space: normal;
  overflow-wrap: anywhere;
}

#root [code-path$="Activities.tsx:112:17"] {
  margin-block-start: 5px;
  padding-block-start: 7px;
  border-top: 1px solid #f0e7e0;
}

#root [code-path$="Activities.tsx:113:19"] {
  color: #8f312e !important;
  font-size: 13px;
}

#root [code-path$="Activities.tsx:112:17"] > [code-path$="ui.tsx:141:5"] {
  padding: 3px 9px;
  border-color: transparent !important;
  background: #f1ebe8 !important;
  color: #665d59 !important;
  font-weight: 650;
}

#root [code-path$="Activities.tsx:112:17"] > [code-path$="ui.tsx:141:5"][style*="15, 163, 152"] {
  background: #f6e4e1 !important;
  color: #8c242a !important;
}

#root [code-path$="Activities.tsx:112:17"] > [code-path$="ui.tsx:141:5"][style*="147, 101, 26"] {
  background: #f4ead8 !important;
  color: #775422 !important;
}

#root [code-path$="Activities.tsx:52:5"] :is(button:focus-visible, [role="link"]:focus-visible) {
  outline: 2px solid var(--gr-event-accent);
  outline-offset: -2px;
}

/* Search suggestions and result rows share the same compact paper treatment. */
#root [code-path$="Misc.tsx:174:7"] {
  border-bottom-color: #edf0f6;
  background: #f5f7fe !important;
  box-shadow: none;
}

#root [code-path$="Misc.tsx:178:9"] {
  border-color: #e6eaf4;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgb(25 51 103 / 5%);
}

#root [code-path$="Misc.tsx:178:9"]:focus-within {
  outline-color: var(--gr-visual-blue, #2c58a1);
}

#root [code-path$="Misc.tsx:189:9"] {
  margin: 13px var(--gr-layout-gutter);
  padding: 17px 14px 15px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: var(--gr-visual-surface, #fff);
  box-shadow: 0 3px 9px rgb(25 51 103 / 4%);
}

#root :is([code-path$="Misc.tsx:190:11"], [code-path$="Misc.tsx:169:5"]) {
  color: var(--gr-visual-navy, #193367) !important;
  font-size: 17px;
}

#root [code-path$="Misc.tsx:191:11"] > * {
  padding-inline: 12px;
  border-color: transparent;
  border-radius: 999px;
  background: var(--gr-visual-tile, #e9edfd) !important;
  color: var(--gr-visual-navy, #193367) !important;
}

#root [code-path$="Misc.tsx:159:5"] {
  border-color: #edf0f5;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgb(25 51 103 / 4%);
}

#root [code-path$="Misc.tsx:159:5"] > [code-path$="ui.tsx:118:5"] {
  border-radius: 6px;
  background: var(--gr-visual-tile, #e9edfd) !important;
  color: var(--gr-visual-blue, #2c58a1) !important;
}
