/* meus-resorts.css v1.0 — Logbook de esqui (meus-resorts.html). Usa as cores e os componentes do profile.css. */
.lb-eyebrow { font: 800 0.72rem 'Archivo', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 2px; }
.lb-add-btn { background: var(--accent-primary); border-color: var(--accent-primary); color: #0C1A2A; font-weight: 700; }
.lb-add-btn:hover { background: var(--accent-primary); color: #0C1A2A; filter: brightness(1.08); }
.lb-main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px 40px 48px; display: flex; flex-direction: column; gap: 22px; }
.lb-main > [hidden] { display: none; }

/* resumo */
.lb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.lb-stats:empty { display: none; }
.lb-stats .stat-card { padding: 16px; }
.lb-stats .stat-value { font-size: 1.7rem; }
.lb-stat-sub { margin-top: 4px; font-size: 0.75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* mapa */
.lb-map { height: 340px; border-radius: 16px; border: 1px solid var(--glass-border); overflow: hidden; background: var(--bg-secondary); }
.lb-map .leaflet-popup-content-wrapper, .lb-map .leaflet-popup-tip { background: var(--bg-secondary); color: var(--text-primary); }
.lb-map .leaflet-popup-content { font: 0.85rem/1.5 'Archivo', sans-serif; }

/* lista */
.lb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lb-toolbar h2 { font: 800 1.15rem 'Archivo', sans-serif; display: flex; align-items: center; gap: 8px; }
.lb-toolbar h2 i { color: var(--accent-primary); }
.lb-view { display: flex; gap: 8px; }
.lb-list { display: flex; flex-direction: column; gap: 10px; }
.lb-list .p3d-group small { font: 500 0.8rem 'Archivo', sans-serif; color: var(--text-muted); }
.lb-card .p3d-title b { font-size: 1.08rem; }
.lb-stars-ro { color: #FFD23F; letter-spacing: 1px; }
.lb-stars-ro i { font-style: normal; color: rgba(255, 255, 255, 0.15); }
.lb-ste { background: linear-gradient(135deg, rgba(63, 169, 245, .22), rgba(63, 169, 245, .22)); color: #fff; }
.lb-custom-badge { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); font-weight: 500; }
.lb-empty .p3d-btn { margin-top: 14px; }
.lb-dismissed { color: var(--text-muted); font-size: 0.85rem; margin-top: 14px; }
.lb-dismissed[hidden] { display: none; }

/* sugestões dos GPS */
.lb-suggest { padding: 18px; border-radius: 16px; border: 1px solid rgba(63, 169, 245, 0.35); background: linear-gradient(180deg, rgba(63, 169, 245, 0.09), rgba(63, 169, 245, 0.02)); }
.lb-sg-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lb-sg-head > i { font-size: 1.6rem; color: var(--accent-primary); }
.lb-sg-head > div { flex: 1; min-width: 220px; }
.lb-sg-head b { display: block; font: 800 1rem 'Archivo', sans-serif; }
.lb-sg-head span { color: var(--text-secondary); font-size: 0.86rem; }
.lb-sg-list { display: flex; flex-direction: column; gap: 10px; }
.lb-sg-text { margin: 6px 0 8px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.45; }
.lb-sg-dates { max-width: 380px; }

/* formulário */
.lb-modal .edit-modal { width: 560px; }
.lb-input { width: 100%; padding: 11px 13px; background: var(--bg-primary); border: 1px solid var(--glass-border); border-radius: 10px;
    color: var(--text-primary); font: 0.9rem 'Archivo', sans-serif; transition: var(--transition-fast); color-scheme: dark; }
.lb-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 12px var(--accent-glow); }
.lb-num { max-width: 140px; }
.lb-row { display: flex; gap: 10px; }
.lb-row > * { flex: 1; min-width: 0; }
.lb-row[hidden], .lb-when [hidden], .lb-input[hidden] { display: none; }
.lb-sub { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--text-muted); }
.edit-field label.lb-sub { text-transform: none; letter-spacing: 0; font-weight: 500; margin: 0; }
.lb-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-muted); }
.lb-resort-field { position: relative; }
.lb-options { position: absolute; left: 0; right: 0; z-index: 5; margin-top: 4px; max-height: 300px; overflow-y: auto; padding: 6px;
    background: var(--bg-secondary); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; box-shadow: var(--glass-shadow); }
.lb-options[hidden] { display: none; }
.lb-options button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px;
    border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.lb-options button span { color: var(--text-muted); font-size: 0.8rem; }
.lb-options button:hover, .lb-options button:focus-visible { background: rgba(63, 169, 245, 0.14); }
.lb-options .lb-opt-custom { justify-content: flex-start; color: var(--accent-primary); font-weight: 700; border-top: 1px solid var(--glass-border); border-radius: 0 0 8px 8px; margin-top: 4px; }
.lb-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: 10px;
    border: 1px solid var(--accent-primary); background: rgba(63, 169, 245, 0.1); }
.lb-picked[hidden], .lb-custom[hidden], #lbResortSearch[hidden] { display: none; }
.lb-picked i { color: var(--accent-primary); }
.lb-custom { margin-top: 10px; }
.lb-seg { display: flex; border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.edit-field .lb-seg label, .edit-field .lb-pills label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }
.lb-seg label { flex: 1; cursor: pointer; }
.lb-seg input, .lb-pills input { position: absolute; opacity: 0; pointer-events: none; }
.lb-seg span { display: block; text-align: center; padding: 9px 6px; font-size: 0.85rem; color: var(--text-secondary); transition: var(--transition-fast); }
.lb-seg label + label span { border-left: 1px solid var(--glass-border); }
.lb-seg input:checked + span { background: rgba(63, 169, 245, 0.16); color: #fff; font-weight: 700; }
.lb-seg input:focus-visible + span, .lb-pills input:focus-visible + span { outline: 2px solid var(--accent-primary); outline-offset: -2px; }
.lb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-pills label { cursor: pointer; }
.lb-pills span { display: inline-block; padding: 7px 13px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--bg-primary);
    font-size: 0.85rem; color: var(--text-secondary); transition: var(--transition-fast); }
.lb-pills input:checked + span { border-color: var(--accent-primary); background: rgba(63, 169, 245, 0.14); color: #fff; }
.lb-stars { display: flex; gap: 4px; }
.lb-stars button { all: unset; cursor: pointer; font-size: 1.7rem; line-height: 1; color: rgba(255, 255, 255, 0.18); transition: transform .1s; }
.lb-stars button.on { color: #FFD23F; }
.lb-stars button:hover { transform: scale(1.12); }
.lb-stars button:focus-visible { outline: 2px solid var(--accent-primary); border-radius: 4px; }
.edit-field label.lb-check { display: flex; align-items: center; gap: 10px; cursor: pointer; text-transform: none; letter-spacing: 0;
    font-size: 0.9rem; font-weight: 500; color: var(--text-primary); margin: 0; }
.lb-check input { width: 18px; height: 18px; accent-color: var(--accent-primary); flex: none; }
label.lb-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; line-height: 1.45; }
.lb-gps-list { display: flex; flex-direction: column; gap: 6px; }
.lb-gps { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 0.85rem; }
.lb-gps i { color: var(--accent-primary); }
.lb-gps span { flex: 1; min-width: 0; }
.lb-err { padding: 10px 12px; border-radius: 10px; background: rgba(255, 91, 46, 0.12); color: #ff8a5c; font-size: 0.86rem; }
.lb-err[hidden] { display: none; }
.lb-del { margin-right: auto; color: var(--accent-danger); }
.lb-del[hidden] { display: none; }
#lbSaveBtn:disabled { opacity: .6; cursor: wait; }

/* compartilhar */
.lb-share-box { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.lb-share-box[hidden] { display: none; }
.lb-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .lb-main { padding: 18px 16px 40px; }
    .lb-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .lb-map { height: 260px; }
    .lb-row { flex-direction: column; }
    .lb-sg-head .p3d-btn { width: 100%; justify-content: center; }
    .profile-header-actions { flex-wrap: wrap; }
}
