diff --git a/src/lib/components/map/Map.svelte b/src/lib/components/map/Map.svelte
index db0f1b2..6f05a42 100644
--- a/src/lib/components/map/Map.svelte
+++ b/src/lib/components/map/Map.svelte
@@ -1,6 +1,7 @@
@@ -129,8 +193,9 @@
{/each}
+
+
+ {#if userHasMovedMap && !isCenteredOnUser && $coordinates}
+
+ {/if}
@@ -381,6 +468,36 @@
object-fit: cover;
}
+ .recenter-button {
+ position: absolute;
+ top: 100px;
+ right: 20px;
+ width: 44px;
+ height: 44px;
+ background: white;
+ border: 2px solid rgba(0, 0, 0, 0.1);
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ transition: all 0.2s ease;
+ z-index: 10;
+ color: #2563eb;
+ }
+
+ .recenter-button:hover {
+ background: #f0f9ff;
+ border-color: #2563eb;
+ transform: scale(1.05);
+ box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
+ }
+
+ .recenter-button:active {
+ transform: scale(0.95);
+ }
+
@media (max-width: 768px) {
.map-container {
height: 300px;
@@ -390,5 +507,12 @@
top: 8px;
right: 8px;
}
+
+ .recenter-button {
+ bottom: 12px;
+ right: 12px;
+ width: 40px;
+ height: 40px;
+ }
}