/* =========================================================
   Phoenix Capitals | WordPress additions
   Editor content, admin bar, pagination and small responsive fixes on top of style.css.
   ========================================================= */

/* ---------- Admin bar: keep the fixed header below it ---------- */
.admin-bar .pc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .pc-header { top: 0; } .admin-bar .pc-header:not(.is-scrolled) { top: 46px; } }

/* ---------- Skip link ---------- */
.pc-skip:focus { position: fixed !important; top: .75rem; left: .75rem; z-index: 1100; padding: .6rem 1rem; background: var(--pc-gold); color: var(--pc-navy); font-weight: 700; border-radius: var(--pc-radius); text-decoration: none; }

/* ---------- Header dropdown: hover-open only where the menu is not collapsed (navbar-expand-xl) ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) { .pc-header .dropdown:hover > .dropdown-menu:not(.show) { display: none; } }

/* ---------- Editor content (blog posts, default pages, listing descriptions) ---------- */
.pc-article > *:last-child { margin-bottom: 0; }
.pc-article a { color: var(--pc-gold-dark); text-underline-offset: 3px; }
.pc-article a:hover { color: var(--pc-navy); }
.pc-article ul:not(.pc-checks), .pc-article ol { padding-left: 1.3rem; margin-bottom: 1.2rem; line-height: 1.8; }
.pc-article img { max-width: 100%; height: auto; border-radius: var(--pc-radius); }
.pc-article figure { margin: 2rem 0; }
.pc-article figcaption, .wp-caption-text { font-size: .88rem; color: var(--pc-muted); text-align: center; margin-top: .6rem; }
.pc-article blockquote, .pc-article .wp-block-quote { font-family: var(--pc-serif); font-size: 1.2rem; color: var(--pc-navy); border-left: 4px solid var(--pc-gold); padding: .4rem 0 .4rem 1.4rem; margin: 1.8rem 0; }
.pc-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.pc-article th, .pc-article td { border: 1px solid var(--pc-border); padding: .65rem .8rem; text-align: left; }
.pc-article th { background: var(--pc-offwhite); color: var(--pc-navy); }
.pc-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pc-article iframe { max-width: 100%; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
@media (max-width: 575.98px) { .alignleft, .alignright { float: none; margin: 1rem 0; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Blog pagination ---------- */
.pc-pagination { margin-top: 3rem; }
.pc-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pc-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .9rem; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: var(--pc-white); color: var(--pc-navy); font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.pc-pagination .page-numbers:hover, .pc-pagination .page-numbers.current { background: var(--pc-navy); border-color: var(--pc-navy); color: var(--pc-white); }

/* ---------- Listing cards: keep WordPress-generated images in the 16:10 frame ---------- */
.pc-listing-img img, .pc-post-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Listings toolbar: search and sort side by side ---------- */
@media (min-width: 576px) { .pc-toolbar .form-control { width: 260px; } }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  .pc-toolbar .form-control, .pc-toolbar .form-select { width: 100% !important; }
  .pc-toolbar > .d-flex { width: 100%; }
  .pc-filter { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .25rem; }
  .pc-filter::-webkit-scrollbar { display: none; }
  .pc-filter button { flex: 0 0 auto; }
  .pc-map { min-height: 300px; }
}
html, body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
