/* ===== レイアウト ===== */
html, body {
  background: #06091a;
  overflow: hidden;
}

main {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ヘッダー背景（ダークテーマ） */
.app-title-header {
  background: #06091a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== 地図 ===== */
#map {
  flex: 1;
  min-height: 0;
  background: #06091a;
}

/* ダークフィルター: タイル自体を暗くする */
.leaflet-tile-pane {
  filter: brightness(0.65) sepia(1) hue-rotate(185deg) saturate(2.5);
}

/* Leaflet のズームボタンを非表示 */
.leaflet-control-zoom {
  display: none !important;
}

/* ===== ズームスライダー ===== */
#zoom-slider-bar {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 35, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 20px;
  backdrop-filter: blur(8px);
  width: min(320px, 80vw);
}
.zoom-icon {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  user-select: none;
}
#zoom-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
#zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 210, 80, 0.90);
  box-shadow: 0 0 10px rgba(255, 185, 30, 0.65);
  cursor: pointer;
}
#zoom-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 210, 80, 0.90);
  box-shadow: 0 0 10px rgba(255, 185, 30, 0.65);
  cursor: pointer;
  border: none;
}


  background: rgba(20, 20, 30, 0.85) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(40, 40, 60, 0.95) !important;
  color: #fff !important;
}
.leaflet-control-attribution {
  background: rgba(6, 9, 26, 0.7) !important;
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Canvasレイヤーをタイルの上に */
.leaflet-overlay-pane canvas {
  z-index: 400;
}

/* ===== ローディング ===== */
#map-loading {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(6, 9, 26, 0.92);
  z-index: 9999;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: opacity 0.5s;
}
#map-loading.hidden {
  opacity: 0;
  pointer-events: none;
}
#map-loading .spin {
  font-size: 36px;
  animation: rotate 1s linear infinite;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== ツールチップ ===== */
.hotel-tooltip {
  background: rgba(6, 9, 26, 0.9) !important;
  border: 1px solid rgba(192, 216, 48, 0.3) !important;
  color: #c0d830 !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 12px rgba(192, 216, 48, 0.15) !important;
}
.station-tooltip {
  background: rgba(6, 9, 26, 0.9) !important;
  border: 1px solid rgba(69, 120, 185, 0.3) !important;
  color: #4ba8d8 !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 12px rgba(69, 120, 185, 0.15) !important;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  display: none !important;
}

/* ===== ホテル詳細モーダル ===== */
.hotel-modal-content {
  background: rgba(6, 9, 30, 0.97) !important;
  border: 1px solid rgba(80, 140, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  position: relative;
  max-width: 340px;
  width: 90vw;
}

.hotel-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.hotel-modal-close:hover {
  color: rgba(255, 255, 255, 0.8);
}

#hotel-modal-name {
  font-size: 16px;
  font-weight: normal;
  margin: 0 0 8px;
  padding-right: 28px;
  color: #c0d830;
  text-shadow: 0 0 8px rgba(192, 216, 48, 0.4);
}

#hotel-modal-address {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  line-height: 1.5;
}

.hotel-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hotel-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(60, 140, 220, 0.15);
  border: 1px solid rgba(60, 140, 220, 0.4);
  color: #4ba8d8;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s, box-shadow 0.2s;
}
.hotel-link-btn:hover {
  background: rgba(60, 140, 220, 0.25);
  box-shadow: 0 0 12px rgba(60, 140, 220, 0.3);
}
.hotel-link-btn .material-symbols-outlined {
  font-size: 16px;
}

/* ===== ネオンランプ（ブックマーク/お気に入り） ===== */
.neon-lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 16px;
  border: none;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  width: 100%;
}
.neon-lamp.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.neon-lamp-bulb {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: #1c1200;
  transition: background 0.7s ease, box-shadow 0.6s ease;
}

/* 点灯中: 外枠もブロブ変形 + 暖色の光輪 */
.neon-lamp.active .neon-lamp-bulb {
  background: #2A1800;
  box-shadow:
    0 0 12px rgba(255, 185, 30, 0.45),
    0 0 32px rgba(255, 160,  0, 0.22),
    0 0 60px rgba(255, 200, 50, 0.10);
  animation: blob-outer 7.5s ease-in-out infinite;
}

/* ===== ember レイヤー（CSS border-radius ブロブモーフ） ===== */
/* .ember-layers でまとめて消灯/点灯の opacity を管理 */
.ember-layers {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  transition: opacity 0.7s ease;
}
.neon-lamp.active .ember-layers {
  opacity: 1;
}

/* 各レイヤーは position: absolute + inset で大きさを決め
   filter: blur() で輝きを表現。border-radius はアニメーションで変化 */
.ember-halo,
.ember-red,
.ember-orange,
.ember-yellow,
.ember-core {
  position: absolute;
  border-radius: 50%;
}
.ember-halo {
  inset: 0;
  background: rgba(210, 120, 0, 0.30);
  filter: blur(7px);
}
.ember-red {
  inset: 9px;
  background: rgba(255, 160, 15, 0.65);
  filter: blur(4px);
}
.ember-orange {
  inset: 15px;
  background: rgba(255, 205, 50, 0.85);
  filter: blur(2.5px);
}
.ember-yellow {
  inset: 20px;
  background: #FFE878;
  filter: blur(1.2px);
}
.ember-core {
  inset: 23px;
  background: #FFFBF0;
}

/* ---- border-radius ブロブモーフィングアニメーション ----
   8値構文: TL TR BR BL / TL TR BR BL（水平半径 / 垂直半径）
   変化幅を 28〜72% に拡大。各レイヤーを異なる周期で変形させ有機的な炎感を演出 */

/* 外枠コンテナ: overflow:hidden と連動して全体のシルエットが変形する */
@keyframes blob-outer {
  0%   { border-radius: 48% 52% 53% 47% / 47% 48% 52% 53%; }
  16%  { border-radius: 56% 44% 46% 54% / 52% 46% 54% 48%; }
  33%  { border-radius: 44% 56% 54% 46% / 46% 55% 45% 54%; }
  50%  { border-radius: 53% 47% 56% 44% / 54% 44% 48% 52%; }
  66%  { border-radius: 46% 54% 48% 52% / 44% 54% 56% 46%; }
  83%  { border-radius: 54% 46% 50% 50% / 50% 47% 45% 55%; }
  100% { border-radius: 48% 52% 53% 47% / 47% 48% 52% 53%; }
}

.neon-lamp.active .ember-halo   { animation: blob-a 4.5s ease-in-out infinite; }
.neon-lamp.active .ember-red    { animation: blob-b 3.5s ease-in-out infinite; }
.neon-lamp.active .ember-orange { animation: blob-c 2.8s ease-in-out infinite; }
.neon-lamp.active .ember-yellow { animation: blob-d 2.2s ease-in-out infinite; }
.neon-lamp.active .ember-core   { animation: blob-e 1.9s ease-in-out infinite; }

@keyframes blob-a {
  0%   { border-radius: 38% 62% 58% 42% / 45% 38% 62% 55%; }
  20%  { border-radius: 65% 35% 30% 70% / 60% 48% 40% 52%; }
  40%  { border-radius: 30% 70% 65% 35% / 38% 68% 38% 62%; }
  60%  { border-radius: 62% 38% 40% 60% / 68% 30% 62% 38%; }
  80%  { border-radius: 40% 60% 70% 30% / 48% 62% 35% 55%; }
  100% { border-radius: 38% 62% 58% 42% / 45% 38% 62% 55%; }
}
@keyframes blob-b {
  0%   { border-radius: 58% 42% 38% 62% / 55% 60% 42% 45%; }
  25%  { border-radius: 32% 68% 65% 35% / 42% 35% 62% 58%; }
  50%  { border-radius: 68% 32% 42% 58% / 62% 52% 38% 48%; }
  75%  { border-radius: 42% 58% 58% 42% / 35% 65% 45% 55%; }
  100% { border-radius: 58% 42% 38% 62% / 55% 60% 42% 45%; }
}
@keyframes blob-c {
  0%   { border-radius: 45% 55% 65% 35% / 60% 38% 62% 40%; }
  20%  { border-radius: 68% 32% 38% 62% / 40% 62% 35% 65%; }
  45%  { border-radius: 35% 65% 55% 45% / 65% 35% 60% 40%; }
  70%  { border-radius: 62% 38% 32% 68% / 45% 58% 40% 60%; }
  100% { border-radius: 45% 55% 65% 35% / 60% 38% 62% 40%; }
}
@keyframes blob-d {
  0%   { border-radius: 55% 45% 40% 60% / 40% 65% 35% 60%; }
  30%  { border-radius: 35% 65% 62% 38% / 62% 38% 60% 40%; }
  60%  { border-radius: 65% 35% 35% 65% / 35% 68% 40% 60%; }
  100% { border-radius: 55% 45% 40% 60% / 40% 65% 35% 60%; }
}
@keyframes blob-e {
  0%   { border-radius: 42% 58% 62% 38% / 55% 45% 60% 40%; }
  35%  { border-radius: 62% 38% 35% 65% / 38% 62% 40% 60%; }
  70%  { border-radius: 35% 65% 58% 42% / 62% 40% 45% 55%; }
  100% { border-radius: 42% 58% 62% 38% / 55% 45% 60% 40%; }
}

.neon-lamp-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.4s;
}
.neon-lamp.active .neon-lamp-label {
  color: rgba(255, 210, 80, 0.95);
  text-shadow: 0 0 8px rgba(255, 190, 30, 0.65);
}

/* 駅お気に入り（ホテルと同じ赤系） */
