/* blog.html: the filter bar above the «Buscar en el blog» bar (js/blogFilters.js). The bar itself is the site's own dark filter-bar component (search-wrapper-three layout-two
   dark-bg, as on the properties, projects and agents pages); this file only adds what the blog needs: the author text box, the status line, the clear button and, on a
   phone (<= 768 px), the «Filtros» button that opens the same fields as a full-screen sheet (the same pattern as the home hero). Only blog.html loads it. */
.blog-filters { margin: 0 0 10px; }
.blog-filters .blog-filter-fields { margin-bottom: 14px !important; }
.blog-filters-toggle, .blog-sheet-head { display: none; }
/* the author type-ahead: same slot, height (35 px), font (18 px) and colours as the nice-select next to it */
.blog-combo { position: relative; }
.blog-filters .input-box-one input.blog-author-input { display: block; width: 100%; height: 35px; padding: 0 30px 0 0; border: 0; border-radius: 0; background: transparent; color: #fff; font: inherit; font-size: 18px; line-height: 35px; outline: 0; box-shadow: none; text-transform: none; }
.blog-filters .input-box-one input.blog-author-input::placeholder { color: rgba(255, 255, 255, .55); opacity: 1; }
.blog-filters .input-box-one input.blog-author-input:focus-visible { outline: 2px solid #ff6725; outline-offset: 4px; border-radius: 2px; }
.blog-author-clear { position: absolute; top: 0; right: 0; width: 30px; height: 35px; padding: 0; border: 0; background: none; color: #fff; font-size: 22px; line-height: 35px; cursor: pointer; }
.blog-author-clear[hidden] { display: none; }
.blog-author-clear:hover, .blog-author-clear:focus-visible { color: #ff6725; }
.blog-author-clear:focus-visible { outline: 2px solid #ff6725; outline-offset: 2px; }
.blog-author-list { position: absolute; top: calc(100% + 8px); left: -4px; z-index: 30; min-width: 260px; max-width: 340px; margin: 0; padding: 6px 0; list-style: none; background: #000; border: 1px solid rgba(255, 255, 255, .15); max-height: 320px; overflow-y: auto; }
.blog-author-list[hidden] { display: none; }
.blog-author-list li { padding: 9px 16px; font-size: 16px; line-height: 1.35; color: rgba(255, 255, 255, .8); cursor: pointer; }
.blog-author-list li.is-active, .blog-author-list li:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.blog-author-list li.blog-author-none { cursor: default; color: rgba(255, 255, 255, .6); }
.blog-author-list li.blog-author-none:hover { background: none; color: rgba(255, 255, 255, .6); }
.blog-filters .input-box-one select[hidden] { display: none; }
.blog-filters .search-modal-btn { cursor: pointer; }
.blog-filters .search-modal-btn:focus-visible { outline: 2px solid #ff6725; outline-offset: 3px; }
.blog-filters-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 18px; font-size: 16px; color: #0d1a1c; }
.blog-filters-status[hidden] { display: none; }
.blog-clear-btn { border: 1px solid #0d1a1c; background: #fff; color: #0d1a1c; border-radius: 22px; padding: 7px 20px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.blog-clear-btn:hover, .blog-clear-btn:focus-visible { background: #0d1a1c; color: #fff; }
.blog-clear-btn:focus-visible { outline: 2px solid #ff6725; outline-offset: 2px; }
#blog-empty { font-size: 20px; }

@media (max-width: 768px) {
  .blog-filters-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin: 0 0 14px; border: 0; border-radius: 26px; background: #0d1a1c; color: #fff; font-size: 17px; font-weight: 500; cursor: pointer; }
  .blog-filters-toggle:focus-visible { outline: 2px solid #ff6725; outline-offset: 3px; }
  .blog-filters-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff6725; font-size: 13px; }
  .blog-filters-count[hidden] { display: none; }
  .blog-filters:not(.blog-open) .blog-filter-fields { display: none; }
  html.blog-sheet-lock, html.blog-sheet-lock body { overflow: hidden; }
  html.blog-sheet-lock .theme-main-menu, html.blog-sheet-lock .scroll-top { display: none !important; }   /* the sheet is a full-screen layer */
  .blog-filters.blog-open .blog-filters-toggle { display: none; }
  .blog-filters.blog-open .blog-filter-fields { position: fixed !important; top: 0; right: 0; bottom: 0; left: 0; z-index: 1060; margin: 0 !important; padding: 0 0 24px; border: 0; border-radius: 0; overflow-y: auto; background: #fff !important; }
  .blog-filters.blog-open .blog-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; font-size: 20px; color: #000; }
  .blog-filters.blog-open .blog-sheet-close { border: 0; background: none; font-size: 34px; line-height: 1; color: #000; padding: 0 6px; cursor: pointer; }
  .blog-filters.blog-open .blog-filter-fields .row { display: block; margin: 0; padding: 8px 16px 0; }
  .blog-filters.blog-open .blog-filter-fields .row > div { width: 100%; max-width: 100%; padding: 0; margin: 0 0 12px; }
  .blog-filters.blog-open .input-box-one { height: auto; padding: 0; border: 0 !important; }
  .blog-filters.blog-open .input-box-one .label { margin: 0 0 4px; font-size: 13px; color: #666; }
  .blog-filters.blog-open .input-box-one .nice-select { height: 50px; line-height: 50px; width: 100%; border: 1px solid #ddd; border-radius: 14px; font-size: 16px; color: #000; background: #fff; }
  .blog-filters.blog-open .input-box-one .nice-select:after { border-bottom-color: #000; border-right-color: #000; }
  .blog-filters.blog-open .input-box-one .nice-select .list { background: #fff; border: 1px solid #ddd; border-radius: 14px; max-height: 260px; overflow-y: auto; }
  .blog-filters.blog-open .input-box-one .nice-select .list .option { color: #333; }
  .blog-filters.blog-open .input-box-one .nice-select .list .option:hover, .blog-filters.blog-open .input-box-one .nice-select .list .option.focus, .blog-filters.blog-open .input-box-one .nice-select .list .option.selected.focus { background: #fff3ed; color: #000; }
  .blog-filters.blog-open .input-box-one input.blog-author-input { height: 50px; padding: 0 44px 0 16px; border: 1px solid #ddd; border-radius: 14px; background: #fff; color: #000; font-size: 16px; line-height: 50px; }
  .blog-filters.blog-open .input-box-one input.blog-author-input::placeholder { color: #888; }
  .blog-filters.blog-open .blog-author-clear { height: 50px; width: 44px; line-height: 50px; color: #000; }
  .blog-filters.blog-open .blog-author-list { left: 0; right: 0; min-width: 0; max-width: none; background: #fff; border: 1px solid #ddd; border-radius: 14px; }
  .blog-filters.blog-open .blog-author-list li { color: #333; }
  .blog-filters.blog-open .blog-author-list li.is-active, .blog-filters.blog-open .blog-author-list li:hover { background: #fff3ed; color: #000; }
  .blog-filters.blog-open .blog-author-list li.blog-author-none, .blog-filters.blog-open .blog-author-list li.blog-author-none:hover { color: #666; background: none; }
  .blog-filters.blog-open .search-modal-btn { display: flex; justify-content: center; width: calc(100% - 32px); height: 50px; margin: 6px 16px 0 !important; border-radius: 25px; font-size: 16px; background: #ff6725; color: #fff; }
  .blog-filters.blog-open .search-modal-btn span { margin: 0 10px 0 0 !important; font-size: 16px !important; }
  .blog-filters.blog-open .blog-filter-fields .row > div:last-child { margin: 0; }
  .blog-filters.blog-open .blog-filter-fields .row > div:last-child .input-box-one { margin: 0; }
  .blog-filters.blog-open .blog-filter-fields .row > div:last-child .d-flex { justify-content: center !important; }
}
