/* ==========================================================================
   Design System & Custom Properties (和モダン・本格派 × 都会的モダン)
   ========================================================================== */
:root {
  /* Color Palette (明るい和モダン：和紙・生成り白 × 朱赤・茜色 × 黄金) */
  --bg-base: #faf8f5;
  /* 和紙・生成り色 (背景ベース) */
  --bg-surface: #f3efe9;
  /* 淡い和紙色 (サーフェス) */
  --bg-card: #ffffff;
  /* 清潔感のある白カード */
  --bg-card-hover: #f7f3ed;
  /* カードホバー時 */
  --border-color: #e5dfd6;
  /* 柔らかな砂色・薄墨境界線 */

  --primary: #c83227;
  /* 朱赤・茜色 (伝統的で品格あるメインカラー) */
  --primary-hover: #db3a2e;
  /* 鮮やかな朱赤 */
  --secondary: #c59b27;
  /* 琥珀・黄金 (スープ・金箔アクセント) */
  --secondary-hover: #d8aa2c;
  /* 明るい黄金色 */

  --text-main: #24201e;
  /* 柔らかな墨黒 (白背景でも読みやすい文字色) */
  --text-muted: #6b635b;
  /* 落ち着いた薄墨・灰茶 */
  --text-light: #ffffff;
  /* 純白文字 */

  /* Font Stacks (都会的洗練モダン) */
  --font-heading: "Plus Jakarta Sans", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Plus Jakarta Sans", sans-serif;

  /* Layout Constants */
  --sidebar-width: 250px;
  --header-height: 68px;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Custom cute pointer cursor (朱赤・茜色ドットに白縁取り) */
  cursor:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><circle cx='8' cy='8' r='5' fill='%23C83227' stroke='%23FFFFFF' stroke-width='1.5'/></svg>") 8 8,
    auto;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: #d4ccc2;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.app-header {
  height: var(--header-height);
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 28px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(60, 48, 38, 0.08);
  position: relative;
  overflow: hidden;
}

/* 墨絵かすれ筆ストロークのアクセント背景 */
.app-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/bg-header-brush.svg");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

/* 墨の滲みグラデーションボーダー（ヘッダー下端） */
.app-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(200, 50, 39, 0.4) 0%,
      rgba(200, 50, 39, 0.12) 180px,
      var(--border-color) 380px,
      rgba(36, 32, 30, 0.06) 70%,
      var(--border-color) 100%);
  pointer-events: none;
  z-index: 3;
}

.header-logo,
.header-actions {
  position: relative;
  z-index: 2;
}

.header-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .header-tagline {
    display: none;
  }
}

/* Main Container */
.main-container {
  display: flex;
  flex-direction: row;
  /* Sidebar on the left, Map on the right */
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Sidebar & Filters (Left Panel)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: 2px 0 12px rgba(60, 48, 38, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Controls Panel (雲墨グラデーション & 和紙かすれ調テクスチャ) */
.controls-panel {
  width: 100%;
  flex: 1;
  padding: 16px 14px;
  background-color: var(--bg-base);
  background-image: url("../images/bg-sidebar-sumi.svg");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  background-attachment: local;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

/* Results Count Bar (PC用件数表示バッジ) */
.filter-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.8rem;
}

.filter-results-label {
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.filter-results-badge {
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(200, 50, 39, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.filter-footer-note {
  padding: 12px 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: 8px;
  text-align: left;
  line-height: 1.5;
  font-weight: 500;
  margin-top: auto;
}

/* Search Bar */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 100%;
  padding: 11px 40px 11px 16px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.25s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 50, 39, 0.2);
}

.search-icon {
  position: absolute;
  right: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Filter Groups */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 1px;
  opacity: 0.85;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 5px;
}

.chip {
  padding: 4px 10px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--primary-hover);
  color: var(--primary);
}

.chip.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-light);
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(200, 50, 39, 0.35);
}

/* List Panel (非表示化) */
.list-panel {
  display: none !important;
}

.list-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
}

.results-count {
  font-weight: 500;
}

#count-num {
  color: var(--primary);
  font-weight: 700;
}

.shop-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Shop Card Component
   ========================================================================== */
.shop-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  box-shadow: 0 2px 6px rgba(60, 54, 51, 0.02);
}

.shop-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: transparent;
  transition: background-color 0.2s ease;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.shop-card:hover {
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(60, 54, 51, 0.05);
  border-color: var(--primary-hover);
}

.shop-card.active {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
  box-shadow: 0 4px 12px rgba(200, 50, 39, 0.15);
}

.shop-card.active::before {
  background-color: var(--primary);
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-right: 70px;
}

.shop-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.shop-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* Badges styling based on soup type (Soft pastel tones) */
.badge-shoyu {
  background-color: #f5e6e1;
  color: #b35e46;
}

.badge-miso {
  background-color: #fdf0de;
  color: #d58043;
}

.badge-shio {
  background-color: #fef9e5;
  color: #c9961b;
}

.badge-niboshi {
  background-color: #eef1f3;
  color: #6e7d88;
}

.badge-jiro {
  background-color: #fce1e8;
  color: #ba5a77;
}

.badge-iekei {
  background-color: #f8ecd5;
  color: #aa7839;
}

.badge-tonkotsu {
  background-color: #f7e8ec;
  color: #9f496e;
}

.badge-tonkotsu-gyokai {
  background-color: #f2eef8;
  color: #7b6896;
}

.badge-tori-paitan {
  background-color: #f0f4e8;
  color: #748a54;
}

.badge-tantan {
  background-color: #fee2e2;
  color: #dc2626;
}

.badge-shirunashi {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-tsukemen {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-original {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.badge-other {
  background-color: #ededed;
  color: #6e6e6e;
}

.badge-limited,
.badge-gentei {
  background-color: #fff2cc;
  color: #b38600;
}

.shop-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 0.7rem;
  background-color: rgba(200, 50, 39, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--primary);
  border: 1px solid rgba(200, 50, 39, 0.25);
  font-weight: 500;
  font-family: var(--font-body);
}

/* ==========================================================================
   Map Area (Right Panel)
   ========================================================================== */
.map-container {
  flex: 1;
  height: 100%;
  position: relative;
  min-width: 0;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-color: var(--bg-base);
}

/* 地図タイルを淡く明るいトーンに調整し、お店のピンや店名を目立たせる */
#map .leaflet-tile-pane {
  filter: brightness(1.06) saturate(0.55) contrast(0.92);
}

/* Customizing Leaflet Popups for Light theme */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(60, 54, 51, 0.08) !important;
  border-radius: 12px !important;
  opacity: 0.9;
}

.leaflet-popup-content {
  margin: 14px 18px !important;
  font-family: var(--font-body);
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  padding: 8px 8px 0 0 !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--primary) !important;
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}

.popup-style {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.popup-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 15px;
  text-align: center;
  transition: all 0.2s ease;
}

.popup-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 2px 6px rgba(200, 50, 39, 0.3);
}

/* ==========================================================================
   Detailed Shop Display (For Mobile Bottom Sheet or Details Dialog)
   ========================================================================== */
.detail-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 6px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.detail-desc {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.6;
}

.detail-info-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--bg-base);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
}

.info-row {
  display: flex;
  gap: 8px;
}

.info-label {
  font-weight: 700;
  color: var(--primary);
  width: 60px;
  flex-shrink: 0;
}

.info-value {
  color: var(--text-main);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
/* PC default: Hide mobile close button */
.mobile-close-list-btn {
  display: none;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-close-list-btn:hover {
  background-color: var(--primary-hover);
}

@media (max-width: 768px) {

  /* Mobile: Show edit/delete action buttons permanently without hover */
  .shop-card-actions {
    opacity: 1 !important;
  }

  /* PC Sidebar transforms into full-screen sliding panel on mobile */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--bg-base);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Mobile Top Bar inside Sidebar (Always sticky at top) */
  .mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background-color: var(--bg-card);
    border-bottom: 1.5px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(60, 48, 38, 0.08);
    flex-shrink: 0;
    background-image: url("../images/bg-header-brush.svg");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
  }

  .mobile-results-count {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
  }

  #mobile-count-num {
    color: var(--primary);
  }

  .mobile-close-btn {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(200, 50, 39, 0.35);
  }

  .mobile-close-btn:hover {
    background-color: var(--primary-hover);
  }

  .controls-panel {
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: none !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    padding: 16px 14px 40px !important;
    background-color: var(--bg-base) !important;
  }

  .filter-results-bar {
    display: none !important;
    /* モバイルでは上部固定ヘッダーに件数があるため非表示 */
  }

  .list-panel {
    display: none !important;
  }

  .list-header {
    display: none !important;
    /* モバイルでは最上部の sticky ヘッダーを使用 */
  }

  .shop-list {
    overflow: visible !important;
    height: auto !important;
    padding: 14px !important;
  }

  .main-container {
    flex-direction: column;
  }

  .map-container {
    width: 100%;
    height: 100%;
  }

  /* Floating UI Button to toggle list on mobile */
  .mobile-toggle-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(200, 50, 39, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
  }

  .mobile-toggle-btn:hover {
    background-color: var(--primary-hover);
    transform: translateX(-50%) scale(1.03);
  }

  .mobile-close-list-btn {
    display: none !important;
  }
}

@media (min-width: 769px) {

  /* Hide mobile elements on PC */
  .mobile-toggle-btn,
  .mobile-sidebar-header,
  .mobile-close-list-btn {
    display: none !important;
  }
}

/* ==========================================================================
   Ramen Bowl Pin Styles
   ========================================================================== */
.custom-marker-wrapper {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

/* Hover and active states for cute bowl marker */
.custom-marker-wrapper:hover {
  transform: scale(1.18);
}

.custom-marker-wrapper.is-active {
  transform: scale(1.3);
  filter: drop-shadow(0 4px 12px rgba(200, 50, 39, 0.4));
}

/* Google Maps link button */
.gmap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 12px;
  background-color: #faf9f6;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: fit-content;
}

.gmap-btn:hover {
  background-color: #81b29a;
  /* Elegant green for maps */
  color: #ffffff;
  border-color: #81b29a;
  box-shadow: 0 2px 8px rgba(129, 178, 154, 0.25);
}

.shop-card-footer {
  display: flex;
  align-items: center;
  margin-top: 2px;
}



/* ==========================================================================
   Administration & Modal UI Styles
   ========================================================================== */

/* Header Actions */
.header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.header-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-btn.primary-btn {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 3px 8px rgba(200, 50, 39, 0.3);
}

.header-btn.primary-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.header-btn.secondary-btn {
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-main);
}

.header-btn.secondary-btn:hover {
  border-color: var(--primary-hover);
  color: var(--primary);
}

.header-btn.outline-btn {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.header-btn.outline-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-btn.danger-btn {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-muted);
  padding: 8px;
}

.header-btn.danger-btn:hover {
  color: #c27059;
  transform: translateY(-1px);
}

/* Shop Card Actions (Edit/Delete) */
.shop-card-actions {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.shop-card:hover .shop-card-actions {
  opacity: 1;
}

.card-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-action-btn:hover {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
  transform: scale(1.1);
}

.card-action-btn.delete-btn:hover {
  color: #e07a5f;
  border-color: #e07a5f;
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(60, 54, 51, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.open.picking-active {
  pointer-events: none;
  opacity: 0.25;
  backdrop-filter: none;
}

.modal-overlay.open.picking-active .modal-content {
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(60, 54, 51, 0.1);
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  box-shadow: 0 10px 30px rgba(60, 54, 51, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal-btn:hover {
  color: var(--primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group label .required {
  color: #c27059;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  background-color: var(--bg-base);
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(200, 50, 39, 0.15);
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 14px;
  background-color: var(--bg-base);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
}

.form-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
}

.form-checkbox-group input[type="checkbox"] {
  accent-color: var(--primary);
  cursor: pointer;
}

.location-picker-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.form-action-btn {
  padding: 8px 14px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.form-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--bg-card);
}

.form-action-btn.active-picking {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  animation: pulse-picker 1.5s infinite;
}

@keyframes pulse-picker {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

.status-msg {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.modal-btn.cancel-btn {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.modal-btn.cancel-btn:hover {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.modal-btn.submit-btn {
  background-color: var(--primary);
  color: var(--text-light);
}

.modal-btn.submit-btn:hover {
  background-color: var(--primary-hover);
}

/* Option Management Modal Tab System */
.option-modal-content {
  max-width: 480px;
}

.tab-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1.5px solid var(--border-color);
  gap: 4px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.option-list-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-base);
  margin-bottom: 12px;
}

.option-items-list {
  list-style: none;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 500;
}

.option-item:last-child {
  border-bottom: none;
}

.delete-option-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.delete-option-btn:hover {
  color: #c27059;
}

.add-option-form {
  display: flex;
  gap: 8px;
}

.add-option-form input {
  flex: 1;
}

.add-btn {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-btn:hover {
  background-color: var(--primary-hover);
}

/* Comments Section Styling */
.comments-section {
  margin-top: 24px;
  border-top: 1.5px solid var(--border-color);
  padding-top: 20px;
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-card {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.comment-author {
  font-weight: 700;
  color: var(--primary);
}

.comment-date {
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-all;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--bg-card-hover);
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  background-color: var(--bg-card);
}

.comment-form textarea {
  resize: vertical;
  min-height: 60px;
}

.comment-submit-btn {
  align-self: flex-end;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 15px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.comment-submit-btn:hover {
  background-color: var(--primary-hover);
}

/* Admin Mode & Authentication UI */
.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: inline-flex !important;
}

body.is-admin .shop-card-actions {
  opacity: 1 !important;
}

/* ==========================================================================
   Ramen Bowl Teardrop Pin Styles
   ========================================================================== */
.ramen-bowl-pin,
.ramen-pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  border: 2.5 solid #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.8);
  position: relative;
  transition: all 0.2s ease;
}

.ramen-bowl-pin .bowl-emoji,
.ramen-pin .pin-icon {
  transform: rotate(45deg);
  font-size: 1.2rem;
  line-height: 1;
  display: block;
}

/* ==========================================================================
   Simple & Sleek Marker Pin Styles
   ========================================================================== */
.simple-ramen-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  position: relative;
  transition: all 0.2s ease;
}

.simple-ramen-pin .pin-icon {
  transform: rotate(45deg);
  font-size: 1.1rem;
  line-height: 1;
  display: block;
}

.custom-marker-wrapper:hover .simple-ramen-pin {
  transform: rotate(-45deg) scale(1.12);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Simple Round Bowl Pin Styles (Area Colored)
   ========================================================================== */
.simple-bowl-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  position: relative;
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.2s ease;
  cursor: pointer;
}

.simple-bowl-pin .bowl-emoji {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
}

.custom-marker-wrapper:hover .simple-bowl-pin {
  transform: scale(1.2);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
}

.custom-marker-wrapper.is-active .simple-bowl-pin {
  transform: scale(1.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  border-color: #ffffff;
  outline: 3px solid rgba(200, 50, 39, 0.6);
}

/* Expanded Detail inside Shop Card */
.card-expanded-detail {
  display: none;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.78rem;
  color: var(--text-main);
}

.shop-card.active .card-expanded-detail {
  display: block;
}

/* ==========================================================================
   Bowl Only Pin (No frame, Area Colored text-shadow)
   ========================================================================== */
.bowl-only-pin {
  font-size: 1.65rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.custom-marker-wrapper:hover .bowl-only-pin {
  transform: scale(1.3);
}

.custom-marker-wrapper.is-active .bowl-only-pin {
  transform: scale(1.5);
}

/* Shop Card Layout: Top Title (No Wrap), Style Row below */
.shop-title-single {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 65px;
  margin-bottom: 4px;
}

.shop-style-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

/* ==========================================================================
   SVG Ramen Bowl Pin Styles (Bowl Body Colored)
   ========================================================================== */
.svg-bowl-pin {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.custom-marker-wrapper:hover .svg-bowl-pin {
  transform: scale(1.22);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45));
}

.custom-marker-wrapper.is-active .svg-bowl-pin {
  transform: scale(1.35);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

/* ==========================================================================
   Map Simple Popup Label (Shop Name on Map)
   ========================================================================== */
.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  padding: 4px 8px;
  border: 1px solid var(--border-color);
}

.leaflet-popup-tip {
  background: var(--bg-card);
}

.map-shop-popup {
  text-align: center;
  padding: 2px 6px;
}

.map-shop-popup .popup-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
}

.map-shop-popup .popup-sub {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

/* Ensure Leaflet marker wrappers never crop steam animation overflow */
.leaflet-marker-icon,
.custom-marker-wrapper,
.svg-bowl-pin {
  overflow: visible !important;
}



/* ==========================================================================
   Map Shop Name Label (マップ上に常時表示される店名ラベル)
   ========================================================================== */
.shop-map-label {
  background-color: transparent !important;
  color: #141414 !important;
  font-family: var(--font-body);
  font-size: 0.73rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 3px #fff;
  white-space: nowrap !important;
  pointer-events: auto !important;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.shop-map-label:hover {
  background-color: transparent !important;
  transform: scale(1.06);
  color: var(--primary) !important;
}

/* Leaflet標準のツールチップ三角吹き出しを非表示 */
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
  display: none !important;
}

/* 広域表示（ズームアウト時）は店名ラベルを非表示にして地図をスッキリさせる */
.map-zoom-low .shop-map-label {
  display: none !important;
}

/* ==========================================================================
   Bottom Sheet / Shop Details Sliding Panel
   ========================================================================== */
.bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.bottom-sheet.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bottom-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  backdrop-filter: none;
  cursor: pointer;
  pointer-events: none;
}

.bottom-sheet.open .bottom-sheet-backdrop {
  pointer-events: auto;
}

/* PC（デスクトップ）では詳細が開いても左側の地図閲覧・操作をブロックしない */
@media (min-width: 769px) {
  .bottom-sheet {
    pointer-events: none !important;
  }

  .bottom-sheet-backdrop {
    display: none !important;
  }

  .bottom-sheet-container {
    pointer-events: auto !important;
  }
}

.bottom-sheet-container {
  position: relative;
  width: 440px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-card);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  overflow: hidden;
}

.bottom-sheet.open .bottom-sheet-container {
  transform: translateX(0);
}

.bottom-sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.bottom-sheet-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.bottom-sheet-drag {
  display: none;
}

.bottom-sheet-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sheet Shop Detail Layout */
.sheet-shop-detail {
  padding-bottom: 30px;
}

.sheet-hero {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #eee;
  overflow: hidden;
}

.sheet-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-hero-noimage {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f3efe9 0%, #e8e1d7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  padding-bottom: 24px;
}

.sheet-hero-noimage .noimage-icon {
  font-size: 3rem;
  opacity: 0.45;
  filter: drop-shadow(0 2px 4px rgba(60, 48, 38, 0.15));
}

.sheet-hero-noimage .noimage-text {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: #7d746b;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.sheet-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.3) 70%,
      transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.sheet-desc {
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.sheet-info-grid {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-base);
}

.sheet-info-grid .info-row {
  display: flex;
  align-items: flex-start;
  font-size: 0.82rem;
  gap: 12px;
}

.sheet-info-grid .info-label {
  font-weight: 700;
  color: var(--primary);
  width: 72px;
  flex-shrink: 0;
}

.sheet-info-grid .info-value {
  flex: 1;
  color: var(--text-main);
  line-height: 1.5;
}

.gmap-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #4285f4;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.gmap-btn:hover {
  opacity: 0.9;
}

.sheet-shop-detail .shop-tags {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.sheet-shop-detail .comments-section {
  padding: 20px;
}

/* Mobile Bottom Sheet Adaptation */
@media (max-width: 768px) {
  .bottom-sheet {
    align-items: flex-end;
    justify-content: center;
  }

  .bottom-sheet-container {
    width: 100%;
    max-width: 100vw;
    height: 80vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .bottom-sheet.open .bottom-sheet-container {
    transform: translateY(0);
  }

  .bottom-sheet-drag {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px 0;
    cursor: grab;
  }

  .drag-handle {
    width: 44px;
    height: 5px;
    background: var(--border-color);
    border-radius: 4px;
  }
}

/* 曜日別営業時間一覧 */
.weekly-hours-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weekly-hours-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.weekly-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.weekly-hours-item.is-closed .weekly-day-badge {
  background: #fde8e8;
  color: #9b1c1c;
}

.weekly-hours-item.is-closed .weekly-time-text {
  color: #9b1c1c;
  font-weight: 600;
}

.weekly-hours-item.is-today {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 6px;
  padding: 3px 6px;
  margin: 0 -6px;
  font-weight: 700;
}

.weekly-hours-item.is-today .weekly-day-badge {
  background: var(--primary, #c2410c);
  color: #ffffff;
}

.weekly-hours-item.is-today.is-closed {
  background: #fef2f2;
  border-color: #fca5a5;
}

.weekly-hours-item.is-today.is-closed .weekly-day-badge {
  background: #dc2626;
  color: #ffffff;
}

.weekly-today-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--primary, #c2410c);
  color: #ffffff;
  margin-left: auto;
  flex-shrink: 0;
}

.weekly-hours-item.is-today.is-closed .weekly-today-tag {
  background: #dc2626;
}

/* ==========================================================================
   Map Notice Toast (Auto-dismiss popup at top-left of map)
   ========================================================================== */
.map-notice-toast {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100% - 80px));
  padding: 10px 12px 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-left: 3px solid var(--secondary);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(60, 48, 38, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.map-notice-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.map-notice-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.map-notice-text {
  flex: 1;
  font-weight: 500;
}

.map-notice-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.map-notice-close:hover {
  color: var(--text-main);
  background-color: rgba(36, 32, 30, 0.08);
}

@media (max-width: 768px) {
  .map-notice-toast {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 76px);
    padding: 9px 10px 9px 12px;
    font-size: 0.78rem;
  }
}