/* ============================================================
   Architect Interior Studio — Content pages CSS
   Blog (journal), Gallery, Static pages, Search.
   Editorial graphite + brass. Reuses tokens from site.css
   (--ink, --muted, --brass, --rule, --bg, --surface, --serif…).
   All classes here are namespaced to avoid clashing with site.css.
   ============================================================ */

/* ===== Page header (editorial, replaces Bootstrap hero) ===== */
.page-head {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 116px 0 48px;
}
.page-head .crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--muted); margin-bottom: 1rem; list-style: none; padding: 0;
}
.page-head .crumbs a { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--brass); }
.page-head .crumbs .sep { color: var(--rule); }
.page-head .crumbs .current { color: var(--ink); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.page-head .page-sub { color: var(--muted); margin: .75rem 0 0; max-width: 640px; }
.page-head .brass-rule { margin: 1.1rem 0 0; }

/* ===== Filter chips (gallery / blog categories) ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.5rem; }
.filter-chip {
    display: inline-block; padding: .45rem 1.05rem; border: 1px solid var(--rule);
    background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 600;
    letter-spacing: .3px; transition: all .2s ease; border-radius: 999px;
}
.filter-chip:hover { border-color: var(--brass); color: var(--brass); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Empty state ===== */
.empty-state { text-align: center; color: var(--muted); padding: 4rem 1rem; border: 1px dashed var(--rule); background: var(--surface); }
.empty-state i { font-size: 2.6rem; color: var(--brass); display: block; margin-bottom: 1rem; }
.empty-state p { margin: 0; }

/* ===== Blog listing (reuses .journal-card / .jc-* from site.css) ===== */
.jc-figure .jc-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.journal-card:hover .jc-figure .jc-img { transform: scale(1.04); }
.journal-card:hover .jc-title { color: var(--brass); }
.jc-excerpt { color: var(--muted); font-size: .92rem; margin: .35rem 0 0; }
.jc-meta-row { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .82rem; margin-top: .6rem; }
.jc-meta-row i { color: var(--brass); margin-right: .3rem; }

/* ===== Sidebar (blog) ===== */
.side-block { background: var(--surface); border: 1px solid var(--rule); padding: 1.6rem; margin-bottom: 1.8rem; }
.side-title { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 1.1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--rule); }
.side-cats { list-style: none; padding: 0; margin: 0; }
.side-cats li { margin: 0; }
.side-cats a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 0; color: var(--ink); font-size: .92rem; border-bottom: 1px solid var(--rule); }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a:hover, .side-cats a.active { color: var(--brass); }
.side-cats a.active { font-weight: 600; }
.side-recent { display: flex; gap: .85rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.side-recent:last-child { border-bottom: 0; }
.side-recent .sr-thumb { width: 68px; height: 56px; flex: 0 0 auto; overflow: hidden; background: #e8e3dc; }
.side-recent .sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-recent .sr-thumb .sr-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--brass); }
.side-recent .sr-title { font-size: .88rem; font-weight: 600; line-height: 1.35; }
.side-recent:hover .sr-title { color: var(--brass); }
.side-recent .sr-date { font-size: .76rem; color: var(--muted); margin-top: .2rem; }

/* ===== Pagination (editorial, square) ===== */
.pager { display: flex; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 3rem 0 0; flex-wrap: wrap; }
.pager a, .pager span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
    padding: 0 .65rem; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
    font-weight: 600; font-size: .9rem; transition: all .2s ease;
}
.pager a:hover { border-color: var(--brass); color: var(--brass); }
.pager .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .disabled span { color: var(--rule); cursor: not-allowed; }

/* ===== Article / static-page prose (admin HTML via @Html.Raw) ===== */
.prose { font-size: 1.06rem; color: var(--ink); line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3rem; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); color: var(--ink); margin: 2.2rem 0 1rem; line-height: 1.2; }
:lang(bn) .prose h2, :lang(bn) .prose h3, :lang(bn) .prose h4 { font-family: var(--bengali); }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; }
.prose a { color: var(--brass-dark); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--brass); }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose img { display: block; margin: 1.8rem 0; width: 100%; height: auto; }
.prose blockquote {
    margin: 1.8rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 3px solid var(--brass);
    font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink);
}
.prose figure { margin: 1.8rem 0; }
.prose figcaption { color: var(--muted); font-size: .85rem; margin-top: .5rem; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--bg); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 1.8rem 0; }

/* ===== Blog detail meta + feature image ===== */
.post-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.post-meta i { color: var(--brass); margin-right: .35rem; }
.post-cat-eyebrow { color: var(--brass); text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; font-weight: 600; }
.post-feature { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e8e3dc; margin-bottom: 2.2rem; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.post-share .share-label { font-weight: 600; margin-right: .25rem; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--rule); color: var(--ink); transition: all .2s ease; }
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Related posts strip ===== */
.related-head { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 1.5rem; }

/* ===== Gallery grid (CSS masonry via columns) ===== */
.gallery-grid { column-count: 3; column-gap: 1.1rem; }
@media (max-width: 991px) { .gallery-grid { column-count: 2; } }
@media (max-width: 575px) { .gallery-grid { column-count: 1; } }
.g-item { position: relative; display: block; margin: 0 0 1.1rem; break-inside: avoid; overflow: hidden; background: #e8e3dc; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item .g-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem;
    background: linear-gradient(180deg, rgba(17,24,39,0) 45%, rgba(17,24,39,.75) 100%);
    opacity: 0; transition: opacity .3s ease; color: #fff;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-item .g-caption { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.g-item .g-zoom { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); opacity: 0; transition: opacity .3s ease; }
.g-item:hover .g-zoom { opacity: 1; }
/* Video / tour play badge */
.g-item.is-media { cursor: pointer; }
.g-item .g-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; background: rgba(176,141,87,.92); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    transition: transform .25s ease, background .25s ease;
}
.g-item:hover .g-play { transform: translate(-50%, -50%) scale(1.08); background: var(--brass); }
.g-item .g-type { position: absolute; top: 1rem; left: 1rem; background: rgba(17,24,39,.85); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; padding: .3rem .6rem; }

/* ===== Tiny vanilla lightbox (fallback, CSP-safe — no inline styles needed) ===== */
.lb { position: fixed; inset: 0; z-index: 1080; display: none; align-items: center; justify-content: center; background: rgba(17,24,39,.94); padding: 4vh 4vw; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 92vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 1.2rem; right: 1.4rem; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(255,255,255,.12); }
.lb-cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-family: var(--serif); font-size: 1.1rem; }

/* ===== Search ===== */
.search-form { display: flex; gap: 0; max-width: 640px; margin: 1.5rem 0 0; }
.search-form .form-control { border-right: 0; }
.search-form .btn { white-space: nowrap; }
.search-meta { color: var(--muted); margin: 0 0 2.5rem; font-size: .95rem; }
.search-group { margin-bottom: 3rem; }
.search-group-head { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem; }
.search-group-head h2 { font-size: 1.5rem; margin: 0; }
.search-group-head .count { color: var(--muted); font-size: .85rem; font-weight: 600; }
.search-group-head .brass-rule { margin: 0; flex: 1 1 auto; max-width: 100%; }
.result-row { display: flex; gap: 1.1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.result-row:hover .rr-title { color: var(--brass); }
.result-row .rr-thumb { width: 96px; height: 72px; flex: 0 0 auto; overflow: hidden; background: #e8e3dc; }
.result-row .rr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-row .rr-thumb .rr-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--brass); font-size: 1.4rem; }
.result-row .rr-kind { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brass); font-weight: 600; }
.result-row .rr-title { font-family: var(--serif); font-size: 1.25rem; margin: .15rem 0 .2rem; line-height: 1.25; }
.result-row .rr-desc { color: var(--muted); font-size: .9rem; }

/* ===== Shared content layout ===== */
.content-section { padding: 72px 0; }
.page-cover { width: 100%; max-height: 460px; object-fit: cover; background: #e8e3dc; margin-bottom: 2.5rem; }
