/* ─────────────────────────────────────────────────────────────
   門診頁地圖封面（點擊後載入 Google Maps）
   建立：2026-12-01
   用途：clinic/index.html 的 #clinic-map-holder / .map-cover
   說明：採共用 CSS（不動專屬 CSS），引用頁需 bump ?v=
   ⚠️ 封面本身不引入任何外部資源（0 額外請求）
   ───────────────────────────────────────────────────────────── */

/* 容器：讓 iframe 與封面同寬 */
#clinic-map-holder {
  position: relative;
  width: 100%;
  min-height: 280px;
  margin-bottom: 1rem;
}

#clinic-map-holder iframe {
  display: block;
  width: 100%;
  min-height: 280px;
}

/* 封面按鈕 */
.map-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 280px;
  padding: 1.5rem 1rem;
  border: 2px dashed #9aa9c4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f4f7fc 0%, #e8eef7 100%);
  color: var(--navy, #1b2a4a);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease,
              transform 0.1s ease;
}

.map-cover:hover {
  border-color: var(--navy, #1b2a4a);
  background:
    linear-gradient(180deg, #eef3fb 0%, #dde6f3 100%);
}

.map-cover:focus-visible {
  outline: 3px solid #4a7fd4;
  outline-offset: 3px;
}

.map-cover:active {
  transform: scale(0.995);
}

.map-cover-pin {
  font-size: 2rem;
  line-height: 1;
}

.map-cover-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.map-cover-text strong {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy, #1b2a4a);
}

.map-cover-text span {
  font-size: 0.9375rem;
  color: #46536b;
}

.map-cover-hint {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #6b7789;
}

/* 無 JS 時 noscript 內的 iframe 也要正常 */
#clinic-map-holder noscript {
  display: block;
}

@media (max-width: 480px) {
  #clinic-map-holder,
  #clinic-map-holder iframe {
    min-height: 240px;
  }

  .map-cover {
    min-height: 240px;
    padding: 1.25rem 0.875rem;
  }

  .map-cover-text strong {
    font-size: 1rem;
  }

  .map-cover-text span {
    font-size: 0.875rem;
  }

  .map-cover-hint {
    font-size: 0.75rem;
  }
}
