/* evacuation_map.css - 避難所マップページ専用スタイル */

/* ベースとなるページレイアウト */
.evacuation-map-page {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* 地図検索セクション */
.map-search {
  margin-bottom: 60px;
  padding: 40px 0;
}

.map-search h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  padding-left: 15px;
  border-left: 5px solid #d63384;
}

.search-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

/* 検索ボックスのメイン構造 */
.search-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 検索入力とボタンのグループ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
  z-index: 2;
}

.input-wrapper input[type="text"] {
  width: 100%;
  padding: 15px 20px 15px 45px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #d63384;
  box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-group .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.button-group .primary-btn {
  background: linear-gradient(135deg, #d63384, #e83e8c);
  color: white;
}

.button-group .primary-btn:hover {
  background: linear-gradient(135deg, #b02a5b, #d63384);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(214, 51, 132, 0.3);
}

.button-group .secondary-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
}

.button-group .secondary-btn:hover {
  background: linear-gradient(135deg, #495057, #343a40);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

.button-group .clear-route-btn {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.button-group .clear-route-btn:hover {
  background: linear-gradient(135deg, #495057, #343a40);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

/* ルート案内制限の説明 */
.route-limit-notice {
  background: linear-gradient(135deg, #e7f3ff, #f0f8ff);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.route-limit-notice h4 {
  margin: 0 0 12px 0;
  color: #0056b3;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-limit-notice h4 i {
  color: #007bff;
}

.route-limit-notice ul {
  margin: 0;
  padding-left: 20px;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.6;
}

.route-limit-notice li {
  margin-bottom: 6px;
}

/* フィルターコンテナ */
.filters-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.filter-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.filter-section:hover {
  background: #f1f3f4;
  border-color: #d6d8db;
}

.filter-section h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.filter-section h3 i {
  color: #6c757d;
  font-size: 1rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}

.type-filters {
  flex-direction: column;
  gap: 12px;
}

.disaster-filters {
  gap: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e9ecef;
  min-width: fit-content;
}

.filter-option:hover {
  color: #d63384;
  background: #fff5f8;
  border-color: #f8d7da;
  transform: translateY(-1px);
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #d63384;
  cursor: pointer;
}

.filter-option i {
  font-size: 1rem;
  color: #6c757d;
  width: 18px;
  text-align: center;
}

.filter-option:hover i {
  color: #d63384;
}

.filter-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-text small {
  color: #6c757d;
  font-size: 0.8rem;
  font-style: italic;
}

/* マーカーインジケーター */
.marker-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.marker-indicator.emergency {
  background: #dc3545;
}

.marker-indicator.designated {
  background: #007bff;
}

/* 検索範囲セレクター */
.range-selector {
  display: flex;
  align-items: center;
  gap: 15px;
}

.range-selector label {
  font-weight: 500;
  color: #2c3e50;
  min-width: 100px;
}

.range-selector input[type="range"] {
  flex: 1;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.range-selector input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #d63384;
  border-radius: 50%;
  cursor: pointer;
}

.range-selector input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #d63384;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* 地図表示エリア */
.evacuation-map {
  width: 100%;
  height: 500px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  position: relative;
}

.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #d63384;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.map-loading p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* 検索結果サマリー */
.search-summary {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  border-left: 4px solid #d63384;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: #e9f5e9;
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #d63384;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* レスポンシブデザイン - デスクトップ */
@media (min-width: 768px) {
  .input-group {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .input-wrapper {
    flex: 1;
    min-width: 300px;
  }
  
  .button-group {
    flex-wrap: nowrap;
    min-width: fit-content;
  }
  
  .button-group .btn {
    flex: none;
    min-width: 120px;
  }
  
  .filters-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: start;
  }
  
  .disaster-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* レスポンシブデザイン - タブレット */
@media (max-width: 768px) {
  .search-container {
    padding: 20px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button-group .btn {
    flex: none;
    width: 100%;
    min-width: auto;
    justify-content: center;
  }
  
  .filters-container {
    gap: 20px;
  }
  
  .filter-section {
    padding: 15px;
  }
  
  .filter-section h3 {
    font-size: 1rem;
  }
  
  .disaster-filters {
    gap: 8px;
  }
  
  .filter-option {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  .route-limit-notice {
    padding: 15px;
  }
  
  .route-limit-notice h4 {
    font-size: 1rem;
  }
  
  .route-limit-notice ul {
    font-size: 0.85rem;
  }
  
  .evacuation-map {
    height: 400px;
  }
  
  .summary-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .range-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .range-selector input[type="range"] {
    width: 100%;
  }
}

/* レスポンシブデザイン - モバイル */
@media (max-width: 480px) {
  .search-container {
    padding: 15px;
  }
  
  .input-wrapper input[type="text"] {
    padding: 12px 15px 12px 40px;
    font-size: 0.9rem;
  }
  
  .input-wrapper .input-icon {
    left: 12px;
    font-size: 1rem;
  }
  
  .button-group .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .disaster-filters {
    flex-direction: column;
    gap: 6px;
  }
  
  .filter-option {
    width: 100%;
    justify-content: flex-start;
  }
  
  .filter-text {
    flex: 1;
  }
  
  .evacuation-map {
    height: 300px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* 避難時の注意点セクション */
.evacuation-tips {
  margin-bottom: 60px;
  padding: 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
}

.evacuation-tips h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  padding-left: 15px;
  border-left: 5px solid #ffc107;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  padding: 0 30px;
}

.tip-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tip-card i {
  font-size: 3rem;
  color: #ffc107;
  margin-bottom: 20px;
  display: block;
}

.tip-card h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

.tip-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.tip-card li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: #495057;
  line-height: 1.6;
}

.tip-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* 災害別避難ポイント */
.disaster-types {
  padding: 80px 0;
  background: white;
}

.disaster-types h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
  font-weight: 700;
}

.disaster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.disaster-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.disaster-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: all 0.3s ease;
}

.disaster-card.flood::before {
  background: linear-gradient(90deg, #17a2b8, #138496);
}

.disaster-card.earthquake::before {
  background: linear-gradient(90deg, #6f42c1, #5a379e);
}

.disaster-card.tsunami::before {
  background: linear-gradient(90deg, #20c997, #1aa085);
}

.disaster-card.landslide::before {
  background: linear-gradient(90deg, #fd7e14, #e8650e);
}

.disaster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.disaster-card:hover::before {
  height: 8px;
}

.disaster-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.disaster-card.flood .disaster-icon {
  background: linear-gradient(135deg, #17a2b8, #138496);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.disaster-card.earthquake .disaster-icon {
  background: linear-gradient(135deg, #6f42c1, #5a379e);
  box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
}

.disaster-card.tsunami .disaster-icon {
  background: linear-gradient(135deg, #20c997, #1aa085);
  box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

.disaster-card.landslide .disaster-icon {
  background: linear-gradient(135deg, #fd7e14, #e8650e);
  box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.disaster-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 600;
}

.disaster-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.disaster-card li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

.disaster-card li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 8px;
  color: #d63384;
  font-size: 1rem;
}

.disaster-card.flood li::before {
  content: '💧';
}

.disaster-card.earthquake li::before {
  content: '🏠';
}

.disaster-card.tsunami li::before {
  content: '🌊';
}

.disaster-card.landslide li::before {
  content: '⛰️';
}

/* CTAセクション */
.cta-section {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
  margin-top: 60px;
  border-radius: 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1rem;
  cursor: pointer;
}

.cta-buttons .primary-btn {
  background: #d63384;
  color: white;
  border-color: #d63384;
}

.cta-buttons .primary-btn:hover {
  background: #b02a5b;
  border-color: #b02a5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
}

.cta-buttons .secondary-btn {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-buttons .secondary-btn:hover {
  background: white;
  color: #2c3e50;
  transform: translateY(-2px);
}

/* InfoWindow スタイル */
.info-window {
  min-width: 280px;
  max-width: 350px;
  font-family: 'Noto Sans JP', sans-serif;
}

.info-window h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
}

.info-window .facility-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.info-window .facility-type.emergency {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.info-window .facility-type.designated {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.info-window .address {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.info-window .disaster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.info-window .disaster-tag {
  padding: 2px 8px;
  background: rgba(214, 51, 132, 0.1);
  color: #d63384;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.info-window .distance-info {
  color: #666;
  font-size: 0.9rem;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
}

.info-window .distance-info i {
  color: #d63384;
  margin-right: 5px;
}

.info-actions {
  margin-top: 15px;
  text-align: center;
}

.info-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.info-actions .btn:hover {
  background: linear-gradient(135deg, #1e7e34, #28a745);
  transform: translateY(-1px);
}

/* レスポンシブ対応の追加調整 */
@media (max-width: 768px) {
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .disaster-grid {
    grid-template-columns: 1fr;
  }
  
  .disaster-types {
    padding: 60px 0;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .tip-card {
    padding: 20px;
  }
  
  .tip-card i {
    font-size: 2.5rem;
  }
  
  .tip-card h3 {
    font-size: 1.1rem;
  }
  
  .disaster-card {
    padding: 25px 20px;
  }
  
  .disaster-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .info-window {
    min-width: 250px;
  }
} 