.kemono-monkey-map-wrap {
    width: 100%;
    margin: 30px 0;
}

.kemono-monkey-map-header {
    margin-bottom: 15px;
}

.kemono-monkey-map-header h2 {
    margin-bottom: 8px;
}

#kemono-monkey-map {
    width: 100%;
    height: 520px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f3f3;
}

.kemono-monkey-map-status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.kemono-monkey-map-note {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}


/* Leaflet DivIconの標準背景を消す */
.kemono-marker-wrapper {
    background: transparent;
    border: 0;
}


/* 共通マーカー */
.kemono-marker {
    position: relative;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    color: #fff;
    font-weight: 700;
    font-size: 16px;

    border: 3px solid #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
}


/* 目撃：青い円 */
.kemono-marker-sighting {
    background: #2677c9;
    border-radius: 50%;
}

.kemono-marker-sighting .kemono-marker-symbol {
    font-size: 13px;
}


/* 威嚇・追いかけ：赤いひし形 */
.kemono-marker-threat {
    background: #c83e36;
    border-radius: 5px;
    transform: rotate(45deg);
}

.kemono-marker-threat .kemono-marker-symbol {
    transform: rotate(-45deg);
    font-size: 19px;
}


/* 農業被害：オレンジ四角 */
.kemono-marker-damage {
    background: #d97916;
    border-radius: 5px;
}

.kemono-marker-damage .kemono-marker-symbol {
    font-size: 12px;
}


/* 同一地点複数件 */
.kemono-marker-badge {
    position: absolute;
    top: -9px;
    right: -9px;

    min-width: 20px;
    height: 20px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #222;
    color: #fff;

    border: 2px solid #fff;
    border-radius: 12px;

    font-size: 11px;
    line-height: 1;
}


/* ポップアップ */
.kemono-popup {
    min-width: 170px;
    font-size: 13px;
    line-height: 1.6;
}

.kemono-popup-title {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.kemono-popup hr {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.kemono-popup-comment {
    margin-top: 5px;
}


@media (max-width: 767px) {

    #kemono-monkey-map {
        height: 420px;
    }

}

.kemono-monkey-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.kemono-monkey-filter button {
    appearance: none;
    border: 1px solid #777;
    background: #fff;
    color: #333;
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 14px;
    cursor: pointer;
}

.kemono-monkey-filter button:hover {
    background: #f2f2f2;
}

.kemono-monkey-filter button.is-active {
    background: #4f654e;
    border-color: #4f654e;
    color: #fff;
    font-weight: 700;
}


/* ==================================================
   サル情報 投稿フォーム
   ================================================== */

.kemono-monkey-report-wrap {
    margin-top: 36px;
}

.kemono-monkey-report-header {
    margin-bottom: 24px;
}

.kemono-monkey-report-header h2 {
    margin: 0 0 14px;
}

.kemono-report-field {
    margin: 0 0 22px;
}

.kemono-report-field > label,
.kemono-report-field > legend {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    font-weight: 700;
    line-height: 1.5;
}

.kemono-required {
    color: #a32020;
    font-weight: 400;
}

.kemono-optional {
    color: #666;
    font-weight: 400;
}

.kemono-report-help {
    margin: 0 0 10px;
    color: #444;
    font-size: 14px;
}


/* 現在地ボタン */

.kemono-location-button {
    display: inline-block;
    margin: 0 0 10px;
    padding: 8px 14px;
    border: 0;
    border-radius: 4px;
    background: #4f654e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.kemono-location-button:hover {
    opacity: 0.88;
}


/* 投稿地点地図 */

#kemono-monkey-report-map {
    width: 100%;
    height: 320px;
    margin: 0 0 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f4f4f4;
}

#kemono-selected-location {
    margin: 4px 0 0;
    font-size: 14px;
    color: #555;
}


/* 共通入力欄 */

.kemono-report-field input[type="number"],
.kemono-report-field input[type="text"],
.kemono-report-field input[type="tel"],
.kemono-report-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
}

.kemono-report-field input[type="number"],
.kemono-report-field input[type="text"],
.kemono-report-field input[type="tel"] {
    min-height: 44px;
    padding: 8px 10px;
}

.kemono-report-field textarea {
    min-height: 120px;
    padding: 10px 12px;
    resize: vertical;
}


/* 発生日・時刻 */

#kemono-report-date,
#kemono-report-time {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 44px;
    box-sizing: border-box;
    padding: 7px 10px 7px 42px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 19px 19px;
    font-size: 16px;
}


/* カレンダーアイコンを左に表示 */

#kemono-report-date {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}


/* 時計アイコンを左に表示 */

#kemono-report-time {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}


/* 情報種別 */

.kemono-report-fieldset {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.kemono-radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
}

.kemono-radio-label {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    white-space: nowrap;
    cursor: pointer;
}

.kemono-radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
}


/* 送信ボタン */

.kemono-report-submit {
    display: inline-block;
    min-width: 180px;
    min-height: 44px;
    padding: 9px 20px;
    border: 0;
    border-radius: 4px;
    background: #4f654e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.kemono-report-submit:hover {
    opacity: 0.88;
}

.kemono-report-message {
    margin: 0 0 10px;
}


/* スマホ */

@media (max-width: 600px) {

    #kemono-report-date,
    #kemono-report-time {
        max-width: 100%;
    }

    .kemono-radio-group {
        gap: 10px 14px;
    }

    #kemono-monkey-report-map {
        height: 280px;
    }

    .kemono-report-submit {
        width: 100%;
    }
}


/* ==================================================
   日付・時刻ピッカー
   左アイコンのみ表示＋入力欄全体をクリック可能
   ================================================== */

#kemono-report-date,
#kemono-report-time {
    position: relative;
    cursor: pointer;
}

/*
 * Chrome / Edge / Safari の標準アイコンを透明化。
 * クリック領域は入力欄全体まで広げる。
 */
#kemono-report-date::-webkit-calendar-picker-indicator,
#kemono-report-time::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}


/* 投稿結果 */

.kemono-report-message {
    margin: 14px 0;
    font-weight: 700;
    line-height: 1.6;
}

.kemono-report-message.is-success {
    padding: 10px 12px;
    border: 1px solid #4f654e;
    border-radius: 4px;
    background: #f3f7f2;
    color: #314531;
}

.kemono-report-message.is-error {
    padding: 10px 12px;
    border: 1px solid #a32020;
    border-radius: 4px;
    background: #fff5f5;
    color: #8c1818;
}

.kemono-report-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* 投稿地点の赤ピン */

.kemono-report-pin-wrapper {
    background: transparent !important;
    border: 0 !important;
}

.kemono-report-pin {
    width: 24px;
    height: 24px;
    background: #d93636;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.35);
    transform: rotate(-45deg);
}

.kemono-report-pin::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    top: 8px;
    left: 8px;
    background: #fff;
    border-radius: 50%;
}

.kemono-report-pin {
    position: relative;
}


/* ==================================================
   発生時刻
   時計アイコン ｜ 現在時刻 ｜ ×
   ================================================== */

.kemono-time-input-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.kemono-time-input-wrap #kemono-report-time {
    width: 100%;
    max-width: none;
    box-sizing: border-box;

    /* 左：時計アイコン、右：×ボタン */
    padding-left: 42px;
    padding-right: 42px;

    background-position: 12px center;
}


/* 時刻クリア × */

.kemono-time-clear {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #666;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.kemono-time-clear:hover {
    background: #eee;
    color: #222;
}

.kemono-time-clear:focus {
    outline: 2px solid #4f654e;
    outline-offset: 1px;
}

@media (max-width: 600px) {

    .kemono-time-input-wrap {
        max-width: 100%;
    }
}


/* ==================================================
   地区名
   選択肢 ｜ ▼ ｜ ×
   ================================================== */

.kemono-district-input-wrap {
    position: relative;
    width: 100%;
}

#kemono-report-district {
    width: 100%;
    height: 44px;
    box-sizing: border-box;

    padding-left: 12px;
    padding-right: 75px;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    background-image: none;
}


/* プルダウン ▼ */

.kemono-district-input-wrap::after {
    content: "";
    position: absolute;

    right: 44px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 2px solid #666;
    border-bottom: 2px solid #666;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;
}


/* 地区名クリア × */

.kemono-district-clear {
    position: absolute;

    right: 7px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #666;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.kemono-district-clear:hover {
    background: #eee;
    color: #222;
}


/* ==================================================
   情報種別フィルター
   期間フィルターと同じデザイン
   ================================================== */

.kemono-monkey-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.kemono-monkey-type-filter button {
    appearance: none;
    border: 1px solid #777;
    background: #fff;
    color: #333;
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.kemono-monkey-type-filter button:hover {
    background: #f2f2f2;
}

.kemono-monkey-type-filter button.is-active {
    background: #4f654e;
    border-color: #4f654e;
    color: #fff;
    font-weight: 700;
}


/* ==================================================
   公開情報一覧
   ================================================== */

.kemono-monkey-public-list-wrap {
    width: 100%;
    margin-top: 14px;
    overflow-x: auto;
}

.kemono-monkey-public-list {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.kemono-monkey-public-list th,
.kemono-monkey-public-list td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    line-height: 1.5;
}

.kemono-monkey-public-list th {
    background: #f4f4f1;
    font-weight: 700;
    color: #333;
}

.kemono-monkey-public-list th:nth-child(1),
.kemono-monkey-public-list td:nth-child(1) {
    width: 25%;
}

.kemono-monkey-public-list th:nth-child(2),
.kemono-monkey-public-list td:nth-child(2) {
    width: 30%;
}

.kemono-monkey-public-list th:nth-child(3),
.kemono-monkey-public-list td:nth-child(3) {
    width: 45%;
}

.kemono-monkey-public-list tbody tr:last-child td {
    border-bottom: 0;
}


/* スマホ */

@media (max-width: 600px) {

    .kemono-monkey-public-list {
        font-size: 13px;
        table-layout: auto;
    }

    .kemono-monkey-public-list th,
    .kemono-monkey-public-list td {
        padding: 9px 7px;
    }

    .kemono-monkey-public-list th:nth-child(1),
    .kemono-monkey-public-list td:nth-child(1) {
        width: 24%;
        white-space: nowrap;
    }

    .kemono-monkey-public-list th:nth-child(2),
    .kemono-monkey-public-list td:nth-child(2) {
        width: 32%;
    }

    .kemono-monkey-public-list th:nth-child(3),
    .kemono-monkey-public-list td:nth-child(3) {
        width: 44%;
    }
}


/* ==================================================
   公開情報一覧 デザイン調整
   ================================================== */

.kemono-monkey-public-list {
    border-collapse: collapse;
    background: #fff;
}

.kemono-monkey-public-list th,
.kemono-monkey-public-list td {
    border: 1px solid #777;
}

.kemono-monkey-public-list th {
    background: #dde7d8;
    color: #222;
    text-align: center;
    font-weight: 700;
}

.kemono-monkey-public-list td {
    background: #fff;
    color: #222;
    text-align: left;
}


/* 公開情報 もっと見る */

.kemono-monkey-public-list-more {
    display: none;
    margin: 12px auto 18px;
    padding: 8px 22px;

    border: 1px solid #777;
    border-radius: 5px;

    background: #fff;
    color: #333;

    font-size: 14px;
    cursor: pointer;
}

.kemono-monkey-public-list-more:hover {
    background: #f2f2f2;
}




/* ==================================================
   サル情報マーカー 画像アイコン
   ================================================== */

.kemono-marker-wrapper {
    background: transparent !important;
    border: 0 !important;
}

.kemono-marker {
    position: relative !important;
    display: block !important;

    width: 48px !important;
    height: 48px !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.kemono-marker-image {
    display: block;
    width: 48px;
    height: 48px;

    object-fit: cover;
    border-radius: 50%;
}

.kemono-marker-badge {
    z-index: 5;
}
