/* ──────────────────────────────────────────────────────────────
   hotels-guide — loaded after themes/category-guide/css/style.css.
   Adds the key-tag stamp, area cards, stay type × area grid and the
   directory filters. Colors come from the --cg-* tokens.
   ────────────────────────────────────────────────────────────── */

/* ── Key tag (hero) ── */
.hg-keytag {
  position: relative; width: 150px; height: 210px; margin-top: 6px;
  border: 3px solid var(--cg-ink); border-radius: 75px 75px 18px 18px; background: var(--cg-card);
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 5px 5px 0 var(--cg-ink); transform: rotate(7deg);
}
.hg-keytag-hole {
  position: absolute; top: 22px; left: 50%; width: 28px; height: 28px; margin-left: -14px;
  border: 3px solid var(--cg-ink); border-radius: 50%; background: var(--cg-paper);
}
.hg-keytag .cg-display { margin-top: 40px; font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--cg-accent); }
.hg-keytag small { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: .5px; color: var(--cg-ink); }

/* Section intros run the full width here (the base theme caps them at 760px). */
.hg .cg-section-intro { max-width: none; }

/* ── Hero intro: "Read more" + byline ── */
.hg-more { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--cg-accent); cursor: pointer; white-space: nowrap; }
.hg-more:hover { text-decoration: underline; }
.hg-more:focus-visible { outline: 2px solid var(--cg-accent); outline-offset: 2px; }
.hg-about { max-width: 600px; margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--cg-accent); }
.hg-about p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--cg-body); }
.hg-about p:last-child { margin-bottom: 0; }
.hg-byline { margin: 18px 0 0; font-size: 12.5px; font-weight: 700; line-height: 1.6; color: var(--cg-meta); }

/* ── Hero photo collage (config hero_hotels) ── */
.hg-hero-photos { --s: 1; position: relative; flex-shrink: 0; width: calc(var(--s) * 450px); height: calc(var(--s) * 410px); }
.hg-polaroid {
  position: absolute; display: block; padding: 8px 8px 0; background: var(--cg-card); color: var(--cg-ink);
  border: 2px solid var(--cg-ink); box-shadow: 4px 4px 0 var(--cg-ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.hg-polaroid img { display: block; width: 100%; object-fit: cover; background: var(--cg-rule); }
.hg-polaroid-cap { display: block; padding: 7px 2px 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 800; line-height: 1.25; }
.hg-polaroid-cap small { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--cg-meta); }
.hg-polaroid-1 { z-index: 3; left: calc(var(--s) * 92px); top: calc(var(--s) * 78px); width: calc(var(--s) * 290px); transform: rotate(-2.5deg); }
.hg-polaroid-1 img { height: calc(var(--s) * 220px); }
.hg-polaroid-2 { z-index: 2; right: 0; top: 0; width: calc(var(--s) * 210px); transform: rotate(5deg); }
.hg-polaroid-2 img { height: calc(var(--s) * 145px); }
.hg-polaroid-3 { z-index: 2; left: 0; bottom: 0; width: calc(var(--s) * 205px); transform: rotate(-6deg); }
.hg-polaroid-3 img { height: calc(var(--s) * 140px); }
.hg-polaroid:hover, .hg-polaroid:focus-visible { z-index: 5; transform: rotate(0) scale(1.03); box-shadow: 6px 6px 0 var(--cg-ink); outline: none; }
.hg-keytag.hg-keytag-sm { position: absolute; z-index: 4; left: calc(var(--s) * 14px); top: 0; width: 86px; height: 120px; margin: 0; border-radius: 43px 43px 12px 12px; box-shadow: 3px 3px 0 var(--cg-ink); transform: rotate(-9deg); }
.hg-keytag-sm .hg-keytag-hole { top: 12px; width: 18px; height: 18px; margin-left: -9px; }
.hg-keytag-sm .cg-display { margin-top: 26px; font-size: 16px; }

/* ── Area section: map beside the cards ── */
.hg-area-layout.has-map { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.hg-area-layout.has-map .hg-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hg-map { position: sticky; top: 74px; }
.hg-map-canvas { height: min(680px, calc(100vh - 130px)); min-height: 420px; border: 2px solid var(--cg-ink); background: var(--cg-rule); }
.hg-map-note { margin: 8px 0 0; font-size: 12px; color: var(--cg-soft); }

/* ── Area cards ── */
.hg-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.hg-area {
  position: relative; display: flex; flex-direction: column; padding: 18px 20px 16px;
  background: var(--cg-card); border: 2px solid var(--cg-ink); border-left: 8px solid var(--hg-area, var(--cg-ink)); color: var(--cg-ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.hg-area:hover, .hg-area:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cg-ink); outline: none; }
.hg-area-count { position: absolute; top: 12px; right: 16px; font-size: 34px; line-height: 1; color: var(--hg-area, var(--cg-accent)); }
.hg-area-name { margin: 0 60px 8px 0; font-size: 15px; line-height: 1.3; }
.hg-area-blurb { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--cg-body); flex-grow: 1; }
.hg-area-types { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.hg-area-types li { padding: 3px 8px; border: 1px solid var(--cg-rule); font-size: 11.5px; font-weight: 600; color: var(--cg-soft); }
.hg-area-types b { color: var(--cg-ink); }
.hg-area-go { padding-top: 10px; border-top: 1px dashed var(--cg-rule); font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--cg-meta); }

/* ── Stay type × area grid ── */
.hg-matrix-wrap { overflow-x: auto; border: 2px solid var(--cg-ink); background: var(--cg-card); }
.hg-matrix-wrap:focus-visible { outline: 2px solid var(--cg-accent); outline-offset: 2px; }
.hg-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.hg-matrix th, .hg-matrix td { padding: 6px; border-bottom: 1px dashed var(--cg-rule); text-align: center; }
.hg-matrix thead th {
  padding: 10px 6px; border-bottom: 2px solid var(--cg-ink); vertical-align: bottom;
  font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--cg-meta); white-space: nowrap;
}
.hg-matrix tbody th { position: sticky; left: 0; z-index: 1; padding-left: 14px; background: var(--cg-card); text-align: left; font-weight: 700; white-space: nowrap; }
.hg-matrix tbody th { min-width: 250px; max-width: 320px; padding-top: 10px; padding-bottom: 10px; white-space: normal; }
.hg-row-type { color: var(--cg-ink); font-size: 15px; font-weight: 800; }
.hg-row-desc { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--cg-soft); }
.hg-row-type:hover, .hg-row-type:focus-visible { color: var(--cg-accent); outline: none; text-decoration: underline; }
.hg-matrix tbody tr:last-child th, .hg-matrix tbody tr:last-child td { border-bottom: 0; }
.hg-matrix .hg-matrix-total { border-left: 2px solid var(--cg-ink); }
.hg-cell {
  min-width: 38px; height: 32px; padding: 0 8px; border: 1px solid var(--cg-rule); background: var(--cg-card);
  color: var(--cg-ink); font: inherit; font-weight: 800; cursor: pointer;
}
.hg-cell:hover, .hg-cell:focus-visible { border-color: var(--cg-ink); box-shadow: 2px 2px 0 var(--cg-ink); outline: none; }
.hg-heat-1 { background: color-mix(in srgb, var(--cg-meta) 12%, var(--cg-card)); }
.hg-heat-2 { background: color-mix(in srgb, var(--cg-meta) 28%, var(--cg-card)); }
.hg-heat-3 { background: color-mix(in srgb, var(--cg-meta) 55%, var(--cg-card)); color: var(--cg-card); border-color: transparent; }
.hg-heat-4 { background: var(--cg-meta); color: var(--cg-card); border-color: transparent; }
.hg-cell-total { background: var(--cg-ink); color: var(--cg-card); border-color: var(--cg-ink); }
.hg-cell-empty { color: var(--cg-rule); font-weight: 800; }

/* ── Section headings: number as a label beside the keyword heading ── */
.hg-sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 24px; padding-bottom: 10px; border-bottom: 3px solid var(--cg-ink); }
.hg-sec-head .cg-section-title { margin: 0; padding: 0; border: 0; }
.hg-sec-num { flex-shrink: 0; font-size: 22px; color: var(--cg-accent); }

/* ── Area card: the name link covers the card; neighborhood links sit above it ── */
.hg-area-link { color: inherit; }
.hg-area-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.hg-area-link:focus-visible { outline: none; }
.hg-area:focus-within { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cg-ink); }
.hg-area-hoods { position: relative; z-index: 2; margin: 8px 0 0; font-size: 12px; color: var(--cg-soft); }
.hg-area-hoods a { color: var(--cg-meta); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hg-area-hoods a:hover { color: var(--cg-accent); }

/* ── How we built this guide ── */
.hg-method { margin: 0 var(--cg-gutter) 40px; padding: 24px 28px; border: 2px dashed var(--cg-muted); scroll-margin-top: 80px; }
.hg-method h2 { margin: 0 0 10px; font-size: 20px; }
.hg-method h3 { margin: 18px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--cg-meta); }
.hg-method p { margin: 0; max-width: 820px; font-size: 14px; line-height: 1.65; color: var(--cg-body); }
.hg-source-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.hg-source-list a { color: var(--cg-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hg-source-list a:hover { color: var(--cg-accent); }
.hg-source-details { margin-top: 16px; }
.hg-source-details summary { cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--cg-meta); }
.hg-source-list-cols { display: block; columns: 3 220px; column-gap: 24px; margin-top: 10px; }
.hg-source-list-cols li { margin-bottom: 6px; break-inside: avoid; }

/* ── Editor's picks, grouped by stay type ── */
.hg-pick-group { margin-top: 34px; scroll-margin-top: 80px; }
.hg-pick-group:first-of-type { margin-top: 8px; }
.hg-pick-type { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--cg-ink); font-size: 17px; }
.hg-pick-type span { color: var(--cg-accent); margin-left: 4px; }
.hg-pick-intro { margin: 8px 0 4px; font-size: 14px; font-style: italic; color: var(--cg-soft); }
.hg-pick-note { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--cg-body); }
.hg-pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.hg-pick { padding: 16px; }
.hg-pick .cg-card-photo { margin: -16px -16px 12px; aspect-ratio: 4 / 3; }
.hg-pick .cg-card-name { font-size: 14.5px; }
.hg-pick .cg-card-loc { font-size: 11.5px; }
.hg-pick .cg-card-copy { font-size: 13.5px; }
@media (max-width: 1080px) { .hg-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .hg-pick-grid { grid-template-columns: 1fr; } }

/* ── Directory filters ── */
.hg-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: -6px 0 22px; padding-bottom: 18px; border-bottom: 1px dashed var(--cg-muted); }
.hg-filters > label { display: flex; flex-direction: column; gap: 4px; }
.hg-filters > label > span, .hg-features legend { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--cg-meta); }
.hg-filters select {
  height: 40px; max-width: 100%; padding: 0 32px 0 12px; border: 2px solid var(--cg-ink); border-radius: 0;
  background: var(--cg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23173a3c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--cg-ink); font: inherit; font-size: 13px; font-weight: 600; -webkit-appearance: none; appearance: none;
}
.hg-filters select:focus-visible { outline: 2px solid var(--cg-accent); outline-offset: 1px; }
.hg-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.hg-features legend { margin-bottom: 4px; padding: 0; }
.hg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--cg-ink); background: var(--cg-input); font-size: 12px; font-weight: 600; cursor: pointer; }
.hg-chip:has(input:checked) { background: var(--cg-ink); color: var(--cg-card); }
.hg-chip input { margin: 0; accent-color: var(--cg-accent); }
.hg-status { margin: 0 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--cg-soft); }
.hg-status button { margin-left: 8px; padding: 0; border: 0; background: none; font: inherit; color: var(--cg-accent); text-decoration: underline; cursor: pointer; }
.hg-status button[hidden] { display: none; }
.hg-directory .cg-hood { scroll-margin-top: 90px; }
.hg-row-meta { color: var(--cg-meta) !important; font-weight: 700; }

/* Each area is a full-width block with its hotels 3-up (2-up, then 1-up
   on smaller screens), so one long area doesn't run down a single column. */
.hg-directory .cg-directory-grid { columns: auto; }
.hg-directory .cg-hood { margin-bottom: 28px; }
.hg-directory .cg-hood ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 1080px) { .hg-directory .cg-hood ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .hg-directory .cg-hood ul { grid-template-columns: 1fr; } }

/* Directory rows: square photo + name/meta/address. */
.hg-directory .hg-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.hg-directory .hg-row[hidden] { display: none; }
.hg-thumb {
  position: relative; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden;
  border: 2px solid var(--cg-ink); background: var(--cg-rule); color: var(--cg-muted);
  display: flex !important; align-items: center; justify-content: center;
}
.hg-thumb img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hg-thumb svg { width: 28px; height: 28px; opacity: .6; }
.hg-row-text { flex: 1; min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .hg-area, .hg-polaroid { transition: none; }
}

@media (max-width: 1080px) {
  .hg-hero-photos { --s: .74; }
  .hg-area-layout.has-map { grid-template-columns: 1fr; }
  .hg-map { position: static; }
  .hg-map-canvas { height: 400px; min-height: 0; }
}

@media (max-width: 680px) {
  /* Decorative; on phones it would sit on top of the headline. */
  .hg .cg-hero-art { display: none; }
  /* Collage → a row of three small photos under the intro. */
  .hg .cg-hero { flex-direction: column; }
  .hg-hero-photos { display: flex; gap: 10px; width: 100%; height: auto; }
  .hg-polaroid { position: relative; inset: auto; flex: 1 1 0; min-width: 0; width: auto; padding: 5px 5px 0; box-shadow: 3px 3px 0 var(--cg-ink); }
  .hg-polaroid img { height: 92px !important; }
  .hg-polaroid-1 { transform: rotate(-2deg); }
  .hg-polaroid-2 { transform: rotate(2deg); }
  .hg-polaroid-3 { transform: rotate(-1.5deg); }
  .hg-polaroid-cap { padding: 5px 1px 6px; font-size: 10px; }
  .hg-polaroid-cap small { display: none; }
  .hg-keytag.hg-keytag-sm { display: none; }
  .hg-map-canvas { height: 320px; }
  .hg-matrix tbody th { min-width: 165px; padding-left: 10px; }
  .hg-row-type { font-size: 13.5px; }
  .hg-row-desc { font-size: 11px; }
  .hg-areas, .hg-area-layout.has-map .hg-areas { grid-template-columns: 1fr; gap: 14px; }
  .hg-filters > label { flex: 1 1 100%; }
  .hg-filters select { width: 100%; }
  .hg-status { margin-left: 0; }
}
