.material-symbols--add-rounded {
  display: inline-block;
  width: 1.9em;
  height: 1.9em;
  color: rgb(0, 0, 0);
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 13H6q-.425 0-.712-.288T5 12t.288-.712T6 11h5V6q0-.425.288-.712T12 5t.713.288T13 6v5h5q.425 0 .713.288T19 12t-.288.713T18 13h-5v5q0 .425-.288.713T12 19t-.712-.288T11 18z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.fluent--location-arrow-32-filled {
  display: inline-block;
  width: 1em;
  height: 1em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M26.278 3.138c1.617-.622 3.206.967 2.584 2.585l-8.46 21.994c-.696 1.812-3.306 1.668-3.8-.209l-2.375-9.023a1 1 0 0 0-.712-.712l-9.023-2.375c-1.877-.494-2.02-3.104-.209-3.8z'/%3E%3C/svg%3E");
  background: rgb(12, 158, 255);
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}


.tabler--flag {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1-7 0a5 5 0 0 0-7 0zm0 16v-7'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  color: rgb(30, 30, 30);
}


.material-symbols--distance-outline-rounded {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22q-2.65 0-4.325-.837T6 19q0-.475.213-.875t.637-.75q.35-.25.763-.2t.662.4t.188.763T8.05 19q.325.4 1.5.7T12 20t2.45-.3t1.5-.7q-.35-.25-.413-.663t.188-.762t.663-.4t.762.2q.425.35.638.75T18 19q0 1.325-1.675 2.163T12 22m.025-5.5q2.475-1.825 3.725-3.662T17 9.15q0-2.55-1.625-3.85T12 4T8.625 5.3T7 9.15q0 1.675 1.225 3.488t3.8 3.862m-.625 1.925q-.3-.1-.55-.3q-2.95-2.35-4.4-4.587T5 9.15q0-1.775.638-3.113T7.275 3.8t2.25-1.35T12 2t2.475.45t2.25 1.35t1.638 2.238T19 9.15q0 2.15-1.45 4.388t-4.4 4.587q-.25.2-.55.3t-.6.1t-.6-.1M12 11q.825 0 1.413-.587T14 9t-.587-1.412T12 7t-1.412.588T10 9t.588 1.413T12 11m0-2'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  color: rgb(30, 30, 30);
}



.material-symbols--speed-4-outline-rounded {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11.2 15.8q.85.35 1.638.063t1.037-1.163q.55-1.85 1-3.65t.85-3.625q.1-.45-.312-.637t-.688.162q-1.15 1.5-2.262 2.988T10.25 13q-.525.75-.162 1.6t1.112 1.2M5.125 20q-.525 0-1-.238t-.75-.712q-.65-1.125-1-2.387T2.025 14q0-2.35.988-4.325T5.675 6.3Q7.1 5.125 8.838 4.525T12.4 4q.4.025.6.35t.15.725t-.363.662t-.712.263q-1.375-.025-2.7.45T7 7.8q-1.35 1.125-2.162 2.725T4.025 14q0 1.05.288 2.075T5.125 18H18.9q.575-.95.838-1.963T20 14q0-1.475-.562-2.9t-1.513-2.475q-.3-.35-.225-.725t.35-.625t.7-.262t.8.412q1.275 1.375 1.863 3.113T22 14q0 1.325-.325 2.613T20.65 19.05q-.25.475-.737.713T18.9 20zM12 13.975'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  color: rgb(30, 30, 30);
}


.mingcute--time-line {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none'%3E%3Cpath d='m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='black' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 2a8 8 0 1 0 0 16a8 8 0 0 0 0-16m0 2a1 1 0 0 1 .993.883L13 7v4.586l2.707 2.707a1 1 0 0 1-1.32 1.497l-.094-.083l-3-3a1 1 0 0 1-.284-.576L11 12V7a1 1 0 0 1 1-1'/%3E%3C/g%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  color: rgb(30, 30, 30);
}


.uil--check {
  display: inline-block;
  width: 1em;
  height: 1em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.71 7.21a1 1 0 0 0-1.42 0l-7.45 7.46l-3.13-3.14A1 1 0 1 0 5.29 13l3.84 3.84a1 1 0 0 0 1.42 0l8.16-8.16a1 1 0 0 0 0-1.47'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.f7--plus-circle-fill {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill='black' d='M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m-.07-12.234c-1.313 0-2.016-.961-2.016-2.32v-7.29h-7.687c-1.383 0-2.344-.726-2.344-2.015c0-1.336.89-2.086 2.344-2.086h7.687v-7.758c0-1.36.703-2.32 2.016-2.32c1.312 0 2.109.914 2.109 2.32v7.758h7.71c1.43 0 2.321.75 2.321 2.086c0 1.289-.937 2.015-2.32 2.015H30.04v7.29c0 1.406-.797 2.32-2.11 2.32'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  margin: 0px 2px;
}

body {
    font-family: "SN Pro", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F7F4;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
}

#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.sidebar {
  z-index: 100;
  width: 325px;
  height: fit-content;
  position: fixed;
  top: 15px;
  left: 15px;
  background-color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 36px;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0px 0px 20px rgb(215, 215, 215);

  &.expanded {
    height: fit-content;
    width: 350px;
    border-radius: 36px;
  }

  user-select: none;
  -webkit-user-select: none;
}

.sidebar.navigating {
  display: none;
}

.journey-intro {
    font-size: 34px;
    font-family: "SN Pro", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
    color: black;
    margin: 0;
    font-weight: 600;
    padding-left: 0px;
    transition: blur 2s ease;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 5px;
}

.add-trip {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, scale 0.12s ease;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.11);

  &:hover {
    background-color: rgba(56, 56, 56, 0.035);
  }

  &:active {
    scale: 0.97;
  }
}

.trip-details-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    text-align: center;
    color: rgb(116, 116, 116);
    margin-top: 10px;
    padding-bottom: 20px;
}

.trip-details-section-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  height: 100%;
  width: 100%;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
}

.header-deatils {
  font-size: 15px;
  font-weight: 500;
}

.instructions-click {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.trip-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(80, 80, 80);
}

.form-input {
  background: #F8F7F4;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #000;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.form-input::placeholder {
  color: rgb(190, 190, 190);
}

.date-display {
  background: #F8F7F4;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #000;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.date-display:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.start-btn {
  width: 100%;
  padding: 13px;
  border-radius: 30px;
  border: none;
  background: #39d07073;
  color: #1c6035;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  box-shadow: 0px 5px 20px rgba(74, 173, 128, 0.3);
  margin-top: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.start-btn:hover { opacity: 0.9; }
.start-btn:active { transform: scale(0.98); }

.user-marker, .destination-marker {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(15deg, #439eff, #51b3ff);
  border: 1.75px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.trip-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: left;
  height: fit-content;
  gap: 16px;
}

.trip-start-container {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
}

.begin-trip-btn {
  width: 75%;
  padding: 5px 13px;
  border-radius: 30px;
  border: none;
  background: #39d07055;
  color: #1c6035;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 7px;

  &:hover { background: #18b4515f; }
} 

.trip-times {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  gap: 5px;
}

.time-number {
  font-size: 38px;
  font-weight: 500;
  height: 1em;
}

.time-unit {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgb(116, 116, 116);
  text-transform: uppercase;
  margin: 0;
  width: 100%;
  text-wrap: nowrap;
  text-align: center;
}

.trip-top-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.trip-name {
  margin-left: 10px;
  color: rgb(120, 120, 120);
}

.remove-trip {
  color: rgb(255, 0, 0);
  cursor: pointer;
  transition: color 0.15s ease;

  &:hover {
    color: rgb(203, 0, 0);
  }
}

.trip-route-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.trip-route {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  color: black;
  width: 100%;
  margin-left: 15px;
}

.trip-origin, .trip-destination {
  font-weight: 500;
  font-size: 16px;
}

.trip-details {
  color: rgb(120, 120, 120);
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-left: 18px;
}

.connect-trip {
  width: 100%;
  padding: 11px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: #8f8f8f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(137, 137, 137, 0.2);
  transition: all 0.15s ease;

  &:hover { background: rgba(115, 115, 115, 0.06); }
  &:active { transform: scale(0.97); }
}

.connect-trip.selected {
  background: #0f0f0f;
  color: #f4f4f4;
  border: 1px solid transparent;
}

.trip-picker {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 5px;
}

.trip-pick-btn {
  padding: 8px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #8f8f8f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(137, 137, 137, 0.2);
  transition: all 0.15s ease;

  &:hover { background: rgba(115, 115, 115, 0.06); }
  &:active { transform: scale(0.97); }
} 

.trip-pick-btn.selected {
  background: #2676ff69;
  color: #2739ff;
  border: 1px solid transparent;
}

.connecting-tag {
  background: #42ff2d39;
  color: #1d8700;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  cursor: default;
}


.bottom-bar {
  max-width: calc(100vw - 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 40px;
  padding: 18px 10px;
  box-sizing: border-box;
  transition: bottom 0.6s ease-in-out;
   background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0px 0px 20px rgb(224, 224, 224);
  user-select: none;
  -webkit-user-select: none;
}

.bottom-bar.active {
  bottom: 20px;
}


.time-bottom-div, .speed-bottom-div, .distance-bottom-div, .arrival-bottom-div {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  text-align: center;
  align-items: center;
  width: 180px;
  max-width: 180px;
}

.end-route-btn {
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 10px 50px;
  text-wrap: nowrap;
  color: #ff3b30;
  cursor: pointer;
  border: none;
  font-size: 20px;
  font-weight: 500;
  &:hover {
    color: #e0352a;
  }
}

@media screen and (max-width: 975px) {
  .time-bottom-div, .speed-bottom-div, .distance-bottom-div, .arrival-bottom-div {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    text-align: center;
    align-items: center;
    width: 140px;
    max-width: 140px;
    font-size: 18px;
  }
}

@media screen and (max-width: 800px) {
  .time-bottom-div, .speed-bottom-div, .distance-bottom-div, .arrival-bottom-div {
    font-size: 14px;
    width: 103px;
    max-width: 103px;
    gap: 7px;
  }

  .end-route-btn {
    font-size: 16px;
    padding: 10px 20px;
  }
}

.floating-btns {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  z-index: 200;
}

.fly-to-car-btn,
.photo-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgb(224, 224, 224);
  transition: all 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.fly-to-car-btn {
  opacity: 0;
  pointer-events: none;
}

.fly-to-car-btn.active {
  opacity: 1;
  pointer-events: all;
}

.photo-btn {
  opacity: 0;
  pointer-events: none;
}

.photo-btn.active {
  opacity: 1;
  pointer-events: all;
}

.fly-to-car-btn:hover,
.photo-btn:hover {
  transform: scale(1.1);
}

.tab-toggle {
  display: flex;
  flex-direction: row;
  background: #f0efec;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.tab-btn {
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: rgb(120, 120, 120);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #1a1a1a;
  color: #fff;
}

.top-bar-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.history-name {
  font-size: 13px;
  font-weight: 600;
  color: rgb(100, 100, 100);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-route {
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

.history-meta {
  font-size: 13px;
  color: rgb(130, 130, 130);
}

.go-again-btn {
  margin-top: 4px;
  width: fit-content;
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  background: #f0efec;
  color: #333;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.go-again-btn:hover {
  background: #e2e0dc;
}

.history-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  text-align: center;
  color: rgb(116, 116, 116);
  margin-top: 10px;
  padding-bottom: 20px;
}

.photo-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  color: #333;
}

.photo-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  padding: 16px;
  z-index: 1000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  max-width: 320px;
  width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-popup img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 260px;
}

.photo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.photo-popup-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgb(130,130,130);
}

.photo-popup-nav button {
  border: none;
  background: #f0efec;
  border-radius: 12px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.photo-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}

.arrived-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.arrived-banner.show {
  opacity: 1;
}

@media screen and (max-width: 500px) {
  .bottom-bar {
    width: calc(100vw - 24px);
    padding: 12px 4px;
    border-radius: 32px;
  }

  .time-bottom-div, .speed-bottom-div, .distance-bottom-div, .arrival-bottom-div {
    font-size: 11px;
    width: auto;
    max-width: none;
    flex: 1;
    gap: 4px;
  }

  .route-info-div {
    font-size: 11px;
  }

  .end-route-btn {
    font-size: 12px;
    padding: 8px 10px;
  }

  .divider {
    height: 30px;
  }

  .tabler--flag,
  .material-symbols--distance-outline-rounded,
  .material-symbols--speed-4-outline-rounded,
  .mingcute--time-line {
    width: 1em;
    height: 1em;
  }
}

.marker-label {
  position: absolute;
  left: 18px;
  bottom: 5px;
  transform: translateY(50%);
  background-color: rgb(12, 158, 255);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 400;
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  white-space: nowrap;
  text-wrap: nowrap;
  box-shadow: 0 0px 6px rgba(0,0,0,0.12);
  pointer-events: none;
}

.route-info-div {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400;
}

.divider {
  width: 1px;
  height: 45px;
  background: #e5e5e5;
};
.material-symbols--add-a-photo-outline-rounded {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5zm0-8c-1.65 0-3 1.35-3 3s1.35 3 3 3s3-1.35 3-3s-1.35-3-3-3z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  color: rgb(30, 30, 30);
}