
/* Vorship components. Every value comes from tokens.css custom properties. */
.vs-icon { display: block; flex: none; }
.vs-iconbtn { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.vs-iconbtn:focus-visible, .vs-btn:focus-visible, .vs-tab:focus-visible, .vs-fav:focus-visible, .vs-tabbar__item:focus-visible, .vs-marker:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Button */
.vs-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sans); cursor: pointer; border-radius: var(--radius-sm); }
.vs-btn--primary { height: var(--size-button); padding: 0 var(--space-20); border: 0; background: var(--primary); color: var(--on-primary); font-size: 16px; line-height: 20px; font-weight: 600; }
.vs-btn--outline-inverse { height: var(--size-follow); min-width: 80px; padding: 0 var(--space-16); border: 1px solid var(--on-image); background: transparent; color: var(--on-image); font-size: 14px; line-height: 18px; font-weight: 400; }
.vs-btn--block { display: flex; width: 100%; }
.vs-btn:disabled { opacity: .4; cursor: default; }

/* Tabs */
.vs-tabs { display: flex; height: var(--size-tabs); background: var(--surface); border-bottom: 1px solid var(--divider); }
.vs-tab { position: relative; flex: 1 1 0; border: 0; background: none; padding: 0 var(--space-8); font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; color: var(--tab-inactive); cursor: pointer; }
.vs-tab.is-active { color: var(--tab-active); }
.vs-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--space-4); background: var(--primary); }

/* Favorite */
.vs-fav { display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; color: var(--favorite); border-radius: var(--radius-full); }
.vs-fav--badge { width: var(--size-favorite); height: var(--size-favorite); border: 0; background: var(--surface); }
.vs-fav--ring { width: 40px; height: 40px; border: 2px solid var(--favorite); background: var(--surface); }

/* Place card */
.vs-card { font-family: var(--font-sans); min-width: 0; cursor: pointer; }
.vs-card__media { position: relative; aspect-ratio: 184 / 120; border-radius: var(--radius-md); overflow: hidden; background: var(--illustration-fill); }
.vs-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-card__fav { position: absolute; top: var(--space-8); right: var(--space-8); }
.vs-card__title { margin: var(--space-8) 0 0; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-card__addr { margin: var(--space-4) 0 0; font-size: 16px; line-height: 20px; font-weight: 400; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Navigation header */
.vs-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 44px; padding: 0 var(--space-16); background: var(--surface); border-bottom: 1px solid var(--hairline); color: var(--header-title); font-family: var(--font-sans); }
.vs-nav__title { margin: 0; text-align: center; font-size: 17px; line-height: 22px; font-weight: 700; color: var(--header-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-nav__back { justify-self: start; }
.vs-nav__end { justify-self: end; }

/* Bottom tab bar */
.vs-tabbar { display: flex; height: 56px; background: var(--surface); border-top: 1px solid var(--hairline); }
.vs-tabbar__item { flex: 1 1 0; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--icon-inactive); cursor: pointer; }
.vs-tabbar__item.is-active { color: var(--primary); }

/* Search bar */
.vs-search { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-8); height: var(--size-search); padding: 0 var(--space-16); background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-float); font-family: var(--font-sans); }
.vs-search__icon { color: var(--input-text); }
.vs-search__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 16px/20px var(--font-sans); color: var(--input-text); caret-color: var(--primary); -webkit-appearance: none; appearance: none; }
.vs-search__input::-webkit-search-cancel-button { display: none; }
.vs-search__input::placeholder { color: var(--text-body); }
.vs-search__clear { color: var(--icon-clear); }

/* Map sheet card */
.vs-sheet { box-sizing: border-box; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-16); align-items: start; padding: var(--space-16); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); font-family: var(--font-sans); }
.vs-sheet__thumb { display: block; width: var(--size-thumb); height: var(--size-thumb); object-fit: cover; border-radius: var(--radius-md); }
.vs-sheet__dist { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-8); font-size: 16px; line-height: 20px; color: var(--text-body); white-space: nowrap; }
.vs-sheet__dist .vs-icon { color: var(--icon-muted); }
.vs-sheet__title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-strong); }
.vs-sheet__addr { margin: var(--space-8) 0 0; font-size: 16px; line-height: 20px; color: var(--text-body); }

/* Map marker */
.vs-marker { position: relative; padding: 4px; border: 0; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-float); cursor: pointer; }
.vs-marker img { display: block; width: 40px; height: 40px; object-fit: cover; border-radius: var(--space-4); }
.vs-marker::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--surface); }
.vs-marker.is-active { outline: 2px solid var(--primary); }

/* Profile / place hero */
.vs-hero { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; color: var(--on-image); font-family: var(--font-sans); background: var(--text-strong); }
.vs-hero__bg { position: absolute; inset: 0; }
.vs-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px); transform: scale(1.15); }
.vs-hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); }
.vs-hero__bar { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: var(--space-8) var(--space-20) 0; }
.vs-hero__main { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-16) var(--space-20) var(--space-20); }
.vs-hero__avatar { width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); object-fit: cover; }
.vs-hero__name { margin: var(--space-16) 0 0; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--on-image); }
.vs-hero__stat { margin-top: var(--space-16); display: flex; flex-direction: column; align-items: center; }
.vs-hero__stat strong { font-size: 16px; line-height: 20px; font-weight: 600; }
.vs-hero__stat span { font-size: 14px; line-height: 18px; color: var(--on-image-muted); }

/* Empty state */
.vs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-20); font-family: var(--font-sans); }
.vs-empty__art { width: 176px; height: auto; display: block; }
.vs-empty__title { margin: var(--space-16) 0 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-strong); }
.vs-empty__body { margin: var(--space-8) 0 0; max-width: 240px; font-size: 16px; line-height: 20px; color: var(--text-body); }
