/* City Choice NYC — blog archive + single post. Loaded after home.css + why.css
   (tokens, buttons, breadcrumb, eyebrow, CTA band come from there). */

.ccb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ccb-tag { align-self: flex-start; display: inline-block; padding: 6px 14px; border-radius: 100px; background: #DD4B3721; color: var(--cc-red-dk); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.ccb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--cc-muted); }
.ccb-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- archive head */
.ccb-head { padding: 64px 0 34px; }
.ccb-head .cch-wrap { display: flex; flex-direction: column; gap: 16px; }
.cch-page .ccb-head h1 { font-size: 48px; line-height: 1.12; font-weight: 700; color: var(--cc-ink); max-width: 820px; text-wrap: pretty; }
.ccb-head p { font-size: 17px; line-height: 1.8; font-weight: 300; color: var(--cc-muted); max-width: 640px; }

/* ---------------------------------------------------------------- filter bar */
.ccb-archive { padding-bottom: 86px; }
.ccb-archive > .cch-wrap { position: relative; }
.ccb-filter { padding: 22px 24px; border-radius: 20px; background: var(--cc-grey); }
.ccb-filter form { display: flex; flex-direction: column; gap: 18px; }
.ccb-filter__row { display: flex; gap: 12px; }
.ccb-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 20px; border-radius: 100px; background: #fff; border: 1px solid #CDCBCC; color: var(--cc-muted); }
.ccb-search:focus-within { border-color: var(--cc-red); box-shadow: 0 0 0 3px #DD4B3722; }
.cch-page .ccb-search input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; border-radius: 0; background: none; outline: 0; font: 400 15px/1 "Poppins", system-ui, sans-serif; color: var(--cc-text); }
.ccb-search input::placeholder { color: #B7B7B7; font-weight: 300; }
.cch-page .ccb-search .cch-btn { padding: 11px 26px; font-size: 14px; }
.cch-page .ccb-filter .ccb-filter__toggle { display: none; align-items: center; gap: 8px; padding: 0 20px; border: 1px solid #CDCBCC; border-radius: 100px; background: #fff; color: var(--cc-head); font-size: 14px; font-weight: 600; cursor: pointer; }
.ccb-filter__toggle svg { transition: transform .2s; }
.ccb-filter__toggle.is-open svg { transform: rotate(180deg); }
.ccb-filter__panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
.ccb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ccb-chip { padding: 9px 18px; border-radius: 100px; background: #fff; border: 1px solid #CDCBCC; font-size: 14px; font-weight: 500; color: var(--cc-head); transition: border-color .15s, background-color .15s, color .15s; }
.ccb-chip:hover { border-color: var(--cc-red); color: var(--cc-red); }
.cch-page .ccb-chip.is-active { background: var(--cc-red); border-color: var(--cc-red); color: #fff; }
.ccb-filter__controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-left: auto; }
.ccb-filter__controls label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--cc-text); }
.cch-page .ccb-filter select { width: auto; height: 42px; padding: 0 42px 0 18px; border: 1px solid #CDCBCC; border-radius: 100px; font: 400 14px/1 "Poppins", system-ui, sans-serif; color: var(--cc-head); cursor: pointer; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.cch-page .ccb-filter select:focus { outline: 2px solid var(--cc-red); outline-offset: 1px; }
.cch-page .ccb-reset { font-size: 13px; font-weight: 600; color: var(--cc-red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- results */
.ccb-results { transition: opacity .2s; }
.is-loading .ccb-results { opacity: .35; pointer-events: none; }
.cch-page .ccb-count { margin: 28px 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-muted); }
.ccb-loader { display: none; position: absolute; left: 50%; top: 260px; transform: translateX(-50%); }
.is-loading .ccb-loader { display: block; }
.ccb-loader span { display: block; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #DD4B3733; border-top-color: var(--cc-red); animation: ccb-spin .7s linear infinite; }
@keyframes ccb-spin { to { transform: rotate(360deg); } }

.ccb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ccb-card { display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: var(--cc-shadow); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ccb-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.ccb-card__thumb { display: flex; align-items: center; justify-content: center; height: 190px; flex-shrink: 0; background: var(--cc-mint) center / cover no-repeat; }
.ccb-card__thumb.is-empty { background-image: radial-gradient(circle at 82% 18%, #DD4B3726 0 62px, transparent 63px), radial-gradient(circle at 12% 88%, #1EAD5A2E 0 78px, transparent 79px); }
.ccb-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex-grow: 1; }
.ccb-card h3 { font-size: 19px; line-height: 1.38; }
.ccb-card h3 a { transition: color .15s; }
.ccb-card:hover h3 a { color: var(--cc-red); }
.ccb-card p { font-size: 14px; line-height: 1.75; font-weight: 300; color: var(--cc-muted); flex-grow: 1; }
.cch-page .ccb-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cc-red); }
.ccb-more svg { transition: transform .15s; }
.ccb-more:hover svg { transform: translateX(3px); }

/* first card on page 1: wide, image left */
.ccb-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.ccb-card.is-featured .ccb-card__thumb { flex: 0 0 46%; height: auto; min-height: 320px; }
.ccb-card.is-featured .ccb-card__body { justify-content: center; gap: 14px; padding: 40px 44px; }
.ccb-card.is-featured h3 { font-size: 30px; line-height: 1.25; }
.ccb-card.is-featured p { font-size: 15px; line-height: 1.8; flex-grow: 0; }

.ccb-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 24px; border-radius: 20px; background: var(--cc-grey); text-align: center; }
.cch-page .ccb-empty h2 { font-size: 26px; }
.ccb-empty p { font-size: 15px; line-height: 1.8; font-weight: 300; color: var(--cc-muted); max-width: 520px; }
.ccb-empty .cch-btn { margin-top: 8px; }

.ccb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.ccb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 100px; background: #fff; border: 1px solid #CDCBCC; font-size: 14px; font-weight: 600; color: var(--cc-head); transition: border-color .15s, color .15s; }
.ccb-pagination a.page-numbers:hover { border-color: var(--cc-red); color: var(--cc-red); }
.cch-page .ccb-pagination .page-numbers.current { background: var(--cc-red); border-color: var(--cc-red); color: #fff; }
.ccb-pagination .page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0 4px; }

/* ---------------------------------------------------------------- single post */
.ccb-article { max-width: 860px; margin: 0 auto; padding: 60px 20px 80px; }
.ccb-article__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.cch-page .ccb-article h1 { font-size: 44px; line-height: 1.15; font-weight: 700; color: var(--cc-ink); text-wrap: pretty; }
.ccb-meta__author { font-weight: 600; color: var(--cc-head); }
.ccb-article__hero { margin-bottom: 38px; }
.ccb-article__hero img { width: 100%; height: auto; border-radius: 20px; }

/* article body: plain WordPress blocks, styled here */
.ccb-content { font-size: 17px; line-height: 1.85; color: var(--cc-text); overflow-wrap: break-word; }
.ccb-content > * + * { margin-top: 1.2em; }
.cch-page .ccb-content p { margin: 0; }
.cch-page .ccb-content > * + p { margin-top: 1.2em; }
.cch-page .ccb-content h2 { font-size: 30px; line-height: 1.25; font-weight: 700; color: var(--cc-ink); margin-top: 1.7em; }
.cch-page .ccb-content h3 { font-size: 23px; line-height: 1.3; font-weight: 600; color: var(--cc-head); margin-top: 1.6em; }
.cch-page .ccb-content h4 { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--cc-head); margin-top: 1.5em; }
.ccb-content h2 strong, .ccb-content h3 strong, .ccb-content h4 strong { font-weight: inherit; }
.cch-page .ccb-content a { color: var(--cc-red); text-decoration: underline; text-decoration-color: #DD4B3766; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cch-page .ccb-content a:hover { text-decoration-color: currentColor; }
.cch-page .ccb-content ul, .cch-page .ccb-content ol { margin: 1.2em 0 0; padding-left: 1.4em; }
.ccb-content li + li { margin-top: .5em; }
.ccb-content li::marker { color: var(--cc-red); font-weight: 600; }
.ccb-content img { max-width: 100%; height: auto; border-radius: 16px; }
.cch-page .ccb-content figure { margin: 1.8em 0 0; }
.ccb-content figcaption { margin-top: 10px; font-size: 13px; color: var(--cc-muted); text-align: center; }
.cch-page .ccb-content blockquote { margin: 1.8em 0 0; padding: 22px 26px; border: 0; border-left: 5px solid var(--cc-green); border-radius: 20px; background: var(--cc-mint); font-size: 18px; font-style: normal; font-weight: 500; color: var(--cc-head); }
.ccb-content blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 400; color: var(--cc-muted); }
.ccb-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ccb-content .wp-block-table { overflow-x: auto; }
.ccb-content th, .ccb-content td { padding: 12px 14px; border: 1px solid #E4E4E4; text-align: left; vertical-align: top; }
.ccb-content th { background: var(--cc-grey); font-weight: 600; color: var(--cc-head); }
.ccb-content hr { margin: 2.2em 0 0; border: 0; border-top: 1px solid #E4E4E4; }

.ccb-article__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid #E4E4E4; }
.ccb-share { display: flex; align-items: center; gap: 10px; }
.ccb-share span { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-muted); margin-right: 4px; }
.cch-page .ccb-share a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #CDCBCC; color: var(--cc-head); transition: background-color .15s, border-color .15s, color .15s; }
.cch-page .ccb-share a:hover { background: var(--cc-red); border-color: var(--cc-red); color: #fff; }
.cch-page .ccb-back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--cc-red); }

.ccb-related .cch-wrap { display: flex; flex-direction: column; gap: 26px; }

@media (max-width: 1279px) {
  .ccb-card.is-featured .ccb-card__body { padding: 30px; }
  .ccb-card.is-featured h3 { font-size: 26px; }
}

@media (max-width: 960px) {
  .ccb-head { padding: 34px 0 22px; }
  .ccb-head .cch-wrap { gap: 12px; }
  .cch-page .ccb-head h1 { font-size: 30px; line-height: 1.2; }
  .ccb-head p { font-size: 15px; }

  .ccb-archive { padding-bottom: 40px; }
  .ccb-filter { padding: 14px; border-radius: 18px; }
  .ccb-filter form { gap: 12px; }
  .ccb-filter__row { flex-direction: column; gap: 10px; }
  .ccb-search { padding-left: 16px; }
  .cch-page .ccb-search .cch-btn { padding: 10px 18px; }
  .cch-page .ccb-filter .ccb-filter__toggle { display: inline-flex; justify-content: center; height: 44px; }
  /* collapsed behind the toggle on mobile; archive-filter.js adds .is-open */
  .ccb-filter__panel { display: none; flex-direction: column; align-items: stretch; gap: 14px; }
  .ccb-filter__panel.is-open { display: flex; }
  .ccb-filter__controls { margin-left: 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .ccb-filter__controls label { justify-content: space-between; }
  .cch-page .ccb-filter select { flex: 1; max-width: 220px; }
  .cch-page .ccb-count { margin: 20px 0 14px; font-size: 11px; }

  .ccb-grid { grid-template-columns: 1fr; gap: 18px; }
  .ccb-card__thumb { height: 180px; }
  .ccb-card.is-featured { flex-direction: column; }
  .ccb-card.is-featured .ccb-card__thumb { flex: none; height: 200px; min-height: 0; }
  .ccb-card.is-featured .ccb-card__body { padding: 22px 22px 24px; gap: 12px; }
  .ccb-card.is-featured h3 { font-size: 21px; }
  .ccb-card.is-featured p { font-size: 14px; }
  .ccb-pagination { margin-top: 28px; gap: 6px; }
  .ccb-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; font-size: 13px; }

  .ccb-article { padding: 30px 20px 44px; }
  .ccb-article__head { gap: 14px; margin-bottom: 24px; }
  .cch-page .ccb-article h1 { font-size: 28px; line-height: 1.22; }
  .ccb-article__hero { margin-bottom: 26px; }
  .ccb-content { font-size: 16px; line-height: 1.8; }
  .cch-page .ccb-content h2 { font-size: 23px; }
  .cch-page .ccb-content h3 { font-size: 19px; }
  .cch-page .ccb-content h4 { font-size: 17px; }
  .cch-page .ccb-content blockquote { padding: 18px; font-size: 16px; border-radius: 16px; }
  .ccb-article__foot { flex-direction: column; align-items: flex-start; margin-top: 34px; }
  .ccb-related .cch-wrap { gap: 16px; }
}

@media (min-width: 601px) and (max-width: 960px) {
  .ccb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccb-article { padding-left: 32px; padding-right: 32px; }
}
