@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* #1B4A2C */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #111;
  -webkit-tap-highlight-color: transparent;
  font-family: "DM Sans", sans-serif;}

button {
  font-family: "DM Sans", sans-serif;}
input {
  font-family: "DM Sans", sans-serif;}
textarea {
  font-family: "DM Sans", sans-serif;}
select {
  font-family: "DM Sans", sans-serif;}



#app-root {
  height: 100%;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

/* Shared opacity press feedback */
.pressable {
  opacity: 1;
  transition: opacity 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.pressable--pressed {
  opacity: 0.6;
}

.pressable:disabled,
.pressable[aria-disabled="true"] {
  opacity: 0.65;
  cursor: default;
}

.pressable:disabled.pressable--pressed,
.pressable[aria-disabled="true"].pressable--pressed {
  opacity: 0.65;
}

/* Top chrome header — desktop layout; hidden on mobile for now. */
.app-top-header {
  display: none;
}

.mapjobs-logo {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  font-family: "Baloo Thambi 2", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  user-select: none;
}

.mapjobs-logo--with-beta {
  padding-right: 36px;
}

.mapjobs-logo__wordmark {
  display: inline-flex;
  align-items: baseline;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.mapjobs-logo--stacked {
  flex-shrink: 0;
  font-size: 17px;
}

.mapjobs-logo--stacked .mapjobs-logo__wordmark {
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.9;
}

.mapjobs-logo__map {
  color: #111;
}

.mapjobs-logo__jobs {
  color: #59b047;
}

.mapjobs-logo__beta {
  position: absolute;
  top: -2px;
  right: 0;
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3949ab;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.app-header {
  flex-shrink: 0;
  background: #fff;
  padding: 12px 16px 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.sidebar-header {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.sidebar-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-header__row--desktop {
  display: none;
}

.sidebar-header__row--mobile {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sidebar-header__heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.sidebar-header__heading:has(.sidebar-header__back) .sidebar-header__title {
  padding: 0 0 0 60px;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
}

.sidebar-header__heading .sidebar-header__back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.sidebar-header__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111;
}

.sidebar-header__title--mobile {
  flex: 1 1 100%;
  min-width: 0;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.sidebar-header__row--mobile:has(.sidebar-header__back) {
  position: relative;
}

.sidebar-header__row--mobile:has(.sidebar-header__back) .sidebar-header__back {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  height: 1.25em;
}

.sidebar-header__row--mobile:has(.sidebar-header__back) .sidebar-header__title--mobile {
  padding: 0 72px;
  box-sizing: border-box;
}

.sidebar-header__row--mobile .sidebar-header__search-pill {
  flex: 1 1 100%;
}

/* Mobile area view: MapJobs wordmark instead of “Jobs in this area”. */
.sidebar-header__logo {
  display: inline-flex;
  flex-shrink: 0;
  font-size: 26px;
}

.sidebar-header__title--area {
  display: none;
}

.sidebar-header__count {
  display: none;
  flex-shrink: 0;
  color: #9e9e9e;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  color: #333;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar-header__icon-btn:hover {
  background: #f7f7f7;
}

.sidebar-header__search-pill {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 4px 0 0;
  border-radius: 999px;
  background: #fff;
  box-shadow:
  0 6px 6px rgba(60, 64, 67, 0.12), 0 2px 8px rgba(60, 64, 67, 0.16);
  color: #111;
  overflow: hidden;
}

.sidebar-header__search-part {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 14px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 2px 2px 2px 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #3c4043;
  cursor: pointer;
}

.sidebar-header__menu-btn:hover {
  background: #f1f3f4;
}

.sidebar-header__search-part:hover,
.sidebar-header__search-part:active {
  background: transparent;
}

.sidebar-header__search-part-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #5f6368;
}

.sidebar-header__search-pill-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: #202124;
}

.sidebar-header__search-pill-text.is-placeholder {
  color: #9aa0a6;
  font-weight: 400;
}

.sidebar-header__search-pill-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #5f6368;
}

.sidebar-header__search-spinner {
  display: block;
}

.sidebar-header__description {
  margin: 6px 0 0;
  color: #9e9e9e;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.sidebar-header__description--desktop {
  display: none;
}

.sidebar-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #5f6368;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-header__back:hover {
  color: #202124;
}

.sidebar-header__back-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: inherit;
}

.sidebar-header__back-label {
  min-width: 0;
}

@media (min-width: 900px) {
  .sidebar-header {
    padding: 20px 20px 12px;
    box-shadow: none;
  }

  .sidebar-header__row--desktop {
    display: flex;
    align-items: flex-start;
  }

  .sidebar-header__row--mobile {
    display: none;
  }

  .sidebar-header__logo {
    display: none;
  }

  .sidebar-header__title--area {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sidebar-header__count {
    display: inline;
  }

  .sidebar-header__actions {
    display: none;
  }

  .sidebar-header__description--desktop {
    display: block;
  }
}

/* Google-style full-screen mobile search */
.mobile-search {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.mobile-search__bar {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 6px 8px;
  border-bottom: 1px solid #e8eaed;
}

.mobile-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: #202124;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-search__input::-webkit-search-cancel-button {
  display: none;
}

.mobile-search__input::placeholder {
  color: #9aa0a6;
}

.mobile-search__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-search__icon-btn:hover {
  background: #f1f3f4;
}

.mobile-search__history {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-search__empty {
  padding: 24px 20px;
  color: #9aa0a6;
  font-size: 14px;
  text-align: center;
}

.mobile-search__item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
}

.mobile-search__item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px 14px 16px;
  border: none;
  background: transparent;
  color: #202124;
  cursor: pointer;
  text-align: left;
}

.mobile-search__item-main:hover {
  background: #f8f9fa;
}

.mobile-search__item-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #9aa0a6;
}

.mobile-search__item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mobile-search__item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.mobile-search__item-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5f6368;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.mobile-search__item-main.is-active {
  background: #f1f3f4;
}

.mobile-search__item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9aa0a6;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-search__item-remove:hover {
  background: #f1f3f4;
  color: #5f6368;
}

.mobile-search__suggestion-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 6100;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(17, 17, 17, 0.35);
  cursor: pointer;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, calc(100vw - 16px));
  display: flex;
  flex-direction: column;
  padding: 16px 22px 24px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  animation: mobile-menu-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}

@keyframes mobile-menu-in {
  from { transform: translateX(16px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -8px 24px;
}

.mobile-menu__logo {
  font-size: 32px;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.mobile-menu__section {
  padding: 0;
}

.mobile-menu__label {
  margin: 0 0 12px;
  color: #8d9694;
  font-size: 14px;
  font-weight: 500;
}

.mobile-menu__langs {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid #e6e8e7;
  border-radius: 999px;
  background: #fff;
}

.mobile-menu__lang {
  flex: 1;
  height: 40px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #8d9694;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.mobile-menu__lang.is-active {
  border-color: #59b047;
  background: #fff;
  color: #0f2a28;
  font-weight: 700;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.mobile-menu__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 18px 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0f2a28;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mobile-menu__row + .mobile-menu__row {
  border-top: 1px solid #eceeee;
}

.mobile-menu__row-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #0f2a28;
}

.mobile-menu__row-label {
  flex: 1;
  min-width: 0;
}

.mobile-menu__chevron {
  display: inline-flex;
  flex-shrink: 0;
  color: #a3aba9;
}

.mobile-menu__alert {
  margin-top: auto;
  padding: 18px 16px 14px;
  border-radius: 18px;
  background: #27873A;
  color: #fff;
}

.mobile-menu__alert-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mobile-menu__alert-accent {
  display: block;
  color: #d4f58a;
}

.mobile-menu__alert-text {
  margin: 8px 0 14px;
  color: #e8f7df;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.mobile-menu__alert-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: #fff;
}

.mobile-menu__alert-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: none;
  background: transparent;
  color: #0f2a28;
  font-size: 13px;
  outline: none;
}

.mobile-menu__alert-input::placeholder {
  color: #9aa3a2;
}

.mobile-menu__alert-submit {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: #c6f56a;
  color: #143022;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-menu__alert-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.mobile-menu__notes {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mobile-menu__notes-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(17, 17, 17, 0.28);
  cursor: pointer;
}

.mobile-menu__notes-card {
  position: relative;
  width: min(280px, 100%);
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.mobile-menu__notes-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.mobile-menu__notes-empty {
  margin: 8px 0 0;
  color: #757575;
  font-size: 14px;
}

.mobile-menu__notes-close {
  margin-top: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.app-header__brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 0 0 12px;
}



.app-header__title {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  letter-spacing: -0.02em;
  font-size: 19px;
}

.app-header__beta {
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3949ab;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.view-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}

.view-tabs__list {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Mobile: the map's horizontal job strip stands in for the List tab. */
.view-tabs__item--list {
  display: none;
}

.view-tabs__tab {
  position: relative;
  padding: 10px 2px 12px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #9e9e9e;
  cursor: pointer;
  white-space: nowrap;
}

.view-tabs__tab:focus,
.view-tabs__tab:active {
  outline: none;
  background: transparent;
}

/* SSR marks the Map tab active. Desktop hides that tab, so the List tab it
   falls back to has to look active until hydration swaps the view. */
.view-tabs__tab--active,
#app[data-view="map"] .view-tabs__item--list .view-tabs__tab {
  color: #111;
  font-weight: 700;
}

.view-tabs__tab--active:focus,
.view-tabs__tab--active:active {
  background: transparent;
  color: #111;
}

.view-tabs__tab--active::after,
#app[data-view="map"] .view-tabs__item--list .view-tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #111;
}

.view-tabs__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

.view-tabs__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #424242;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.view-tabs__filter:focus {
  outline: none;
  background: #fff;
}

.view-tabs__filter--active,
.view-tabs__filter--active:focus {
  background: #fff;
  border-color: #90caf9;
  box-shadow: none;
}

.view-tabs__filter i {
  font-size: 22px;
  color: #424242;
  line-height: 1;
}

.view-tabs__filter--active i {
  color: #1a73e8;
}

.view-tabs__count {
  flex-shrink: 0;
  font-size: 14px;
  color: #9e9e9e;
  font-weight: 400;
  white-space: nowrap;
}

.view-tabs__feedback {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.view-tabs__feedback:focus,
.view-tabs__feedback:active,
.app-map__feedback:focus,
.app-map__feedback:active {
  outline: none;
  background: #fff;
}

.view-tabs__item--feedback {
  display: flex;
  align-items: center;
}

.app-map__feedback {
  position: absolute;
  z-index: 1300;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
}

.modal__sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal__close:focus,
.modal__close:active {
  outline: none;
  background: transparent;
}

.modal__close i {
  font-size: 22px;
}

.modal__title {
  margin: 0 40px 10px 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #111;
}

.feedback-modal__lede {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.45;
  color: #757575;
}

.feedback-modal__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.feedback-modal__label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.feedback-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #f0f0f0;
  font: inherit;
  font-size: 15px;
  color: #111;
}

.feedback-modal__input::placeholder {
  color: #bdbdbd;
}

.feedback-modal__input:focus {
  outline: none;
  background: #ebebeb;
}

.feedback-modal__input--area {
  min-height: 120px;
  resize: vertical;
}

.feedback-modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: #1a237e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-modal__submit:focus,
.feedback-modal__submit:active {
  outline: none;
  background: #1a237e;
}

.app-content {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #f5f5f5;
}

/* Mobile / SSR: sidebar fills the viewport. Map is shown only for data-view="map". */
.app-sidebar {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #fff;
}

.app-sidebar__body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.app-map {
  display: none;
  background: #d1d5d8;
}

/* Mobile map tab: header on top, map fills the rest */
#app[data-view="map"] {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header"
    "map";
}

#app[data-view="map"] .app-sidebar {
  display: contents;
}

#app[data-view="map"] .app-header,
#app[data-view="map"] .sidebar-header {
  grid-area: header;
  min-width: 0;
  max-width: 100%;
  /* Keep header above the expanded sheet so the radius tucks underneath. */
  z-index: 1400;
}

#app[data-view="map"] .app-sidebar__body {
  display: none;
}

#app[data-view="map"] .app-map {
  grid-area: map;
  position: relative;
  display: block;
  min-height: 0;
  /* Let the expanded sheet peek under the header. */
  overflow: visible;
}

/* Mobile map: the search pill and filter chips float above the sheet. */
@media (max-width: 899px) {
  #app[data-view="map"] {
    display: block;
  }

  #app[data-view="map"] .app-map {
    position: absolute;
    inset: 0;
  }

  #app[data-view="map"] .sidebar-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    /* Above the sheet so a tall sheet cannot cover the search pill. */
    z-index: 4300;
  }

  #app[data-view="map"] .sidebar-header__search-pill {
    pointer-events: auto;
  }

  #app[data-view="map"] .sidebar-header__row--mobile {
    position: relative;
    z-index: 1;
  }

  /* Fixed to the viewport so the row stays under the search pill.
     The bar lives in the bottom overlay; absolute would anchor it there. */
  #app[data-view="map"] .map-view .map-filters {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    z-index: 5;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    max-width: none;
  }
}

.map-view,
.list-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#app[data-view="map"] .map-view {
  overflow: visible;
}

.map-view.is-hidden,
.list-view.is-hidden {
  display: none;
}

.map-view__canvas {
  width: 100%;
  height: 100%;
  background: #d1d5d8;
}

/* Google-Maps-style filter chips over the map */
.map-filters {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.map-filters > * {
  pointer-events: auto;
}

@media (max-width: 899px) {
  /* Collapsed tab is ~61px; sit just above it. */
  .app-map__feedback {
    bottom: 80px;
    z-index: 800;
  }

  /* Pin selection swaps the sheet for the job strip; hide the button with it. */
  .app-map:has(.map-view__strip) .app-map__feedback {
    display: none;
  }

  .map-filters {
    left: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* Scroller must receive touches; pointer-events:none makes iOS
       treat chip drags as button presses / map pans instead of scroll. */
    pointer-events: auto;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .map-filters::-webkit-scrollbar {
    display: none;
  }

  .map-filters__dropdown {
    flex-shrink: 0;
  }
}

.map-filters__dropdown {
  position: relative;
}

.map-filters__dropdown:has(.map-filters__chip--open) {
  z-index: 2;
}

.map-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(240px, 70vw);
  height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.map-filters__chip:hover {
  background: #fafafa;
  border-color: #d4d4d8;
}

.map-filters__chip--open,
.map-filters__chip--active {
  border-color: #1e8e45;
  background: #fff;
  color: #1e8e45;
  box-shadow: 0 0 0 1px #1e8e45;
}

.map-filters__chip--open:hover,
.map-filters__chip--active:hover {
  background: #f7fbf8;
  border-color: #1e8e45;
}

.map-filters__chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-filters__chip-caret,
.map-filters__chip-icon {
  flex-shrink: 0;
  color: inherit;
}

.map-filters__chip-caret {
  transition: transform 150ms ease;
}

.map-filters__chip--open .map-filters__chip-caret {
  transform: rotate(180deg);
}

.map-filters__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 248px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(360px, 50vh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 8px 24px rgba(16, 24, 40, 0.12),
    0 2px 6px rgba(16, 24, 40, 0.06);
}

.map-filters__menu--search {
  min-width: min(280px, calc(100vw - 24px));
  padding-top: 0;
}

.map-filters__search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 4px 2px 6px;
  background: #fff;
}

.map-filters__search-field {
  position: relative;
}

.map-filters__search-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  padding: 0 36px 0 14px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  line-height: 34px;
  outline: none;
}

.map-filters__search-input::placeholder {
  color: #9ca3af;
}

.map-filters__search-input:focus {
  border-color: #1e8e45;
}

.map-filters__search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  transform: translateY(-50%);
  cursor: pointer;
}

.map-filters__search-clear:hover {
  background: #f1f3f4;
  color: #202124;
}

.map-filters__empty {
  margin: 0;
  padding: 12px 16px 14px;
  color: #5f6368;
  font-size: 14px;
}

.map-filters__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.map-filters__option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-filters__option-count {
  flex-shrink: 0;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.map-filters__option:hover {
  background: #f4f4f5;
}

.map-filters__option--selected,
.map-filters__option--selected:hover {
  background: #f2f8f4;
  color: #1e8e45;
  font-weight: 600;
}

.map-filters__option--selected .map-filters__option-count {
  color: #1e8e45;
}

.map-view .leaflet-control-attribution {
  font-size: 10px;
}

/* Match MapJobs tile playground default (CARTO Positron + saturate). */
.map-view .leaflet-tile-pane {
  filter: hue-rotate(0deg) invert(0%) grayscale(0%) brightness(100%) contrast(100%)
    saturate(300%);
}

.list-view {
  background: #fff;
  overflow: hidden;
}

.list-view__scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Browse + category-drill layers. Browse stays mounted (hidden) while drilled. */
.area-jobs-stack {
  position: relative;
  height: 100%;
  min-height: 0;
}

.list-view > .area-jobs-stack {
  height: 100%;
}

.job-sheet__scroll:has(> .area-jobs-stack) {
  overflow: hidden;
  padding: 0;
  gap: 0;
}

.area-jobs-pane {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  touch-action: pan-x pan-y;
}

.area-jobs-pane.is-hidden {
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.area-jobs-pane:not(.is-hidden) {
  z-index: 1;
}

/* Clear the "Go to map" button once the sheet is fully open. */
.job-sheet[data-snap='expanded'] .area-jobs-pane {
  padding-bottom: 88px;
}

.list-view__empty {
  margin-top: 48px;
  text-align: center;
  color: #9e9e9e;
  font-size: 15px;
}

.job-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-skeleton__bar,
.job-skeleton__card {
  border-radius: 12px;
  background: #e6e6e6;
  animation: job-skeleton-pulse 1.2s ease-in-out infinite;
}

.job-skeleton__bar {
  width: 42%;
  height: 48px;
}

.job-skeleton__card {
  height: 220px;
}

.job-skeleton__count {
  display: inline-block;
  width: 72px;
  height: 16px;
  border-radius: 8px;
  background: #e6e6e6;
  vertical-align: middle;
  animation: job-skeleton-pulse 1.2s ease-in-out infinite;
}

@keyframes job-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.list-view__closed-note {
  margin: 4px 4px 8px;
  text-align: center;
  color: #9e9e9e;
  font-size: 13px;
  line-height: 1.4;
}

.list-view__closed-note-text {
  margin: 0;
}

.list-view__closed-note-link {
  display: inline-block;
  margin-top: 6px;
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.list-view__closed-note-link:hover {
  color: #666;
}

.list-view__show-more {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
  margin-top: 4px;
  border-top: 1px solid #e8eaed;
}

.list-view__show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: #f1f3f4;
  color: #202124;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  width: 100%;
}

.list-view__show-more-btn .material-icons {
  font-size: 20px;
  line-height: 1;
  color: inherit;
}

.list-view__show-more-btn:hover:not(:disabled) {
  background: #e8eaed;
}

.list-view__show-more-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.job-filter-card {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 16px 16px 16px;
  border: 1.5px solid #1e8e45;
  border-radius: 16px;
  background: #f3faf5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-filter-card--mini {
  padding: 14px 16px;
  gap: 10px;
}

.job-filter-card__head,
.job-filter-card__mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-filter-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #111;
}

.job-filter-card__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-right: -6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  color: #5f5f66;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.job-filter-card__close:hover {
  background: rgba(23, 112, 58, 0.08);
  color: #111;
}

.job-filter-card__chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.job-filter-card__chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.job-filter-card__chip {
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #e4e4e7;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.job-filter-card__chip.is-selected {
  border-color: #1e8e45;
  background: #1e8e45;
  color: #fff;
  font-weight: 600;
}

.job-filter-card__apply {
  height: 48px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #1e8e45;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.job-filter-card__apply:hover {
  background: #17703a;
}

.job-filter-card__showing {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #17703a;
}

.job-filter-card__edit,
.job-filter-card__clear {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-filter-card__edit {
  color: #17703a;
}

.job-filter-card__edit:hover {
  color: #0f5a2c;
}

.job-filter-card__mini-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.job-filter-card__mini-chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cde8d5;
  color: #111;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.job-filter-card__clear {
  height: 30px;
  padding: 0 8px;
  color: #5f5f66;
  font-size: 13px;
  font-weight: 500;
}

.job-filter-card__clear:hover {
  color: #111;
}

.job-filter-card__chip:focus-visible,
.job-filter-card__apply:focus-visible,
.job-filter-card__close:focus-visible,
.job-filter-card__edit:focus-visible,
.job-filter-card__clear:focus-visible {
  outline: 2px solid #1e8e45;
  outline-offset: 2px;
}

.job-browse {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.job-browse__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.job-browse__category-select {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-width: 0;
  /* Cap at ~“2 categories” pill width; longer names ellipsize. */
  max-width: 148px;
}

.job-browse__category-select.is-open {
  z-index: 3;
}

.job-browse__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 18px;
  border: 1.5px solid #2a2a2a;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.job-browse__chip.is-selected,
.job-browse__chip--category {
  border-color: #27873a;
  background: #27873a;
  color: #fff;
}

.job-browse__chip--category {
  max-width: 148px;
  padding-right: 12px;
}

.job-browse__chip--category.has-filter {
  box-shadow: 0 0 0 2px rgba(39, 135, 58, 0.25);
}

.job-browse__switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 3px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.job-browse__switch-btn {
  height: 100%;
  margin: 0;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.job-browse__switch-btn.is-selected {
  background: #f0f0f0;
  color: #111;
}

.job-browse__switch-btn:focus-visible {
  outline: 2px solid #27873a;
  outline-offset: 2px;
}

.job-browse__chip:focus-visible {
  outline: 2px solid #27873a;
  outline-offset: 2px;
}

.job-browse__chip-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.job-browse__chip-caret {
  flex-shrink: 0;
  color: inherit;
  transition: transform 150ms ease;
}

.job-browse__chip.is-open .job-browse__chip-caret {
  transform: rotate(180deg);
}

.job-browse__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 4;
  min-width: max(100%, 248px);
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(360px, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 8px 24px rgba(16, 24, 40, 0.12),
    0 2px 6px rgba(16, 24, 40, 0.06);
}

.job-browse__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.job-browse__option-check {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c4c4c4;
  border-radius: 4px;
  background: #fff;
}

.job-browse__option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-browse__option:hover {
  background: #f4f4f5;
}

.job-browse__option.is-selected,
.job-browse__option.is-selected:hover {
  background: #f2f8f4;
  color: #1e8e45;
  font-weight: 600;
}

.job-browse__option.is-selected .job-browse__option-check {
  border-color: #27873a;
  background: #27873a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.2' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

.job-browse__modal .modal__sheet {
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 560px);
  padding: 28px 20px 20px;
}

.job-browse__modal .modal__title {
  margin-bottom: 12px;
  font-size: 24px;
}

.job-browse__modal-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -6px;
  padding: 0 6px;
}

.job-browse__modal-done {
  flex-shrink: 0;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: #27873a;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.job-browse__modal-done:focus-visible {
  outline: 2px solid #27873a;
  outline-offset: 2px;
}

.job-category {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  background: #fff;
  box-sizing: border-box;
}

.job-category__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 6px 6px 4px;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: #111;
}

.job-category__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Subcategory chips disabled for now.
.job-category__chips {
  display: flex;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 4px 6px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  cursor: default;
  user-select: none;
}

.job-category__chips.is-overflow {
  cursor: grab;
}

.job-category__chips::-webkit-scrollbar {
  display: none;
}

.job-category__chips.is-dragging,
.job-category__chips.is-dragging * {
  cursor: grabbing;
}

.job-category__chip {
  flex: none;
  margin: 0;
  padding: 3px 11px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: none;
  color: #555;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.job-category__chip.is-on {
  background: #f2f2f2;
  border-color: #ccc;
  font-weight: 700;
  color: #111;
}

.job-category__chip:focus {
  outline: none;
}

.job-category__chip:focus-visible {
  outline: 2px solid #27873a;
  outline-offset: 2px;
}
*/

.job-category__list {
  overflow: hidden;
  transition: height 0.25s ease;
}

.job-category__list .job-category__job {
  animation: job-category-fade 0.25s;
}

@keyframes job-category-fade {
  from {
    opacity: 0;
  }
}

.job-category__job {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 8px 6px;
  border: none;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  background: transparent;
  color: #111;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.job-category__job-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.job-category__job-urgent {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #27873a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.job-category__job-star {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
}

.job-category__job:last-of-type {
  border-bottom: 0;
  padding-bottom: 2px;
}

.job-category__job.is-selected {
  background: #eef4ef66;
}

.job-category__job:focus {
  outline: none;
}

.job-category__job:focus-visible {
  outline: 2px solid #27873a;
  outline-offset: -2px;
}

.job-category__job-title {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  color: #111;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.job-category__job-company {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 3px;
  color: #666;
  font-size: 14px;
  line-height: 1.2;
}

.job-category__job-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.job-category__job-company-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-category__more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  border-radius: 18px;
  background: #f2f2f2;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.job-category__more::after {
  content: "›";
  margin-left: 8px;
  font-size: 22px;
  line-height: 1;
  vertical-align: -2px;
}

.job-category__more:hover {
  background: #e8e8e8;
}

.job-category__more:focus {
  outline: none;
}

.job-category__more:focus-visible {
  outline: 2px solid #27873a;
  outline-offset: 2px;
}

.job-mini-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 92px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e2e3eb;
  border-radius: 22px;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
  user-select: none;
  scroll-snap-align: start;
}

.job-mini-card:focus {
  outline: none;
}

.job-mini-card:focus-visible {
  outline: 2px solid #27873a;
  outline-offset: 2px;
}

.job-mini-card--selected {
  border-color: #27873a;
  background: #eef4ef66;
}

.job-mini-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-mini-card__company {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #616161;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.job-mini-card__favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
}

.job-mini-card__company-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-card {
  display: block;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e3eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.list-card:focus {
  outline: none;
}

.list-card--selected {
  border-color: #27873A;
  background: #EEF4EF66;
  box-shadow: none;
}

.list-card__media {
  position: relative;
  height: 180px;
  background: #e0e0e0;
}

.list-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.list-card__badges {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  z-index: 1;
  pointer-events: none;
}

.list-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.list-card__badge .job-meta-icon {
  width: 13px;
  height: 13px;
}

.list-card__badge--urgent {
  background: #27873a;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.list-card__badge--star {
  color: #9e9e9e;
  padding: 3px 6px;
}

.list-card__star-icon {
  display: block;
}

.list-card__heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #424242;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.list-card__heart:focus,
.list-card__heart:active {
  outline: none;
  background: #fff;
}

.list-card__heart i {
  font-size: 20px;
}

.list-card__heart--active {
  color: #e53935;
}

.list-card__body {
  padding: 14px 16px 16px;
}

.list-card__salary {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1.15;
}

.list-card__title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.list-card__company {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
  color: #616161;
}

.list-card__favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
}

.list-card__company-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.list-card__meta-location {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 7px;
  gap: 6px;
  color: #485251;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.list-card__meta-location .job-meta-icon {
  width: 16px;
  height: 16px;
  color: #3b3b3b;
}

.list-card__chips {
  margin-top: 8px;
}

.job-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top:10px;
}

.job-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.job-chip--flag {
  background: #eef2ff;
  color: #3949ab;
}

.job-chip--salary {
  background: #e8f5e9;
  color: #2e7d32;
}

.list-card--no-image .list-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.list-card--no-image .list-card__badges {
  position: static;
  flex: 1;
  min-width: 0;
}

.list-card--no-image .list-card__badge {
  position: static;
  box-shadow: none;
  border: 1px solid #ececec;
  background-color: #f5f5f5;
}

.list-card--no-image .list-card__badge--urgent {
  border-color: #27873a;
  background-color: #27873a;
  color: #fff;
  font-weight: 700;
}

.list-card--no-image .list-card__badge--star {
  color: #9e9e9e;
  background-color: #f5f5f5;
  border-color: #ececec;
}

.list-card--no-image .list-card__heart {
  position: static;
  box-shadow: none;
}

/* Job markers */
.job-marker-wrap {
  background: transparent;
  border: none;
}

.job-marker-stack,
.job-dot-hit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-marker {
  position: relative;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.job-marker--cluster {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);

}

.job-marker--compact {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.job-marker--selected,
.job-marker--cluster.job-marker--selected {
  background: #fff;
  border-color: transparent;
  box-shadow:
    0 0 0 var(--job-marker-halo, 6px) rgba(229, 57, 53, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.job-marker--sponsored,
.job-marker--cluster.job-marker--sponsored {
  background: #fff;
  border-color: transparent;
  box-shadow:
    0 0 0 var(--job-marker-halo, 4px) rgba(46, 160, 67, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Pulse only on the full-size logo circle, not the 20px compact pin. */
.job-marker--sponsored:not(.job-marker--compact)::before,
.job-marker--sponsored:not(.job-marker--compact)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(46, 160, 67, 0.55);
  pointer-events: none;
  z-index: -1;
  animation: job-marker-sponsored-pulse 1.8s ease-out infinite;
}

.job-marker--sponsored:not(.job-marker--compact)::after {
  animation-delay: 0.9s;
}

@keyframes job-marker-sponsored-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(2.55);
    opacity: 0;
  }
  100% {
    transform: scale(2.55);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-marker--sponsored:not(.job-marker--compact)::before,
  .job-marker--sponsored:not(.job-marker--compact)::after,
  .job-cluster--sponsored::before,
  .job-cluster--sponsored::after {
    animation: none;
  }
}

.job-marker__icon-clip {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Leaflet sets marker-pane imgs to width:auto and max-width:none !important,
   which lets wide favicons paint outside the pin. Beat that so the logo
   stays inside the circle. */
.leaflet-container .leaflet-marker-pane .job-marker__icon {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50%;
  object-fit: contain;
  pointer-events: none;
  box-sizing: border-box;
}

/* Favicons that only exist at 16×16 — pad instead of stretching to ~32px. */
.job-marker:not(.job-marker--compact) .job-marker__icon.is-16px {
  padding: 8px;
}

.job-marker__badge {
  position: absolute;
  top: -14px;
  right: -11px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #1a237e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.job-marker__badge--empty {
  top: -5px;
  right: -4px;
  min-width: 0;
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.job-cluster {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
 
}

.job-cluster--selected {
  box-shadow:
    0 0 0 6px rgba(229, 57, 53, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.16);
}

.job-cluster--sponsored::before,
.job-cluster--sponsored::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: transparent;
  pointer-events: none;
  z-index: -1;
  animation: job-cluster-sponsored-pulse 1.5s ease-out infinite;
}

.job-cluster--sponsored::after {
  animation-delay: 0.9s;
}

@keyframes job-cluster-sponsored-pulse {
  0% {
    transform: scale(1);
    background-color: transparent;
    opacity: 1;
  }
  20% {
    background-color: rgba(46, 160, 67, 0.55);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.5);
    background-color: rgba(46, 160, 67, 0.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    background-color: transparent;
    opacity: 0;
  }
}

.job-cluster__logo,
.job-cluster__more {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  flex: none;
}

.leaflet-marker-pane .job-cluster__logo img {
  display: block;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.job-cluster__logo + .job-cluster__logo,
.job-cluster__logo + .job-cluster__more {
  margin-left: -5px;
}

.job-cluster__logo:nth-child(2),
.job-cluster__more:nth-child(2) {
  z-index: 2;
}

.job-cluster__logo:nth-child(3) {
  z-index: 3;
}

.job-cluster__more {
  z-index: 4;
}

.job-cluster__more {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1c;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.job-cluster .job-marker__badge--empty {
  top: -4px;
  right: -3px;

}

.job-marker__selected-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  /* 14×20 path aspect — keep tip at bottom-center of this box */
  width: 42px;
  height: 60px;
  /* Tip of the pin = marker lat/lng (same as red/white center) */
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 2;
  display: block;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.35));
  line-height: 0;
}

.job-cluster > .job-marker__selected-pin {
  z-index: 5;
}

.job-marker__selected-pin svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Zoomed-out markers */
.job-dot-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.job-dot {
  box-sizing: border-box;
  border-radius: 50%;
  background: #1a237e;
  border: 1px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); */
}

.job-dot--selected {
  background: #e91e8c;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.job-dot--sponsored {
  box-shadow:
    0 0 0 2px rgba(46, 160, 67, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.job-marker--outside,
.job-dot--outside {
  opacity: 0.65;
  filter:grayscale(1);
}

/* Pin click popup */
.leaflet-popup.job-pin-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.leaflet-popup.job-pin-popup .leaflet-popup-content {
  margin: 0;
  min-width: 260px;
  max-width: 300px;
}

.leaflet-popup.job-pin-popup .leaflet-popup-tip {
  box-shadow: none;
}

.leaflet-popup.job-pin-popup .leaflet-popup-close-button {
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  color: #9aa0a6;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
}

.leaflet-popup.job-pin-popup .leaflet-popup-close-button:hover {
  color: #5f6368;
  background: rgba(0, 0, 0, 0.04);
}

.job-pin-card {
  padding: 18px 18px 16px;
}

.job-pin-card__title {
  margin: 0 28px 8px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.job-pin-card__company {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
}

.job-pin-card__location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.35;
  color: #5f6368;
}

.job-pin-card__location .material-icons {
  font-size: 16px;
  color: #e53935;
  margin-top: 1px;
  flex-shrink: 0;
}

.job-pin-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1a73e8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

/* Beat Leaflet's `.leaflet-container a` link color */
.leaflet-container .job-pin-card__cta,
.leaflet-container .job-pin-card__cta:link,
.leaflet-container .job-pin-card__cta:visited,
.leaflet-container .job-pin-card__cta:hover,
.leaflet-container .job-pin-card__cta:active {
  color: #fff;
  background: #1a73e8;
}

.leaflet-container .job-pin-card__cta:hover {
  background: #1557b0;
}

.job-pin-card__cta .material-icons {
  font-size: 16px;
  color: inherit;
}

.job-pin-card__pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 12px 0 0;
}

.job-pin-card__pager-label {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
}

.job-pin-card__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f1f3f4;
  color: #3c4043;
  cursor: pointer;
}

.job-pin-card__pager-btn:hover {
  background: #e8eaed;
}

.job-pin-card__pager-btn .material-icons {
  font-size: 20px;
}

/* Job detail card */
.map-view__overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

.map-view__locate {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1a5fb4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
}

.map-view__locate:disabled,
.map-view__locate.is-disabled {
  background: #f5f5f5;
  color: #9e9e9e;
  cursor: default;
}



@media (max-width: 899px) {
 

  .map-view:has(.job-sheet[data-snap="expanded"]):not(:has(.map-view__strip)) .map-view__locate {
    display: none;
  }
}

.map-view__strip {
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-right: -12px;
  pointer-events: auto;
}

.map-view__sheet {
  position: relative;
  z-index: 6;
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: -16px;
  pointer-events: auto;
}

.map-view__sheet-logo {
  position: absolute;
  left: 0;
  bottom: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 16px 8px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.map-view__sheet-logo-mark {
  font-size: 22px;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.85));
}

/* Airbnb-style bottom sheet: collapsed / default / expanded snaps.
   Height is driven in px by JobBottomSheet for reliable animation. */
.job-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(52vh, 520px);
  max-height: none;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: height 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.job-sheet--dragging {
  transition: none;
}

.job-sheet__underlap {
  flex-shrink: 0;
  background: #fff;
  transition: height 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.job-sheet--dragging .job-sheet__underlap,
.job-sheet--dragging .job-sheet__handle,
.job-sheet--dragging .job-sheet__header,
.job-sheet--dragging .job-sheet__count-only,
.job-sheet--dragging .job-sheet__map-fab {
  transition: none;
}

.job-sheet__chrome {
  flex-shrink: 0;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.job-sheet__chrome:active {
  cursor: grabbing;
}

.job-sheet__handle {
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  margin: 10px auto 6px;
  border-radius: 999px;
  background: #dadce0;
  overflow: hidden;
}

.job-sheet__filters {
  flex-shrink: 0;
}

.job-sheet__back {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(50% - 24px);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #5f6368;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
}

.job-sheet__back:hover {
  color: #202124;
}

.job-sheet__back-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: inherit;
}

.job-sheet__back-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app[data-view="map"] .job-sheet .map-filters {
  position: relative;
  top: auto;
  left: 0;
  z-index: 3;
  max-width: 100%;
  margin: 0;
  padding: 0 12px 8px;
}

.job-sheet__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 28px;
  padding: 2px 20px 14px;
  background: #fff;
  pointer-events: none;
  overflow: hidden;
  transition:
    padding 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.job-sheet__filters:has(+ .job-sheet__header) {
  padding-top: 2px;
}

.job-sheet__filters + .job-sheet__header {
  padding-top: 0;
}

.job-sheet__count-only {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 72px;
  box-sizing: border-box;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111;
}

.job-sheet__category-title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.job-sheet__count-value {
  flex-shrink: 0;
}

.job-sheet__body {
  flex: 1;
  min-height: 0;
  background: #fff;
}

.job-sheet[data-snap='collapsed']:not(.job-sheet--dragging) .job-sheet__filters {
  visibility: hidden;
  pointer-events: none;
}

.job-sheet[data-snap='collapsed'] .job-sheet__body {
  /* Clipped cards must not receive the tap that expands the sheet. */
  pointer-events: none;
}

.job-sheet__scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Both axes: a pan-x-only child would cancel vertical scrolling of this list. */
  touch-action: pan-x pan-y;
}

.job-sheet__map-fab {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4100;
  transform: translateX(-50%) translateY(16px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.job-sheet__map-fab .material-icons {
  font-size: 18px;
  line-height: 1;
}

.job-sheet__map-fab:hover {
  background: #222;
}

.job-sheet__map-fab:active {
  filter: brightness(0.92);
}

/* Mobile job lists over the map: scroll sideways, no surface of their own. */
.job-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 4px 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Magnet: the browser applies this once the scroll gesture ends. */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(12px, calc((100% - min(86%, 420px)) / 2));
}

/* Spacers (not padding) so first/last 86% cards can snap to center.
   Gap is on items only so it doesn't throw off the end insets. */
.job-strip::before,
.job-strip::after {
  content: '';
  flex: 0 0 max(12px, calc((100% - min(86%, 420px)) / 2));
  pointer-events: none;
}

.job-strip::-webkit-scrollbar {
  display: none;
}

.job-strip__item {
  position: relative;
  flex: 0 0 auto;
  width: 86%;
  max-width: 420px;
  scroll-snap-align: center;
}

.job-card__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.job-card__close .material-icons {
  font-size: 16px;
  line-height: 1;
}

.job-strip__item + .job-strip__item {
  margin-left: 12px;
}

.job-strip__item .job-card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.job-card {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  cursor: pointer;
}

/* Same ring as .list-card--selected, on the card the strip settled on. */
.job-card--selected {
  box-shadow: inset 0 0 0 1px #27873A;
  background: #EEF4EF66;
}

.job-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.job-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.job-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-card__lead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.job-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #424242;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.job-card__badge--urgent {
  background: #27873a;
  color: #fff;
  font-weight: 700;
}

.job-card__salary {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card__employment {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.job-card__company {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: #616161;
  line-height: 1.3;
}

.job-card__favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
}

.job-card__company-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.job-card__meta-location {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 5px;
  gap: 5px;
  color: #485251;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.job-card__meta-location .job-meta-icon {
  width: 16px;
  height: 16px;
  color: #3b3b3b;
}

.job-meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.job-meta-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card__chips {
  margin-top: 6px;
}

.job-card__heart {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -4px 0 0 -4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9e9e9e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-card__heart:focus,
.job-card__heart:active {
  outline: none;
  background: transparent;
}

.job-card__heart i {
  font-size: 22px;
}

.job-card__heart--active {
  color: #e53935;
}

.job-card__heart--active i {
  color: #e53935;
}

.job-card__type {
  margin-top: 2px;
  font-size: 13px;
  color: #9e9e9e;
}

.job-card__title {
  margin-top: 2px;
  font-size: 14px;
  color: #757575;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.job-card__date {
  font-size: 13px;
  color: #9e9e9e;
}

.job-card__pager {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.job-card__pager-label {
  font-size: 13px;
  color: #757575;
  min-width: 42px;
  text-align: center;
}

/* Full-screen job detail modal */
.job-modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  max-width: 480px;
  margin: 0 auto;
}

.job-modal__sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.job-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
      flex-direction: column;
}

.job-modal__hero {
  position: relative;
  height: 240px;
  background: #e0e0e0;
  flex-shrink: 0;
}

.job-modal__toolbar {
  position: relative;
  flex-shrink: 0;
  min-height: 68px;
  background: #fff;
}

.job-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.job-modal__icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.job-modal__icon-btn:focus,
.job-modal__icon-btn:active {
  outline: none;
  background: rgba(255, 255, 255, 0.92);
}

.job-modal__icon-btn i {
  font-size: 22px;
}

.job-modal__icon-btn--heart-active,
.job-modal__icon-btn--heart-active i {
  color: #e53935;
}

.job-modal__back {
  position: absolute;
  top: 14px;
  right: 14px;
}

.job-modal__hero-actions {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 10px;
}

.job-modal__content {
  padding: 18px 20px 24px;
}

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

.job-modal__chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.job-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: -4px -8px -4px 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.job-modal__close:focus,
.job-modal__close:active {
  outline: none;
  background: transparent;
}

.job-modal__close i {
  font-size: 24px;
  line-height: 1;
}

.job-modal__hero .job-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.job-modal__close--floating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.job-modal__close--floating:focus,
.job-modal__close--floating:active {
  background: #fff;
}

.job-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #f5f5f5;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
}

.job-modal__chip--urgent {
  border-color: #27873a;
  background: #27873a;
  color: #fff;
  font-weight: 700;
}

.job-modal__chip--urgent .info-tooltip__trigger {
  color: inherit;
  margin-right: 2px;
}

.job-modal__chip--urgent .info-tooltip__trigger .material-icons {
  font-size: 14px;
  color: #fff;
}

.job-modal__chips {
  margin-top: 14px;
}

.job-modal__salary {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}

.job-modal__info {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-modal__info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #1a1a1a;
}

.job-modal__info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  color: #3b3b3b;
}

.job-modal__info-icon--calendar {
  transform: translateY(-2px);
}

.job-modal__company-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.job-modal__favicon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
}

.job-modal__meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-modal__meta-row {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.job-modal__meta-label {
  color: #9e9e9e;
  font-weight: 600;
  margin-right: 6px;
}

.job-modal__meta-value {
  color: #424242;
}

.job-modal__locations-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.job-modal__locations-row .job-modal__meta-label {
  margin-right: 0;
}

.job-modal__location-current {
  color: #1a1a1a;
  font-weight: 500;
}

.job-modal__locations-more {
  margin: 0;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f4;
  color: #3c4043;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.job-modal__locations-more:focus,
.job-modal__locations-more:active {
  outline: none;
}

.job-modal__locations-menu {
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.job-modal__locations-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.job-modal__locations-option:hover {
  background: #f6f7f8;
}

.job-modal__locations-option--selected,
.job-modal__locations-option--selected:hover {
  background: transparent;
  color: #27873a;
  font-weight: 700;
}

.job-modal__type {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b8def;
}

.job-modal__title {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 800;
  color: #1a237e;
  line-height: 1.15;
}

.job-modal__subtitle {
  margin-top: 6px;
  font-size: 15px;
  color: #757575;
}

.job-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
  margin-top: 28px;
}

.job-modal__fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.job-modal__fact > .material-icons {
  font-size: 22px;
  color: #222;
  margin-top: 2px;
}

.job-modal__fact-value {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.25;
  word-break: break-word;
}

.job-modal__fact-label {
  margin-top: 2px;
  font-size: 13px;
  color: #9e9e9e;
}

.job-modal__domain {
  margin-top: 28px;
}

.job-modal__domain-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.job-modal__domain-link:hover {
  color: #212121;
}

.job-modal__section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.info-tooltip__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #111;
  line-height: 1;
  cursor: default;
}

.info-tooltip__trigger:focus {
  outline: none;
}

.info-tooltip__trigger .material-icons {
  font-size: 15px;
}

.info-tooltip__content {
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 12px 14px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  border-radius: 4px;
  text-align: left;
  pointer-events: none;
  z-index: 9999999;
  border-radius: 10px;
}

.info-tooltip__content--fixed {
  position: fixed;
  transform: translateX(-50%);
}

.info-tooltip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111;
}

.info-tooltip-alert {
  position: fixed;
  inset: 0;
  z-index: 7500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.info-tooltip-alert__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(17, 17, 17, 0.28);
  cursor: pointer;
}

.info-tooltip-alert__card {
  position: relative;
  width: min(280px, 100%);
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.info-tooltip-alert__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.info-tooltip-alert__text {
  margin: 8px 0 0;
  color: #757575;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.info-tooltip-alert__close {
  margin-top: 16px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 899px) {
  .info-tooltip__trigger {
    cursor: pointer;
  }
}

.job-modal__section {
  margin-top: 8px;
}

.job-modal__status {
  margin: 16px 0 0;
  font-size: 14px;
  color: #757575;
}

.job-modal__status--error {
  color: #c62828;
}


.job-modal__description {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.job-modal__description--html :where(p, ul, ol) {
  margin: 0 0 12px;
}

.job-modal__description--html :where(p:last-child, ul:last-child, ol:last-child) {
  margin-bottom: 0;
}

.job-modal__footer {
  flex-shrink: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.job-modal__footer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-modal__footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.job-modal__footer-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid #d5d5d5;
  border-radius: 50%;
  background: #fff;
  color: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.job-modal__footer-icon:focus,
.job-modal__footer-icon:active {
  outline: none;
  background: #fff;
}

.job-modal__footer-icon i {
  font-size: 22px;
  line-height: 1;
}

.job-modal__footer-icon--active,
.job-modal__footer-icon--active i {
  color: #e53935;
}

.job-modal__footer-bar .job-modal__apply {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 48px;
}

.job-modal__apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: #a5de43;
  color: #111;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.job-modal__apply i {
  font-size: 18px;
  line-height: 1;
}

.job-modal__apply:focus,
.job-modal__apply:active {
  background: #a5de43;
}

.job-modal__apply--redirecting,
.job-modal__apply--redirecting:focus,
.job-modal__apply--redirecting:active {
  background: #c4c4c4;
  color: #666;
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
  cursor: not-allowed;
}

.job-modal__auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-modal__auth-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.job-modal__auth-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.job-modal__auth-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid #9ca3af;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 15px;
  outline: none;
}

.job-modal__auth-input:focus {
  border-color: #27873A;
  background: #EEF4EF66;
}

.job-modal__auth-input:disabled {
  opacity: 0.7;
}

.job-modal__auth-input--otp {
  -moz-appearance: textfield;
}

.job-modal__auth-input--otp::-webkit-outer-spin-button,
.job-modal__auth-input--otp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.job-modal__auth-submit {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #1a237e;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.job-modal__auth-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.job-modal__auth-submit--continue,
.job-modal__auth-submit--continue:focus,
.job-modal__auth-submit--continue:active {
  border-radius: 999px;
  background: #a5de43;
  color: #111;
  font-weight: 600;
}

.job-modal__auth-submit--continue:disabled {
  background: #c4c4c4;
  color: #666;
  opacity: 1;
  cursor: not-allowed;
}

.snackbar {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 8000;
  box-sizing: border-box;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  transform-origin: top center;
  animation: snackbar-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.snackbar--out {
  animation: snackbar-out 200ms ease-in both;
}

.snackbar--success {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.snackbar--error {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

@keyframes snackbar-in {
  from {
    opacity: 0;
    transform: translate3d(-50%, -12px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}

@keyframes snackbar-out {
  from {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(-50%, -8px, 0) scale(0.98);
  }
}

/* Filter modal */
.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  max-width: 480px;
  margin: 0 auto;
}

.filter-modal__sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.filter-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #ececec;
  flex-shrink: 0;
}

.filter-modal__title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #111;
}

.filter-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-modal__reset {
  border: none;
  background: transparent;
  color: #3d6cf5;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

.filter-modal__reset:focus,
.filter-modal__reset:active {
  outline: none;
  background: transparent;
}

.filter-modal__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-modal__close:focus,
.filter-modal__close:active {
  outline: none;
  background: transparent;
}

.filter-modal__close i {
  font-size: 22px;
}

.filter-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 24px;
}

.filter-modal__section {
  padding-top: 20px;
}

.filter-modal__section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.filter-modal__hint {
  margin: 4px 0 0;
  font-size: 14px;
  color: #9e9e9e;
}

.filter-modal__status {
  margin: 16px 0 0;
  font-size: 14px;
  color: #757575;
}

.filter-modal__status--error {
  color: #c62828;
}

.filter-modal__select-wrap {
  position: relative;
  margin-top: 12px;
}

.filter-modal__select-wrap::after {
  font-family: "Material Icons";
  font-size: 22px;
  color: #616161;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.filter-modal__select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.filter-modal__select:focus {
  outline: none;
  border-color: #27873A;
}

.filter-modal__select:disabled {
  color: #9e9e9e;
  cursor: wait;
}

.filter-modal__chip {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter-modal__chip:focus,
.filter-modal__chip:active {
  outline: none;
  background: #fff;
}

.filter-modal__chip--active,
.filter-modal__chip--active:focus,
.filter-modal__chip--active:active {
  background: #1a237e;
  border-color: #1a237e;
  color: #fff;
}

.filter-modal__salary-value {
  margin-top: 10px;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.filter-modal__slider {
  display: block;
  width: 100%;
  margin: 18px 0 8px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #e0e0e0;
  outline: none;
}

.filter-modal__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a237e;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.filter-modal__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a237e;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.filter-modal__slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #9e9e9e;
}

.filter-modal__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

.filter-modal__cancel,
.filter-modal__apply {
  height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.filter-modal__cancel {
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #111;
}

.filter-modal__cancel:focus,
.filter-modal__cancel:active {
  outline: none;
  background: #fff;
}

.filter-modal__apply {
  border: none;
  background: #1a237e;
  color: #fff;
}

.filter-modal__apply:focus,
.filter-modal__apply:active {
  outline: none;
  background: #1a237e;
}

/* Desktop layout (≥900px) — CSS-only; no JS is-desktop class required */
@media (min-width: 900px) {
  #app {
    position: relative;
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "topbar topbar"
      "sidebar map";
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    background: #fff;
  }

  /* Reset mobile map-tab grid overrides; keep desktop topbar + body grid */
  #app[data-view="map"],
  #app[data-view="list"],
  #app[data-view="favorites"],
  #app[data-view="pin"] {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "topbar topbar"
      "sidebar map";
  }

  .app-top-header {
    grid-area: topbar;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    height: 72px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .app-top-header__brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .app-top-header__logo {
    font-size: 30px;
  }

  .app-top-header__logo .mapjobs-logo__beta {
    font-size: 9px;
  }

  .app-top-header__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-width: 680px;
    height: 48px;
    padding: 4px 4px 4px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    background: #fff;
  }

  .app-top-header__field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    height: 100%;
    color: #8a8a8a;
  }

  .app-top-header__field-icon {
    display: flex;
    flex-shrink: 0;
    color: #8a8a8a;
  }

  .app-top-header__search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #111;
  }

  .app-top-header__search-input::placeholder {
    color: #9a9a9a;
  }

  .app-top-header__clear {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 2px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #757575;
    cursor: pointer;
  }

  .app-top-header__clear:hover {
    color: #111;
  }

  .app-top-header__search-btn {
    flex-shrink: 0;
    height: 40px;
    margin-left: 8px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #a5de43;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }

  .app-top-header__search-btn:disabled,
  .app-top-header__search-btn.is-busy {
    background: #c4c4c4;
    color: #666;
    cursor: not-allowed;
  }

  .app-top-header__suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px 0;
    overflow: auto;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .app-top-header__suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #202124;
    font-size: 14px;
    cursor: pointer;
  }

  .app-top-header__suggestion:hover,
  .app-top-header__suggestion.is-selected {
    background: #f1f3f4;
  }

  .app-top-header__suggestion-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: #5f6368;
  }

  .app-top-header__suggestion-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-top-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .app-top-header__saved {
    position: relative;
    height: 40px;
    padding: 0 18px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
  }

  .app-top-header__saved-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #1a237e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 4px rgba(26, 35, 126, 0.35);
    pointer-events: none;
  }

  .app-top-header__lang {
    height: 40px;
    min-width: 48px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: #f0f0f0;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
  }

  .app-top-header__lang-wrap {
    position: relative;
  }

  .app-top-header__lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 1300;
    min-width: 72px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%);
  }

  .app-top-header__lang-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    cursor: pointer;
  }

  .app-top-header__lang-option:hover {
    background: #f5f5f5;
  }

  .app-top-header__lang-option--active {
    background: #f0f0f0;
  }

  .app-top-header__divider {
    width: 1px;
    height: 24px;
    margin: 0 2px;
    background: #e4e4e4;
  }

  .app-top-header__notify-wrap {
    position: relative;
  }

  .app-top-header__notify {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #111;
    cursor: pointer;
  }

  .app-top-header__notify .material-icons,
  .app-top-header__notify-icon {
    display: block;
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  .app-top-header__notify-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e53935;
    border: 1.5px solid #f0f0f0;
  }

  .app-top-header__notify-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1300;
    min-width: 180px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .app-top-header__notify-empty {
    margin: 0;
    color: #9e9e9e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
  }

  .app-top-header__account-wrap {
    position: relative;
  }

  .app-top-header__account {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 0 12px 0 16px;
    border: none;
    border-radius: 999px;
    background: #f0f0f0;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
  }

  .app-top-header__account-name {
    line-height: 1;
  }

  .app-top-header__account-chevron {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #444;
  }

  .app-top-header__account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1300;
    min-width: 140px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .app-top-header__account-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
  }

  .app-top-header__account-option:hover {
    background: #f5f5f5;
  }

  #app[data-view="map"] .app-sidebar,
  #app[data-view="list"] .app-sidebar,
  #app[data-view="favorites"] .app-sidebar,
  #app[data-view="pin"] .app-sidebar {
    display: flex;
    grid-area: sidebar;
  }

  #app[data-view="map"] .app-sidebar__body {
    display: block;
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .app-map {
    grid-area: map;
  }

  .view-tabs__item--map {
    display: none;
  }

  .view-tabs__item--list {
    display: block;
  }

  /* Desktop: the map copy is the floating button; hide the header copy. */
  .view-tabs__item--feedback {
    display: none;
  }

  /* Mobile-only map chrome; MapView omits these on desktop. */
  .map-view__strip,
  .map-view__sheet {
    display: none;
  }

  .app-sidebar {
    position: relative;
    z-index: 1;
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    width: 380px;
    min-height: 0;
    height: auto;
    background: #fff;
    /* box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08); */
    overflow: hidden;
  }

  .app-map {
    --map-inset-top: 16px;
    --map-inset-right: 20px;
    --map-inset-bottom: 20px;
    --map-inset-left: 12px;
    position: relative;
    grid-area: map;
    display: block;
    min-width: 0;
    min-height: 0;
    height: auto;
    background: #fff;
  }

  .map-view {
    position: absolute;
    inset: var(--map-inset-top) var(--map-inset-right) var(--map-inset-bottom)
      var(--map-inset-left);
    /* Let inset control size — base width/height:100% would ignore right/bottom */
    width: auto;
    height: auto;
    z-index: 0;
    /* Desktop always shows the map pane (black until Leaflet mounts) */
    display: block !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  /* Keep map chrome inside the inset rounded map surface */
  .map-filters {
    top: calc(var(--map-inset-top) + 12px);
    left: calc(var(--map-inset-left) + 12px);
    max-width: calc(
      100% - var(--map-inset-left) - var(--map-inset-right) - 24px
    );
  }

  .app-map__feedback {
    right: calc(var(--map-inset-right) + 16px);
    bottom: calc(var(--map-inset-bottom) + 16px);
  }

  .app-sidebar .app-header,
  .app-sidebar .sidebar-header {
    box-shadow: none;
    border-bottom: none;
  }

  .app-sidebar__body {
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .app-sidebar__body .list-view {
    position: absolute;
    inset: 0;
  }

  .app-panel {
    position: absolute;
    top: calc(var(--map-inset-top) + 56px);
    left: calc(var(--map-inset-left) + 16px);
    bottom: calc(var(--map-inset-bottom) + 16px);
    z-index: 1100;
    width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    overflow: hidden;
  }

  .app-panel--hidden {
    display: none;
  }

  .job-modal--panel,
  .filter-modal--panel {
    position: absolute;
    inset: 0;
    max-width: none;
    margin: 0;
    z-index: 1;
  }

  .job-modal--panel .job-modal__sheet,
  .filter-modal--panel .filter-modal__sheet {
    border-radius: 20px;
  }

  .job-modal--panel .job-modal__share {
    display: none;
  }

  /* share/heart left, close right — same as mobile */
  .job-modal--panel .job-modal__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .job-modal--panel .job-modal__pager-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .job-modal--panel .job-modal__pager-btn:focus,
  .job-modal--panel .job-modal__pager-btn:active {
    outline: none;
    background: #eeeeee;
  }

  .job-modal--panel .job-modal__pager-btn i {
    font-size: 24px;
  }

  .job-modal--panel .job-modal__pager-label {
    color: #616161;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
  }
}
