  /* Autocomplete Styles */
  .pac-container {
    z-index: 2100000 !important;
    background-color: #1a1a2e !important;
    border: 1px solid rgba(252, 211, 77, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(252, 211, 77, 0.15) !important;
    margin-top: 6px !important;
    padding: 4px 0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    overflow: hidden !important;
  }

  .pac-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #e2e8f0;
  }

  .pac-item:hover {
    background-color: rgba(59, 130, 246, 0.15);
    border-left: 3px solid #fcd34d;
  }

  .pac-item-query {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
  }

  .pac-logo::after {
    display: none;
  }

  .pac-icon {
    display: none;
  }

  /* Modal Animation */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes modalSlideUp {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.97);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes modalBackdropIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Urgency Buttons */
  .urgency-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }

  .urgency-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }

  .urgency-btn.active {
    color: #fff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Urgency button row — single line on desktop, 2x2 grid on small
     screens so "Pick a time" never wraps into a tall narrow button */
  .urgency-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    position: relative;
  }

  .urgency-row .urgency-btn {
    height: 44px;
    padding: 0 10px;
    white-space: nowrap;
  }

  @media (max-width: 520px) {
    .urgency-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }

    .urgency-row .urgency-btn {
      width: 100%;
    }
  }

  /* Responsive Utilities */
  .handoff-desktop-only {
    display: block;
  }

  .handoff-mobile-only {
    display: none !important;
  }

  @media (max-width: 768px) {
    .handoff-desktop-only {
      display: none !important;
    }

    .handoff-mobile-only {
      display: block !important;
    }

    .handoff-step-2 {
      display: none;
    }
  }

  /* Steps */
  .handoff-step {
    transition: opacity 0.3s ease;
  }

  .handoff-step-2 {
    display: none;
  }

  /* Type Select Buttons */
  .type-select-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .type-select-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .type-select-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
  }

  /* Map Heights and Transitions */
  #handoff-map {
    height: 200px;
    transition: height 0.3s ease;
    resize: none;
    overflow: hidden !important;
    position: relative;
  }

  #handoff-map.expanded {
    height: 450px !important;
  }

  @media (max-width: 768px) {
    #handoff-map {
      height: 200px !important;
    }

    #handoff-map.expanded {
      height: 400px !important;
    }
  }

  /* Modal Content Styling */
  #handoffModal {
    animation: modalBackdropIn 0.3s ease;
  }

  #handoffModal .handoff-modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #handoffModal .handoff-modal-content::-webkit-scrollbar {
    width: 6px;
  }

  #handoffModal .handoff-modal-content::-webkit-scrollbar-track {
    background: transparent;
  }

  #handoffModal .handoff-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
  }

  #handoffModal .handoff-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  /* Accordion hover effects */
  .accordion-header:hover {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* Upload button hover */
  .upload-btn-hover:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 25px rgba(165, 243, 252, 0.6) !important;
    transform: translateY(-1px);
  }

  .space-particles {
    position: absolute;
    inset: -50%;
    /* Extend way beyond to allow rotation */
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    animation: galaxy-spin 100s linear infinite;
  }

  /* Generated via box-shadow for EXTREME performance & density */
  .space-particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    box-shadow:
      -400px -300px 2px white, 300px 400px 3px #00f0ff, -200px 100px 2px white, 150px -250px 3px #ff00ff,
      400px -100px 2px white, -350px 200px 3px #ffd700, 100px 300px 2px white, -500px -400px 3px #00f0ff,
      250px 50px 2px white, -150px -150px 3px #ff00ff, 500px 200px 2px white, -300px 350px 2px white,
      50px -400px 3px #ffd700, 350px -300px 2px white, -450px 50px 3px #00f0ff, 200px 450px 2px white,
      -100px -200px 2px white, 450px 150px 3px #ff00ff, -250px -50px 2px white, 300px -350px 2px white,
      -400px 400px 3px #ffd700, 150px 100px 2px white, -200px -450px 3px #00f0ff, 400px 300px 2px white,
      /* More dense field */
      10px 10px 1px white, -20px 40px 1px white, 50px -30px 1px white, -60px -80px 1px white,
      120px 40px 1px white, -150px 80px 1px white, 200px -120px 1px white, -240px -40px 1px white,
      300px 220px 1px white, -350px -180px 1px white, 400px 60px 1px white, -420px 300px 1px white,
      15px -200px 1px white, -85px 250px 1px white, 130px -350px 1px white, -280px 150px 1px white;
    opacity: 0.9;
  }

  .space-particles::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 50% 50%, rgba(20, 100, 255, 0.1), transparent 60%),
      radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.15), transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.15), transparent 50%),
      /* Bright glowing stars */
      radial-gradient(3px 3px at 100px 100px, #fff, transparent),
      radial-gradient(4px 4px at 300px 400px, #a5f3fc, transparent),
      /* Cyan Star */
      radial-gradient(3px 3px at 500px 200px, #fbcfe8, transparent),
      /* Pink Star */
      radial-gradient(4px 4px at 200px 500px, #fde047, transparent);
    /* Gold Star */
    background-size: 100% 100%, 100% 100%, 100% 100%, 300px 300px, 400px 400px, 350px 350px, 500px 500px;
    animation: galaxy-spin 150s linear infinite reverse;
    mix-blend-mode: screen;
  }

  @keyframes galaxy-spin {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  .premium-button-style {
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #FFF !important;
    border: none;
    border-radius: 50px !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  .premium-button-style:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  }

  .premium-button-style::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s;
  }

  .premium-button-style:hover::before {
    left: 100%;
    transition: 0.5s ease-in-out;
  }

  .premium-button-blue {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.5);
  }

  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }

  /* 3D Map Styles */
  #handoff-map-3d-wrapper {
    display: none;
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.05);
    transition: all 0.4s ease;
  }

  #handoff-map-3d-wrapper.active {
    display: block;
  }

  #handoff-map-3d-wrapper:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.35), inset 0 0 30px rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.6);
  }

  gmp-map-3d {
    width: 100%;
    height: 350px;
    display: block;
    border-radius: 12px;
  }

  gmp-map-3d.expanded {
    height: 550px !important;
  }

  /* ── Handoff map toolbar (Draw / Undo / Clear / counter / Done) ── */
  .handoff-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }

  .handoff-map-toolbar .hmt-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }

  .hmt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .hmt-badge {
    display: none;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  /* ── Map overlay controls (Expand / Full Screen / Recenter) ── */
  .map-overlay-controls {
    position: absolute;
    bottom: 45px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: calc(100% - 20px);
  }

  .map-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 5, 30, 0.8);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
    white-space: nowrap;
  }

  .map-overlay-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.8);
    color: #fff;
  }

  @media (max-width: 480px) {
    .hmt-btn {
      height: 34px;
      padding: 0 11px;
      font-size: 12px;
    }

    .map-overlay-btn {
      padding: 6px 9px;
      font-size: 11px;
    }
  }

  .map-dimension-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 4px;
    position: relative;
    overflow: hidden;
  }

  .map-dim-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
  }

  .map-dim-btn.active-2d {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4), 0 0 0 1px rgba(6, 182, 212, 0.3);
  }

  .map-dim-btn.active-3d {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.3);
  }

  .map-dim-btn:hover:not(.active-2d):not(.active-3d) {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
  }

  /* 3D Map Camera Controls */
  .map3d-controls {
    display: none;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
  }

  .map3d-controls.visible {
    display: flex;
  }

  .cam-ctrl-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cam-ctrl-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: translateY(-1px);
  }

  .cam-ctrl-btn i {
    font-size: 12px;
    color: #a78bfa;
  }

  /* 3D Map Custom Marker Styles */
  .marker-3d-custom {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .marker-3d-pin {
    width: 44px;
    height: 44px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    animation: markerBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
  }

  .marker-3d-pin i {
    transform: rotate(45deg);
    font-size: 18px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  }

  .marker-3d-pulse {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    animation: markerShadowPulse 2s infinite;
  }

  .marker-3d-label {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
  }

  .marker-3d-custom:hover .marker-3d-label {
    opacity: 1;
  }

  @keyframes markerBounceIn {
    0% {
      transform: rotate(-45deg) scale(0) translateY(-30px);
      opacity: 0;
    }

    60% {
      transform: rotate(-45deg) scale(1.1) translateY(2px);
    }

    100% {
      transform: rotate(-45deg) scale(1) translateY(0);
      opacity: 1;
    }
  }

  @keyframes markerShadowPulse {

    0%,
    100% {
      transform: translateX(-50%) scale(1);
      opacity: 0.3;
    }

    50% {
      transform: translateX(-50%) scale(1.5);
      opacity: 0.1;
    }
  }

  /* Circular 3D Marker Style */
  .marker-3d-circle-wrapper {
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateX(60deg);
    /* Tilt to lay flatter on terrain */
    animation: circlePopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .marker-3d-circle-disc {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.25);
    border: 3px solid #8b5cf6;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), inset 0 0 15px rgba(139, 92, 246, 0.2);
  }

  .marker-3d-circle-wrapper i {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 24px;
    transform: rotateX(-60deg) translateY(-10px);
    /* Counter-rotate to stand up */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  }

  @keyframes circlePopIn {
    0% {
      transform: rotateX(60deg) scale(0);
      opacity: 0;
    }

    100% {
      transform: rotateX(60deg) scale(1);
      opacity: 1;
    }
  }

  /* 3D Badge */
  .badge-3d-glow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    animation: glowPulse3d 3s ease-in-out infinite;
  }

  @keyframes glowPulse3d {

    0%,
    100% {
      box-shadow: 0 0 4px rgba(139, 92, 246, 0.2);
    }

    50% {
      box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    }
  }

  @media (max-width: 768px) {
    gmp-map-3d {
      height: 280px;
    }

    gmp-map-3d.expanded {
      height: 450px !important;
    }

    /* ── Task-modal maps on mobile: full-bleed and taller so they read
       as the hero of the Location section (no side gaps, no dead space
       below the map — the 280px global rule above left a hole under the
       350px container). Overrides scoped to the modal map only. ── */
    #handoff-map-2d-wrapper,
    #handoff-map-3d-wrapper {
      margin-left: -16px;
      margin-right: -16px;
      width: calc(100% + 32px);
      border-radius: 0;
      border-left: none;
      border-right: none;
    }

    #handoff3DMapContainer,
    #handoff3DMapContainer gmp-map-3d,
    #handoff-map {
      border-radius: 0 !important;
    }

    #handoff3DMapContainer gmp-map-3d {
      height: 420px;
    }

    #handoff3DMapContainer gmp-map-3d.expanded {
      height: 520px !important;
    }

    #handoff-map {
      height: 350px !important;
    }

    #handoff-map.expanded {
      height: 450px !important;
    }
  }

  .hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
