/*
 * ═══════════════════════════════════════════════════════
 *  Projects Filter — Stylesheet
 *  Place at: /wp-content/themes/YOUR-THEME/assets/css/projects-filter.css
 *
 *  Matches the Figma design:
 *  - Warm peach background
 *  - Dark teal (#1B4242) filter bar & buttons
 *  - Orange (#F5682C) accent
 *  - Lavender (#EAE6F5) stat boxes
 * ═══════════════════════════════════════════════════════
 */

/* ── Design Tokens ────────────────────────────────────── */
:root {
  --pf-teal:     #1B4242;
  --pf-orange:   #F5682C;
  --pf-bg:       #F1E8E4;
  --pf-lavend:   #EAE6F5;
  --pf-green:    #3DAA78;
  --pf-radius:   16px;
  --pf-gap:      22px;
  --pf-pad:      24px;
}

/* ── Wrapper ──────────────────────────────────────────── */



/* ═══════════════════════════════════════════════════════
   FILTER BAR
 ═══════════════════════════════════════════════════════ */
.pf-bar {
  padding: 12px var(--pf-pad);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
    justify-content: center;
	margin-bottom:54px;
}

.pf-bar__label {
    font-size: 14px;
    font-weight: 700;
    color: #004D43;
    white-space: nowrap;
}

/* ── Search ── */
.pf-search {
  position: relative;
}

.pf-search__icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #aaa;
    width: 16px;	
}

.pf-search__input {
    padding: 12px 10px !important;
    border: 0px !important;
    border-radius: 10px !important;
    font-size: 13px;
    outline: none;
    min-width: 185px;
    color: #004D43;
    padding-left: 33px !important;
    font-weight: 600;
}
.pf-search__input:focus {
  border-color: var(--pf-teal);
}

/* ── Dropdowns container ── */
.pf-dropdowns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Single Dropdown ── */
.pf-dropdown {
  position: relative;
}

button.pf-dropdown__btn svg {
    background: #2b5151;
    padding: 10px 4px;
    width: 29px !important;
    height: 34px !important;
    border-radius: 5px;
}

.pf-dropdown__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 3px;
    padding-left: 12px;
    background: var(--pf-teal);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 125px;
    outline: none;
    transition: all .15s;
}
.pf-dropdown__btn:hover, .pf-dropdown__btn:focus {     opacity: .9;
    background: #FF8359;}
.pf-dropdown__btn.has-value { border-color: var(--pf-orange); }

.pf-dropdown__label { flex: 1; text-align: left; }

.pf-dropdown__chevron {
  flex-shrink: 0;
  transition: transform .2s;
}
.pf-dropdown__btn[aria-expanded="true"] .pf-dropdown__chevron {
  transform: rotate(180deg);
}

.pf-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
  min-width: 160px;
}

.pf-dropdown__item {
  padding: 10px 15px;
  font-size: 13px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .1s;
}
.pf-dropdown__item:hover   { background: #f8f8f8; }
.pf-dropdown__item.is-active {
  background: #f2f2f2;
  font-weight: 700;
  border-left-color: var(--pf-teal);
}

/* ── Clear button ── */
.pf-clear {
  padding: 8px 12px;
  background: transparent;
  color: #888;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: border-color .15s, color .15s;
}
.pf-clear:hover { border-color: #bbb; color: #555; }

/* ── Map CTA ── */
.pf-map-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--pf-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .15s;
  white-space: nowrap;
}
.pf-map-btn:hover { opacity: .88; color: #fff; }


/* ═══════════════════════════════════════════════════════
   COUNT BAR
 ═══════════════════════════════════════════════════════ */
.pf-count-bar {
  padding: 16px var(--pf-pad) 4px;
  font-size: 13px;
  color: #777;
}
.pf-count-bar #pf-count { font-weight: 700; color: #333; }


/* ═══════════════════════════════════════════════════════
   CARDS GRID
 ═══════════════════════════════════════════════════════ */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pf-gap);
  padding: 14px var(--pf-pad) 40px;
  transition: opacity .2s;
}

.pf-grid.is-loading {
  opacity: .45;
  pointer-events: none;
}

.pf-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  font-size: 15px;
  color: #999;
  background: rgba(255,255,255,.6);
  border-radius: var(--pf-radius);
}


/* ═══════════════════════════════════════════════════════
   CARD
 ═══════════════════════════════════════════════════════ */
.pf-card {
  background: #fff;
  border-radius: var(--pf-radius);
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .09);
  transition: box-shadow .25s, transform .25s;
}
.pf-card:hover {
 
}

.pf-inner1 {
    min-height: 168px;
}

.pf-image {
	width:100%;
}

button#pf-clear {
    background: #FF8359;
    border: 0px;
    color: #fff;
    padding: 12px 14px;
}

/* ── Image area ── */
.pf-card__img {
  position: relative;
  height: 300px;
  flex-shrink: 0;
  background-size: cover;
  background-position: top center;
  overflow: hidden;
}
/* Ken Burns hover on image */

.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 15px 14px;
}

.pf-card__title {
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 7px;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
font-family: 'Ubuntu' !important;	
}

.pf-card__country {
    display: inline-block;
    align-self: flex-start;
    background: var(--pf-teal);
    color: #fff;
    font-size: 13px;
    padding: 5px 18px;
    border-radius: 20px;
    margin-bottom: 7px;
    letter-spacing: .3px;
    background-color: rgb(166 166 166 / 13%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #797979;
}

.pf-card__short-desc {
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
  margin: 0;
  line-height: 1.5;
}

/* ── Body ── */
.pf-card__body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Tags */
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top:10px;
}

.pf-tags a {
    background: #FF8359;
    color: #fff;
    font-size: 13px;
    border-radius: 43px;
    padding: 5px 13px;
}

.pf-tag {
  background: var(--pf-orange);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Description */
.pf-card__desc {
    font-size: 13px;
    color: #595959;
    line-height: 1.65;
    margin: 0;
    padding: 10px 0px;
}
.pf-card__desc p { margin: 0; }

/* Stats */
.pf-stats {
  display: flex;
  gap: 7px;
}

.pf-stat {
    flex: 1;
    background: #D4D4FF;
    border-radius: 8px;
    padding: 10px 8px;
    color: #004D43;
}

.pf-stat__n {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.pf-stat__l {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

/* Worker */

.pf-author{
    margin-top: 0;
    border-top: 1px solid #eaeaea;
    padding-top: 17px;
    padding-bottom: 14px;
    display: FLEX;
    gap: 15px;
    margin-bottom: 10px;
	min-height: 70px;
}

.pf-worker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-worker__avatar {
width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E1F5EE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004D43;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: none;
}

.pf-worker__info {
  display: flex;
  flex-direction: column;
}

.pf-worker__name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
	line-height:1.1;
}

.pf-worker__role {
  font-size: 11px;
  color: #888;
}

/* Buttons */
.pf-btns {
  display: flex;
  gap: 8px;
}

.pf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: opacity .15s;
  border: none;
}
.pf-btn:hover { opacity: .85; }

.pf-btn--primary {
background: #D4D4FF;
    color: #004D43 !important;
    font-size: 14px;
}

.pf-btn--outline {
    background: transparent;
    color: var(--pf-teal) !important;
    border: 1px solid #CCCCCC;
}

a.pf-btn.pf-btn--primary svg {
    background: #fff;
    border-radius: 4px;
    width: 26px;
    height: 28px;
    margin-right: 2px;
    padding: 5px;
}

/* Footer */
.pf-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: auto;
}

.pf-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--sc, #2E8B57);
  font-weight: 600;
}

.pf-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc, #2E8B57);
  flex-shrink: 0;
}

.pf-region {
  font-size: 12px;
  color: var(--pf-orange);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
 ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .pf-bar { padding: 12px 16px; }
  .pf-grid { padding: 14px 16px 32px; }
  .pf-count-bar { padding: 14px 16px 4px; }
}

@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-map-btn { margin-left: 0; }
  .pf-dropdown__btn { min-width: 100px; }
	
	.pf-inner1 {
    min-height: inherit;
}
}

@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-card__img, .pf-dropdown__chevron { transition: none; }
}
