/**
 * StopsMap CSS
 */

a.logo-overlay { text-decoration: none; cursor: pointer; transition: opacity 0.15s ease; }
a.logo-overlay:hover { opacity: 0.85; }

/* Search pill */
.search-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  margin-left: 20px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 400px;
  max-width: 600px;
}

.search-input-wrapper {
  display: flex; align-items: center;
  height: 44px; position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 44px 10px 40px;
  background-color: rgba(255, 255, 255, 0.95);
  border: none; border-radius: 22px;
  font-size: 14px; color: #333; outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  height: 44px; box-sizing: border-box;
}
.search-input:focus { background-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.search-input::placeholder { color: #999; }

.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none; opacity: 0.6; color: #555; z-index: 1;
}

.search-clear-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: none;
  background: rgba(0,0,0,0.12); border-radius: 50%;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  padding: 0; flex-shrink: 0; transition: background .15s, color .15s;
  color: #555; z-index: 2;
}
.search-clear-btn:hover { background: rgba(0,0,0,0.22); color: #111; }
.search-clear-btn svg { width: 12px; height: 12px; pointer-events: none; }

/* Tablet */
@media (max-width: 768px) {
  .search-overlay { top: 12px; min-width: 300px; max-width: 500px; padding: 4px 8px; }
  .search-input-wrapper { height: 40px; }
  .search-input { font-size: 13px; padding: 8px 10px 8px 38px; height: 40px; }
}

/* Mobile */
@media (max-width: 480px) {
  .search-overlay { top: 12px; min-width: calc(90% - 84px); max-width: calc(90% - 84px); padding: 4px; margin-left: 0; }
  .search-input-wrapper { height: 36px; }
  .search-input { font-size: 12px; padding: 8px 10px 8px 36px; height: 36px; }
  .search-icon { width: 16px; height: 16px; left: 12px; }
  .search-clear-btn { width: 22px; height: 22px; right: 6px; }
}
