/* Shops of the design renewal (#105: the shop search, shops by prefecture, yearly search keywords, the Hotpepper detail and
   the registered shops). Lists share the page composition and the photo column of brand-list.css; shared controls live in
   /css/umeshu/umeshu.css and are not overridden. */

/* Texts from shops and the provider keep their line breaks as the legacy .public-text did. */
.shop-list-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Rows (_ume/shop_list.tpl and the registered shops). */
.shop-list-photo { display: grid; gap: 4px; justify-items: center; }
.shop-list-credit { font-size: 10px; line-height: 1.5; color: var(--ume-color-muted); text-align: center; }
.shop-list-source { display: inline-block; margin-bottom: 4px; padding: 1px 10px; border-radius: 999px; background: var(--ume-color-soft);
  border: 1px solid var(--ume-color-line); font-size: var(--ume-text-xs); line-height: 1.8; color: var(--ume-color-muted); }
.shop-list-name { font-size: inherit; font-weight: inherit; }
.shop-list-distance { margin-top: 4px; font-size: var(--ume-text-sm); font-weight: var(--ume-weight-bold); color: var(--ume-color-link); }
.shop-list-genre { margin-top: 4px; }
.brand-list-body > .shop-list-text { margin-top: 8px; max-width: 46em; font-size: var(--ume-text-sm); line-height: 1.9; }
.shop-list-details { display: grid; gap: 4px; margin-top: 10px; font-size: var(--ume-text-sm); }
.shop-list-details > div { display: flex; flex-wrap: wrap; column-gap: 12px; min-width: 0; }
.shop-list-details dt { flex: none; color: var(--ume-color-muted); }
.shop-list-details dd { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.shop-list-details a, .shop-account-sources a { color: var(--ume-color-link); text-decoration: underline; }
.shop-list-empty p { word-break: auto-phrase; }

/* Search page: the form composition comes from brand-list.css (#98). */
/* The live region stays in the page for announcements; it takes no room until the script writes a status. */
.shop-location-status:empty { margin: 0; }
/* The keyword search and the location search are separate boxes, so the radius never reads as a filter of keyword results. */
.shop-search-methods { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.shop-search-method { min-width: 0; padding: 24px 28px; background: var(--ume-color-soft); border: 1px solid var(--ume-color-line); border-radius: var(--ume-radius-control); }
.shop-search-method-title { margin-bottom: 16px; font-size: var(--ume-text-lg); font-weight: var(--ume-weight-bold); line-height: 1.6; }
.shop-location-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.shop-location-field { flex: 0 1 240px; }
.shop-location-note { margin-top: 8px; }
.shop-location-status { margin-top: 8px; font-size: var(--ume-text-sm); font-weight: var(--ume-weight-bold); color: var(--ume-color-link); }
.shop-provider-note { margin-bottom: 20px; }
.shop-results-order { margin-bottom: 20px; font-size: var(--ume-text-sm); }
.shop-results .brand-list-results-title h2 { min-width: 0; overflow-wrap: anywhere; }
.shop-credit { margin-top: 24px; font-size: var(--ume-text-xs); color: var(--ume-color-muted); }
.shop-credit a { color: inherit; text-decoration: underline; }
.shop-prefectures { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--ume-color-line); }
.shop-region-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 40px; margin-top: 12px; }
.shop-more { margin-top: 28px; }
.shop-page .brand-list-heading a { color: var(--ume-color-link); text-decoration: underline; }

/* Yearly search keywords: the rank mark of the renewed rankings (brand-list.css). */
.shop-query-ranking { margin-top: 32px; }
.shop-query + .shop-query { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ume-color-line); }
.shop-query-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.shop-query-title .brand-list-rank { margin-top: 0; }
.shop-query-name { min-width: 0; flex: 1 1 12em; font-size: 22px; overflow-wrap: anywhere; }
.shop-query-name a { color: var(--ume-color-link); text-decoration: underline; }
.shop-query-count { flex: none; font-size: var(--ume-text-sm); }

/* Hotpepper detail. */
.shop-page { padding-block: 28px 76px; }
.hotpepper-heading { margin-block: 38px 34px; }
.hotpepper-name { overflow-wrap: anywhere; }
.hotpepper-heading .shop-list-text { margin-top: 12px; }
.hotpepper-basic { margin-top: 40px; }
.hotpepper-photo { width: 100%; max-width: 480px; justify-self: center; }
/* Provider photos vary in size, so the frame keeps a square and the photo is contained. */
.hotpepper-photo-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; background: var(--ume-color-photo); border-radius: var(--ume-radius-control); }
.hotpepper-photo-frame img { width: 100%; height: 100%; object-fit: contain; }
.hotpepper-photo figcaption { margin-top: 6px; font-size: var(--ume-text-xs); color: var(--ume-color-muted); text-align: center; }
.hotpepper-info { min-width: 0; }
.public-hotpepper-details { margin-top: 20px; }
.hotpepper-checked { margin-top: 20px; font-size: var(--ume-text-sm); }
.hotpepper-info > .ume-muted { font-size: var(--ume-text-sm); }
.public-hotpepper-link { margin-top: 20px; }

/* Registered shops. */
.shop-account-review { margin-top: 8px; padding: 10px 14px; background: var(--ume-color-soft); border-radius: var(--ume-radius-control); font-size: var(--ume-text-sm); }
.shop-account-review p + p { margin-top: 4px; }
.shop-account-sources { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.shop-account-profile { margin-top: 8px; font-size: var(--ume-text-sm); }

@media (max-width: 900px) {
  .shop-search-methods { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
  .shop-search-method { padding: 18px 16px; }
  .shop-page { padding-block: 22px 48px; }
  .shop-prefectures { margin-top: 48px; }
  .shop-query-name { font-size: 19px; }
  .hotpepper-heading { margin-block: 28px; }
  .hotpepper-basic { margin-top: 28px; }
}

/* Fixed headings break between phrases at narrow widths, not inside words. */
.shop-page .brand-list-heading h1 { word-break: auto-phrase; }
