
.station-card {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
   border: 1px solid #cccccc;
  transition: 0.3s;
}

.station-card.visited {
  opacity: 1;
  border: 3px solid #3d4a41;
}

.station-card.visited .station-image-container {
  opacity: 1;
}

.station-card.just-scanned {
  background-color: #cbbb9f;
}

.station-image-container {
  position: relative;
  width: 100%;
  height: 0;
  opacity: 0.4;
  padding-bottom: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
}

.station-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(61, 74, 65, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
}

.station-title {
  font-weight: bold;
  margin-bottom: 6px;
}
	  
	  
.station-card.list-view {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: 900px;
  margin: 16px auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  opacity: 1;
}

.station-card.list-view .station-image-container {
  width: 200px;
  flex-shrink: 0;
  height: 100%;
}

.station-card.list-view .station-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}

.station-card.list-view .overlay {
  flex-grow: 1;
  background-color: #f6f6f6;
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.station-card.list-view .overlay .station-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #3d4a41;
}

.station-card.list-view .overlay a {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .station-card.list-view {
    flex-direction: column;
  }

  .station-card.list-view .station-image-container {
    width: 100%;
    height: 200px;
  }

  .station-card.list-view .overlay {
    padding: 12px;
  }
}
	  