@tailwind base;
@tailwind components;
@tailwind utilities;


@layer components {
  .btn-primary {
    @apply px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2;
  }
  .btn-navbar {
    @apply flex-1 min-w-0 w-full text-center
          sm:px-4 py-2
          text-[11px] sm:text-xl leading-tight;
  }
  .text-field {
    @apply block w-full ml-6 my-6 rounded-md border border-gray-300 px-3 py-2;
  }
  .title-text {
    @apply text-xl text-gray-900;
  }
}

.map-canvas img {
  max-width: none !important;
  height: auto !important;
}

/* ピッカー地図内だけ、Advanced Marker にイベントを届かせる */
#picker-map .gm-style .gmp-advanced-marker {
  pointer-events: auto !important;
  touch-action: none;           /* タッチでのパンを抑制してドラッグ優先 */
  cursor: grab;
}

/* ← これがキモ：ピンの上に被っている z-index:107 レイヤーのイベントを無効化 */
#picker-map .gm-style > div[style*="z-index: 107"] {
  pointer-events: none !important;
}

/* 念のため 106 レイヤー配下はイベント通す（ピンがここに乗る） */
#picker-map .gm-style > div[style*="z-index: 106"] {
  pointer-events: auto;
}

/* ピンの内側もイベントを通す */
#picker-map .gm-style .gmp-advanced-marker * {
  pointer-events: auto !important;
  -webkit-user-drag: none;
  user-select: none;
}

/* ピッカー地図内だけ、ドラッグを最優先にする */
#picker-map gmp-advanced-marker {
  pointer-events: auto !important;
  touch-action: none !important;
  cursor: grab;
}

/* 以前の“上に被るレイヤー”対策（必要なら残す） */
#picker-map .gm-style > div[style*="z-index: 107"] {
  pointer-events: none !important;
}
.swiper,
.swiper .swiper-wrapper,
.swiper .swiper-slide { min-height: 0 !important; }

.swiper .swiper-slide picture,
.swiper .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
