body {
  background-color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #202020;
  font-size: 16px;
  padding-bottom: 300px;
}

h1, h4, h5 {
  font-weight: 600;
}

/* 主頁地圖 */
#map {
  height: 360px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 1rem;
}

/* 行程卡片 */
.trip-card {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  background-color: #fff;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}


.trip-card:hover, .trip-card.selected {
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.trip-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.trip-card .no-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f2f2f2;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.trip-card-body {
  padding: 10px 12px;
}

.trip-card-body h6 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-card-body small {
  font-size: 12px;
  color: #777;
}

/* 建立行程按鈕 */
#add-plan-btn {
  font-size: 14px;
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#add-plan-btn:hover {
  background-color: #e2e2e2;
}

/* 搜尋結果 */
#inline-search-results, #modal-search-results {
  max-height: 250px;
  overflow-y: auto;
}

/* 底部滑出 Modal 的自訂樣式 */
.bottom-modal .modal-dialog {
  position: fixed;
  bottom: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  transition: transform 0.3s ease-out;
  transform: translateY(100%);
  pointer-events: none;
}

.bottom-modal.show .modal-dialog {
  transform: translateY(0);
  pointer-events: auto;
}

.bottom-modal .modal-content {
  border-radius: 15px 15px 0 0;
  height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.bottom-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
}

#modal-map {
  height: 250px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}
.recommend-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  transform: translateY(70%);
  z-index: 999;
}

.recommend-sheet.expanded {
  transform: translateY(0%);
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 3px;
  margin: 10px auto;
}

.sheet-content {
  padding: 0 16px 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.list-group-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}
.trip-cover-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.trip-cover-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border: 1px dashed #ccc;
  border-radius: 6px 6px 0 0;
  color: #888;
  font-size: 14px;
}

@media (max-width: 480px) {
  .list-group-item img {
    width: 48px;
    height: 48px;
  }

  .sheet-content {
    padding: 0 12px 16px;
    font-size: 14px;
  }

  .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
  }
}
/* 行程卡片右上角 X */
.trip-card { position: relative; }

.trip-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.trip-card-remove i { font-size: 14px; color: #444; }

.trip-card-remove:hover {
  background: #ffefef;
}

.trip-card-remove:hover i { color: #c0392b; }
.map-locate-btn {
  background: #fff;
  width: 46px;       
  height: 46px;
  border: 0;
  border-radius: 50%;
  margin: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;   /* 裡面 icon / emoji 大小 */
}
.map-locate-btn:hover { background: #f3f3f3; }
.map-locate-btn:disabled { opacity: .6; cursor: not-allowed; }
.map-locate-btn.loading { opacity: .7; }
