/* MAP STYLES */
    * { box-sizing: border-box; }

    html,
    body {
      margin: 0;
      height: 100%;
      font-family: Arial, Helvetica, sans-serif;
      color: #222;
      background: #f5f5f5;
      overflow: hidden;
    }

    .map-wrapper {
      display: grid;
      grid-template-columns: 360px 1fr;
      height: 100vh;
      min-height: 520px;
    }

    .sidebar {
      display: flex;
      flex-direction: column;
      min-height: 0;
      background: #fff;
      border-right: 1px solid #ddd;
    }

    .sidebar-header {
      flex: 0 0 auto;
      padding: 22px 22px 16px;
      border-bottom: 1px solid #eee;
      background: #fff;
      z-index: 2;
    }

    .sidebar h1 {
      margin: 0 0 8px;
      font-size: 22px;
      line-height: 1.2;
      color: #1f755f;
    }

    .sidebar p {
      margin: 0 0 16px;
      color: #555;
      line-height: 1.4;
      font-size: 14px;
    }

    .search-box {
      display: grid;
      gap: 9px;
    }

    .search-box input,
    .search-box select,
    .search-box button {
      width: 100%;
      padding: 11px 12px;
      font-size: 15px;
      border-radius: 6px;
      border: 1px solid #ccc;
    }

    .button-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
    }

    .search-box button {
      background: #1f755f;
      color: #fff;
      border: none;
      cursor: pointer;
      font-weight: 700;
    }

    .search-box button:hover,
    .search-box button:focus-visible {
      background: #155f4c;
      outline: 3px solid rgba(31,117,95,.35);
      outline-offset: 2px;
    }

    .search-box .secondary-button {
      background: #eef5f2;
      color: #1f755f;
      border: 1px solid #c7ddd5;
    }

    .search-box .secondary-button:hover,
    .search-box .secondary-button:focus-visible {
      background: #dcece7;
    }

    .results-panel {
      min-height: 0;
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      background: #fff;
    }

    #results-count {
      flex: 0 0 auto;
      padding: 14px 22px 10px;
      font-weight: 700;
      color: #222;
      border-bottom: 1px solid #eee;
    }

    #results-count:focus-visible {
      outline: 3px solid rgba(31,117,95,.35);
      outline-offset: -3px;
    }

    #results-message {
      display: block;
      margin-top: 4px;
      font-size: 12px;
      font-weight: 400;
      color: #666;
    }

    #results {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding: 14px 22px 22px;
      overscroll-behavior: contain;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .location-result {
      padding: 14px;
      margin-bottom: 12px;
      border: 1px solid #ddd;
      border-radius: 8px;
      background: #fafafa;
      cursor: pointer;
      transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
      text-align: left;
      display: block;
      width: 100%;
    }

    .location-result:hover,
    .location-result:focus-visible,
    .location-result.is-selected {
      background: #eef7f4;
      border-color: #1f755f;
      box-shadow: 0 0 0 2px rgba(31, 117, 95, .12);
      outline: none;
    }

    .location-result strong {
      display: block;
      margin-bottom: 6px;
      font-size: 15px;
      line-height: 1.25;
    }

    .location-result span {
      display: block;
      color: #555;
      font-size: 13px;
      line-height: 1.4;
    }

    .distance {
      margin-top: 6px;
      color: #1f755f !important;
      font-weight: 700;
    }

    .result-actions {
      margin-top: 10px;
    }

    .result-actions a {
      color: #1f755f;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      margin-right: 10px;
    }

    .result-actions a:hover,
    .result-actions a:focus-visible { text-decoration: underline; }

    .status {
      display: inline-block;
      margin-top: 9px;
      padding: 4px 9px;
      border-radius: 20px;
      font-size: 11px;
      line-height: 1;
      font-weight: 700;
      letter-spacing: .01em;
    }

    .status-recruiting {
      background: #e6f4ea;
      color: #137333;
    }

    .status-active {
      background: #fff4e5;
      color: #a15c00;
    }

    .status-closed {
      background: #eeeeee;
      color: #555555;
    }

    .map-panel {
      min-width: 0;
      height: 100%;
      position: relative;
    }

    #map {
      width: 100%;
      height: 100%;
    }

    @media (max-width: 800px) {
      html,
      body {
        overflow: auto;
      }

      .map-wrapper {
        display: flex;
        flex-direction: column;
        height: 100vh;
        min-height: 720px;
      }

      .map-panel {
        order: 1;
        height: 250px;
        flex: 0 0 250px;
      }

      .sidebar {
        order: 2;
        flex: 1;
        height: auto;
        min-height: 0;
      }

      .sidebar-header {
        padding: 18px 18px 14px;
      }

      #results-count,
      #results {
        padding: 18px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
      }
    }