/* Directions redesign (owner file 2026-12-03): map card, landmark, CHECK WITH MAPS, full map modal */
.dm /* Interactive map preview */
    .map-card {
      position: relative;
      height: 406px;
      overflow: hidden;
      isolation: isolate;
      border: 1px solid #2b3527;
      border-radius: 18px;
      background: #0a120c;
      box-shadow: inset 0 0 45px rgba(7, 20, 9, 0.45);
    }
.dm #preview-map, .dm #expanded-map {
      position: absolute;
      inset: 0;
      background: #0a120c;
    }
.leaflet-container {
      font-family: var(--body);
    }
.dm #preview-map .leaflet-tile-pane {
      filter: saturate(0.62) hue-rotate(28deg) brightness(0.71) contrast(1.08);
    }
.dm #expanded-map .leaflet-tile-pane {
      filter: saturate(0.75) hue-rotate(18deg) brightness(0.86) contrast(1.04);
    }
.dm .map-vignette {
      position: absolute;
      inset: 0;
      z-index: 420;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 52%, rgba(197, 255, 49, 0.055), transparent 29%),
        linear-gradient(180deg, rgba(4, 12, 7, 0.3), transparent 23%, transparent 73%, rgba(4, 10, 6, 0.63));
      box-shadow: inset 0 0 55px rgba(3, 12, 6, 0.36);
    }
.dm .map-open-hit {
      position: absolute;
      inset: 0;
      z-index: 700;
      width: 100%;
      height: 100%;
      border-radius: inherit;
      cursor: zoom-in;
      background: transparent;
    }
.dm .map-open-hit:focus-visible {
      outline-offset: -4px;
    }
.dm .distance-control {
      position: absolute;
      z-index: 800;
      display: flex;
      align-items: center;
      gap: 8px;
      pointer-events: auto;
    }
.dm .distance-button {
      min-width: 58px;
      height: 30px;
      padding: 0 12px;
      border: 1px solid #3b4434;
      border-radius: 999px;
      color: #e2e6dc;
      background: rgba(16, 23, 16, 0.87);
      backdrop-filter: blur(8px);
      font-family: var(--cond);
      font-size: 10px;
      line-height: 1;
      font-weight: 700;
      letter-spacing: 0.7px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
      transition: transform 0.15s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }
.dm .distance-button:hover {
      border-color: #657157;
      background: rgba(30, 39, 26, 0.94);
    }
.dm .distance-button:active {
      transform: scale(0.96);
    }
.dm .distance-button.active {
      color: #1a2305;
      border-color: var(--acid);
      background: var(--acid);
      box-shadow: 0 0 16px rgba(215, 255, 63, 0.15);
    }
.dm .zoom-stack {
      position: absolute;
      z-index: 800;
      width: 40px;
      overflow: hidden;
      border: 1px solid #374131;
      border-radius: 13px;
      background: rgba(15, 22, 15, 0.9);
      backdrop-filter: blur(9px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }
.dm .zoom-button {
      width: 100%;
      height: 38px;
      display: grid;
      place-items: center;
      color: var(--acid);
      transition: background 0.16s ease, color 0.16s ease;
    }
.dm .zoom-button + .zoom-button {
      border-top: 1px solid #374131;
    }
.dm .zoom-button:hover {
      color: #efffc0;
      background: rgba(215, 255, 63, 0.1);
    }
.dm .zoom-button:active {
      background: rgba(215, 255, 63, 0.18);
    }
.dm .zoom-button svg {
      width: 17px;
      height: 17px;
    }
.dm .user-area-pill {
      position: absolute;
      left: 11px;
      bottom: 43px;
      z-index: 800;
      display: flex;
      align-items: center;
      gap: 7px;
      max-width: calc(100% - 22px);
      min-height: 31px;
      padding: 6px 11px;
      border: 1px solid rgba(215, 255, 63, 0.32);
      border-radius: 999px;
      color: #e0e5d6;
      background: rgba(14, 22, 12, 0.87);
      backdrop-filter: blur(8px);
      font-size: 11px;
      font-weight: 600;
      pointer-events: none;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.24);
    }
.dm .user-area-pill svg {
      flex: 0 0 auto;
      width: 13px;
      height: 13px;
      color: #eef4df;
    }
.dm .map-footer {
      position: absolute;
      right: 12px;
      bottom: 10px;
      left: 14px;
      z-index: 800;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 10px;
      pointer-events: none;
    }
.dm .map-scale {
      display: flex;
      align-items: center;
      gap: 7px;
      color: #abb4a2;
      font-family: var(--cond);
      font-size: 9px;
      font-weight: 600;
      white-space: nowrap;
    }
.dm .scale-line {
      position: relative;
      width: 35px;
      height: 7px;
      border-right: 1px solid #aab79d;
      border-bottom: 1px solid #aab79d;
      border-left: 1px solid #aab79d;
    }
.dm .map-attribution {
      color: #6e7969;
      font-size: 8.5px;
      line-height: 1.2;
      text-align: right;
      text-shadow: 0 1px 3px #000;
    }
.dm /* Leaflet ground and place markers */
    .ground-div-icon, .poi-div-icon, .user-location-div-icon {
      border: 0;
      background: transparent;
    }
.dm .target-marker {
      position: relative;
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
    }
.dm .target-marker > svg {
      position: relative;
      z-index: 2;
      width: 36px;
      height: 36px;
      filter: drop-shadow(0 0 10px rgba(215, 255, 63, 0.55));
    }
.dm .target-pulse {
      position: absolute;
      width: 40px;
      height: 40px;
      border: 1px solid rgba(215, 255, 63, 0.46);
      border-radius: 50%;
      animation: targetPulse 2.5s ease-out infinite;
    }
@keyframes targetPulse {
      0% { transform: scale(0.68); opacity: 0.85; }
      75%, 100% { transform: scale(1.55); opacity: 0; }
    }.leaflet-tooltip.ground-tooltip {
      padding: 4px 8px;
      border: 1px solid #e1ff69;
      border-radius: 5px;
      color: #1a2208;
      background: var(--acid);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 12px rgba(215, 255, 63, 0.15);
      font-size: 11px;
      line-height: 1.2;
      font-weight: 800;
      white-space: nowrap;
    }
.leaflet-tooltip.poi-tooltip {
      padding: 0;
      border: 0;
      color: #a5aea0;
      background: transparent;
      box-shadow: none;
      font-size: 9.5px;
      line-height: 1.2;
      font-weight: 500;
      white-space: nowrap;
      text-shadow: 0 1px 3px #000, 0 1px 5px #000;
    }
.dm .ground-tooltip::before, .dm .poi-tooltip::before {
      display: none !important;
    }
.dm .poi-marker {
      width: 25px;
      height: 25px;
      display: grid;
      place-items: center;
      border: 1px solid #596553;
      border-radius: 50%;
      color: #d3b58e;
      background: rgba(15, 24, 16, 0.88);
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
    }
.dm .poi-marker svg {
      width: 13px;
      height: 13px;
    }
.dm .poi-marker.fuel {
      color: #ff7767;
      border-color: #6e5b4a;
    }
.dm .poi-marker.ground {
      color: #d9e6c8;
    }
.dm .poi-marker.temple {
      color: #ffc267;
    }
.user-location-marker {
      position: relative;
      width: 24px;
      height: 24px;
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: 50%;
      background: #269ff0;
      box-shadow: 0 0 0 7px rgba(38, 159, 240, 0.18), 0 0 18px rgba(38, 159, 240, 0.6);
    }
.dm /* Landmark and primary action */
    .landmark-card {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 67px;
      padding: 11px 13px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: linear-gradient(150deg, #141813, #10130f);
    }
.dm .landmark-icon {
      flex: 0 0 auto;
      width: 39px;
      height: 39px;
      display: grid;
      place-items: center;
      border: 1px solid #35432b;
      border-radius: 50%;
      color: var(--heat);
      background: #192116;
    }
.dm .landmark-icon svg {
      width: 19px;
      height: 19px;
      filter: drop-shadow(0 3px 5px rgba(255, 98, 82, 0.2));
    }
.dm .landmark-label {
      display: block;
      margin-bottom: 4px;
      color: #788271;
      font-size: 9px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: 2px;
    }
.dm .landmark-text {
      margin: 0;
      color: #e9ece3;
      font-size: 13.5px;
      line-height: 1.32;
      font-weight: 700;
    }
.dm .google-maps-button {
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid #e2ff68;
      border-radius: 12px;
      color: #172003;
      background: linear-gradient(180deg, #dfff50, #d3fa35);
      box-shadow: 0 6px 22px rgba(215, 255, 63, 0.09);
      font-size: 15.5px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: 2.5px;
      transition: transform 0.16s ease, filter 0.18s ease, box-shadow 0.18s ease;
    }
.dm .google-maps-button:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
      box-shadow: 0 9px 28px rgba(215, 255, 63, 0.18);
    }
.dm .google-maps-button:active {
      transform: scale(0.985);
    }
.dm .google-maps-button svg {
      width: 18px;
      height: 18px;
    }
.dm /* Expanded interactive map */
    .map-modal {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      background: rgba(3, 5, 3, 0.88);
      backdrop-filter: blur(10px);
      transition: opacity 0.22s ease, visibility 0.22s ease;
    }
.map-modal.is-open {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
    }
.dm .map-dialog {
      width: min(100%, 980px);
      height: min(860px, calc(100dvh - 40px));
      min-height: 420px;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      overflow: hidden;
      border: 1px solid #303a2a;
      border-radius: 22px;
      background: #0c100b;
      box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
      transform: translateY(15px) scale(0.98);
      transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
.map-modal.is-open .map-dialog {
      transform: translateY(0) scale(1);
    }
.map-modal-header {
      min-height: 68px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border-bottom: 1px solid #293125;
      background: #11150f;
    }
.map-modal-header .icon-button {
      width: 42px;
      height: 42px;
      border-radius: 12px;
    }
.map-modal-heading {
      flex: 1;
      min-width: 0;
    }
.map-modal-heading h2 {
      margin: 0;
      overflow: hidden;
      color: #f1f4eb;
      font-size: 16px;
      line-height: 1.25;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }
.map-modal-heading p {
      margin: 3px 0 0;
      color: #8b9583;
      font-size: 11px;
      line-height: 1.2;
    }
.dm .expanded-map-shell {
      position: relative;
      min-height: 0;
      overflow: hidden;
      background: #0a120c;
    }
.dm .expanded-distance {
      top: 16px;
      left: 16px;
    }
.dm .expanded-distance .distance-button {
      height: 34px;
      min-width: 63px;
    }
.dm .expanded-zoom {
      top: 16px;
      right: 16px;
      width: 44px;
    }
.dm .expanded-zoom .zoom-button {
      height: 43px;
    }
.dm .map-gesture-hint {
      position: absolute;
      top: 68px;
      left: 50%;
      z-index: 800;
      max-width: calc(100% - 130px);
      padding: 7px 12px;
      transform: translateX(-50%);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 999px;
      color: #c4ccbb;
      background: rgba(12, 18, 12, 0.83);
      backdrop-filter: blur(8px);
      font-size: 10px;
      font-weight: 600;
      text-align: center;
      white-space: nowrap;
      pointer-events: none;
      transition: opacity 0.35s ease, transform 0.35s ease;
    }
.dm .map-gesture-hint.is-hidden {
      opacity: 0;
      transform: translate(-50%, -6px);
    }
.dm .zoom-readout {
      position: absolute;
      top: 110px;
      right: 16px;
      z-index: 800;
      padding: 5px 8px;
      border: 1px solid #36402f;
      border-radius: 7px;
      color: #aab5a1;
      background: rgba(12, 18, 12, 0.84);
      font-family: var(--cond);
      font-size: 8px;
      font-weight: 600;
      letter-spacing: 0.7px;
      pointer-events: none;
    }
.dm .utility-controls {
      position: absolute;
      right: 16px;
      bottom: 116px;
      z-index: 800;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
.dm .utility-button {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid #3b4634;
      border-radius: 12px;
      color: var(--acid);
      background: rgba(14, 21, 14, 0.91);
      backdrop-filter: blur(9px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
      transition: background 0.17s ease, transform 0.15s ease;
    }
.dm .utility-button:hover {
      background: rgba(39, 50, 28, 0.96);
    }
.dm .utility-button:active {
      transform: scale(0.95);
    }
.dm .utility-button svg {
      width: 19px;
      height: 19px;
    }
.dm .expanded-place-card {
      position: absolute;
      right: 16px;
      bottom: 25px;
      left: 16px;
      z-index: 800;
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 11px 12px;
      border: 1px solid rgba(118, 137, 99, 0.38);
      border-radius: 15px;
      background: rgba(14, 20, 13, 0.92);
      backdrop-filter: blur(14px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
    }
.dm .expanded-place-icon {
      flex: 0 0 auto;
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      color: #172003;
      background: var(--acid);
    }
.dm .expanded-place-icon svg {
      width: 20px;
      height: 20px;
    }
.dm .expanded-place-copy {
      flex: 1;
      min-width: 0;
    }
.dm .expanded-place-copy strong {
      display: block;
      overflow: hidden;
      color: #f0f3e9;
      font-size: 13px;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
.dm .expanded-place-copy span {
      display: block;
      margin-top: 4px;
      overflow: hidden;
      color: #9da794;
      font-size: 10.5px;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
.dm .directions-link {
      flex: 0 0 auto;
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 0 11px;
      border: 1px solid var(--acid);
      border-radius: 9px;
      color: var(--acid);
      background: rgba(215, 255, 63, 0.06);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.8px;
      transition: color 0.17s ease, background 0.17s ease;
    }
.dm .directions-link:hover {
      color: #172003;
      background: var(--acid);
    }
.dm .directions-link svg {
      width: 13px;
      height: 13px;
    }
.dm .expanded-attribution {
      position: absolute;
      right: 0;
      bottom: 6px;
      left: 0;
      z-index: 810;
      color: #707a68;
      font-size: 8px;
      text-align: center;
      pointer-events: auto;
    }
.dm .expanded-attribution a {
      text-decoration: underline;
      text-underline-offset: 2px;
    }
@media (max-width: 640px) {
.map-modal {
        padding: 0;
      }
.dm .map-dialog {
        width: 100%;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
      }
.map-modal-header {
        padding-top: max(10px, env(safe-area-inset-top));
      }
.dm .expanded-place-card {
        bottom: calc(25px + env(safe-area-inset-bottom));
      }
.dm .expanded-attribution {
        bottom: calc(6px + env(safe-area-inset-bottom));
      }
.dm .utility-controls {
        bottom: calc(116px + env(safe-area-inset-bottom));
      }

}@media (max-width: 420px) {
.dm .map-card {
        height: 402px;
      }
.dm .google-maps-button {
        font-size: 14.5px;
        letter-spacing: 2.2px;
      }

}@media (max-width: 355px) {
.dm .map-attribution {
        font-size: 7.5px;
      }
.dm .map-gesture-hint {
        max-width: calc(100% - 100px);
        font-size: 9px;
      }
.dm .expanded-place-copy span {
        max-width: 125px;
      }
.dm .directions-link {
        padding: 0 9px;
        font-size: 8px;
      }

}
.map-modal.is-open { display:flex; }
.dm .map-card { margin: 14px 0; }
.dm .google-maps-button { text-decoration:none; }
.dm-fallback { position:absolute; inset:0; display:grid; place-items:center; padding:30px; color:#a8b29f; background:#0a120c; text-align:center; font-size:13px; }
.dm .dm-ib { width:40px; height:40px; border-radius:12px; border:1px solid #2b3426; background:#141a13; color:#f0f2ec; display:grid; place-items:center; cursor:pointer; text-decoration:none; }
.dm .dm-ib svg { width:18px; height:18px; }
.dm .map-modal-header { display:flex; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid #1f261c; background:#0c100b; }
.dm .map-modal-heading { flex:1; min-width:0; }
.dm .map-modal-heading h2 { margin:0; font-size:17px; font-family: var(--cond); letter-spacing:.02em; }
.dm .map-modal-heading p { margin:2px 0 0; font-size:12px; color:#a0a69b; }
.dm .preview-distance { top: 11px; left: 11px; }
.dm .preview-zoom { top: 11px; right: 11px; }
.dm .expanded-distance { top: 14px; left: 14px; }
.dm .expanded-zoom { top: 14px; right: 14px; }

.dm .dm-dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(.72) contrast(1.05) saturate(.25); }
