html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #2d5a3d;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* TenantTree Custom Styles */
:root {
  --primary-green: #2d5a3d;
  --light-green: #34d399;
  --dark-green: #1e3a2e;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --error-bg: #fef3c7;
  --error-border: #fcd34d;
}

.media-shell,
.property-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.media-shell img,
.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.property-media:hover img {
  transform: scale(1.03);
}

.skeleton-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.05);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.skeleton-line {
  height: 14px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-line + .skeleton-line {
  margin-top: 10px;
}

.skeleton-line.short {
  width: 55%;
}

.data-state-card {
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: var(--error-bg);
  padding: 24px;
  color: #92400e;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-state-card strong {
  font-size: 1.05rem;
}

@keyframes skeletonPulse {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

/* Landing Page Styles */
.landing-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: white;
  padding: 120px 0 140px;
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-actions .btn {
  padding: 15px 30px;
  font-weight: 600;
}

.dashboard-mockup {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.mockup-header {
  height: 12px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 33%, #10b981 66%);
  border-radius: 6px;
  margin-bottom: 20px;
}

.mockup-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-dark);
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-green);
}

.stat-card p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.roles-section {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.role-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(45, 90, 61, 0.1);
  border-color: var(--primary-green);
}

.role-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.role-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.role-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.role-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.role-features li {
  padding: 8px 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
}

.role-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

.cta-section {
  background: var(--bg-light);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Mobile App Promotion Section */
.mobile-app-section {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  padding: 60px 0;
  margin: 40px 20px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(45, 90, 61, 0.2);
}

.app-promotion-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-devices {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablet-mockup {
  position: absolute;
  left: -20px;
  z-index: 1;
}

.phone-mockup {
  position: absolute;
  right: 0;
  top: 50px;
  z-index: 2;
}

.device-frame {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tablet-mockup .device-frame {
  width: 320px;
  height: 240px;
  border-radius: 16px;
  padding: 15px;
}

.phone-mockup .device-frame {
  width: 180px;
  height: 320px;
  border-radius: 20px;
  padding: 12px;
}

.screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.phone-mockup .screen {
  border-radius: 16px;
}

.app-header {
  background: var(--primary-green);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header.mobile {
  padding: 16px;
  justify-content: center;
}

.app-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.phone-mockup .app-logo {
  font-size: 1rem;
}

.search-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 32px;
  width: 120px;
  border-radius: 16px;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}

.property-card {
  background: white;
  border-radius: 8px;
  height: 60px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.property-card.card1 {
  background: linear-gradient(45deg, #10b981 0%, #34d399 100%);
}

.property-card.card2 {
  background: linear-gradient(45deg, #3b82f6 0%, #60a5fa 100%);
}

.property-card.card3 {
  background: linear-gradient(45deg, #f59e0b 0%, #fbbf24 100%);
}

.property-card.card4 {
  background: linear-gradient(45deg, #8b5cf6 0%, #a78bfa 100%);
}

.map-view {
  background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
  height: 80px;
  margin: 12px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.map-pins {
  position: relative;
  height: 100%;
}

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pin.pin1 {
  background: #ef4444;
  top: 20px;
  left: 30px;
}

.pin.pin2 {
  background: #10b981;
  top: 40px;
  right: 50px;
}

.pin.pin3 {
  background: #3b82f6;
  bottom: 20px;
  left: 60px;
}

.property-list {
  padding: 16px;
}

.property-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.property-image {
  width: 60px;
  height: 45px;
  border-radius: 6px;
  flex-shrink: 0;
}

.property-image.img1 {
  background: linear-gradient(45deg, #10b981 0%, #34d399 100%);
}

.property-image.img2 {
  background: linear-gradient(45deg, #3b82f6 0%, #60a5fa 100%);
}

.property-info {
  flex: 1;
}

.property-info .price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.property-info .details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-info {
  color: white;
}

.app-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.app-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

.app-download-buttons {
  display: flex;
  gap: 16px;
}

.app-store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 150px;
}

.app-store-btn:hover {
  background: #333;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.app-store-btn.apple {
  background: #000;
}

.app-store-btn.google {
  background: #000;
}

.app-store-btn::before {
  content: '';
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
}

.app-store-btn.apple::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2ZmZiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMD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wLTEuMjI5LS4yMjN6Ii8+PC9zdmc+');
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-text {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}

@media (max-width: 992px) {
  .landing-hero {
    padding: 100px 0 120px;
  }

  .hero-content {
    gap: 48px;
    padding: 0 24px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    min-width: 200px;
  }

  .dashboard-mockup {
    transform: perspective(900px) rotateY(-2deg) rotateX(3deg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  }

  .mockup-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-app-section {
    margin: 50px 24px;
  }

  .app-promotion-content {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .landing-hero {
    padding: 80px 0 100px;
    min-height: 80vh;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 0 20px;
    max-width: 100%;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .dashboard-mockup {
    margin: 0 auto;
    max-width: 320px;
    transform: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  .mockup-content {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }

  .mobile-app-section {
    margin: 40px 16px;
    border-radius: 20px;
  }
  
  /* Mobile App Section Mobile Styles */
  .app-promotion-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .app-devices {
    height: auto;
    min-height: 260px;
    margin: 0 auto;
    width: 100%;
  }
  
  .tablet-mockup {
    position: relative;
    left: 0;
    margin-bottom: 20px;
  }
  
  .tablet-mockup .device-frame {
    width: 280px;
    height: 200px;
  }
  
  .phone-mockup {
    position: relative;
    right: auto;
    top: 0;
    margin: 0 auto;
  }
  
  .phone-mockup .device-frame {
    width: 160px;
    height: 280px;
  }

  .app-info {
    text-align: center;
  }
  
  .app-info h2 {
    font-size: 2rem;
  }
  
  .app-info p {
    font-size: 1rem;
  }
  
  .app-download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  
  .app-store-btn {
    width: 100%;
    max-width: 240px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .landing-hero {
    padding: 60px 0 80px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .mobile-app-section {
    margin: 32px 0;
    border-radius: 18px;
  }

  .app-promotion-content {
    gap: 28px;
  }

  .roles-section .section-header p {
    font-size: 0.95rem;
  }

  .app-store-btn {
    max-width: 100%;
  }
}

/* About Section Styles */
.about-section {
  padding: 80px 0;
  background: white;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.1;
}

.about-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.about-features {
  display: flex;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: white;
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(45, 90, 61, 0.1);
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.about-actions {
  margin-top: 50px;
}

.about-actions .btn {
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1.1rem;
}

.about-image {
  text-align: center;
  padding-left: 40px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--bg-light);
  transition: all 0.3s ease;
}

.about-image img:hover {
  border-color: var(--primary-green);
  transform: scale(1.02);
}

/* About Section Responsive Styles */
@media (max-width: 768px) {
  .about-section {
    padding: 60px 0;
  }
  
  .about-title {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .about-description {
    font-size: 1rem;
    text-align: center;
  }
  
  .about-features {
    justify-content: center;
    gap: 15px;
  }
  
  .feature-item {
    padding: 10px 16px;
  }
  
  .feature-text {
    font-size: 0.9rem;
  }
  
  .about-actions {
    text-align: center;
    margin-top: 40px;
  }
  
  .about-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .about-image {
    padding-left: 0;
    margin-top: 40px;
  }
}

.error-boundary {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.error-boundary.active {
  display: flex;
}

.error-boundary__card {
  max-width: 460px;
  width: 100%;
  background: #0f172a;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45);
}

.error-boundary__card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-boundary__card code {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
}
