/* ==========================================================================
   ELTON IMÓVEIS INTELLIGENCE 3.0 — SISTEMA DE DESIGN & RESPONSIVIDADE NATIVO
   ========================================================================== */

:root {
  --color-navy: #07142D;
  --color-sidebar: #091B3A;
  --color-card: #102648;
  --color-card-hover: #152f58;
  --color-blue: #183E78;
  --color-yellow: #FFCD00;
  --color-yellow-hover: #e6b800;
  --color-gold: #E5A900;
  --color-text: #F8FAFC;
  --color-muted: #A9BAD4;
  --color-border: #183E78;
}

/* Utilitários de Cores da Marca */
.bg-navy-950, .bg-elton-navy { background-color: #07142D !important; }
.bg-navy-900, .bg-elton-sidebar { background-color: #091B3A !important; }
.bg-navy-800, .bg-elton-card { background-color: #102648 !important; }
.text-navy-950 { color: #07142D !important; }
.text-navy-900 { color: #091B3A !important; }
.text-navy-400 { color: #A9BAD4 !important; }
.text-navy-300 { color: #A9BAD4 !important; }
.text-navy-200 { color: #CBD5E1 !important; }
.border-navy-900 { border-color: #0d2247 !important; }
.border-navy-800 { border-color: #183E78 !important; }
.border-navy-700 { border-color: #234f96 !important; }

/* Grid & Colunas Nativas Garantidas */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

.col-span-1 { grid-column: span 1 / span 1 !important; }
.col-span-2 { grid-column: span 2 / span 2 !important; }
.col-span-3 { grid-column: span 3 / span 3 !important; }
.col-span-4 { grid-column: span 4 / span 4 !important; }
.col-span-12 { grid-column: span 12 / span 12 !important; }

/* Breakpoints Responsivos */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:block { display: block !important; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:flex-row { flex-direction: row !important; }
  .lg\:hidden { display: none !important; }
  .lg\:w-64 { width: 16rem !important; }
  .lg\:w-72 { width: 18rem !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-1 { grid-column: span 1 / span 1 !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .lg\:col-span-9 { grid-column: span 9 / span 9 !important; }
  .lg\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

/* ==========================================================================
   LAYOUT PROFISSIONAL DO PAINEL ADMINISTRATIVO
   ========================================================================== */
.admin-layout-root {
  display: flex;
  min-height: 100vh;
  background-color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
}

/* Sidebar Fixa Desktop */
.admin-sidebar-nav {
  width: 270px;
  background-color: #07142D;
  border-right: 1px solid #183E78;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-main-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
}

.admin-header-bar {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-body-content {
  flex: 1;
  padding: 28px 24px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Overlay para Mobile */
.admin-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 45, 0.7);
  backdrop-filter: blur(4px);
  z-index: 35;
}

/* Ajustes Mobile do Admin */
@media (max-width: 1023px) {
  .admin-sidebar-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }
  .admin-sidebar-nav.active {
    transform: translateX(0);
  }
  .admin-mobile-overlay.active {
    display: block;
  }
  .admin-body-content {
    padding: 20px 16px;
  }
}

/* Itens da Navegação Admin */
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #A9BAD4;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}
.admin-nav-link:hover {
  background-color: #102648;
  color: #ffffff;
}
.admin-nav-link.active {
  background-color: #FFCD00;
  color: #07142D;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 205, 0, 0.25);
}

/* Sidebar de Filtros do Catálogo Garantida */
.catalog-filter-aside {
  width: 100%;
}
@media (min-width: 1024px) {
  .catalog-filter-aside {
    display: block !important;
    width: 320px !important;
    flex-shrink: 0 !important;
  }
  .lg\:block { display: block !important; }
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
}
@media (max-width: 1023px) {
  .catalog-filter-aside.is-hidden {
    display: none !important;
  }
}

/* Cards Imobiliários no Catálogo */
.luxury-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.luxury-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(7, 20, 45, 0.1), 0 8px 10px -6px rgba(7, 20, 45, 0.05);
}

/* Utilitários de Formulários no Frontend e Geral */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
select,
textarea {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  width: 100%;
  transition: all 0.2s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #07142D;
  box-shadow: 0 0 0 3px rgba(7, 20, 45, 0.15);
}

/* Range sliders estilizados */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  accent-color: #FFCD00;
  margin: 10px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFCD00;
  border: 2px solid #07142D;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFCD00;
  border: 2px solid #07142D;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}

/* Espaçamento e layout universais */
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-12 { gap: 3rem !important; }

/* Botões Administrativos de Alto Contraste */
.btn-admin-primary {
  background-color: #FFCD00 !important;
  color: #07142D !important;
  font-weight: 800 !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.8125rem !important;
  box-shadow: 0 4px 12px rgba(255, 205, 0, 0.3) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
}
.btn-admin-primary:hover {
  background-color: #e6b800 !important;
  transform: translateY(-1px) !important;
}

.btn-admin-dark {
  background-color: #07142D !important;
  color: #FFCD00 !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  padding: 0.625rem 1rem !important;
  font-size: 0.75rem !important;
  border: 1px solid #183E78 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
  text-decoration: none !important;
}
.btn-admin-dark:hover {
  background-color: #102648 !important;
  color: #ffffff !important;
}

/* Forçar Visibilidade de Todos os Campos no Admin */
.admin-main-container input[type="text"],
.admin-main-container input[type="email"],
.admin-main-container input[type="password"],
.admin-main-container input[type="number"],
.admin-main-container input[type="url"],
.admin-main-container input[type="tel"],
.admin-main-container select,
.admin-main-container textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.admin-main-container input:focus,
.admin-main-container select:focus,
.admin-main-container textarea:focus {
  border-color: #07142D !important;
  box-shadow: 0 0 0 3px rgba(7, 20, 45, 0.15) !important;
}
