/* Shared places (docs/PLACES.md, Phase 5): place pins and place cards on the map
   (resources/js/map-places.js, public/js/frnd-pin.js), the collection-card link, and the place page. */

/* Pin holding several markers: ink badge with the count on the pin's shoulder. */
.frnd-pin__count {
	position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
	border: 2px solid #FFFFFF; border-radius: 999px; background: #262626; color: #FFFFFF;
	font: 800 11px/16px Inter, system-ui, sans-serif; text-align: center; box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* Place card in the map popup. */
.frnd-iw--place { width: 18rem; max-width: 100%; background: #FFFFFF; font: 400 14px/1.35 Inter, system-ui, sans-serif; color: #262626; }
.frnd-iw-place__head { padding: .875rem 2.25rem .625rem 1rem; border-bottom: 1px solid #ECE7DA; }
.frnd-iw-place__kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B6B6B; }
.frnd-iw-place__name { display: block; margin-top: .125rem; font-size: 16px; font-weight: 700; color: #262626; text-decoration: none; }
a.frnd-iw-place__name:hover { text-decoration: underline; }
.frnd-iw-place__address { margin-top: .125rem; font-size: 13px; color: #6B6B6B; }
.frnd-iw-place__list { list-style: none; margin: 0; padding: .25rem 0; max-height: 15rem; overflow-y: auto; }
.frnd-iw-place__item { display: grid; grid-template-columns: 10px 1fr; column-gap: .625rem; padding: .5rem 1rem; }
.frnd-iw-place__item[aria-current="true"] { background: #F4F1E8; }
.frnd-iw-place__dot { grid-row: span 2; width: 10px; height: 10px; margin-top: .3rem; border-radius: 50%; background: #E4572E; }
.frnd-iw-place__item--event .frnd-iw-place__dot { background: #8656B7; }
.frnd-iw-place__item--location .frnd-iw-place__dot { background: #1F6B45; }
.frnd-iw-place__title { font-weight: 600; color: #262626; text-decoration: none; }
.frnd-iw-place__title:hover { text-decoration: underline; }
.frnd-iw-place__meta { font-size: 12px; color: #6B6B6B; }
.frnd-iw-place__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .5rem 1rem .75rem; border-top: 1px solid #ECE7DA; font-size: 13px; }
.frnd-iw-place__all { font-weight: 600; }
.frnd-iw-place__fix { color: #6B6B6B; }

/* Collection cards: "N other markers at this place". */
.mcard__place-others { display: inline-block; margin-top: .375rem; font-size: 13px; font-weight: 600; }

/* Place page (resources/views/places/show.blade.php). */
.frnd-place { padding: var(--space-16, 4rem) 0; }
.frnd-place__head { max-width: 46rem; margin: 0 auto var(--space-8, 2rem); text-align: center; }
.frnd-place__kicker { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B6B6B; }
.frnd-place__title { margin: .25rem 0; }
.frnd-place__address { margin: 0; color: #505050; }
.frnd-place__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin: .75rem 0 0; font-weight: 600; }
.frnd-place__count { margin: .75rem 0 0; font-size: .875rem; color: #6B6B6B; }
.frnd-place__cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.frnd-place__more { margin: 1.5rem auto 0; text-align: center; }
.frnd-place__suggest { max-width: 32rem; margin: 3rem auto 0; padding: 1rem 1.25rem; border: 1px solid #E4DECF; border-radius: 10px; background: #FBFAF6; }
.frnd-place__suggest summary { cursor: pointer; font-weight: 600; }
.frnd-place__suggest-form { display: flex; flex-direction: column; gap: .375rem; margin-top: 1rem; }
.frnd-place__suggest-form .thm-btn { align-self: flex-start; margin-top: .5rem; }

/* Place page: claim box and "managed by the business". */
.frnd-place__claimed { display: inline-block; margin: .75rem 0 0; padding: .25rem .75rem; border-radius: 999px; background: #E5F4E4; font-size: .875rem; font-weight: 600; }
.frnd-place__note { margin: .75rem 0 0; font-size: .9375rem; color: #505050; }
#claim { margin-top: 1.5rem; }

/* Owner pages (resources/views/account/places/*). */
.frnd-owner { padding: var(--space-16, 4rem) 0; }
.frnd-owner__lead { max-width: 42rem; color: #505050; }
.frnd-owner__claims { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 46rem; }
.frnd-owner__claim { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid #E8E4D8; }
.frnd-owner__sub { display: block; font-size: .875rem; color: #6B6B6B; }
.frnd-owner__status { font-size: .875rem; font-weight: 600; }
.frnd-owner__status--pending { color: #8A5A00; }
.frnd-owner__status--rejected, .frnd-owner__status--revoked { color: #852A0E; }
.frnd-owner__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.frnd-owner__title { margin: .25rem 0; }
.frnd-owner__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin-bottom: .5rem; }
.frnd-owner__tile { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid #E4DECF; border-radius: 10px; background: #FFFFFF; }
.frnd-owner__num { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: #262626; font-variant-numeric: tabular-nums; }
.frnd-owner__label { font-size: .875rem; color: #505050; }
.frnd-owner__h2 { margin: 2.5rem 0 .75rem; font-size: 1.25rem; font-weight: 700; }
.frnd-owner__list { padding-left: 1.25rem; }
.frnd-owner__upsell { margin-top: 2rem; padding: 1rem 1.25rem; border: 1px solid #D9D3C3; border-left: 4px solid #2F6F9A; border-radius: 8px; background: #FBFAF6; }
.frnd-owner__upsell .frnd-owner__h2 { margin-top: 0; }
.frnd-owner__chart { margin: 0; max-width: 46rem; }
.frnd-owner__chart svg { display: block; width: 100%; height: 160px; }
.frnd-owner__scale { margin: 0 0 .25rem; font-size: .75rem; color: #6B6B6B; }
.frnd-owner__ticks { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .75rem; color: #6B6B6B; }
.frnd-owner__bar path { fill: #2F6F9A; }
.frnd-owner__bar:hover path { fill: #1B4A63; }
.frnd-owner__axis { stroke: #8C8C8C; stroke-width: 1; }
.frnd-owner__table-toggle { margin-top: .75rem; }
.frnd-owner__table-toggle summary { cursor: pointer; font-weight: 600; }
.frnd-owner__scroll { overflow-x: auto; }
.frnd-owner__table { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: .9375rem; }
.frnd-owner__table th, .frnd-owner__table td { padding: .5rem .75rem; border-bottom: 1px solid #E8E4D8; text-align: left; }
.frnd-owner__table th { font-weight: 600; color: #505050; }
.frnd-owner__table .num { text-align: right; font-variant-numeric: tabular-nums; }
.frnd-owner__form { display: flex; flex-direction: column; gap: .375rem; max-width: 32rem; }
.frnd-owner__form .thm-btn, .frnd-owner__form .ds-btn { align-self: flex-start; margin-top: .5rem; }

/* Phase 7: closed or moved places, places inside places (place page and map). */
.frnd-place__status { display: inline-block; margin: .5rem 0 0; padding: .25rem .75rem; border-radius: 999px; background: #F9EEDA; font-weight: 600; }
.frnd-place__status--closed { background: #FBEBEB; color: #852A0E; }
.frnd-place__inside { margin: .5rem 0 0; font-weight: 600; }
.frnd-place__h2 { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 700; }
.frnd-place__children { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }
.frnd-place__children ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; padding: 0; margin: 0; }
.frnd-place__sub { color: #6B6B6B; font-size: .875rem; }
.frnd-iw-place__status { display: inline-block; margin-top: .25rem; padding: .125rem .5rem; border-radius: 999px; background: #FBEBEB; color: #852A0E; font-size: 11px; font-weight: 700; }
.frnd-iw-place__inside { margin-top: .125rem; font-size: 12px; color: #505050; }
.frnd-pin--closed { opacity: .55; filter: grayscale(.8); }
