@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/font-3100e775e861.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/font-3100e775e861.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/font-3100e775e861.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/font-3100e775e861.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/font-e0c764a8e9e1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/font-e0c764a8e9e1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
[x-cloak] { display: none !important; }

:root {
  --black: #000000;
  --gray-900: #111111;
  --gray-800: #222222;
  --gray-700: #333333;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #bbbbbb;
  --gray-200: #dddddd;
  --gray-100: #eeeeee;
  --gray-50: #f5f5f5;
  --white: #ffffff;
  --danger: #cc0000;
  --success: #333333;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--black);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-200);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-400);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (.app-sidebar) */
.app-sidebar {
  width: 260px;
  background-color: var(--white);
  border-right: 1px solid var(--black);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 18px;
}

.sidebar-action {
  padding: 24px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--black);
  background-color: var(--gray-50);
  border-color: var(--black);
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--gray-100);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.user-role {
  font-size: 12px;
  color: var(--gray-500);
}

/* App Main */
.app-main {
  flex: 1;
  min-width: 0;
  background-color: var(--white);
}

/* Settings Table */
.settings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.settings-table th,
.settings-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}

.settings-table th {
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.badge-admin {
  background-color: var(--black);
  color: var(--white);
}

.badge-agent {
  background-color: var(--gray-100);
  color: var(--black);
  border: 1px solid var(--gray-300);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }
  .app-sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s;
    width: 280px;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
  }
}

/* Dashboard (.dashboard-container) */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Dashboard Header (.dashboard-header) */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Dashboard Grid (.dashboard-grid) */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Expose Cards (.expose-card) */
.expose-card {
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.expose-card:hover {
  border-color: var(--black);
}

/* Card Thumbnail (.card-thumbnail) */
.card-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background-color: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Content (.card-content) */
.card-content {
  padding: 20px;
  flex: 1;
}
.card-content .title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 8px;
}
.card-content .price {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-content .key-facts {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.card-content .location {
  font-size: 13px;
  color: var(--gray-500);
}

/* Card Meta (.card-meta) */
.card-meta {
  padding: 0 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-500);
}

/* Badges (.badge) */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
}
.badge-draft {
  border: 1px solid var(--gray-400);
  color: var(--gray-600);
}
.badge-complete {
  background-color: var(--gray-900);
  color: var(--white);
}
.badge-type, .badge-marketing {
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 10px;
  position: absolute;
  top: 8px;
}
.badge-type {
  left: 8px;
}
.badge-marketing {
  right: 8px;
}

/* Card Actions (.card-actions) */
.card-actions {
  border-top: 1px solid var(--gray-100);
  padding: 12px 20px;
  display: flex;
  gap: 8px;
}
.card-actions button,
.card-actions a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gray-900);
  padding: 0;
  cursor: pointer;
}
.card-actions button:hover,
.card-actions a:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
}
.card-actions .btn-danger:hover {
  background-color: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: 1px solid var(--gray-800);
  background-color: var(--white);
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover {
  background-color: var(--gray-50);
}
.btn-primary {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-primary:hover {
  background-color: var(--gray-800);
  color: var(--white);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}
.btn-outline:hover {
  border-color: var(--black);
  color: var(--black);
}
.btn-danger {
  background-color: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: var(--white);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Empty State (.empty-state) */
.empty-state {
  text-align: center;
  padding: 120px 24px;
}
.empty-state .icon {
  width: 48px;
  height: 48px;
  color: var(--gray-300);
  margin-bottom: 24px;
}
.empty-state h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}
.empty-state p {
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* Editor Container (.editor-container) */
.editor-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Editor Topbar (.editor-topbar) */
.editor-topbar {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0;
}
.editor-topbar .btn-back {
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
}
.editor-topbar .btn-back:hover {
  color: var(--black);
}
.editor-topbar .editor-title {
  font-size: 20px;
  font-weight: 600;
  flex: 1;
  margin: 0 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-topbar .editor-actions {
  display: flex;
  gap: 8px;
}

/* Editor Tabs (.editor-tabs) */
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 32px;
}
.editor-tabs button,
.editor-tabs a {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  border: none;
  background-color: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.editor-tabs button.active,
.editor-tabs a.active {
  color: var(--black);
  border-bottom-color: var(--black);
}
.editor-tabs button:hover,
.editor-tabs a:hover {
  color: var(--gray-700);
}

/* Tab Content (.tab-content) */
.tab-content {
  animation: none;
}
.tab-content[hidden] {
  display: none;
}

/* Form Sections (.form-section) */
.form-section {
  margin-bottom: 40px;
}
.form-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  margin-top: 0;
}

/* Form Grid (.form-grid) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.col-span-2 {
  grid-column: span 2;
}

/* Form Groups (.form-group) */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}
.form-group textarea {
  resize: vertical;
  min-height: auto;
}

/* Checkbox Grid (.checkbox-grid) */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}

/* Upload Zone (.upload-zone) */
.upload-zone {
  border: 2px dashed var(--gray-200);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 14px;
  transition: border-color 0.15s;
}
.upload-zone.dragover,
.upload-zone:hover {
  border-color: var(--black);
  color: var(--gray-600);
}
.upload-zone .upload-hint {
  font-size: 12px;
  color: var(--gray-300);
  margin-top: 8px;
}
.upload-zone-small {
  padding: 24px;
  max-width: 200px;
}

/* Upload Progress (.upload-progress) */

.spinner {
  border-radius: 50% !important;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--black);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Image Grid (.image-grid) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
  margin-top: 16px;
}

/* Image Card (.image-card) */
.image-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-card-handle {
  position: absolute;
  top: 8px;
  left: 8px;
  cursor: grab;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px 4px;
  font-size: 12px;
}
.image-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 8px;
  transform: translateY(100%);
  transition: transform 0.15s;
}
.image-card:hover .image-card-overlay {
  transform: translateY(0);
}
.caption-input {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 12px;
  padding: 4px 0;
  outline: none;
}
.image-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.btn-icon {
  background-color: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}
.btn-icon-danger:hover {
  color: #ff4444;
}

/* Logo Upload (.logo-upload-row) */
.logo-upload-row {
  display: flex;
  gap: 32px;
}
.logo-preview {
  max-width: 160px;
  max-height: 100px;
  object-fit: contain;
}

/* Toast System */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  font-size: 13px;
  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--black);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast-visible {
  transform: translateX(0);
}
.toast-success {
  border-left-color: var(--black);
}
.toast-error {
  border-left-color: var(--danger);
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.icon-lg {
  width: 48px;
  height: 48px;
}
.icon-camera {
  width: 32px;
  height: 32px;
  color: var(--gray-300);
}

/* Misc */
.mt-4 {
  margin-top: 32px;
}
.form-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .editor-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .editor-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .editor-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* --- Animations & Modals --- */

/* Page-Load Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.app-main {
    animation: none;
}

/* Staggered Card Animation (Dashboard) */
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.expose-card {
    animation: none;
}

/* Tab Switch Animation */
.tab-content {
    animation: none;
}

/* Modal CSS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.15s ease-out;
}
.modal {
    background: white;
    width: 100%;
    max-width: 480px;
    border: 1px solid #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: scaleUp 0.15s ease-out;
}
@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}
.modal-close:hover { color: #000; }
.modal-body {
    padding: 16px 24px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 24px 20px;
}

/* PDF Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loading-content {
    text-align: center;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #000;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
    border-radius: 50% !important; /* Exception for spinner */
}
.loading-text {
    font-size: 14px;
    color: #555;
    letter-spacing: 0.05em;
}

/* Profile Form Panel CSS */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9000;
    display: flex;
    justify-content: flex-end;
}
.panel {
    position: relative;
    width: 480px;
    max-width: 100%;
    height: 100vh;
    background: white;
    border-left: 1px solid #000;
    overflow-y: auto;
    z-index: 9001;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Panel & Overlay Transitions */
.transition-overlay-enter {
    transition: opacity 0.25s ease-out;
}
.transition-overlay-enter-start {
    opacity: 0;
}
.transition-overlay-enter-end {
    opacity: 1;
}
.transition-overlay-leave {
    transition: opacity 0.2s ease-in;
}
.transition-overlay-leave-start {
    opacity: 1;
}
.transition-overlay-leave-end {
    opacity: 0;
}

.transition-panel-enter {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.transition-panel-enter-start {
    transform: translateX(100%);
}
.transition-panel-enter-end {
    transform: translateX(0);
}
.transition-panel-leave {
    transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1);
}
.transition-panel-leave-start {
    transform: translateX(0);
}
.transition-panel-leave-end {
    transform: translateX(100%);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #eee;
}
.panel-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.panel-body {
    padding: 24px;
}
.panel-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Nav Links & Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.nav-links {
    display: flex;
    gap: 24px;
}
.nav-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.15s;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
}

/* Profile Select & Profile Cards */
.profile-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
}
.profile-select:focus {
    border-color: var(--black);
    outline: none;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.profile-card {
    border: 1px solid #ddd;
    display: flex;
    background: white;
}
.profile-card-img {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #999;
}
.profile-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-card-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.profile-card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.profile-card-position {
    font-size: 13px;
    color: #555;
    margin: 0;
}
.profile-card-company {
    font-size: 13px;
    color: #777;
    margin: 0 0 8px 0;
}
.profile-card-contact {
    font-size: 12px;
    color: #555;
    margin: 0;
}
.profile-card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 8px;
}
.badge-black {
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   APP ENTRANCE & LOGOUT ANIMATIONS
   ========================================================================== */

.app-sidebar {
    animation: none;
}

@keyframes sidebarEntrance {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-main {
    animation: none;
}

@keyframes mainEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out-exit,
body.app-logging-out .app-layout {
    opacity: 0 !important;
    transform: scale(0.985) !important;
    filter: blur(2px) !important;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none;
}

/* ==========================================================================
   KANBAN BOARD STYLING
   ========================================================================== */

.kanban-container {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--white);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.kanban-title-group h1 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.kanban-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.kanban-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    margin-bottom: 28px;
}

.kanban-search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
}

.kanban-search-box input {
    width: 100%;
    height: 38px;
    padding: 8px 36px 8px 42px !important;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.kanban-search-box input:focus {
    border-color: var(--black);
}

.kanban-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    pointer-events: none;
    z-index: 2;
}

.kanban-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    z-index: 2;
}

.kanban-search-clear:hover {
    color: var(--black);
}

.kanban-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 13px;
    font-family: inherit;
    color: var(--gray-800);
    outline: none;
    cursor: pointer;
    max-width: 240px;
}

.kanban-filter-select:focus {
    border-color: var(--black);
}

.kanban-reset-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
}

.kanban-reset-btn:hover {
    color: var(--black);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.kanban-column-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.kanban-column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-900);
}

.kanban-col-indicator {
    width: 8px;
    height: 8px;
    display: inline-block;
}

.indicator-todo {
    background-color: var(--gray-500);
}

.indicator-in_progress {
    background-color: #d97706; /* Warm Amber */
}

.indicator-done {
    background-color: #059669; /* Emerald Green */
}

.kanban-count-badge {
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid var(--gray-200);
}

.kanban-task-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 250px;
}

.kanban-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 16px;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.kanban-card:hover {
    border-color: var(--black);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-ghost {
    opacity: 0.4 !important;
    background: var(--gray-100) !important;
    border: 2px dashed var(--black) !important;
}

.kanban-chosen {
    box-shadow: 0 12px 28px rgba(0,0,0,0.18) !important;
    border-color: var(--black) !important;
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.kanban-priority-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.priority-urgent {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.priority-high {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.priority-normal {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.priority-low {
    background: #f9fafb;
    color: var(--gray-500);
    border: 1px dashed var(--gray-300);
}

.kanban-property-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-800);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 3px 8px;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
}

.kanban-property-tag:hover {
    background: var(--gray-200);
    border-color: var(--black);
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin: 0;
}

.kanban-card-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.5;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
    margin-top: 2px;
    gap: 8px;
}

.kanban-due-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-600);
}

.kanban-due-overdue {
    color: #b91c1c;
    font-weight: 700;
}

.kanban-assignee-avatar {
    width: 22px;
    height: 22px;
    background: var(--black);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    title: attr(data-name);
}

.kanban-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.kanban-btn-micro {
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 3px 6px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.kanban-btn-micro:hover {
    border-color: var(--black);
    color: var(--black);
    background: var(--gray-50);
}

.kanban-empty-col {
    padding: 36px 16px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
    border: 1px dashed var(--gray-300);
    margin: 8px 0;
}

/* ==========================================================================
   ELEGANT EXCEL UPLOAD DROPZONE STYLES
   ========================================================================== */

.excel-dropzone {
    border: 2px dashed var(--gray-300);
    background: #fafafa;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.excel-dropzone:hover {
    border-color: var(--black);
    background: #f4f4f4;
}

.excel-dropzone.dragover {
    border-color: var(--black);
    background: #f0f0f0;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.excel-dropzone-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--white);
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.excel-dropzone:hover .excel-dropzone-icon {
    transform: translateY(-2px);
}

.excel-dropzone-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.excel-dropzone-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 18px;
}

.excel-format-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 4px 12px;
}

.excel-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--black);
    padding: 20px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    gap: 16px;
}

.excel-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    overflow: hidden;
}

.excel-file-icon {
    width: 44px;
    height: 44px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.excel-file-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    word-break: break-all;
    line-height: 1.3;
}

.excel-file-size {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ==========================================================================
   KANBAN SEARCHABLE PROPERTY PICKER STYLES
   ========================================================================== */

.property-picker-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--black);
    padding: 8px 12px;
    gap: 8px;
    min-height: 44px;
}

.property-picker-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.property-picker-icon {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.property-picker-text {
    overflow: hidden;
    text-align: left;
}

.property-picker-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-picker-subtitle {
    font-size: 11px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-picker-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.property-unit-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 1px 5px;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.property-search-picker {
    position: relative;
    width: 100%;
}

.property-search-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.property-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    pointer-events: none;
    z-index: 2;
}

.property-search-input {
    width: 100%;
    height: 40px;
    padding: 8px 36px 8px 42px !important;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    box-sizing: border-box;
}

.property-search-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.property-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    z-index: 2;
}

.property-search-clear:hover {
    color: var(--black);
}

.property-picker-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--black);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1050;
}

.property-picker-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.1s ease;
    text-align: left;
}

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

.property-picker-item:hover {
    background: var(--gray-50);
}

.property-picker-item.active {
    background: var(--gray-100);
    font-weight: 600;
}

.property-picker-item-none {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.property-picker-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-picker-item-sub {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-picker-empty {
    padding: 16px;
    text-align: center;
    color: var(--gray-400);
    font-size: 12px;
}

/* Kanban Filter Searchable Dropdown */
.kanban-filter-searchable {
    position: relative;
}

.kanban-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 13px;
    color: var(--gray-800);
    cursor: pointer;
    min-width: 180px;
    max-width: 380px;
    height: 35px;
    white-space: nowrap;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.kanban-filter-trigger:hover,
.kanban-filter-trigger.is-open {
    border-color: var(--black);
}

.kanban-filter-trigger.has-value {
    border-color: var(--black);
    font-weight: 600;
    background: var(--gray-50);
}

.kanban-filter-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

.kanban-filter-clear {
    font-size: 15px;
    color: var(--gray-400);
    padding: 0 4px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
}

.kanban-filter-clear:hover {
    color: var(--danger);
}

.kanban-filter-chevron {
    font-size: 8px;
    color: var(--gray-500);
    margin-left: 2px;
}

.kanban-filter-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 480px;
    max-width: 92vw;
    background: var(--white);
    border: 1px solid var(--black);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.kanban-filter-dropdown-search {
    padding: 10px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    display: flex;
    align-items: center;
}

.kanban-filter-dropdown-list {
    max-height: 280px;
    overflow-y: auto;
}

/* ==========================================================================
   CREATE EXPOSE / PROPERTY SELECTION STYLES
   ========================================================================== */

.create-expose-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.create-blank-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--black);
    padding: 16px 20px;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.create-property-searchbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.create-property-search-input {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.create-property-search-input .property-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    pointer-events: none;
    z-index: 2;
}

.create-property-search-input input.property-search-input {
    width: 100%;
    height: 48px;
    padding: 10px 44px 10px 48px !important;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.create-property-search-input input.property-search-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.create-property-search-input .property-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    z-index: 2;
}

.create-property-search-input .property-search-clear:hover {
    color: var(--black);
}

.create-property-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 18px 22px;
    transition: all 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.create-property-card:hover {
    border-color: var(--black);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.create-property-facts {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-700);
    flex-wrap: wrap;
    align-items: center;
}

.create-fact-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   KANBAN SIDEBAR MODAL (SLIDE-OVER DRAWER) STYLES
   ========================================================================== */

.kanban-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 9998;
}

.kanban-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 680px;
    max-width: 95vw;
    height: 100vh;
    background: var(--white);
    border-left: 2px solid var(--black);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Alpine Transitions */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.transition-opacity { transition-property: opacity; }
.duration-200 { transition-duration: 200ms; }
.ease-linear { transition-timing-function: linear; }

.kanban-drawer-transition {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.kanban-drawer-closed {
    transform: translateX(100%);
}
.kanban-drawer-open {
    transform: translateX(0);
}

.kanban-drawer-header {
    padding: 22px 28px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    flex-shrink: 0;
}

.kanban-drawer-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kanban-drawer-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    box-shadow: 2px 2px 0 var(--black);
    flex-shrink: 0;
}

.kanban-drawer-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    margin: 0;
    color: var(--black);
    line-height: 1.2;
}

.kanban-drawer-subtitle {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 3px;
}

.kanban-drawer-close {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.kanban-drawer-close:hover {
    border-color: var(--black);
    color: var(--black);
    background: var(--gray-100);
}

.kanban-drawer-form {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 85px);
    overflow: hidden;
}

.kanban-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kanban-drawer-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--gray-200);
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

/* Wide Property Picker in Drawer */
.drawer-property-selected {
    background: #fafafa;
    border: 1px solid var(--black);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.drawer-property-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.drawer-property-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.drawer-property-details {
    flex: 1;
    min-width: 0;
}

.drawer-property-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.drawer-property-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}

.drawer-property-address {
    font-size: 13.5px;
    color: var(--gray-800);
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    line-height: 1.4;
}

.drawer-property-pin {
    font-size: 12px;
}

.drawer-property-street {
    font-weight: 700;
    color: var(--black);
    font-size: 14.5px;
    letter-spacing: -0.01em;
}

.drawer-property-city {
    color: var(--gray-600);
    font-size: 13px;
}

.drawer-property-specs {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--gray-600);
    flex-wrap: wrap;
}

.drawer-property-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.drawer-property-picker {
    position: relative;
    width: 100%;
}

.drawer-property-searchbar {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.drawer-property-searchbar .drawer-property-search-icon,
.drawer-property-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    pointer-events: none;
    z-index: 2;
}

.form-group .drawer-property-searchbar input.drawer-property-input,
.drawer-property-searchbar input.drawer-property-input,
.drawer-property-input {
    width: 100%;
    height: 44px;
    padding: 10px 85px 10px 44px !important;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 13.5px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-group .drawer-property-searchbar input.drawer-property-input:focus,
.drawer-property-searchbar input.drawer-property-input:focus,
.drawer-property-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.drawer-property-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    z-index: 2;
}

.drawer-property-clear:hover {
    color: var(--black);
}

.drawer-property-cancel {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 8px;
    font-size: 11px;
    z-index: 2;
}

.drawer-property-list {
    margin-top: 6px;
    border: 1px solid var(--black);
    background: var(--white);
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.drawer-property-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.12s ease;
    text-align: left;
}

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

.drawer-property-item:hover {
    background: #f7f7f7;
}

.drawer-property-item.active {
    background: #f0f0f0;
    border-left: 3px solid var(--black);
}

.drawer-property-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.drawer-property-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-900);
}

.drawer-property-item-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
}

.drawer-property-item-address {
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--gray-800);
}

.drawer-property-item-street {
    font-weight: 700;
    color: var(--black);
    font-size: 13.5px;
}

.drawer-property-item-city {
    color: var(--gray-600);
}

.drawer-property-item-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
}

.drawer-property-item-none {
    background: #fafafa;
    border-bottom: 1px solid var(--gray-200);
}

.property-type-badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--black);
    color: var(--white);
    padding: 1px 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}}
