 html,
    body {
      margin: 0;
      padding: 0;
      height: 100%;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
      background: #f5f7fb;
      color: #222;
      overflow: hidden;
    }

    #app {
      position: relative;
      width: 100%;
      height: 100%;
    }

    #map {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }

    /* --- Header --- */
    .app-header {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 0px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
      backdrop-filter: blur(10px);
      box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      padding: 0 24px;
      z-index: 100;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .header-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .header-logo img {
      height: 36px;
      width: auto;
    }

    .header-title {
      font-size: 18px;
      font-weight: 600;
      color: #1a1a1a;
      letter-spacing: -0.02em;
    }

    .header-subtitle {
      font-size: 13px;
      color: #666;
      font-weight: 400;
      margin-left: 12px;
      padding-left: 12px;
      border-left: 1px solid #e0e0e0;
    }

    .header-nav {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .header-nav-link {
      padding: 8px 16px;
      text-decoration: none;
      color: #444;
      font-size: 14px;
      font-weight: 500;
      border-radius: 8px;
      transition: background 0.15s ease, color 0.15s ease;
      white-space: nowrap;
    }

    .header-nav-link:hover {
      background: rgba(29, 183, 166, 0.1);
      color: #1db7a6;
    }

    .header-nav-link.primary {
      background: #1db7a6;
      color: white;
    }

    .header-nav-link.primary:hover {
      background: #189d8d;
      color: white;
    }

    /* --- Search box (top center) --- */
    .search-container {
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      width: min(35vw, 80vw);
      max-width: 500px;
      pointer-events: none; /* allow map interactions if user misses box */
      transition: left 0.3s ease, transform 0.3s ease, width 0.3s ease;
    }

    /* Adjust search box when left sidebar is open - center in remaining space */
    #sidebar:not(.collapsed) ~ #info-sidebar ~ .search-container {
      left: calc(160px + (100vw - 320px) / 2); /* center in visible area */
      width: min(30vw, calc(100vw - 400px));
    }

    /* Adjust search box when right sidebar is open - center in remaining space */
    #sidebar.collapsed ~ #info-sidebar.open ~ .search-container {
      left: calc((100vw - 600px) / 2); /* center in visible area */
      width: min(30vw, calc(100vw - 680px));
    }

    /* Adjust search box when both sidebars are open - center in remaining space */
    #sidebar:not(.collapsed) ~ #info-sidebar.open ~ .search-container {
      left: calc(320px + (100vw - 920px) / 2); /* center between both sidebars */
      width: min(25vw, calc(100vw - 1000px));
    }

    .mapboxgl-ctrl-geocoder {
      width: 100% !important;
      max-width: 100% !important;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      border-radius: 16px !important;
      overflow: visible !important;
      pointer-events: auto !important;
    }

    .mapboxgl-ctrl-geocoder--input,
    .mapboxgl-ctrl-geocoder--icon,
    .mapboxgl-ctrl-geocoder--button,
    .mapboxgl-ctrl-geocoder--suggestions {
      pointer-events: auto !important;
    }

    .mapboxgl-ctrl-geocoder--suggestions {
      overflow: visible !important;
      position: absolute !important;
      background: white !important;
      width: 100% !important;
      top: 100% !important;
      left: 0 !important;
      z-index: 1000 !important;
      margin-top: 4px !important;
      border-radius: 12px !important;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
      max-height: 300px !important;
      overflow-y: auto !important;
    }

    .mapboxgl-ctrl-geocoder--suggestion {
      pointer-events: auto !important;
    }

    /* --- Basemap toggle (top-right) --- */
    .basemap-toggle {
      position: absolute;
      top: 20px;
      right: 16px;
      z-index: 10;
      background: white;
      border-radius: 999px;
      padding: 4px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      display: flex;
      gap: 4px;
      align-items: center;
    }

    .basemap-toggle button {
      border: none;
      background: transparent;
      padding: 6px 12px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 13px;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .basemap-toggle button.active {
      background: #1db7a6;
      color: #fff;
    }

    /* --- Sidebar --- */
    #sidebar {
      position: absolute;
      top: 0px;
      left: 0;
      bottom: 0;
      width: 320px;
      max-width: 80vw;
      background: rgba(255, 255, 255, 0.97);
      box-shadow: 8px 0 25px rgba(0, 0, 0, 0.2);
      z-index: 5;
      padding: 16px 18px 24px;
      display: flex;
      flex-direction: column;
      transform: translateX(0);
      transition: transform 0.25s ease;
    }

    #sidebar.collapsed {
      transform: translateX(-100%);
    }

    .sidebar-toggle {
      position: absolute;
      top: 16px;
      right: -20px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #1db7a6;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      font-size: 18px;
      transition: background 0.15s ease, transform 0.15s ease;
    }

    #sidebar.collapsed .sidebar-toggle {
      transform: rotate(180deg);
    }

    .sidebar-header {
      margin-bottom: 16px;
    }

    .sidebar-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .sidebar-subtitle {
      font-size: 13px;
      color: #777;
    }

    .score-circle-wrapper {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }

    .score-circle {
      width: 92px;
      height: 92px;
      border-radius: 50%;
      border: 6px solid #1db7a6;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      font-weight: 600;
      color: #333;
      background: #f9fffd;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    }

    .score-circle-labels {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 13px;
      color: #666;
    }

    .score-circle-labels span.strong {
      font-size: 15px;
      font-weight: 600;
      color: #333;
    }

    .metrics-list {
      flex: 1;
      overflow-y: auto;
      padding-right: 6px;
    }

    .history-section {
      margin-top: 16px;
      margin-bottom: 12px;
    }

    .history-title {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 8px;
      color: #333;
    }

    .history-list {
      max-height: 180px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding-right: 4px;
    }

    .history-item {
      background: #f9f9fb;
      border-radius: 10px;
      padding: 10px 12px;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.1s ease;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid transparent;
    }

    .history-item:hover {
      background: #f0f2f7;
      transform: translateX(2px);
      border-color: #e0e3eb;
    }

    .history-item-score {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      flex-shrink: 0;
      border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .history-item-info {
      flex: 1;
      min-width: 0;
    }

    .history-item-address {
      font-size: 12px;
      font-weight: 500;
      color: #333;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .history-item-coords {
      font-size: 10px;
      color: #999;
      margin-top: 2px;
    }

    .history-item-delete {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: transparent;
      color: #999;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
      flex-shrink: 0;
    }

    .history-item:hover .history-item-delete {
      display: flex;
    }

    .history-item-delete:hover {
      background: #ffe5e5;
      color: #e74c3c;
    }

    .history-list::-webkit-scrollbar {
      width: 6px;
    }

    .history-list::-webkit-scrollbar-track {
      background: #f0f2f7;
      border-radius: 10px;
    }

    .history-list::-webkit-scrollbar-thumb {
      background: #c5c9d4;
      border-radius: 10px;
    }

    .history-list::-webkit-scrollbar-thumb:hover {
      background: #a8adb8;
    }

    .metric-row {
      margin-bottom: 12px;
    }

    .metric-header {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      margin-bottom: 4px;
    }

    .metric-name {
      font-weight: 500;
    }

    .metric-value {
      font-variant-numeric: tabular-nums;
    }

    .metric-bar-bg {
      height: 8px;
      border-radius: 999px;
      background: #eef0f4;
      overflow: hidden;
    }

    .metric-bar-fill {
      height: 100%;
      width: 0;
      border-radius: 999px;
      background: #1db7a6;
      transition: width 0.25s ease, background 0.25s ease;
    }

    .sidebar-footer {
      font-size: 11px;
      color: #aaa;
      margin-top: 8px;
      text-align: center;
    }

    /* --- Mapbox marker styles --- */
    .marker,
    .marker-loading {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: #1db7a6;
      border: 3px solid #ffffff;
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 600;
      color: #ffffff;
      cursor: pointer;
      transition: transform 0.15s ease;
    }

    .marker:hover {
      transform: scale(1.1);
    }

    .marker-loading {
      background: #ffffff;
      border-color: #1db7a6;
      box-shadow: 0 0 0 3px rgba(29, 183, 166, 0.35);
      color: transparent;
    }

    .marker-loading::after {
      content: "";
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid #1db7a6;
      border-top-color: transparent;
      animation: spin 0.9s linear infinite;
    }

    .marker-cancel-btn {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #e74c3c;
      color: white;
      border: 2px solid white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      z-index: 10;
      transition: transform 0.15s ease, background 0.15s ease;
    }

    .marker-cancel-btn:hover {
      background: #c0392b;
      transform: scale(1.1);
    }

    .marker-delete-btn {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #e74c3c;
      color: white;
      border: 2px solid white;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      z-index: 10;
      transition: transform 0.15s ease, background 0.15s ease;
    }

    .marker:hover .marker-delete-btn {
      display: flex;
    }

    .marker-delete-btn:hover {
      background: #c0392b;
      transform: scale(1.15);
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .mapboxgl-popup-content {
      border-radius: 16px;
      padding: 12px 14px 14px;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
      font-size: 13px;
    }

    .popup-title {
      font-weight: 600;
      margin-bottom: 4px;
    }

    .popup-score {
      font-size: 22px;
      font-weight: 600;
      margin-bottom: 6px;
    }

    .popup-address {
      font-size: 11px;
      color: #777;
      margin-bottom: 8px;
    }

    .popup-button {
      width: 100%;
      padding: 8px 10px;
      border-radius: 999px;
      border: none;
      background: #1db7a6;
      color: #fff;
      font-size: 13px;
      cursor: pointer;
      font-weight: 500;
      margin-top: 4px;
      transition: background 0.15s ease, transform 0.1s ease;
    }

    .popup-button:hover {
      background: #17a091;
      transform: translateY(-1px);
    }

    /* --- Report modal --- */
    #report-modal {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 20;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    #report-modal.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .report-modal-content {
      background: #ffffff;
      border-radius: 18px;
      padding: 24px 26px 20px;
      width: min(540px, 90vw);
      max-height: 80vh;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 16px;
      font-size: 20px;
      cursor: pointer;
      color: #999;
    }

    .report-modal-content h2 {
      text-align: center;
      margin: 0;
      font-size: 20px;
    }

    .report-modal-content p {
      margin: 0;
      font-size: 13px;
      color: #555;
      text-align: center;
    }

    .report-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
    }

    .report-form input {
      padding: 10px 12px;
      border-radius: 999px;
      border: 1px solid #d7dbe5;
      font-size: 13px;
      outline: none;
      transition: border 0.15s;
    }

    .report-form input:focus {
      border-color: #1db7a6;
    }

    .report-form button {
      margin-top: 6px;
      padding: 10px 12px;
      border-radius: 999px;
      border: none;
      background: #1db7a6;
      color: #fff;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
    }

    .report-helper {
      font-size: 11px;
      color: #777;
      text-align: center;
      margin-top: 4px;
    }

    /* --- Toast bottom-right --- */
    #report-toast {
      position: absolute;
      right: 20px;
      bottom: 20px;
      min-width: 230px;
      max-width: 260px;
      background: rgba(30, 32, 40, 0.95);
      color: #fff;
      border-radius: 16px;
      padding: 10px 14px;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 25;
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    #report-toast.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .toast-spinner {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 2px solid #fff;
      border-top-color: transparent;
      animation: spin 0.9s linear infinite;
    }

    .toast-icon-ok {
      font-size: 16px;
    }

    .toast-message {
      flex: 1;
    }

    /* --- Zoom warning toast --- */
    #zoom-warning {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(30, 32, 40, 0.95);
      color: #fff;
      border-radius: 16px;
      padding: 16px 24px;
      font-size: 15px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 30;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    #zoom-warning.visible {
      opacity: 1;
    }

    .zoom-warning-icon {
      font-size: 24px;
    }

    /* --- Right Info Sidebar --- */
    #info-sidebar {
      position: fixed;
      top: 0px;
      right: 0;
      bottom: 0;
      width: 600px;
      max-width: 90vw;
      background: white;
      box-shadow: -8px 0 25px rgba(0, 0, 0, 0.2);
      z-index: 15;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      overflow-y: auto;
      overflow-x: hidden;
    }

    #info-sidebar.open {
      transform: translateX(0);
    }

    .info-sidebar-header {
      position: sticky;
      top: 0;
      background: white;
      border-bottom: 1px solid #e0e0e0;
      padding: 20px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10;
    }

    .info-sidebar-header h2 {
      margin: 0;
      font-size: 24px;
      font-weight: 600;
      color: #1a1a1a;
    }

    .info-sidebar-close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #f5f5f5;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: #666;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .info-sidebar-close:hover {
      background: #e0e0e0;
      color: #333;
    }

    .info-sidebar-content {
      padding: 32px 24px;
    }

    .info-page {
      display: none;
    }

    .info-page.active {
      display: block;
    }

    .info-page h3 {
      font-size: 20px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 16px;
    }

    .info-page h4 {
      font-size: 16px;
      font-weight: 600;
      color: #1db7a6;
      margin-top: 24px;
      margin-bottom: 12px;
    }

    .info-page h5 {
      font-size: 14px;
      font-weight: 600;
      color: #1db7a6;
      margin-top: 16px;
      margin-bottom: 8px;
    }

    .info-page p {
      font-size: 15px;
      line-height: 1.7;
      color: #444;
      margin-bottom: 16px;
    }

    .info-page ul {
      margin: 16px 0;
      padding-left: 24px;
    }

    .info-page li {
      font-size: 15px;
      line-height: 1.7;
      color: #444;
      margin-bottom: 8px;
    }

    .environmental-icons {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 20px;
      margin: 24px 0;
    }

    .environmental-icon-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
      background: #f9f9fb;
      border-radius: 12px;
    }

    .environmental-icon-item svg,
    .environmental-icon-item img {
      width: 48px;
      height: 48px;
      flex-shrink: 0;
    }

    .environmental-icon-content h6 {
      margin: 0 0 4px 0;
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }

    .report-structure-img {
      width: 100%;
      height: auto;
      border-radius: 12px;
      margin: 24px 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .report-structure-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px;
      margin: 24px 0;
    }

    .contact-form {
      margin-top: 24px;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 12px 16px;
      margin-bottom: 16px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      font-size: 14px;
      font-family: inherit;
      transition: border-color 0.15s ease;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: #1db7a6;
    }

    .contact-form textarea {
      min-height: 120px;
      resize: vertical;
    }

    .contact-form button {
      background: #1db7a6;
      color: white;
      border: none;
      padding: 12px 32px;
      border-radius: 999px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .contact-form button:hover {
      background: #189d8d;
    }

    .team-members {
      display: grid;
      gap: 32px;
      margin-top: 24px;
    }

    .team-member {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }

    .team-member-photo {
      width: 110px;
      height: 110px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .team-member-info h4 {
      margin: 0 0 12px 0;
      font-size: 18px;
      color: #1a1a1a;
    }

    .team-member-info p {
      margin: 0 0 8px 0;
      font-size: 14px;
      line-height: 1.6;
    }

    .partners-image {
      width: 100%;
      max-width: 600px;
      height: auto;
      margin: 32px 0;
    }

    .login-form {
      margin-top: 24px;
    }

    .login-form label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      margin-bottom: 6px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"],
    .login-form input[type="email"] {
      width: 100%;
      padding: 12px 16px;
      margin-bottom: 16px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      font-size: 14px;
      font-family: inherit;
      transition: border-color 0.15s ease;
    }

    .login-form input[type="text"]:focus,
    .login-form input[type="password"]:focus,
    .login-form input[type="email"]:focus {
      outline: none;
      border-color: #1db7a6;
    }

    .login-form .remember-me {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
    }

    .login-form .remember-me input[type="checkbox"] {
      margin-right: 8px;
      width: 16px;
      height: 16px;
    }

    .login-form .remember-me label {
      margin-bottom: 0;
      font-size: 14px;
      font-weight: 400;
      cursor: pointer;
    }

    .login-form button[type="submit"] {
      width: 100%;
      background: #1db7a6;
      color: white;
      border: none;
      padding: 12px 32px;
      border-radius: 999px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s ease;
    }

    .login-form button[type="submit"]:hover {
      background: #189d8d;
    }

    .login-links {
      text-align: center;
      margin-top: 16px;
      font-size: 14px;
      color: #666;
    }

    .login-links a {
      color: #1db7a6;
      text-decoration: none;
      transition: color 0.15s ease;
    }

    .login-links a:hover {
      color: #189d8d;
      text-decoration: underline;
    }

    .login-separator {
      margin: 0 8px;
      color: #ccc;
    }

    .social-login {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid #e0e0e0;
    }

    .social-login-title {
      font-size: 14px;
      color: #666;
      margin-bottom: 16px;
      text-align: center;
    }

    .social-login-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .social-login-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 10px 16px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      background: white;
      color: #333;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
      text-decoration: none;
    }

    .social-login-btn:hover {
      background: #f9f9fb;
      border-color: #d0d0d0;
    }

    .social-login-btn img {
      width: 20px;
      height: 20px;
    }

    .social-login-btn.google {
      border-color: #4285f4;
      color: #4285f4;
    }

    .social-login-btn.google:hover {
      background: #f1f5ff;
    }

    .social-login-btn.linkedin {
      border-color: #0077b5;
      color: #0077b5;
    }

    .social-login-btn.linkedin:hover {
      background: #e8f4f9;
    }

    .social-login-btn.amazon {
      border-color: #ff9900;
      color: #232f3e;
    }

    .social-login-btn.amazon:hover {
      background: #fff5e6;
    }

   @media (max-width: 768px) {

  /* Search stays below toggle */
  .search-container {
    top: 56px !important;
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 40 !important;
  }

  /* Toggle goes to very top-right and gets smaller */
  .basemap-toggle {
    top: 8px !important;
    right: 8px !important;
    padding: 2px !important;
    gap: 2px !important;
    z-index: 50 !important;
  }

  .basemap-toggle button {
    padding: 5px 9px !important;
    font-size: 12px !important;
  }

  /* Make geocoder input smaller so it looks proportional */
  .mapboxgl-ctrl-geocoder--input {
    height: 38px !important;
    font-size: 14px !important;
    padding: 8px 42px 8px 38px !important;
  }
}

@media (max-width: 420px) {
  .basemap-toggle button {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .search-container {
    top: 54px !important;
    width: calc(100vw - 14px) !important;
  }
  .mapboxgl-ctrl-geocoder--input {
    height: 36px !important;
    font-size: 13px !important;
  }
}