html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ───────────── Navbar ───────────── */

.site-navbar {
    background: linear-gradient(135deg, #1a7a4a 0%, #2ea86b 100%);
    padding: .6rem 0;
    box-shadow: 0 2px 12px rgba(25, 135, 84, .3);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .01em;
    transition: opacity .15s;
}

.site-brand:hover { opacity: .85; }

.brand-leaf {
    font-size: 1.4rem;
    line-height: 1;
}

.site-nav-link {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .42rem .85rem;
    border-radius: 999px;
    color: rgba(255,255,255,.88) !important;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.site-nav-link:hover {
    background: rgba(255,255,255,.18);
    color: #fff !important;
}

.site-nav-link.disabled-link {
    color: rgba(255,255,255,.45) !important;
    cursor: default;
    pointer-events: none;
}

.nav-icon { font-size: 1rem; line-height: 1; }

.site-toggler {
    border-color: rgba(255,255,255,.5);
    filter: invert(1);
}

/* ───────────── Footer ───────────── */

.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    color: #6c757d;
    font-size: .82rem;
}

/* ───────────── 首頁 Hero ───────────── */

.pikmin-hero {
    background: linear-gradient(160deg, #f0fdf4 0%, #fefce8 60%, #fff 100%);
    border: 1px solid #d1fae5;
    box-shadow: 0 4px 24px rgba(25, 135, 84, .08);
}

.pikmin-hero h1 { color: #14532d; }

.hero-emoji {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.08));
}

.hero-sub {
    font-size: 1.05rem;
    color: #4b7a5a;
    letter-spacing: .02em;
}

/* ───────────── 首頁功能卡 ───────────── */

.feature-card {
    border-radius: 1rem !important;
    transition: transform .18s, box-shadow .18s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .1) !important;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: .75rem;
    font-size: 1.6rem;
}

.bg-pink-subtle  { background-color: #fce4ec; }
.opacity-60      { opacity: .6; pointer-events: none; }

/* ───────────── 純點列表頁 ───────────── */

.pure-page-header {
    background: linear-gradient(160deg, #f0fdf4 0%, #fefce8 100%);
    border: 1px solid #d1fae5;
}

.pure-stat-badge {
    display: inline-block;
    background: #166534;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem .75rem;
    border-radius: 999px;
}

.filter-label {
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .3rem;
    display: block;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    padding: .18rem .65rem;
}

.filter-tag-green {
    background: #dcfce7;
    color: #15803d;
}

.pure-card {
    border-radius: .875rem !important;
    transition: transform .16s, box-shadow .16s;
}

.pure-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.1) !important;
}

.pure-type-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: .4rem;
    font-size: .78rem;
    font-weight: 500;
    padding: .18rem .55rem;
}

.btn-pure-action {
    border-radius: 999px !important;
    font-size: .78rem;
    padding: .25rem .65rem;
}

/* 分頁綠色 active */
.pagination .page-item.active .page-link {
    background-color: #166534;
    border-color: #166534;
    color: white;
}
.pagination .page-link {
    color: #166534;
}
.pagination .page-link:hover {
    color: #14532d;
}

/* ───────────── 純點 / 明信片 共用樣式 ───────────── */

/* 飾品種類 chip 群 */
.decor-chips .btn-check:checked + .btn {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.coord-row {
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}

.coord-row:hover {
    color: #198754 !important;
}

.spot-card {
    transition: transform .15s, box-shadow .15s;
}

.spot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1) !important;
}

.btn-like.liked {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
}

/* ───────────── 明信片卡 ───────────── */

.postcard-card {
    transition: transform .15s, box-shadow .15s;
    overflow: hidden;
}

.postcard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1) !important;
}

.postcard-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 64 / 30; /* 橫向長方形 */
    overflow: hidden;
    background: #f1f3f5;
}

.postcard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.postcard-like-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .85rem;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ───────────── 右下角 FAB ───────────── */

.fab-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #198754;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(25, 135, 84, .4);
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s;
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 135, 84, .55);
    color: #fff !important;
}

.fab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .fab-btn .fab-text { display: none; }
    .fab-btn { padding: 14px 16px; }
}

/* ───────────── 純點地圖 ───────────── */

#map {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.map-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.map-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #198754;
    color: #fff !important;
    border-radius: 8px;
    padding: 5px 13px;
    font-size: .85rem;
    font-weight: 600;
    flex-shrink: 0;
    text-decoration: none;
    transition: background .15s;
}

.map-back-btn:hover { background: #157347; }

.map-select {
    max-width: 130px;
    font-size: .85rem;
}

.map-filter-label {
    font-size: .9rem;
    line-height: 1;
}

.map-hint {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 253, 244, 0.75);
    backdrop-filter: blur(4px);
}

.map-hint-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    border: 1px solid #d1fae5;
}