/**
 * Real Estate Hub Page Styles
 */


.re-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.re-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-main);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.re-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-green);
}

.re-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.re-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.4rem;
}

.re-card p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  flex-grow: 1;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-main);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 3rem;
}

.info-strip-item {
  text-align: center;
}

.info-strip-item .val {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--text-heading);
}

.info-strip-item .lbl {
  font-size: 13px;
  color: var(--color-gray-500);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .re-grid {
    grid-template-columns: 1fr;
  }
}

/* Real Estate Detail Pages Specific Layout */

.re-detail-header {
  padding: 4rem 1rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.residential-theme { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.commercial-theme { background: linear-gradient(135deg, #4338ca, #818cf8); }
.reit-theme { background: linear-gradient(135deg, #b91c1c, #f87171); }
.fractional-theme { background: linear-gradient(135deg, #b45309, #fbbf24); }
.land-theme { background: linear-gradient(135deg, #047857, #34d399); }
.yield-theme { background: linear-gradient(135deg, #0f766e, #2dd4bf); }

.re-detail-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2), transparent 50%);
  pointer-events: none;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.header-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.header-info h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-info p {
  font-size: 1.125rem;
  margin: 0 0 1rem;
  opacity: 0.9;
}

.header-info .tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-info .tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
}

.re-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  margin-top: -2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.stat-box .label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-box .val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
}

.re-body-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991px) {
  .re-body-layout { grid-template-columns: 1fr; }
  .header-container { flex-direction: column; text-align: center; }
}

.re-sidebar {
  position: sticky;
  top: 100px;
}

.premium-card {
  background: linear-gradient(180deg, #fafafa, #ffffff);
  border: 1px solid #e5e7eb;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.premium-card .icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--color-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
}

/* Tabs */
.re-tabs-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--color-gray-100);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.re-tab {
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.re-tab:hover {
  color: var(--color-primary);
}

.re-tab.active {
  color: var(--color-primary);
}

.re-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px 3px 0 0;
}

.re-tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.re-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.section-card h2 {
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.section-card p {
  color: var(--text-main);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.feature-list li::before {
  content: '\f00c';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #10b981;
}
