/* ===================================
   PROPIEDADES — estilos de página
   =================================== */

/* ===== PAGE HEADER ===== */
.page-header {
  padding-top: 84px; /* compensa el header fijo */
  position: relative;
  background: url('fondo.webp') center bottom / cover no-repeat fixed;
  border-bottom: none;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.25) 60%,
    rgba(0,0,0,.1) 100%
  );
}

.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 32px 52px;
  text-align: left;
}

.page-header-breadcrumb {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.page-header-breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.page-header-breadcrumb a:hover { color: var(--white); }

.page-header-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}

/* Tabs operación — sobre la foto del page-header */
.page-header-tabs {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.ph-tab {
  background: rgba(0,0,0,.35);
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  padding: 10px 22px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.ph-tab:hover {
  background: rgba(0,0,0,.5);
  color: var(--white);
}

.ph-tab.active {
  background: var(--white);
  color: var(--black);
}

/* ===== FILTROS ===== */
.filters-bar {
  position: sticky;
  top: 84px;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

.filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 64px;
}

/* Selects */
.filters-selects {
  display: flex;
  flex: 1;
  gap: 0;
}

.filter-select-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 18px;
  border-right: 1px solid var(--border);
  min-width: 120px;
}

.filter-select-wrap label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-lt);
}

.filter-select-wrap select {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 16px;
}

/* Search input */
.filter-search-wrap {
  padding: 0 18px;
  border-right: 1px solid var(--border);
  flex: 1;
  max-width: 200px;
}

.filter-search-wrap input {
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--black);
  width: 100%;
  height: 100%;
}

.filter-search-wrap input::placeholder {
  color: var(--gray-lt);
}

/* Botón aplicar */
.filter-apply-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 24px;
  height: 100%;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}

.filter-apply-btn svg {
  width: 13px;
  height: 13px;
}

.filter-apply-btn:hover { background: #333; }

/* Botón limpiar */
.filter-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  height: 100%;
  color: var(--gray-lt);
  transition: color .2s;
  flex-shrink: 0;
}

.filter-clear-btn svg {
  width: 14px;
  height: 14px;
}

.filter-clear-btn:hover { color: var(--black); }

/* ===== MAIN RESULTADOS ===== */
.props-main {
  padding: 40px 0 80px;
  background: var(--cream);
  min-height: 60vh;
}

.props-main .container {
  max-width: 1400px;
}

.props-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.props-count {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ===== PAGINACIÓN ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 56px;
}

.pagination button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.pagination button:hover {
  border-color: var(--black);
  color: var(--black);
}

.pagination button.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.pagination button:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

.pagination button.prev-btn,
.pagination button.next-btn {
  width: auto;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== EMPTY STATE ===== */
.props-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
}

.props-empty p {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gray);
  margin-bottom: 8px;
}

.props-empty span {
  font-size: 13px;
  color: var(--gray-lt);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1020px) {
  .filter-search-wrap { display: none; }
}

@media (max-width: 860px) {
  .filters-bar { position: static; }

  .filters-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 24px;
    gap: 12px;
  }

  .filter-group--operacion {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    width: 100%;
  }

  .filters-selects {
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    width: 100%;
  }

  .filter-select-wrap {
    border-right: none;
    padding: 0;
    min-width: calc(50% - 8px);
  }

  .filter-apply-btn {
    height: 44px;
    padding: 0 20px;
    flex: 1;
  }

  .filter-clear-btn {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .page-header-inner { padding: 28px 20px 24px; }

  .filter-select-wrap {
    min-width: 100%;
  }
}
