/* ============================================================
   Real Estate API — Frontend Styles
   Clean rewrite matching cinematic card design
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* ---- Variables ---- */
:root {
  --gold:        #c9a264;
  --gold-hover:  #b8915a;
  --dark-bg:     #1F1F1F;   /* page / card background */
  --filter-bg:   #333333;   /* filter bar background */
  --card-bg:     #1a1a1a;
  --white:       #ffffff;
  --text-dim:    rgba(255,255,255,0.75);
  --text-muted:  rgba(255,255,255,0.50);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.rea-property-listings {
  background: transparent !important;
  min-height: 60vh;
  padding: 0 0 3rem;
  font-family: 'Inter', sans-serif;
  color: var(--white);
}

.home .rea-property-listings.elementor-widget-container{
  padding-bottom: 0px;
}

.home .rea-properties-grid{
  margin-bottom: 0;
}

@media screen and (min-width:768px) {
  .home .rea-property-card{
  min-height: 100%;
  aspect-ratio:1/1 ;
}
}

/* ============================================================
   FILTER / SEARCH BAR  — #333333 background
   ============================================================ */
.rea-search-form,
.rea-filters-form {
  background: var(--filter-bg) !important;
  border-radius: 12px !important;
  padding: 1.5rem 2rem !important;
  margin-bottom: 2.5rem !important;
  border: none !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
}

.rea-search-form::before,
.rea-filters-form::before {
  display: none !important;
}

.rea-filters-form .rea-filters-row,
.rea-search-form .rea-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  align-items: end;
}

/* Filter labels */
.rea-filter-group label,
.rea-filter-item label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 0.5rem;
}

/* Inputs & selects inside filter bar */
.rea-filter-group input,
.rea-filter-group select,
.rea-filter-item input,
.rea-filter-item select {
  width: 100% !important;
  padding: 0.7rem 1rem !important;
  background: rgba(255,255,255,0.10) !important;
  border: 1.5px solid rgba(255,255,255,0.14) !important;
  border-radius: 8px !important;
  color: var(--white) !important;
  font-size: 0.9rem !important;
  font-family: 'Inter', sans-serif !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: var(--transition) !important;
}

.rea-filter-group select option,
.rea-filter-item select option {
  background: #333333 !important;
  color: var(--white) !important;
}

.rea-filter-group input::placeholder,
.rea-filter-item input::placeholder {
  color: rgba(255,255,255,0.40) !important;
}

.rea-filter-group input:focus,
.rea-filter-group select:focus,
.rea-filter-item input:focus,
.rea-filter-item select:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  background: rgba(255,255,255,0.15) !important;
  box-shadow: 0 0 0 3px rgba(201,162,100,0.18) !important;
}

/* Select arrow */
.rea-filter-group select,
.rea-filter-item select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.8rem center !important;
  background-size: 1rem !important;
  padding-right: 2.5rem !important;
}

/* Price range slider track */
.rea-price-slider,
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

/* Price labels */
.rea-price-labels,
.rea-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.4rem;
}

/* Search button */
.rea-search-btn,
.rea-btn-search,
button[type="submit"] {
  background: var(--gold) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.75rem 2rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(201,162,100,0.35) !important;
  transition: var(--transition) !important;
  white-space: nowrap;
}
.rea-search-btn:hover,
button[type="submit"]:hover {
  background: var(--gold-hover) !important;
  box-shadow: 0 6px 20px rgba(201,162,100,0.5) !important;
  transform: translateY(-1px) !important;
}

/* ============================================================
   LOADING / NO RESULTS
   ============================================================ */
.rea-property-detail .rea-loading{
  height: 100vh;
}
.rea-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
}
.rea-loading::before {
  content: "";
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-top: 2px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.rea-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  font-style: italic;
}

/* ============================================================
   LISTINGS GRID
   ============================================================ */
.rea-listings-grid,
.rea-properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 3rem;
}

.rea-layout-list {
  grid-template-columns: 1fr;
}

/* ============================================================
   PROPERTY CARD  — cinematic full-bleed image style
   ============================================================ */
.rea-property-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
  border: none !important;
}

.rea-property-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* --- Full-bleed image --- */
.rea-property-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

.rea-property-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.6s ease !important;
  display: block;
}

.rea-property-card:hover .rea-property-image img {
  transform: scale(1.07) !important;
}

/* --- Dark gradient overlay --- */
.rea-property-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.68) 70%,
    rgba(0,0,0,0.88) 100%
  );
  z-index: 1;
}

/* --- Card content sits above overlay --- */
.rea-property-content {
  position: static !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  
  background: none !important;
  border: none !important;
}

.rea-listings-grid .rea-property-content{
  position: absolute !important;
  padding: 20px 22px 18px !important;
}

.rea-listings-grid .elementor-icon-list-icon svg{
  fill:#ffffff!important;
}

/* --- Status badge top-left --- */
.rea-property-badge,
.rea-property-status,
.rea-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 3 !important;
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  color: var(--white) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  padding: 5px 13px !important;
  border-radius: 50px !important;
  line-height: 1 !important;
}

/* --- Arrow button bottom-right --- */
.rea-property-actions {
  position: absolute !important;
  bottom: 16px !important;
  right: 16px !important;
  padding: 0 !important;
  border: none !important;
  z-index: 3 !important;
}

.rea-property-actions a,
.rea-property-actions .rea-btn,
.rea-property-actions .rea-view-btn,
.rea-property-actions button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  border-radius: 50% !important;
  color: var(--white) !important;
  text-decoration: none !important;
  font-size: 0 !important;    /* hide text */
  padding: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.rea-property-actions a::after,
.rea-property-actions .rea-btn::after,
.rea-property-actions .rea-view-btn::after,
.rea-property-actions button::after {
  content: '↗';
  font-size: 17px;
  color: var(--white);
  display: block;
}

.rea-property-actions a:hover,
.rea-property-actions .rea-btn:hover,
.rea-property-actions .rea-view-btn:hover,
.rea-property-actions button:hover {
  background: rgba(255,255,255,0.30) !important;
  transform: none !important;
}

/* --- Location label --- */
.rea-property-location-label,
.rea-property-city {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.60);
  margin: 0 0 5px;
  display: none; /* hidden — location shown via address below title if needed */
}

/* --- Property title --- */
.rea-property-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.82) !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
  font-family: 'Inter', sans-serif !important;
  min-height: unset !important;
}

/* --- Price --- */
.rea-property-price {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  font-family: 'Inter', sans-serif !important;
}

.rea-property-price::before {
  display: none !important;
}

/* --- Address (hide in card, use as subtitle) --- */
.rea-property-address {
  font-size: 11px !important;
  color: rgba(255,255,255,0.55) !important;
  margin: 0 0 6px !important;
  display: block !important;
  font-weight: 400 !important;
}

.rea-property-address::before {
  display: none !important;
}

/* --- Features strip (bed / bath / sqft) --- */
.rea-property-features {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rea-feature,
.rea-feature-item {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.78) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.rea-feature svg,
.rea-feature-icon {
  opacity: 0.65;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   LIST LAYOUT
   ============================================================ */
.rea-layout-list .rea-property-card {
  aspect-ratio: 16 / 5;
  min-height: 200px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.rea-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.rea-page-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.6rem !important;
  height: 2.6rem !important;
  padding: 0 1rem !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  border-radius: 50px !important;
  font-family: 'Inter', sans-serif !important;
}

.rea-property-listings .rea-page-btn {
  background: #D0B565!important;
  color: #ffffff !important;
}

.rea-page-btn:hover,
.rea-page-btn.active {
  background: var(--gold) !important;
  color: var(--white) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 14px rgba(201,162,100,0.40) !important;
}

.rea-page-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

.rea-pagination-dots {
  color: rgba(255,255,255,0.35);
  padding: 0 0.3rem;
}

.rea-pagination-info {
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rea-listings-grid,
  .rea-properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rea-listings-grid,
  .rea-properties-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rea-property-price {
    font-size: 22px !important;
  }
  .rea-search-form,
  .rea-filters-form {
    padding: 1rem !important;
  }
  .rea-filters-form .rea-filters-row,
  .rea-search-form .rea-filters-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */
.rea-property-detail-page {
  background: var(--dark-bg);
  color: var(--white);
  /* padding: 2rem; */
  min-height: 100vh;
}

.rea-property-price-large {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0;
}

.rea-property-gallery .rea-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 14px;
}

.rea-property-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.rea-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.rea-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.rea-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   CARD FADE-IN ANIMATION
   ============================================================ */
.rea-property-card {
  animation: cardIn 0.5s ease-out both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rea-property-card:nth-child(1) { animation-delay: 0.05s; }
.rea-property-card:nth-child(2) { animation-delay: 0.10s; }
.rea-property-card:nth-child(3) { animation-delay: 0.15s; }
.rea-property-card:nth-child(4) { animation-delay: 0.20s; }
.rea-property-card:nth-child(5) { animation-delay: 0.25s; }
.rea-property-card:nth-child(6) { animation-delay: 0.30s; }
