/* === Card Wrapper and Scroll === */
.visa-card-scroll-container {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.visa-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  flex-direction: row;
  max-width: 1020px;
  margin: 0 auto;
}

/* === Card Item === */
.visa-card {
  flex: 1 1 calc(33.333% - 24px);
  max-width: 320px;
  min-width: 280px;
  padding: 0;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', sans-serif;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.visa-card .real-estate-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* === Title and Price === */
.visa-card .real-estate-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0A0A0A;
  margin: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.visa-card .real-estate-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1E3A8A;
  margin: 0 16px 0.5rem;
}

/* === Meta Info === */
.visa-card .real-estate-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 16px 1rem;
  font-size: 0.875rem;
  color: #4B5563;
}

.visa-card .real-estate-meta i {
  margin-right: 6px;
  color: #737373;
}

/* === Button === */
.visa-card .button-wrapper {
  margin: 0 16px 16px;
}

.visa-card .learn-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: #1E3A8A;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  color: #FAFAFA;
  text-align: center;
  transition: background 0.2s ease;
}

.visa-card .learn-btn:hover {
  background: #f3f4f6;
  color: #0A0A0A;
}

/* === Pagination === */
.visa-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.visa-pagination-wrapper .page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.visa-pagination-wrapper .page-numbers li a,
.visa-pagination-wrapper .page-numbers li span {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.visa-pagination-wrapper .page-numbers li a:hover {
  background-color: #e5e7eb;
}

.visa-pagination-wrapper .page-numbers .current {
  background-color: #1E3A8A;
  color: #fff;
  border-color: #1E3A8A;
}

/* === Wrapper Overlay for Loading === */
#real-estate-projects-wrapper {
  position: relative;
}

.visa-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.spinner {
  border: 4px solid #d1d5db;
  border-top: 4px solid #1E3A8A;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .visa-card {
    width: 100%;
  }
}
