/* ========================================
   CSS VARIABLES & THEME
   ======================================== */
:root {
  --background: #ffffff;
  --foreground: oklch(0.3211 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.3211 0 0);
  --popover: #ffffff;
  --popover-foreground: oklch(0.3211 0 0);
  --primary: oklch(0.4891 0 0);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.9067 0 0);
  --secondary-foreground: oklch(0.3211 0 0);
  --muted: oklch(0.8853 0 0);
  --muted-foreground: oklch(0.5103 0 0);
  --accent: oklch(0.8078 0 0);
  --accent-foreground: oklch(0.3211 0 0);
  --destructive: oklch(0.5594 0.1900 25.8625);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.8576 0 0);
  --input: oklch(0.9067 0 0);
  --ring: oklch(0.4891 0 0);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --radius: 0.35rem;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --tg-safe-area-inset-top: var(--tg-content-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --tg-safe-area-inset-bottom: var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --tg-safe-area-inset-left: var(--tg-content-safe-area-inset-left, env(safe-area-inset-left, 0px));
  --tg-safe-area-inset-right: var(--tg-content-safe-area-inset-right, env(safe-area-inset-right, 0px));
}

/* Dark Theme */
.dark {
  --background: oklch(0.2178 0 0);
  --foreground: oklch(0.8853 0 0);
  --card: oklch(0.2435 0 0);
  --card-foreground: oklch(0.8853 0 0);
  --popover: oklch(0.2435 0 0);
  --popover-foreground: oklch(0.8853 0 0);
  --primary: oklch(0.7058 0 0);
  --primary-foreground: oklch(0.2178 0 0);
  --secondary: oklch(0.3092 0 0);
  --secondary-foreground: oklch(0.8853 0 0);
  --muted: oklch(0.2850 0 0);
  --muted-foreground: oklch(0.5999 0 0);
  --accent: oklch(0.3715 0 0);
  --accent-foreground: oklch(0.8853 0 0);
  --border: oklch(0.3290 0 0);
  --input: oklch(0.3092 0 0);
}

/* ========================================
   BASE STYLES
   ======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: var(--font-sans); background: var(--background); color: var(--foreground); line-height: 1.6; min-height: 100dvh; overflow-x: hidden; font-weight: 400; letter-spacing: -0.01em; }
button { font-family: inherit; border: none; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; font-weight: 500; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; border: none; outline: none; }

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--background);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen p {
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   STAGGERED MENU (FULLSCREEN)
   ======================================== */
.staggered-menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  pointer-events: none;
}

.staggered-menu-wrapper * {
  pointer-events: auto;
}

.staggered-menu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  padding-top: calc(56px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  z-index: 2001;
  background: transparent;
  pointer-events: none !important;
}

.staggered-menu-header .sm-logo,
.staggered-menu-header .sm-toggle {
  pointer-events: auto !important;
}

.sm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sm-logo-text {
  display: inline;
}

.sm-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--foreground);
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sm-toggle:hover {
  background: var(--muted);
}

.sm-toggle:active {
  transform: scale(0.95);
}

.sm-menu-icon {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sm-menu-icon-top,
.sm-menu-icon-bottom {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.sm-toggle[aria-expanded="true"] .sm-menu-icon-top {
  transform: translateY(4px) rotate(45deg);
}

.sm-toggle[aria-expanded="true"] .sm-menu-icon-bottom {
  transform: translateY(-4px) rotate(-45deg);
}

.sm-prelayers {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 1998;
  pointer-events: none;
}

.sm-prelayer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--muted);
}

.staggered-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: var(--background);
  z-index: 1999;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 120px 40px 60px;
  padding-top: calc(120px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-bottom: calc(60px + var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}

.sm-panel-inner {
  width: 100%;
  max-width: 800px;
}

.sm-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-panel-itemWrap {
  position: relative;
  overflow: hidden;
}

.sm-panel-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  color: var(--foreground);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.sm-panel-item:hover {
  color: var(--muted-foreground);
}

.sm-panel-itemLabel {
  font-size: clamp(48px, 12vw, 96px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: inherit;
  display: inline-block;
}

/* ========================================
   APP LAYOUT
   ======================================== */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  animation: fadeIn 300ms ease; 
}

@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes slideUp { 
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  } 
}

.content { 
  flex: 1; 
  padding: 24px; 
  padding-top: calc(96px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px))); 
  overflow-y: auto; 
  overflow-x: visible; 
  -webkit-overflow-scrolling: touch; 
}

/* ========================================
   COMMON COMPONENTS
   ======================================== */
.section-label { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--foreground); 
  margin-bottom: 16px; 
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  position: relative;
  padding-left: 16px;
}

.section-label::before { 
  content: ''; 
  position: absolute;
  left: 0;
  width: 3px; 
  height: 16px; 
  background: linear-gradient(180deg, #8B5CF6 0%, #10B981 100%); 
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.hero { 
  margin-bottom: 48px; 
  animation: slideUp 500ms ease;
  padding: 32px 24px;
  margin: 0 -24px 48px -24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-radius: 24px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.2) 50%, transparent 100%);
}

.hero__title { 
  font-size: 48px; 
  font-weight: 700; 
  line-height: 1.05; 
  margin-bottom: 16px; 
  letter-spacing: -0.02em; 
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle { 
  font-size: 17px; 
  color: var(--muted-foreground); 
  font-weight: 400; 
  line-height: 1.5; 
}

.hero__subtitle .accent { 
  color: var(--foreground); 
  font-weight: 600; 
}

/* Typing Effect */
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

.typing-text::after {
  content: '|';
  position: absolute;
  right: 0;
  animation: blink 0.7s infinite;
  color: var(--foreground);
}

.typing-text.typing-complete::after {
  animation: none;
  opacity: 0;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Search Box */
.search-box { 
  margin-bottom: 32px; 
  position: relative;
}

.search-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  padding: 2px;
}

.search-box:focus-within::before {
  opacity: 1;
}

.search-input { 
  width: 100%; 
  padding: 14px 16px 14px 48px; 
  background-color: rgba(142, 142, 147, 0.12);
  border-radius: 10px; 
  font-size: 17px; 
  font-weight: 400;
  letter-spacing: -0.01em;
  border: none;
  color: var(--foreground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; 
  background-position: 16px center;
  background-size: 18px 18px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 1;
}

.search-input::placeholder {
  color: rgba(60, 60, 67, 0.6);
  opacity: 1;
}

.search-input:hover:not(:focus) {
  background-color: rgba(142, 142, 147, 0.18);
}

.search-input:focus { 
  outline: none;
  background-color: var(--background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23007aff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* Quick Filters */
.quick-filters { 
  display: flex; 
  gap: 10px; 
  overflow-x: auto; 
  padding-bottom: 8px; 
  margin-bottom: 24px; 
  -webkit-overflow-scrolling: touch;
}

.quick-filters::-webkit-scrollbar { display: none; }

.quick-filter { 
  flex-shrink: 0; 
  padding: 10px 18px; 
  background: var(--card); 
  border-radius: 20px; 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--foreground); 
  white-space: nowrap; 
  border: 1px solid var(--border); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-filter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-filter:hover:not(.quick-filter--active)::before {
  opacity: 1;
}

.quick-filter:hover:not(.quick-filter--active) {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.quick-filter:active { transform: translateY(0) scale(0.96); }

.quick-filter--active { 
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%); 
  color: var(--background); 
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Menu Grid */
.menu-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px; 
}

.menu-grid__item { 
  display: flex; 
  flex-direction: column; 
  padding: 24px; 
  background: var(--card); 
  border-radius: 16px; 
  text-align: left; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  animation: slideUp 400ms ease backwards; 
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.menu-grid__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-grid__item:hover::before {
  opacity: 1;
}

.menu-grid__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}

.menu-grid__item:nth-child(1) { animation-delay: 0ms; }
.menu-grid__item:nth-child(2) { animation-delay: 50ms; }
.menu-grid__item:nth-child(3) { animation-delay: 100ms; }
.menu-grid__item:nth-child(4) { animation-delay: 150ms; }

.menu-grid__item:active { transform: translateY(-2px) scale(0.97); }

.menu-grid__icon { 
  width: 48px; 
  height: 48px; 
  margin-bottom: 20px; 
  color: var(--foreground); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%); 
  border-radius: 12px;
  transition: all 0.3s ease;
}

.menu-grid__item:hover .menu-grid__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.menu-grid__icon svg { width: 24px; height: 24px; }

.menu-grid__title { 
  font-size: 17px; 
  font-weight: 600; 
  margin-bottom: 6px; 
  color: var(--foreground); 
  letter-spacing: -0.01em;
}

.menu-grid__subtitle { 
  font-size: 14px; 
  color: var(--muted-foreground); 
  font-weight: 400;
}

/* Projects */
.projects { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}

.project { 
  display: block; 
  background: var(--card); 
  border-radius: 16px; 
  overflow: hidden; 
  text-align: left; 
  animation: slideUp 400ms ease backwards; 
  border: 1px solid var(--border); 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
}

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

.project__image { 
  height: 200px; 
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  overflow: hidden; 
}

.project__emoji { font-size: 64px; }

.project__badge { 
  position: absolute; 
  top: 16px; 
  right: 16px; 
  padding: 6px 14px; 
  background: var(--foreground); 
  color: var(--background); 
  border-radius: 20px; 
  font-size: 12px; 
  font-weight: 600; 
}

.project__body { padding: 24px; }

.project__name { 
  font-size: 24px; 
  font-weight: 600; 
  margin-bottom: 8px; 
  letter-spacing: -0.02em; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project__class { 
  display: inline-block; 
  font-size: 11px; 
  font-weight: 600; 
  padding: 4px 12px; 
  background: var(--muted); 
  border-radius: 6px; 
  color: var(--muted-foreground); 
  margin-bottom: 12px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
}

.project__desc { 
  font-size: 15px; 
  color: var(--muted-foreground); 
  margin-bottom: 16px; 
  line-height: 1.5; 
}

.project__meta { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.project__location { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  font-size: 14px; 
  color: var(--muted-foreground); 
}

.project__location svg { width: 16px; height: 16px; }

.project__price { 
  font-size: 17px; 
  font-weight: 600; 
  color: var(--foreground); 
}

.project__count { 
  font-size: 14px; 
  color: var(--muted-foreground); 
  margin-top: 12px; 
}

/* Buttons */
.btn { 
  display: block; 
  width: 100%; 
  padding: 16px 24px; 
  border-radius: 12px; 
  font-size: 17px; 
  font-weight: 600; 
  text-align: center; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

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

.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary { 
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%); 
  color: var(--background);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn--secondary { 
  background: var(--card); 
  color: var(--foreground); 
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

/* Screen Header */
.screen-header { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-bottom: 24px; 
  padding-right: 100px;
  position: relative; 
  z-index: 10; 
}

.screen-header__back { 
  width: 44px; 
  height: 44px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 12px; 
  background: var(--card); 
  border: 1px solid var(--border); 
  transition: all 0.2s ease; 
  color: var(--foreground); 
}

.screen-header__back:active { transform: scale(0.96); }

.screen-header__title { 
  font-size: 24px; 
  font-weight: 600; 
  letter-spacing: -0.02em; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Apartment Cards */
.apt-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px; 
}

.apt-card { 
  background: var(--card); 
  border-radius: 16px; 
  overflow: hidden; 
  text-align: left; 
  animation: slideUp 400ms ease backwards; 
  border: 1px solid var(--border); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative;
}

.apt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.apt-card:hover::before {
  opacity: 1;
}

.apt-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

.apt-card:active { transform: translateY(-2px) scale(0.98); }

.apt-card__image { 
  height: 120px; 
  padding: 8px; 
  background-size: contain; 
  background-repeat: no-repeat; 
  background-position: center; 
  position: relative; 
  background-color: #ffffff; 
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.apt-card:hover .apt-card__image {
  transform: scale(1.05);
}

.apt-card__badge { 
  position: absolute; 
  top: 8px; 
  left: 8px; 
  padding: 4px 10px; 
  background: var(--foreground); 
  color: var(--background); 
  border-radius: 12px; 
  font-size: 11px; 
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.apt-card__body { padding: 16px; }

.apt-card__price { 
  font-size: 17px; 
  font-weight: 600; 
  margin-bottom: 6px; 
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.apt-card__info { 
  font-size: 14px; 
  color: var(--muted-foreground); 
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.apt-card__info::before {
  content: '•';
  color: rgba(139, 92, 246, 0.5);
  font-weight: bold;
}

.apt-card__project { 
  font-size: 13px; 
  color: var(--muted-foreground); 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty State */
.empty { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  padding: 60px 20px; 
  flex: 1;
  animation: fadeIn 0.5s ease;
}

.empty__icon { 
  font-size: 56px; 
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.2));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.empty__title { 
  font-size: 20px; 
  font-weight: 800; 
  margin-bottom: 8px;
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.empty__text { 
  font-size: 15px; 
  color: var(--muted-foreground); 
  margin-bottom: 28px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .staggered-menu-header {
    padding: 16px 24px;
    padding-top: calc(56px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  }
  
  .sm-logo-text {
    display: none;
  }
  
  .sm-panel-itemLabel {
    font-size: clamp(36px, 10vw, 64px);
  }
  
  .staggered-menu-panel {
    padding: 120px 24px 40px;
    padding-top: calc(120px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  }
  
  .content {
    padding-top: calc(96px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  }
  
  .screen-header {
    padding-right: 80px;
  }
}

/* Filter Styles */
.filter { margin-bottom: 32px; }
.filter__label { font-size: 15px; font-weight: 600; color: var(--foreground); margin-bottom: 16px; letter-spacing: -0.01em; }
.filter__options { display: flex; flex-wrap: wrap; gap: 10px; }
.filter__btn { 
  padding: 12px 20px; 
  background: var(--card); 
  border-radius: 12px; 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--foreground); 
  border: 1px solid var(--border); 
  transition: all 0.2s ease; 
  white-space: nowrap;
}
.filter__btn:active { transform: scale(0.96); }
.filter__btn--active { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.filter-actions { display: flex; gap: 12px; margin-top: 32px; }
.filter-actions .btn--small { flex: 0 0 auto; width: auto; padding: 14px 20px; }
.filter-actions .btn--primary { flex: 1; }

/* Results */
.results-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.results-count { 
  font-size: 15px; 
  color: var(--foreground); 
  font-weight: 600;
}

.results-count::before {
  content: '✦';
  margin-right: 8px;
  color: rgba(139, 92, 246, 0.6);
}

.results-filter { 
  width: 44px; 
  height: 44px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: var(--card); 
  border-radius: 12px; 
  color: var(--foreground); 
  border: 1px solid var(--border); 
  transition: all 0.3s ease;
}

.results-sort { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; }

.sort-btn { 
  padding: 10px 18px; 
  background: var(--card); 
  border-radius: 12px; 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--foreground); 
  white-space: nowrap; 
  border: 1px solid var(--border); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-btn--active { 
  background: transparent; 
  color: var(--foreground); 
  border: 2px solid transparent;
  background-image: linear-gradient(var(--background), var(--background)), linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

/* Apartment Detail */
.apt-detail__image { 
  min-height: 300px; 
  height: 300px; 
  margin: 0 0 32px 0; 
  padding: 24px; 
  background-size: contain; 
  background-repeat: no-repeat; 
  background-position: center; 
  background-color: #ffffff; 
  border-radius: 16px; 
  border: 1px solid rgba(139, 92, 246, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.apt-detail__price { 
  font-size: 36px; 
  font-weight: 600; 
  margin-bottom: 8px; 
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.apt-detail__perm2 { 
  font-size: 16px; 
  color: var(--muted-foreground); 
  margin-bottom: 32px;
}

.apt-detail__grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px; 
  margin-bottom: 32px; 
}

.apt-detail__stat { 
  padding: 24px; 
  background: var(--card); 
  border-radius: 16px; 
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apt-detail__stat-label { 
  font-size: 13px; 
  color: var(--muted-foreground); 
  display: block; 
  margin-bottom: 8px; 
  font-weight: 500; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.apt-detail__stat-value { 
  font-size: 22px; 
  font-weight: 600; 
  letter-spacing: -0.01em; 
  color: var(--foreground);
}

.apt-detail__project { 
  padding: 24px; 
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%); 
  border-radius: 16px; 
  margin-bottom: 32px; 
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.apt-detail__project-label { 
  font-size: 13px; 
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.apt-detail__project-name { 
  font-size: 20px; 
  font-weight: 600; 
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About */
.about__hero { text-align: left; margin-bottom: 40px; }
.about__title { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.about__tagline { font-size: 17px; color: var(--muted-foreground); line-height: 1.5; }
.about__tagline .accent { color: var(--foreground); font-weight: 600; }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.about__stat { padding: 28px 24px; background: var(--card); border-radius: 16px; border: 1px solid var(--border); }
.about__stat-value { font-size: 36px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.about__stat-label { font-size: 14px; color: var(--muted-foreground); font-weight: 500; }
.about__text p { font-size: 17px; color: var(--muted-foreground); line-height: 1.6; }

/* Contact */
.contact__context { padding: 20px; background: var(--card); border-radius: var(--radius); margin-bottom: 28px; border: 1px solid var(--border); }
.contact__context-label { font-size: 12px; color: var(--muted-foreground); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; }
.contact__context-value { font-size: 17px; font-weight: 700; }
.contact__context-project { font-size: 14px; color: var(--muted-foreground); margin-top: 4px; }
.form { margin-bottom: 40px; }
.form__group { margin-bottom: 24px; }
.form__label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.form__input, .form__textarea { width: 100%; padding: 14px 16px; background: var(--card); border-radius: 12px; font-size: 16px; border: 1px solid var(--border); transition: all 0.2s ease; }
.form__input:focus, .form__textarea:focus { border-color: var(--foreground); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04); }
.form__textarea { resize: none; min-height: 120px; }
.divider { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 13px; color: var(--muted-foreground); }
.contact__links { display: flex; flex-direction: column; gap: 12px; }
.contact__link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: var(--muted); border-radius: var(--radius); font-size: 15px; font-weight: 600; }
.contact__link:active { transform: scale(0.98); }
.contact__link--tg { background: #0088CC; color: var(--primary-foreground); }

/* Thanks */
.thanks { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; flex: 1; }
.thanks__icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-foreground); border-radius: 50%; font-size: 36px; margin-bottom: 28px; }
.thanks__title { 
  font-size: 28px; 
  font-weight: 900; 
  margin-bottom: 12px; 
  background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.thanks__text { font-size: 16px; color: var(--muted-foreground); margin-bottom: 8px; }
.thanks__subtext { font-size: 14px; color: var(--muted-foreground); margin-bottom: 36px; }
