/** * Vista Residences - Shared Styles * Color palette: Gold / Slate / White * Mobile-first, app-like transitions * RTL support for Arabic */ /* ===== CSS Variables ===== */ :root { /* Brand Colors */ --gold: #c9a227; --gold-light: #e8d48a; --gold-dark: #9a7b1a; --slate: #1a1a2e; --slate-light: #2d2d44; --slate-muted: #64748b; --white: #ffffff; --off-white: #f8f9fa; /* Semantic Colors */ --bg: #f7f8fb; --card: #ffffff; --ink: #0f172a; --muted: #64748b; --line: #e7e9f2; --accent: #c9a227; --accent2: #2563eb; --good: #16a34a; --warn: #f59e0b; --bad: #ef4444; /* Shadows */ --shadow: 0 16px 40px rgba(15, 23, 42, .08); --shadow-sm: 0 4px 12px rgba(15, 23, 42, .06); --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12); /* Border Radius */ --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 24px; --radius-full: 999px; /* Spacing */ --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; /* Typography */ --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --font-arabic: 'Noto Sans Arabic', 'Dubai', 'Segoe UI', Tahoma, sans-serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; /* Transitions */ --transition-fast: 0.15s ease; --transition-normal: 0.25s ease; --transition-slow: 0.4s ease; /* Z-index scale */ --z-dropdown: 100; --z-sticky: 200; --z-modal-backdrop: 300; --z-modal: 400; --z-toast: 500; } /* ===== RTL Support (Arabic) ===== */ [dir="rtl"] { --font-sans: var(--font-arabic); } [dir="rtl"] .text-left { text-align: right; } [dir="rtl"] .text-right { text-align: left; } [dir="rtl"] .ml-auto { margin-right: auto; margin-left: 0; } [dir="rtl"] .mr-auto { margin-left: auto; margin-right: 0; } /* ===== Base Reset ===== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); line-height: 1.5; min-height: 100vh; } /* ===== Typography ===== */ h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--ink); } h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1rem; } .text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-base { font-size: 1rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 2rem; } .text-muted { color: var(--muted); } .text-gold { color: var(--gold); } .text-center { text-align: center; } .font-bold { font-weight: 700; } .font-medium { font-weight: 500; } /* ===== Layout ===== */ .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); } .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .items-start { align-items: flex-start; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .gap-xs { gap: var(--space-xs); } .gap-sm { gap: var(--space-sm); } .gap-md { gap: var(--space-md); } .gap-lg { gap: var(--space-lg); } .grid { display: grid; } .grid-cols-1 { grid-template-columns: repeat(1, 1fr); } .grid-cols-2 { grid-template-columns: repeat(2, 1fr); } .grid-cols-3 { grid-template-columns: repeat(3, 1fr); } .grid-cols-4 { grid-template-columns: repeat(4, 1fr); } @media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 768px) { .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1024px) { .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); } } /* ===== Card Component ===== */ .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-md); transition: box-shadow var(--transition-fast), transform var(--transition-fast); } .card:hover { box-shadow: var(--shadow); } .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); } .card-title { font-size: 1rem; font-weight: 700; } /* ===== Button Component ===== */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: all var(--transition-fast); text-decoration: none; } .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } .btn-primary { background: var(--gold); border-color: var(--gold-dark); color: var(--white); } .btn-primary:hover { background: var(--gold-dark); } .btn-secondary { background: var(--slate); border-color: var(--slate-light); color: var(--white); } .btn-secondary:hover { background: var(--slate-light); } .btn-ghost { background: transparent; border-color: transparent; } .btn-ghost:hover { background: rgba(0, 0, 0, 0.05); } .btn-sm { padding: 0.5rem 0.875rem; font-size: 0.75rem; } .btn-lg { padding: 1rem 1.5rem; font-size: 1rem; } /* ===== Badge/Chip Component ===== */ .badge { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full); border: 1px solid var(--line); background: var(--off-white); color: var(--muted); } .badge-gold { background: rgba(201, 162, 39, 0.1); border-color: rgba(201, 162, 39, 0.3); color: var(--gold-dark); } .badge-good { background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.3); color: #065f46; } .badge-warn { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #92400e; } .badge-bad { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #991b1b; } /* ===== Status Badges ===== */ .status-available { background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.3); color: #065f46; } .status-reserved { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #92400e; } .status-sold { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #991b1b; } /* ===== Header/Navigation ===== */ .header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: var(--space-md); } .header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; } .logo { font-size: 1.25rem; font-weight: 700; color: var(--slate); text-decoration: none; } .logo-gold { color: var(--gold); } .nav { display: flex; align-items: center; gap: var(--space-md); } .nav-link { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color var(--transition-fast); } .nav-link:hover, .nav-link.active { color: var(--gold); } /* ===== Unit Card ===== */ .unit-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all var(--transition-fast); } .unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); } .unit-card-image { width: 100%; height: 200px; object-fit: cover; background: var(--off-white); } .unit-card-body { padding: var(--space-md); } .unit-card-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-xs); } .unit-card-meta { font-size: 0.75rem; color: var(--muted); } .unit-card-sqft { display: flex; gap: var(--space-md); margin-top: var(--space-sm); font-size: 0.75rem; } .unit-card-sqft span { display: flex; flex-direction: column; } .unit-card-sqft strong { font-size: 0.875rem; color: var(--ink); } .unit-card-status { position: absolute; top: var(--space-sm); right: var(--space-sm); } [dir="rtl"] .unit-card-status { right: auto; left: var(--space-sm); } /* ===== Modal ===== */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: var(--z-modal-backdrop); opacity: 0; visibility: hidden; transition: all var(--transition-normal); } .modal-backdrop.active { opacity: 1; visibility: visible; } .modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 90%; max-width: 800px; max-height: 90vh; overflow: auto; z-index: var(--z-modal); opacity: 0; visibility: hidden; transition: all var(--transition-normal); } .modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md); border-bottom: 1px solid var(--line); } .modal-title { font-size: 1.25rem; font-weight: 700; } .modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: none; background: var(--off-white); border-radius: var(--radius); cursor: pointer; font-size: 1.25rem; color: var(--muted); transition: all var(--transition-fast); } .modal-close:hover { background: var(--line); color: var(--ink); } .modal-body { padding: var(--space-md); } .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-sm); padding: var(--space-md); border-top: 1px solid var(--line); } /* ===== Tabs ===== */ .tabs { display: flex; gap: var(--space-xs); padding: var(--space-xs); background: var(--off-white); border-radius: var(--radius); overflow-x: auto; } .tab { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); background: transparent; border: none; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); } .tab:hover { color: var(--ink); background: rgba(0, 0, 0, 0.05); } .tab.active { color: var(--white); background: var(--gold); } /* ===== Filter Bar ===== */ .filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-md); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); } .filter-select, .filter-input { padding: 0.5rem 0.75rem; font-size: 0.875rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); outline: none; transition: border-color var(--transition-fast); } .filter-select:focus, .filter-input:focus { border-color: var(--gold); } /* ===== Language Switcher ===== */ .lang-switcher { display: flex; gap: var(--space-xs); } .lang-btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); } .lang-btn:hover, .lang-btn.active { color: var(--gold); border-color: var(--gold); } /* ===== Toast Notification ===== */ .toast { position: fixed; bottom: var(--space-lg); left: 50%; transform: translateX(-50%) translateY(100px); padding: 0.75rem 1.25rem; background: var(--slate); color: var(--white); border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; box-shadow: var(--shadow); z-index: var(--z-toast); opacity: 0; transition: all var(--transition-normal); } .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } /* ===== Form Elements ===== */ .form-group { margin-bottom: var(--space-md); } .form-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: var(--space-xs); } .form-input, .form-select, .form-textarea { width: 100%; padding: 0.75rem; font-size: 0.875rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); outline: none; transition: border-color var(--transition-fast); } .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); } /* ===== Utilities ===== */ .hidden { display: none !important; } .block { display: block; } .inline-block { display: inline-block; } .w-full { width: 100%; } .h-full { height: 100%; } .mt-xs { margin-top: var(--space-xs); } .mt-sm { margin-top: var(--space-sm); } .mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); } .mb-xs { margin-bottom: var(--space-xs); } .mb-sm { margin-bottom: var(--space-sm); } .mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); } .p-sm { padding: var(--space-sm); } .p-md { padding: var(--space-md); } .p-lg { padding: var(--space-lg); } .rounded { border-radius: var(--radius); } .rounded-lg { border-radius: var(--radius-lg); } .rounded-full { border-radius: var(--radius-full); } .shadow { box-shadow: var(--shadow); } .shadow-sm { box-shadow: var(--shadow-sm); } .overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; } .cursor-pointer { cursor: pointer; } /* ===== Animations ===== */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .animate-fadeIn { animation: fadeIn var(--transition-normal); } .animate-slideUp { animation: slideUp var(--transition-normal); } .animate-pulse { animation: pulse 2s infinite; } /* ===== Responsive ===== */ @media (max-width: 768px) { .container { padding: 0 var(--space-sm); } .header-inner { flex-wrap: wrap; gap: var(--space-sm); } .nav { width: 100%; justify-content: center; } .modal { width: 95%; max-height: 95vh; } h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } }