/*
 * Project-level custom styles for the Tsurumi Kumin Matsuri SWELL child theme.
 * Keep broad SWELL overrides scoped and documented as the site is customized.
 */

.tsurumi-leaflet-map {
  width: min(100%, 920px);
  margin: 34px auto;
  padding: 12px;
  background: #fff8fc;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(52, 24, 37, 0.14);
}

.tsurumi-leaflet-map__canvas {
  width: 100%;
  height: clamp(520px, 78vh, 820px);
  overflow: hidden;
  background: #dff2fb;
  border-radius: 6px;
}

.tsurumi-leaflet-map__canvas .leaflet-control-zoom {
  border: none;
  box-shadow: 0 8px 18px rgba(52, 24, 37, 0.18);
}

.tsurumi-leaflet-map__canvas .leaflet-control-zoom a {
  color: #231815;
  border-bottom-color: rgba(35, 24, 21, 0.12);
}

.tsurumi-leaflet-map__zoom-icon {
  background: transparent;
  border: 0;
}

.tsurumi-leaflet-map__zoom-icon-symbol {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 4px solid #0098d8;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(52, 24, 37, 0.22);
}

.tsurumi-leaflet-map__zoom-icon-symbol::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 14px;
  height: 14px;
  border: 4px solid #231815;
  border-radius: 50%;
}

.tsurumi-leaflet-map__zoom-icon-symbol::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 25px;
  width: 13px;
  height: 5px;
  background: #231815;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.tsurumi-leaflet-map__canvas .leaflet-marker-icon {
  cursor: zoom-in;
}

.tsurumi-leaflet-map__canvas .leaflet-tooltip {
  padding: 6px 9px;
  color: #231815;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 5px 12px rgba(52, 24, 37, 0.16);
}

@media (max-width: 599px) {
  .tsurumi-leaflet-map {
    width: calc(100% + 24px);
    margin: 26px -12px;
    padding: 8px;
    border-width: 2px;
    border-radius: 0;
  }

  .tsurumi-leaflet-map__canvas {
    height: 72vh;
    min-height: 460px;
    border-radius: 4px;
  }

  .tsurumi-leaflet-map__zoom-icon-symbol {
    width: 36px;
    height: 36px;
    border-width: 3px;
  }

  .tsurumi-leaflet-map__zoom-icon-symbol::before {
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  .tsurumi-leaflet-map__zoom-icon-symbol::after {
    top: 22px;
    left: 22px;
    width: 11px;
    height: 4px;
  }
}

@media (min-width: 960px) {
  :root {
    --tsurumi-sidebar-width: 236px;
  }

  body {
    padding-right: var(--tsurumi-sidebar-width);
    overflow-x: hidden;
  }

  #body_wrap {
    padding-top: 0 !important;
  }

  #fix_header {
    display: none !important;
  }

  .l-header {
    position: fixed !important;
    inset: 0 0 0 auto;
    width: var(--tsurumi-sidebar-width);
    height: 100vh;
    background: var(--color_main);
    border-left: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: -10px 0 24px rgba(52, 24, 37, 0.12);
    z-index: 1000;
  }

  .l-header.-series .l-header__inner,
  .l-header.-parallel .l-header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 22px 18px;
  }

  .l-header.-series .l-header__logo,
  .l-header.-parallel .l-header__logo {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 28px;
  }

  .l-header .c-headLogo {
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 14px 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(52, 24, 37, 0.12);
  }

  .l-header .c-headLogo__link {
    display: block;
  }

  .l-header .c-headLogo__img {
    display: block;
    width: 100%;
    max-width: 170px;
    max-height: none;
    height: auto;
    margin: 0 auto;
  }

  .l-header__gnav {
    width: 100%;
    margin: 0;
  }

  .l-header .c-gnav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .l-header .c-gnav > .menu-item {
    width: 100%;
    margin: 0;
    color: #fff;
    text-align: left;
  }

  .l-header .c-gnav > .menu-item > a {
    justify-content: flex-start;
    min-height: 0;
    height: auto;
    padding: 13px 12px;
    color: #fff;
    line-height: 1.5;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .l-header .c-gnav > .menu-item > a::after {
    content: none !important;
  }

  .l-header .c-gnav > .menu-item > a:hover,
  .l-header .c-gnav > .menu-item.-current > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(-3px);
  }

  .l-header .c-gnav .ttl {
    display: inline-flex;
    align-items: center;
    gap: 0.56em;
    white-space: normal;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .l-header .c-gnav .ttl i {
    flex: 0 0 auto;
    width: 1.2em;
    text-align: center;
  }

  body.admin-bar .l-header {
    top: 32px;
    height: calc(100vh - 32px);
  }
}
