/* 寵物護照 前台樣式 */
.pp-wrap { max-width: 900px; margin: 0 auto; color: #333; }
.pp-wrap * { box-sizing: border-box; }

.pp-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pp-title { margin: 0; font-size: 1.5em; }

.pp-btn { display: inline-block; border: 0; border-radius: 8px; padding: 9px 16px; font-size: 0.95em; cursor: pointer; text-decoration: none; line-height: 1.2; transition: opacity .15s ease; }
.pp-btn:hover { opacity: .88; }
.pp-btn-primary { background: #ff8a3d; color: #fff; }
.pp-btn-ghost { background: #f0f0f0; color: #444; }
.pp-btn-danger { background: #fff; color: #d63638; border: 1px solid #e6b8b9; }
.pp-btn-sm { padding: 6px 12px; font-size: 0.85em; }

.pp-notice { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 0.95em; }
.pp-notice-ok { background: #e7f6ec; color: #1a7f3c; }
.pp-notice-err { background: #fdecec; color: #b32020; }

.pp-empty, .pp-login-note { background: #fafafa; border: 1px dashed #ddd; border-radius: 10px; padding: 22px; text-align: center; color: #777; }

/* 表單 */
.pp-form-box { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.pp-form-box h3, .pp-form-box h4 { margin-top: 0; }
.pp-field { margin-bottom: 14px; }
.pp-field > label { display: block; font-weight: 600; margin-bottom: 6px; }
.pp-field input[type=text], .pp-field input[type=file] { width: 100%; padding: 9px 11px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95em; }
.pp-hint { display: block; font-weight: 400; color: #999; font-size: 0.82em; margin-top: 2px; }
.pp-req { color: #e5533d; }
.pp-optional { color: #aaa; font-weight: 400; font-size: 0.85em; }
.pp-radio-row { display: flex; gap: 18px; }
.pp-radio { font-weight: 400; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.pp-form-actions { display: flex; gap: 10px; margin-top: 8px; }

.pp-avatar-preview { margin-top: 10px; }
.pp-preview-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid #eee; }

/* 寵物卡片 */
.pp-pets { display: flex; flex-direction: column; gap: 22px; }
.pp-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.pp-card-top { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pp-card-avatar { flex: 0 0 auto; }
.pp-avatar-img { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; display: block; }
.pp-avatar-none { background: #f2f2f2; color: #bbb; display: flex; align-items: center; justify-content: center; font-size: 0.85em; }
.pp-card-info { flex: 1 1 220px; }
.pp-pet-name { margin: 0 0 8px; font-size: 1.25em; }
.pp-meta { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pp-meta li { font-size: 0.92em; color: #555; }
.pp-meta li span { color: #aaa; margin-right: 6px; }
.pp-card-actions { display: flex; gap: 8px; align-items: center; }
.pp-inline-form { display: inline; margin: 0; }

/* 出遊紀錄 */
.pp-trips { margin-top: 16px; border-top: 1px dashed #eee; padding-top: 14px; }
.pp-trips-title { margin: 0 0 12px; font-size: 1.05em; color: #ff8a3d; }
.pp-no-trip { color: #999; font-size: 0.92em; }
.pp-trip-list { display: flex; flex-direction: column; gap: 16px; }
.pp-trip { background: #fbfbfb; border-radius: 10px; padding: 12px 14px; }
.pp-trip-date { font-weight: 700; margin-bottom: 8px; color: #444; }
.pp-trip-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pp-trip-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.pp-trip-photo-link { line-height: 0; }
.pp-trip-text { font-size: 0.95em; color: #555; line-height: 1.6; }
.pp-trip-text p { margin: 0 0 6px; }

/* 燈箱 */
.pp-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 99999; align-items: center; justify-content: center; cursor: zoom-out; }
.pp-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.pp-lightbox-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.2em; line-height: 1; cursor: pointer; }

@media (max-width: 600px) {
	.pp-avatar-img { width: 88px; height: 88px; }
	.pp-trip-photo { width: calc(33.333% - 6px); height: auto; aspect-ratio: 1/1; }
}


/* ===== 寵物護照必填表單（1.12.0） ===== */
.pp-petform-bar{border:1px solid #d9e4d2;background:#f4f8f0;border-radius:14px;padding:16px 18px;margin:0 0 18px}
.pp-petform-head{font-weight:700;font-size:1.02em;margin-bottom:8px}
.pp-petform-steps{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:6px}
.pp-petform-step{font-size:.92em;color:#5a6d5e;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pp-petform-step.pp-now{color:#1f2a20;font-weight:700}
.pp-petform-tag{font-size:.78em;border-radius:999px;padding:1px 10px;background:#e7eedf;color:#5a6d5e}
.pp-petform-step.pp-done .pp-petform-tag{background:#3c7a4c;color:#fff}
.pp-petform-step.pp-now .pp-petform-tag{background:#e9a93f;color:#1f2a20}
.pp-petform-note{font-size:.88em;color:#5a6d5e;margin:6px 0 0}
.pp-petform-pets{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.pp-petform-pet{display:inline-block;padding:7px 16px;border-radius:999px;border:1px solid #cfdcc6;background:#fff;color:#1f2a20;text-decoration:none;font-size:.9em}
.pp-petform-pet:hover{border-color:#3c7a4c}
.pp-petform-pet.pp-done{opacity:.6}
.pp-petstatus{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 4px;font-size:.9em;border-radius:10px;padding:8px 12px}
.pp-petstatus.pp-ok{background:#eef5e8;color:#2f6b43}
.pp-petstatus.pp-warn{background:#fdf3e2;color:#8a5a12}


/* ===== 必填表單彈窗（1.13.0） ===== */
.pp-fm-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px}
.pp-fm-backdrop{position:absolute;inset:0;background:rgba(20,30,22,.5)}
.pp-fm-box{position:relative;background:#fff;border-radius:20px;width:min(640px,100%);max-height:88vh;overflow-y:auto;padding:24px;box-shadow:0 30px 60px -28px rgba(20,30,22,.6)}
.pp-fm-x{position:absolute;top:10px;right:14px;width:36px;height:36px;border-radius:50%;background:#eef2ea;color:#1f2a20;display:flex;align-items:center;justify-content:center;font-size:1.3rem;line-height:1;text-decoration:none}
.pp-fm-x:hover{background:#dde5d7}
.pp-fm-head{margin:0 0 14px;padding-right:44px}
.pp-fm-title{font-size:1.2rem;font-weight:700;line-height:1.3}
.pp-fm-step{margin-top:4px;font-size:.9rem;color:#5a6d5e}
.pp-fm-body .pp-form-wrap{margin:0}
.pp-fm-foot{margin:14px 0 0;font-size:.84rem;color:#5a6d5e}
@media (max-width:560px){.pp-fm-box{padding:18px;border-radius:16px}}

/* 全團共同紀錄（1.14.0） */
.pp-trip-group{background:#f4f8f0;border-radius:14px;padding:14px 16px;border:1px solid #dfe8d8}
.pp-trip-tag{display:inline-block;margin-left:8px;font-size:.72em;font-weight:700;letter-spacing:.06em;background:#3c7a4c;color:#fff;border-radius:999px;padding:2px 10px;vertical-align:2px}
