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

:root {
  /* Light Mode Palette */
  --bg-app: #f6f8fc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-hover: #4338ca;
  --accent: #10b981;
  --accent-light: #d1fae5;
  --border: #e2e8f0;
  --shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --safe-bottom: 80px;
}

.dark-theme {
  /* Dark Mode Palette */
  --bg-app: #070a13;
  --bg-card: #121826;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-light: #1e1b4b;
  --primary-hover: #4f46e5;
  --accent: #34d399;
  --accent-light: #064e3b;
  --border: #1e293b;
  --shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(18, 24, 38, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Center layout for tablets or desktop tests while maintaining app shell dimensions */
.app-container {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

@media (min-width: 480px) and (max-width: 1024px) {
  .app-container {
    max-width: 600px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* 1. Desktop Blocker Overlay */
#desktop-blocker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1e1e2f 0%, #0c0c14 100%);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.blocker-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  animation: floatCard 4s ease-in-out infinite;
}

.blocker-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.blocker-icon svg {
  width: 35px;
  height: 35px;
  stroke: #ffffff;
}

.blocker-card h1 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.blocker-card p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.qr-mock {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.qr-mock svg {
  display: block;
  color: #0c0c14;
}

.qr-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #818cf8;
  margin-bottom: 20px;
}

.blocker-card .small-text {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 0;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* 2. Toast Notification */
.toast {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 3. Bottom Tab Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

@media (min-width: 480px) and (max-width: 1024px) {
  .bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  stroke-width: 2px;
  transition: transform 0.2s ease, stroke 0.3s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--primary);
}

/* Splash/Login View styles */
.login-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.login-screen::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.login-header {
  z-index: 1;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 24px;
}

.brand-logo {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  stroke-width: 2.5px;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.login-card {
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
  margin-bottom: 24px;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.login-card.slide-out {
  transform: translateX(-120%);
}

.otp-card {
  display: none;
}

.otp-card.slide-in {
  display: block;
  animation: slideInFromRight 0.4s forwards;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.login-card h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8px;
}

.form-control {
  width: 100%;
  height: 52px;
  background-color: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px 0 46px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
  margin-top: 12px;
}

.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.otp-box {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 48px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.otp-box:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* 4. Common Page Layouts */
#layout-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bar {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title-group {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.header-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-notifications {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  color: var(--text-main);
}

.badge-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
}

.content-body {
  padding: 20px;
  padding-bottom: calc(var(--safe-bottom) + 10px);
  flex: 1;
}

/* 5. Dashboard / Banner Styles */
.banner-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.banner-carousel::-webkit-scrollbar {
  display: none;
}

.banner-slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
  border-radius: 20px;
  padding: 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.banner-slide h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.banner-slide p {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
}

/* 6. Projects Section */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 8px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:active {
  transform: scale(0.98);
}

.project-image-wrapper {
  position: relative;
  height: 160px;
  background-color: var(--border);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background-color: var(--accent-light);
  color: var(--accent);
}

.badge-upcoming {
  background-color: var(--primary-light);
  color: var(--primary);
}

.project-details-mini {
  padding: 16px;
}

.project-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-loc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.project-loc svg {
  width: 14px;
  height: 14px;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.pill {
  background: var(--bg-app);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.view-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

/* 7. Project Details Page Layout */
.back-nav-bar {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  text-decoration: none;
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.details-hero {
  height: 220px;
  position: relative;
  background-color: var(--border);
}

.details-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
}

.details-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
}

.details-subtitle {
  font-size: 12px;
  opacity: 0.85;
}

.details-summary {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.details-summary p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Modules Grid */
.modules-section {
  margin-top: 24px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.module-card:active {
  transform: scale(0.97);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 12px;
}

.icon-brochure {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.icon-gallery {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.icon-walkthrough {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.icon-units {
  background-color: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.icon-docs {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.module-icon svg {
  width: 24px;
  height: 24px;
}

.module-card h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.module-card span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Shared Modal Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  justify-content: center;
  align-items: flex-end;
  /* Slides from bottom like mobile drawers */
}

@media (min-width: 480px) and (max-width: 1024px) {
  .modal-overlay {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.modal-sheet {
  background: var(--bg-card);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  width: 100%;
  max-height: 85vh;
  padding: 24px 20px;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  animation: slideUpDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpDrawer {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-app);
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* Brochure / Doc items style inside modal */
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-info svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.doc-details h5 {
  font-size: 13px;
  font-weight: 600;
}

.doc-details span {
  font-size: 11px;
  color: var(--text-muted);
}

.doc-actions {
  display: flex;
  gap: 8px;
}

.action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
}

.action-icon-btn svg {
  width: 16px;
  height: 16px;
}

.action-icon-btn:active {
  transform: scale(0.9);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.gallery-photo-wrapper {
  position: relative;
  height: 180px;
  cursor: pointer;
  background-color: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1200;
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 95%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

/* Walkthrough styles */
.walkthrough-wrapper {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000000;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.walkthrough-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Interactive Unit availability status */
.unit-summary-strip {
  display: flex;
  justify-content: space-around;
  background-color: var(--bg-app);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.unit-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-avail {
  background-color: var(--accent);
}

.dot-blocked {
  background-color: #f59e0b;
}

.dot-sold {
  background-color: #ef4444;
}

.tower-select {
  width: 100%;
  height: 46px;
  background-color: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  margin-bottom: 16px;
}

.unit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 350px;
  overflow-y: auto;
}

.unit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-app);
  border-radius: 10px;
  border-left: 4px solid var(--border);
}

.unit-item.available {
  border-left-color: var(--accent);
}

.unit-item.blocked {
  border-left-color: #f59e0b;
}

.unit-item.sold {
  border-left-color: #ef4444;
}

.unit-main-info h6 {
  font-size: 13px;
  font-weight: 700;
}

.unit-main-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.unit-right-info {
  text-align: right;
}

.unit-status-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  display: inline-block;
}

.tag-avail {
  background-color: var(--accent-light);
  color: var(--accent);
}

.tag-blocked {
  background-color: #fef3c7;
  color: #d97706;
}

.tag-sold {
  background-color: #fee2e2;
  color: #ef4444;
}

.unit-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

/* 8. Profile View Layout */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
}

.profile-avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  color: #ffffff;
  font-size: 32px;
  font-family: var(--font-title);
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.profile-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 12px;
  color: var(--accent);
  background-color: var(--accent-light);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.profile-stat-box h5 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
}

.profile-stat-box span {
  font-size: 10px;
  color: var(--text-muted);
}

/* Profile Form styling */
.settings-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:active {
  background-color: var(--bg-app);
}

.settings-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-icon-wrapper {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.settings-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.settings-item span {
  font-size: 14px;
  font-weight: 500;
}

.settings-right {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.settings-right svg {
  width: 18px;
  height: 18px;
}

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 24px;
}

.dark-theme .slider {
  background-color: #334155;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--accent);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Footer elements */
.footer-text {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 30px;
  margin-bottom: 20px;
}

/* 2-Column Grid Layout for Projects selection page */
.project-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.project-card.compact {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card.compact .project-image-wrapper {
  height: 100px;
}

.project-card.compact .project-details-mini {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.project-card.compact .project-name {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card.compact .project-loc {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card.compact .project-loc svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.project-card.compact .project-card-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.project-card.compact .price-label {
  font-size: 8px;
  letter-spacing: 0.2px;
}

.project-card.compact .price-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.project-card.compact .view-btn {
  display: none;
  /* Hide 'select project' text on compact layout to prevent overflow */
}

/* Category Filter Tabs at the top of listing page */
.tab-header-row {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-header-btn {
  flex: 1;
  border: none;
  background: transparent;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.tab-header-btn.active {
  background: var(--primary-light);
  color: var(--primary);
}

.dark-theme .tab-header-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* Sub-page elements override */
.subpage-container {
  background-color: var(--bg-app);
  min-height: 100vh;
  padding-bottom: 40px;
}

.subpage-card-wrap {
  padding: 20px;
}

/* Brochure Premium Preview Card Layout */
.brochure-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 24px;
}

.brochure-cover-wrapper {
  position: relative;
  height: 220px;
  background-color: var(--border);
}

.brochure-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brochure-overlay-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
}

.brochure-overlay-details h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.brochure-overlay-details span {
  font-size: 11px;
  opacity: 0.85;
}

.brochure-actions-row {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.brochure-name-bottom {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

/* Single Column Brochure List layout wrapper */
.brochure-list-single {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

/* Interactive unit status filter styling */
.status-filter-btn.active {
  background-color: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.dark-theme .status-filter-btn.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

/* Immersive Fullscreen Walkthrough Container */
.fullscreen-walkthrough-container {
  position: fixed;
  top: 72px;
  /* height of back-nav-bar header bar (padding 16px*2 + back button height 40px) */
  left: 0;
  width: 100%;
  bottom: 0;
  background: #000000;
  overflow: hidden;
  z-index: 90;
}

.fullscreen-walkthrough-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}