.ratio1x1{aspect-ratio: 1 / 1}
.fitCover{object-fit: cover}
.fitContain{object-fit: contain}

/* Floating Widget Styles */
.floating-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  pointer-events: none;
}

.floating-widget > * {
  pointer-events: auto;
}

.floating-icon-btn {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-right: 0;
}

.floating-icon-btn:hover {
  transform: translateY(-5px);
  color: #fff;
  opacity: 0.9;
}

.floating-bottom-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  position: relative;
}

.floating-book-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 24px;
  height: 50px;
  line-height: 50px;
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.floating-book-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
  opacity: 0.9;
}

/* Override #back-to-top original fixed positioning to fit in the row */
.floating-bottom-row #back-to-top {
  position: relative;
  bottom: auto !important;
  right: auto !important;
  margin: 0;
  border: none;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: var(--primary-color);
  color: #fff !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.floating-bottom-row #back-to-top:before {
  color: #fff !important;
  line-height: 50px;
}

.floating-bottom-row #back-to-top:hover {
  background: var(--primary-color);
  opacity: 0.9;
}

.floating-bottom-row #back-to-top.hide {
  /* Using opacity transition from original styles */
}

/* Lost Item Card */
.lost-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

.lost-item-card:hover img {
  transform: scale(1.06);
}