/* ========================================
   Montaigne.rent - Custom Styles
   ======================================== */

:root {
  /* Color Palette */
  --color-primary: #1A1A1A;
  --color-accent: #D4AF37;
  --color-light-gray: #F5F5F5;
  --color-white: #FFFFFF;
  --color-shadow: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

/* ========================================
   GENERAL COMPONENTS
   ======================================== */

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
}

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

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  text-decoration: none;
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--color-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--color-shadow);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========================================
   PHOTO GALLERY / CAROUSEL
   ======================================== */

.gallery {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background-color: #000;
}

.gallery-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 1);
}

.gallery-nav.prev {
  left: 1rem;
}

.gallery-nav.next {
  right: 1rem;
}

.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.gallery-dot.active {
  background: rgba(255, 255, 255, 1);
}

.gallery-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 10;
}

/* ========================================
   TENANT DASHBOARD (Airbnb-style)
   ======================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--color-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* Gradient variations for different cards */
.dashboard-icon.gradient-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.dashboard-icon.gradient-blue { background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%); }
.dashboard-icon.gradient-green { background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%); }
.dashboard-icon.gradient-orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.dashboard-icon.gradient-red { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.dashboard-icon.gradient-indigo { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.dashboard-icon.gradient-gray { background: linear-gradient(135deg, #636363 0%, #a2ab58 100%); }

.dashboard-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.dashboard-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Code display boxes */
.code-box {
  background: var(--color-light-gray);
  border: 2px solid var(--color-primary);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
}

.code-box .code-label {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-box .code-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
  letter-spacing: 3px;
}

/* QR Code container */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.qr-container canvas {
  border: 4px solid var(--color-light-gray);
  border-radius: 8px;
  padding: 1rem;
}

/* ========================================
   TABS
   ======================================== */

.tabs {
  border-bottom: 2px solid var(--color-light-gray);
  margin-bottom: 2rem;
}

.tabs button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tabs button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.tabs button:hover {
  color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .gallery {
    height: 50vh;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .gallery-nav {
    padding: 0.5rem;
  }

  /* Tenant dashboard mobile adjustments */
  #dashboard-container > div {
    padding: 1.5rem !important;
    border-radius: 8px !important;
  }

  .code-box {
    padding: 1.5rem;
  }

  .code-box .code-value {
    font-size: 1.8rem;
    letter-spacing: 2px;
    word-break: break-all;
  }

  .code-box .code-label {
    font-size: 0.75rem;
  }

  section h2 {
    font-size: 1.5rem !important;
  }

  main {
    padding: 2rem 0 !important;
  }

  .btn-primary {
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  section h2 {
    font-size: 1.3rem !important;
    margin-bottom: 1.5rem !important;
  }

  .code-box .code-value {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  #dashboard-container > div {
    padding: 1rem !important;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.section {
  padding: var(--spacing-lg) 0;
}

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

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: #22c55e;
}
