/* Search results page: styles carried over from the old searchresult.php. Designed and developed by Alok <nptrade24@proton.me> */
.range-inputs select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.range-inputs select:focus {
    outline: none;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.input-group {
    margin-bottom: 12px;
}

.input-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

#loadingScreen {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.seika-text {
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  color: #222;
  display: flex;
  gap: 8px;
  font-size: 48px; /* Default for desktop */
}

/* Responsive font sizes */
@media (max-width: 1024px) {
  .seika-text {
    font-size: 36px; /* Tablets */
  }
}

@media (max-width: 600px) {
  .seika-text {
    font-size: 28px; /* Mobile */
  }
}

.seika-text span {
  display: inline-block;
  animation: waveFadeColor 2.5s infinite;
  transform-origin: center;
}

/* Add delay per letter for wave effect */
.seika-text span:nth-child(1) { animation-delay: 0s; }
.seika-text span:nth-child(2) { animation-delay: 0.3s; }
.seika-text span:nth-child(3) { animation-delay: 0.6s; }
.seika-text span:nth-child(4) { animation-delay: 0.9s; }
.seika-text span:nth-child(5) { animation-delay: 1.2s; }

@keyframes waveFadeColor {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    color: #222222;
  }
  50% {
    opacity: 1;
    transform: scale(1.2) translateY(0);
    color: #ff4b1f; /* bright orange */
  }
}

/* The results column may shrink (min-width:0) so the "popular listings" row can't push it past the container. */
.search-results { min-width: 0; }
.recently-viewed .recent-properties { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.recently-viewed .recent-property { min-width: 0; width: auto; }
@media (max-width: 768px) { .recently-viewed .recent-properties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
