/* CSS Custom Properties for Styling - BRIGHT THEME */
:root {
  --color-dark: #ffffff; /* Primary Background */
  --color-darker: #f8fafc; /* Secondary Background */
  --color-light: #0f172a; /* Primary Text */
  
  --color-realtor-primary: #2563eb; /* Blue tint for Real Estate */
  --color-realtor-secondary: #1d4ed8;
  --color-realtor-bg: #ffffff;
  
  --color-reno-primary: #ea580c; /* Orange tint for Renovation */
  --color-reno-secondary: #c2410c;
  --color-reno-bg: #ffffff;

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-darker);
  color: var(--color-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Customizations */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #020617;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation - Common */
.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo .logo-text {
  background: linear-gradient(135deg, #1e293b, #64748b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  padding-top: 5px;
}

.contact-info {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--color-realtor-primary);
}

/* SPLIT SCREEN HOMEPAGE */
.split-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.split-side {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}

/* Background image overrides with bright overlays */
.split-side.realtor {
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&q=80') center/cover;
}

.split-side.renovation {
  background: linear-gradient(rgba(255, 248, 240, 0.85), rgba(255, 240, 225, 0.95)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&q=80') center/cover;
}

/* Hover effect on desktop */
@media (min-width: 900px) {
  .split-side:hover {
    flex: 1.25;
  }
  .split-side.realtor:hover {
      background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&q=80') center/cover;
  }
  .split-side.renovation:hover {
      background: linear-gradient(rgba(255, 248, 240, 0.7), rgba(255, 240, 225, 0.85)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&q=80') center/cover;
  }
}

.split-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 500px;
  padding: 2rem;
  opacity: 0.9;
  transition: var(--transition);
  transform: translateY(20px);
}

.split-side:hover .split-content {
  opacity: 1;
  transform: translateY(0);
}

.split-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0f172a;
}

.split-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: #475569;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.realtor .action-btn {
  background-color: var(--color-realtor-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.realtor .action-btn:hover {
  background-color: var(--color-realtor-secondary);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(37, 99, 235, 0.35);
}

.renovation .action-btn {
  background-color: var(--color-reno-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.25);
}

.renovation .action-btn:hover {
  background-color: var(--color-reno-secondary);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(234, 88, 12, 0.35);
}

.top-fancy-text {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Great Vibes', cursive;
  font-size: 4.5rem;
  font-weight: 400;
  color: #ffffff;
  z-index: 50;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 5px 15px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.mobile-divider {
  display: none;
}

.fancy-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 600;
  font-style: italic;
  color: #ffffff;
  z-index: 50;
  text-align: center;
  pointer-events: none; /* so it doesn't block clicks */
  text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.5);
}

/* REALTOR PROFILE DASHBOARD */
.dashboard-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 100vh;
  background-color: var(--color-darker);
}

.sidebar {
  background: var(--color-realtor-bg);
  padding: 3rem 2rem;
  border-right: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.realtor-info {
  text-align: center;
  margin-bottom: 3rem;
}

.realtor-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--color-realtor-primary);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

.realtor-info h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.realtor-info .title {
  color: #64748b;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-details {
  background: var(--color-darker);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-details i {
  color: var(--color-realtor-primary);
  font-size: 1.25rem;
}

.main-content {
  padding: 3rem 4rem;
  overflow-y: auto;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.header-actions h1 {
  font-size: 2.5rem;
}

.btn-primary {
  background-color: var(--color-realtor-primary);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-realtor-secondary);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.listing-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.listing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.listing-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.listing-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-realtor-primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.listing-details {
  padding: 1.5rem;
}

.listing-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.listing-address {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  min-height: 45px;
}

.listing-specs {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}

.spec-item i {
  color: var(--color-realtor-primary);
}

.listing-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-outline {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.6rem 0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-outline.edit {
  border-color: var(--color-realtor-primary);
  color: var(--color-realtor-primary);
}

.btn-outline.edit:hover {
  background: var(--color-realtor-primary);
  color: white;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: #0f172a;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #334155;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: #0f172a;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-realtor-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* PUBLIC REALTOR PAGE STYLES */
.public-page {
  background-color: var(--color-darker);
}

.static-nav {
  position: static;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #475569;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-realtor-primary);
}

.public-header {
  padding: 6rem 4rem;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.realtor-hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.realtor-hero-image img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.experience-badge {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: var(--color-realtor-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
  font-family: var(--font-display);
  font-weight: 700;
  transform: translateX(-2rem);
}

.specialty-tag {
  color: var(--color-realtor-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.realtor-hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.bio-text {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.quick-contact {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  background: var(--color-realtor-primary);
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.contact-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.contact-pill.outline {
  background: white;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.contact-pill.outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.stats-row {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.stat-item p {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem;
}

.text-center {
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.section-title p {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.w-100 {
  width: 100%;
  justify-content: center;
}

.bg-warning {
  background: var(--color-reno-primary);
}

.split-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.contact-text p {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-realtor-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.method h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.method p {
  margin: 0;
  font-size: 1rem;
  color: #475569;
}

.contact-form-wrapper {
  background: #ffffff;
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.05);
}

.contact-form-wrapper h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0f172a;
}

/* NEW SERVICES/DETAILS SECTIONS */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--color-realtor-primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-realtor-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: #64748b;
    font-size: 1rem;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.testimonial-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    border: 1px solid #e2e8f0;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: rgba(37, 99, 235, 0.1);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #334155;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    margin-bottom: 0.1rem;
    font-size: 1.1rem;
}

.client-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 900px) {
  /* Index Split Page */
  .desktop-only {
    display: none !important;
  }
  .mobile-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #0f172a;
    padding: 1.5rem;
    width: 100%;
    z-index: 50;
  }
  .mobile-divider .top-fancy-text,
  .mobile-divider .fancy-center-text {
    position: static;
    transform: none;
    top: auto;
    left: auto;
  }
  .mobile-divider .top-fancy-text {
    display: none;
  }
  .mobile-divider .fancy-center-text {
    font-size: 2.5rem;
  }
  .split-container {
    flex-direction: column;
    height: auto;
  }
  .split-side {
    width: 100%;
    min-height: 50vh;
    height: auto;
    padding: 4rem 1rem;
  }
  .realtor.split-side {
    padding-top: 150px; /* Accounts for vertical Top Nav Space */
  }
  .split-content {
    padding: 0.5rem 1.5rem;
  }
  .split-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  .split-content p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  .action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Top Nav */
  .top-nav {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  /* Admin Dashboard layout */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
  }
  .main-content {
    padding: 2rem;
  }
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  /* Modals */
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Public Realtor Profile */
  .header-container, .split-contact, .services-grid {
    grid-template-columns: 1fr !important;
  }
  .public-header {
    padding: 4.5rem 2rem;
  }
  .realtor-hero-content h1 {
    font-size: 3rem;
  }
  .quick-contact {
    flex-direction: column;
    gap: 1rem;
  }
  .stats-row {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .experience-badge {
    bottom: -1rem;
    right: 50%;
    transform: translateX(50%);
  }
  .section-container {
    padding: 4rem 2rem;
  }
  .services-grid {
    gap: 1.5rem;
  }
  .contact-form-wrapper {
    padding: 3rem 2rem;
  }
}

