/* =========================
   SEARCH FORM LAYOUT
   ========================= */
.hidden {
  display: none !important;
}

.filters-panel.collapsed {
  display: none !important;
}

.filter-toggle-btn {
  cursor: pointer;
  margin-bottom: 12px;
}

form.search-filter-form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
}

form.search-filter-form label:first-of-type {
  margin-top: 0;
}

form.search-filter-form .form-input,
form.search-filter-form .form-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Price Range Side-by-Side Flex Layout */
form.search-filter-form .price-range-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

form.search-filter-form .price-range-group .form-input {
  flex: 1;
  margin-bottom: 0;
}

/* =========================
   PAGINATION BASE
   ========================= */
.anim-pagination-wrapper {
  width: 100%;
}

.anim-pagination {
  display: flex;
  list-style: none;
  margin: 20px 0;
  padding: 0;
  gap: 12px;
}

/* =========================
   PAGINATION BUTTONS
   ========================= */
.anim-pagination li a,
.anim-pagination li span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  overflow: hidden;
  border: none;
  background-size: 200% auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s;
}

/* =========================
   SHINE EFFECT
   ========================= */
.anim-pagination li a::before,
.anim-pagination li span::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -75%;
  width: 50%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.anim-pagination li a:hover::before,
.anim-pagination li span:hover::before {
  left: 130%;
}

/* =========================
   INTERACTION STATES
   ========================= */
.anim-pagination li a:hover,
.anim-pagination li span:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  background-position: right center;
}

.anim-pagination li a:active,
.anim-pagination li span:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* =========================
   PAGE TYPES
   ========================= */
.anim-pagination li a.anim-page-link {
  background-image: linear-gradient(45deg, #00b4db, #0083b0, #00b4db);
}

.anim-pagination li.anim-active span {
  background-image: linear-gradient(45deg, #ff416c, #ff4b2b, #ff416c);
}

.anim-pagination li.anim-dots span,
.anim-pagination li.anim-disabled span {
  background-color: #ccc;
  color: #fff;
}

/* =========================
   ARROWS (DEFAULT = DESKTOP)
   ========================= */
.anim-pagination li.anim-prev a::after,
.anim-pagination li.anim-prev span::after {
  content: "←";
}

.anim-pagination li.anim-next a::after,
.anim-pagination li.anim-next span::after {
  content: "→";
}

/* =========================
   DESKTOP & TABLET MEDIA QUERIES
   ========================= */
@media (min-width: 600px) {
  .anim-pagination-wrapper {
    display: flex;
    justify-content: center;
    position: static;
  }

  .anim-pagination {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 599px) {
  .anim-pagination-wrapper {
    position: fixed !important;
    right: 15px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: auto !important;
  }

  .anim-pagination {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .anim-pagination li.anim-prev a::after,
  .anim-pagination li.anim-prev span::after {
    content: "↑";
  }

  .anim-pagination li.anim-next a::after,
  .anim-pagination li.anim-next span::after {
    content: "↓";
  }

  .anim-pagination li a,
  .anim-pagination li span {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* =========================
   INFO GRID & LISTING COMPONENTS
   ========================= */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--panel-border, rgba(0, 0, 0, 0.05));
  font-size: 0.95rem;
  gap: 10px;
}

.info-item span {
  color: var(--text);
}

.info-item .txtRight {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

@media (max-width: 480px) {
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .info-item span {
    font-size: 0.95rem;
  }
  .txtRight {
    text-align: left;
  }
}

.listing-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.price-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 12px;
}

.price-fieldset legend,
.price-legend {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-btn-wrapper {
  margin-top: 15px;
}

.listing-details {
  flex-grow: 1;
}

.listing-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.listing-title {
  margin: 0 0 4px;
}

.info-country {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.info-country img {
  flex-shrink: 0;
}