:root {
      --pine: #063f34;
      --forest: #008246;
      --leaf: #25a66a;
      --mint: #dff4e9;
      --mist: #eef7f3;
      --ink: #12302b;
      --muted: #444444;
      --line: rgba(14, 77, 62, .16);
      --white: #ffffff;
      --amber: #f2b84b;
      --clay: #b85f4d;
      --blue: #2c7990;
      --shadow: 0 18px 42px rgba(3, 43, 33, .18);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    .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;
    }

    /*body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      background: #f4faf7;
    }*/

    .canopy-widget {
      min-height: 100vh;
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
      background:
        radial-gradient(circle at 14% 18%, rgba(37, 166, 106, .16), transparent 30%),
        linear-gradient(135deg, #f6fbf8, #e5f3ec);
    }

    .topbar {
      position: relative;
      z-index: 4;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 50px clamp(18px, 4vw, 48px);
      background: rgba(250, 255, 253, .92);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(16px);
    }

    .brand {
      min-width: 0;
    }

    .brand h1 {
      margin: 0;
      font-size: clamp(1.38rem, 2.7vw, 2.7rem);
      line-height: 1.02;
      letter-spacing: 0;
      color: #1c1c1c;
    }

    .brand h1 span {
      color: var(--forest);
      font-weight: 800;
    }

    .brand p {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: clamp(.88rem, 1.4vw, 1rem);
    }

    .search-wrap {
      width: min(420px, 42vw);
      position: relative;
      flex: 0 1 auto;
    }

    .search-wrap input {
      width: 100%;
      height: 48px;
      border: 1px solid rgba(12, 83, 65, .2);
      border-radius: 6px;
      padding: 0 48px 0 16px;
      color: var(--ink);
      background: var(--white);
      font-size: 1rem;
      box-shadow: 0 8px 22px rgba(4, 54, 42, .08);
      outline: none;
    }

    .search-wrap input:focus {
      border-color: rgba(15, 107, 79, .66);
      box-shadow: 0 0 0 4px rgba(37, 166, 106, .14);
    }

    .search-wrap button {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 5px;
      display: grid;
      place-items: center;
      color: var(--white);
      background: var(--forest);
      cursor: pointer;
    }
	.search-wrap button svg {
		width: 24px;
		height: 24px;
	}
    .map-shell {
      position: relative;
      min-height: 700px;
      isolation: isolate;
    }

    .map-stage {
      position: absolute;
      inset: 0;
      overflow: hidden;
      cursor: crosshair;
      background: #dcebe3;
    }

    .leaflet-map {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .leaflet-container {
      width: 100%;
      height: 100%;
      font: inherit;
      background: #dcebe3;
    }

    .leaflet-tile {
      filter: saturate(.72) contrast(.94) brightness(1.05);
    }

    .leaflet-control-attribution {
      font-size: 10px;
      background: rgba(255, 255, 255, .78);
    }

    .legend {
      position: absolute;
      left: clamp(18px, 3vw, 42px);
      top: clamp(18px, 3vw, 42px);
      z-index: 3;
      width: min(360px, calc(100vw - 36px));
      padding: 18px;
      border: 1px solid rgba(255,255,255,.78);
      border-radius: 8px;
      background: rgba(255,255,255,.88);
      box-shadow: var(--shadow);
      backdrop-filter: blur(14px);
    }

    .legend h2 {
      margin: 0 0 8px;
      color: var(--pine);
      font-size: 1.05rem;
      line-height: 1.2;
    }

    .legend p {
      margin: 0;
      color: #444444;
      font-size: .95rem;
      line-height: 1.45;
    }

    .key {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      margin-top: 14px;
    }

    .key span {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 7px;
      color: #29433e;
      font-size: .78rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .key i {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      flex: 0 0 auto;
    }

    .property-marker {
      position: relative;
      width: 170px;
      height: 92px;
      pointer-events: auto;
      filter: drop-shadow(0 14px 18px rgba(1, 35, 26, .28));
    }

    .property-marker .pin {
      position: absolute;
      left: 0;
      bottom: 0;
    }

    .pin {
      width: 66px;
      height: 66px;
      display: grid;
      place-items: center;
      border-radius: 50% 50% 50% 8px;
      border: 5px solid var(--white);
      color: var(--white);
      background: linear-gradient(145deg, var(--forest), var(--pine));
      transform: rotate(-45deg);
    }

    .pin svg {
      width: 34px;
      height: 34px;
      transform: rotate(45deg);
    }

    .marker-label {
      position: absolute;
      left: 56px;
      top: 8px;
      min-width: 120px;
      padding: 8px 11px;
      border-radius: 999px;
      color: var(--pine);
      background: rgba(255,255,255,.94);
      box-shadow: 0 10px 28px rgba(8, 54, 42, .16);
      font-size: .88rem;
      font-weight: 800;
      white-space: nowrap;
    }

    .service-truck {
      width: 58px;
      height: 38px;
      display: grid;
      place-items: center;
      color: var(--pine);
      background: rgba(255, 255, 255, .68);
      border: 1px solid rgba(255,255,255,.8);
      border-radius: 8px;
      box-shadow: 0 8px 22px rgba(11, 59, 48, .13);
      transition: transform .3s ease;
    }

    .service-truck svg {
      width: 38px;
      height: 28px;
    }

    .service-truck.is-near {
      transform: translateY(-8px) scale(1.1);
      background: rgba(255, 249, 219, .9);
      border-color: rgba(242, 184, 75, .8);
    }

    .bottom-panel {
      position: absolute;
      left: clamp(16px, 3vw, 42px);
      right: clamp(16px, 3vw, 42px);
      bottom: clamp(16px, 3vw, 34px);
      z-index: 4;
      display: grid;
      grid-template-columns: minmax(360px, 2fr) minmax(220px, 1fr) minmax(250px, 1fr);
      gap: 14px;
      align-items: stretch;
    }

    .panel,
    .request-card {
      border: 1px solid rgba(255,255,255,.78);
      border-radius: 8px;
      background: rgba(255,255,255,.9);
      box-shadow: var(--shadow);
      backdrop-filter: blur(15px);
    }

    .panel {
      padding: 16px;
    }

    .panel h3,
    .request-card h3 {
      margin: 0 0 10px;
      color: var(--pine);
      font-size: 1rem;
    }

    .score {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .score-ring {
      --score: 72;
      width: 92px;
      height: 92px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      background: conic-gradient(var(--leaf) calc(var(--score) * 1%), #d9e6df 0);
      box-shadow: inset 0 0 0 9px rgba(255,255,255,.85);
      font-weight: 900;
      color: var(--pine);
      font-size: 1.3rem;
    }

    .score-text strong {
      display: block;
      color: var(--ink);
      font-size: 1rem;
      line-height: 1.2;
    }

    .score-text span {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: .88rem;
      line-height: 1.35;
    }

    .area-buttons {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-top: 14px;
    }

    .area-buttons button,
    .primary-btn {
      min-height: 42px;
      border: 0;
      border-radius: 6px;
      font-weight: 800;
      cursor: pointer;
    }

    .area-buttons button {
      padding: 9px 8px;
      color: #17463b;
      background: #e7f3ed;
    }

    .area-buttons button.is-active {
      color: var(--white);
      background: var(--forest);
    }

    .service-strip {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: start;
        color: var(--white);
        background: linear-gradient(145deg, rgb(10, 61, 31), rgb(0, 107, 53));
        padding: 40px 20px;
    }

    .service-icon {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.16);
      box-shadow: inset 0 0 0 7px rgba(255,255,255,.14);
    }

    .service-icon svg {
      width: 31px;
      height: 31px;
    }

    .service-strip h3 {
      margin-bottom: 5px;
      color: var(--white);
      font-size: clamp(1.02rem, 1.6vw, 1.28rem);
      line-height: 1.12;
    }

    .service-strip p {
      margin: 0;
      color: rgba(255,255,255,.83);
      font-size: .84rem;
      line-height: 1.35;
    }

    .request-card {
      padding: 14px;
    }

    .request-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .request-form label {
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: .76rem;
      font-weight: 800;
      text-transform: uppercase;
    }

    .request-form label:nth-child(3),
    .request-form label:nth-child(4),
    .primary-btn {
      grid-column: 1 / -1;
    }

    .request-form input,
    .request-form select {
      min-width: 0;
      height: 40px;
      border: 1px solid rgba(9, 75, 60, .17);
      border-radius: 5px;
      padding: 0 10px;
      color: var(--ink);
      background: #fff;
      font-size: .94rem;
      outline: none;
    }

    .request-form input:focus,
    .request-form select:focus {
      border-color: rgba(15,107,79,.68);
      box-shadow: 0 0 0 3px rgba(37,166,106,.13);
    }

    .primary-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 16px;
      color: var(--white);
      background: #008246;
      font-size: 1rem;
	  font-weight: 700;
      text-transform: capitalize;		
    }

    .primary-btn svg {
      width: 19px;
      height: 19px;
    }

    .toast {
      position: absolute;
      right: clamp(16px, 3vw, 42px);
      top: clamp(16px, 3vw, 42px);
      z-index: 5;
      max-width: 340px;
      padding: 14px 16px;
      border-radius: 8px;
      color: var(--white);
      background: rgba(6, 63, 52, .94);
      box-shadow: var(--shadow);
      opacity: 0;
      transform: translateY(-12px);
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
      font-weight: 750;
    }

    .toast.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 1060px) {
      .bottom-panel {
        grid-template-columns: 1fr 1fr;
      }

      .request-card {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 760px) {
      .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
      }

      .search-wrap {
        width: 100%;
      }

      .map-shell {
        min-height: 0;
      }

      .map-stage {
        position: relative;
        min-height: 620px;
      }

      .legend {
        position: relative;
        left: auto;
        top: auto;
        margin: 16px;
      }

      .bottom-panel {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-template-columns: 1fr;
        margin: 0 16px 16px;
      }

      .service-strip,
      .request-card,
      .panel {
        background-color: rgba(255,255,255,.94);
      }

      .area-buttons {
        grid-template-columns: 1fr;
      }

      .request-form {
        grid-template-columns: 1fr;
      }

      .property-marker {
        width: 150px;
      }

      .property-marker .marker-label {
        left: 52px;
        top: 2px;
        transform: none;
        font-size: .78rem;
        min-width: 104px;
      }
    }