/*
 * VLS shared editorial layout, version 1.1.2, 2026-11-24.
 * Presentation only: no selectors for the hero, explorer, map or place forms.
 * The scope also covers the older .vlsb[data-seo-extension] editorial wrapper.
 * Scoped !important declarations override retained style blocks in city posts.
 */

/* Content may use the full width of its editorial section. */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(section, article, aside, header) {
  min-width: 0 !important;
  box-sizing: border-box;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) h2 {
  width: auto !important;
  max-width: none !important;
  overflow-wrap: anywhere;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) p {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0;
  font-size: 18px !important;
  line-height: 1.65 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-occasion-heading {
  display: block !important;
  grid-template-columns: none !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-occasion-heading > * {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Shared card grids. The desktop rules below allocate six equal tracks. */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  gap: 24px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-items: stretch !important;
  box-sizing: border-box;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) > * {
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  align-self: stretch !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid) > :is(.vls-occasion, .vls-panel, .vls-plan, .vls-area) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 26px !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 18px rgba(22, 63, 50, 0.035);
  overflow: visible !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid) > :is(.vls-occasion, .vls-panel, .vls-plan, .vls-area) > h3 {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 14px !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid) > :is(.vls-occasion, .vls-panel, .vls-plan, .vls-area) > p {
  display: block !important;
  margin: 0 0 14px !important;
  overflow: visible !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid) > :is(.vls-occasion, .vls-panel, .vls-plan, .vls-area) > p:last-child {
  margin-bottom: 0 !important;
}

/* Community prose stays ordinary prose; only actual link groups use flex. */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid .vls-occasion > p {
  display: block !important;
  margin-top: 0 !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid .vls-occasion > p:has(> a) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Preserve the established green action treatment and allow wrapped labels. */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-linkline, .vls-review-grid a, a[href$="#write-review"], a[href$="#add-photos"]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  min-height: 44px !important;
  max-width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #cbdcc5;
  border-radius: 10px !important;
  background: #edf3e8;
  font-size: 16px !important;
  line-height: 1.45 !important;
  text-align: left;
  text-decoration: none;
  white-space: normal !important;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-place-link, .vls-popular-grid > a, button, [role="button"]) {
  min-height: 44px !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-popular-grid > a {
  padding: 22px !important;
  border-radius: 18px !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-popular-grid > a > span {
  min-width: 0 !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-popular-grid small {
  font-size: 16px !important;
  line-height: 1.6 !important;
  white-space: normal !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-linkline, .vls-place-link, .vls-review-grid a, .vls-popular-grid > a, a[href$="#write-review"], a[href$="#add-photos"]):hover {
  background: #e1ecda;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(a, button, summary, [role="button"]):focus-visible {
  outline: 2px solid #1a4d37 !important;
  outline-offset: 4px !important;
}

/* Stack only recognized FAQ/source pairs, not normal two-article info grids.
 * The repeated class plus the existing div/section element gives specificity
 * (0,6,4), exceeding the retained article-grid rule (0,6,3), without a page ID.
 */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(div, section).vls-bottom.vls-bottom:is(:has(> .vls-sources), :has(> .vls-panel details)) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(div, section).vls-bottom.vls-bottom:is(:has(> .vls-sources), :has(> .vls-panel details)) > * {
  grid-column: 1 / -1 !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
}

/* Native details/summary semantics are retained for both markup variants. */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details {
  min-width: 0 !important;
  max-width: 100% !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary {
  position: relative;
  display: block !important;
  grid-template-columns: none !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 16px 42px 16px 0 !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  list-style: none !important;
  cursor: pointer;
  box-sizing: border-box;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary::marker {
  content: "";
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary::-webkit-details-marker {
  display: none;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 27px;
  font-size: 24px;
  line-height: 1;
  transform: none;
  pointer-events: none;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details[open] > summary::after {
  content: "−";
}

/* The numbered three-column layout applies only when its named spans exist. */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary:has(> .vls-faq-num):has(> .vls-faq-question):has(> .vls-faq-chev) {
  display: grid !important;
  grid-template-columns: 2rem minmax(0, 1fr) 1.25rem !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 16px 0 !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary:has(> .vls-faq-num):has(> .vls-faq-question):has(> .vls-faq-chev)::after {
  content: none !important;
  display: none !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary > .vls-faq-question {
  display: block;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary > :is(.vls-faq-num, .vls-faq-chev) {
  align-self: start !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary > .vls-faq-chev {
  transform: none !important;
  text-align: center !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details > summary > .vls-faq-chev::before {
  content: "+";
  display: block;
  font-size: 24px;
  line-height: 1.125;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) details[open] > summary > .vls-faq-chev::before {
  content: "−";
}

/* Existing semantic lists and newly normalized source lists share one style.
 * Do not alter source prose, licence paragraphs or the content of list items.
 */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-sources, [id$="-sources"], .vls-bottom > aside.vls-panel) :is(ul, ol),
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(ul, ol).vls-source-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 32px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-block: 18px !important;
  padding-inline-start: 1.35em !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  list-style-position: outside !important;
  column-count: auto !important;
  box-sizing: border-box;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-sources, [id$="-sources"], .vls-bottom > aside.vls-panel) ul,
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) ul.vls-source-list {
  list-style-type: disc !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-sources, [id$="-sources"], .vls-bottom > aside.vls-panel) ol,
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) ol.vls-source-list {
  list-style-type: decimal !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-sources, [id$="-sources"], .vls-bottom > aside.vls-panel) li,
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-source-list > li {
  display: list-item !important;
  text-align: left !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-inline-start: 0.15em;
  font-size: 17px !important;
  line-height: 1.65 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  break-inside: avoid;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-sources, [id$="-sources"], .vls-bottom > aside.vls-panel) li a,
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-source-list > li a {
  display: inline !important;
  max-width: 100% !important;
  max-height: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  text-underline-offset: 0.16em;
}

/* Wide layout: 1 full; 2 halves; 3 thirds; 4 in 2x2; 5 in 3+2; 6 in 3x2. */
@media (min-width: 1101px) {
  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) > * {
    grid-column: span 2 !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) > :only-child {
    grid-column: 1 / -1 !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid):is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) > * {
    grid-column: span 3 !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid):has(> :nth-child(5):last-child) > :nth-last-child(-n + 2) {
    grid-column: span 3 !important;
  }
}

/* Intermediate layout: two columns, with a final unpaired card across both. */
@media (min-width: 768px) and (max-width: 1100px) {
  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }
}

/* Narrow layout: one column and comfortable text without clipping. */
@media (max-width: 767px) {
  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid, .vls-popular-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-occasion-grid, .vls-plan-grid, .vls-order-grid, .vls-area-grid) > :is(.vls-occasion, .vls-panel, .vls-plan, .vls-area) {
    padding: 22px !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(p, details > summary, .vls-popular-grid > a) {
    font-size: 17px !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-sources, [id$="-sources"], .vls-bottom > aside.vls-panel) :is(ul, ol),
  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(ul, ol).vls-source-list {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    font-size: 16px !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) :is(.vls-sources, [id$="-sources"], .vls-bottom > aside.vls-panel) li,
  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-source-list > li {
    font-size: 16px !important;
  }
}

/*
 * VLS editorial refinements, version 1.1.2, 2026-11-24.
 * Reusable presentation rules only. No page IDs and no explorer/map selectors.
 * A plain note is deliberately limited to H2 + two paragraphs, or an explicit
 * vls-prose-section with the same text-only children. Lists and card grids keep
 * their existing layout. The 18px / 17px body sizes from 1.1.1 are preserved.
 */

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section:has(> h2:first-child + p + p:last-child)):not(:has(> :not(h2, p))) {
  display: block;
  min-width: 0;
  margin-block: 28px !important;
  padding: clamp(24px, 2.3vw, 32px) !important;
  border: 1px solid #d4e0cf !important;
  border-inline-start: 4px solid #8da581 !important;
  border-radius: 20px !important;
  background: #fbfdf9;
  box-shadow: none;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section:has(> h2:first-child + p + p:last-child)):not(:has(> :not(h2, p))) > h2 {
  max-width: none !important;
  margin: 0 0 20px !important;
  font-size: clamp(26px, 2.4vw, 32px) !important;
  line-height: 1.25 !important;
  text-wrap: balance;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section:has(> h2:first-child + p + p:last-child)):not(:has(> :not(h2, p))) > p {
  max-width: 76ch !important;
  margin: 0 !important;
  line-height: 1.75 !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section:has(> h2:first-child + p + p:last-child)):not(:has(> :not(h2, p))) > p + p {
  margin-block-start: 16px !important;
}

/* A genuine two-paragraph note can use an editorial heading/text split.
 * Exactly two text rows are created; no reserved or empty grid rows remain.
 */
@media (min-width: 1101px) {
  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section):has(> h2:first-child + p + p:last-child):not(:has(> :not(h2, p))) {
    display: grid !important;
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.8fr) !important;
    column-gap: clamp(28px, 3vw, 44px) !important;
    row-gap: 16px !important;
    align-items: start !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section):has(> h2:first-child + p + p:last-child):not(:has(> :not(h2, p))) > h2 {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
  }

  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section):has(> h2:first-child + p + p:last-child):not(:has(> :not(h2, p))) > p {
    grid-column: 2 !important;
    margin: 0 !important;
  }
}

/* Keep community introductions readable while their card grid remains wide. */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > .vls-section:has(> .vls-review-grid) > p {
  max-width: 80ch !important;
  margin-bottom: 24px !important;
}

/* Equal action widths within each card. Two fit only when both have room;
 * otherwise they form two full-width rows without a special page breakpoint.
 */
html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid .vls-occasion > p:has(> a[href$="#write-review"]):has(> a[href$="#add-photos"]) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 10px !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid .vls-occasion > p:has(> a[href$="#write-review"]):has(> a[href$="#add-photos"]) > a {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 48px !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  font-weight: 600;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid a[href$="#write-review"] {
  border-color: #1c543e !important;
  background: #1c543e !important;
  color: #fff !important;
  font-weight: 700 !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid a[href$="#add-photos"] {
  border-color: #b9ccb3 !important;
  background: #fff !important;
  color: #164732 !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid a[href$="#write-review"]:hover {
  border-color: #143f2e !important;
  background: #143f2e !important;
}

html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) .vls-review-grid a[href$="#add-photos"]:hover {
  background: #edf3e8 !important;
}

@media (max-width: 767px) {
  html body .vls-platform-city :is(.vls-city-editorial, .vlsb[data-seo-extension]) > section:is(.vls-prose-section, .vls-section:has(> h2:first-child + p + p:last-child)):not(:has(> :not(h2, p))) {
    margin-block: 22px !important;
    padding: 22px 20px !important;
    border-radius: 16px !important;
  }
}
