:root {
    --primary-dark: #0a1628;
    --primary-blue: #1a365d;
    --secondary-blue: #2b6cb0;
    --light-blue: #e2e8f0;
    --text-light: #f7fafc;
    --text-dark: #2d3748;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #fc8181;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-100);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-bottom: 20px;
}

.sidebar .sidebar-header {
    padding: 20px 15px 0;
}

.sidebar .sidebar-header h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.2rem;
    color: white;
}

.sidebar .sidebar-header small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.sidebar .sidebar-header hr {
    border-color: rgba(255,255,255,0.1);
    margin: 12px 0;
}

.sidebar .nav {
    padding: 0 8px;
}

.sidebar .nav-link {
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: var(--radius-md);
    transition: var(--transition);
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: white;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: white;
    border-radius: 0 4px 4px 0;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav-link.text-danger {
    color: #fc8181 !important;
}

.sidebar .nav-link.text-danger:hover {
    background: rgba(252, 129, 129, 0.15);
    color: #fc8181 !important;
}

.sidebar hr {
    border-color: rgba(255,255,255,0.08);
    margin: 8px 16px;
}

.sidebar .user-info {
    padding: 12px 16px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.sidebar .user-info i {
    margin-right: 8px;
}

/* ============================================
   MENU TOGGLE MOBILE
   ============================================ */
.menu-toggle-mobile {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    background: var(--primary-blue);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    display: none;
}

.menu-toggle-mobile:hover {
    background: var(--secondary-blue);
    color: white;
}

/* ============================================
   CARDS DASHBOARD
   ============================================ */
.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card .card-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.dashboard-card .card-label {
    color: var(--gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}

.dashboard-card .card-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.06;
    color: var(--primary-blue);
}

/* ============================================
   CARDS DE IMÓVEIS
   ============================================ */
.imovel-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.imovel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.imovel-card .imovel-image {
    width: 100%;
    height: 200px;
    background: var(--gray-300);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
    font-size: 0;
    display: block;
}

.imovel-card .imovel-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.imovel-card:hover .imovel-image img {
    transform: scale(1.05);
}

.imovel-card .imovel-destaque {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--warning);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
    z-index: 2;
}

.imovel-card .imovel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.imovel-card .imovel-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.imovel-card .imovel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.imovel-card .imovel-location {
    color: var(--gray-600);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.imovel-card .imovel-location i {
    margin-right: 4px;
    font-size: 0.85rem;
}

.imovel-card .imovel-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 10px;
}

.imovel-card .imovel-features {
    display: flex;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-300);
    color: var(--gray-600);
    font-size: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.imovel-card .imovel-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.imovel-card .imovel-features i {
    font-size: 0.9rem;
}

.imovel-card .btn {
    margin-top: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    padding: 8px 14px;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.form-container h5 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.form-container h5 i {
    color: var(--primary-blue);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-300);
    padding: 10px 16px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(252, 129, 129, 0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-text {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--gray-600);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================
   TABELAS
   ============================================ */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.table-container h5 {
    font-weight: 600;
    color: var(--primary-dark);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: var(--gray-100);
}

.table .actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.table .actions .btn {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 10px 24px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-blue);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.2);
}

.btn-success {
    background: var(--success);
    border: none;
    color: white;
}

.btn-success:hover {
    background: #38a169;
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    border: none;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: #d69e2e;
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 2px 10px;
    font-size: 0.7rem;
}

.btn:disabled {
    opacity: 0.6;
    transform: none !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-primary {
    background: var(--primary-blue);
    color: white;
}

.badge-secondary {
    background: var(--gray-500);
    color: white;
}

.badge-info {
    background: #4299e1;
    color: white;
}

.badge-light {
    background: var(--gray-200);
    color: var(--text-dark);
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: #fff5f5;
    color: #9b2c2c;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fffbeb;
    color: #744210;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #ebf8ff;
    color: #2c5282;
    border-left: 4px solid #4299e1;
}

.alert .btn-close {
    margin-left: auto;
    padding: 4px;
    font-size: 0.8rem;
}

/* ============================================
   MODAIS
   ============================================ */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 24px;
    border: none;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-header .modal-title i {
    margin-right: 10px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer .btn {
    min-width: 100px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1000px;
}

/* ============================================
   RECOMENDAÇÕES
   ============================================ */
.recomendacao-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-blue);
    transition: var(--transition);
}

.recomendacao-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.recomendacao-card .cliente-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.recomendacao-card .cliente-info h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.recomendacao-card .cliente-info .text-muted {
    font-size: 0.85rem;
}

.recomendacao-card .imovel-info {
    background: var(--gray-100);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

.recomendacao-card .imovel-info .imovel-foto {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.recomendacao-card .imovel-info .imovel-detalhes {
    flex: 1;
}

.recomendacao-card .imovel-info .imovel-detalhes h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.recomendacao-card .imovel-info .imovel-detalhes .price {
    color: var(--secondary-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

.recomendacao-card .justificativa {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--success);
}

.recomendacao-card .justificativa strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.recomendacao-card .justificativa p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ============================================
   LOGIN
   ============================================ */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease forwards;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .logo i {
    font-size: 3.5rem;
    color: var(--primary-blue);
}

.login-card .logo h2 {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 8px;
}

.login-card .logo p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.login-card .logo .subtitle {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================
   PÁGINA SOBRE
   ============================================ */
.sobre-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.sobre-card .icon-large {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.1;
}

.sobre-card .developer-card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.sobre-card .developer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* ============================================
   RESPONSIVIDADE GERAL
   ============================================ */
@media (max-width: 992px) {
    .sidebar {
        min-height: auto;
        padding-bottom: 10px;
        position: relative !important;
    }
    
    .sidebar .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .dashboard-card .card-number {
        font-size: 1.8rem;
    }
    
    .modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .menu-toggle-mobile {
        display: block;
    }
    
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        min-height: auto;
        max-height: 80vh;
        overflow-y: auto;
        padding: 10px 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    }
    
    .sidebar.collapse:not(.show) {
        display: none !important;
    }
    
    .sidebar .sidebar-header h4 {
        font-size: 1rem;
    }
    
    .sidebar .nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .sidebar .nav-link i {
        font-size: 1rem;
        width: 20px;
    }
    
    main {
        padding: 10px !important;
    }
    
    .dashboard-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .dashboard-card .card-number {
        font-size: 1.5rem;
    }
    
    .dashboard-card .card-label {
        font-size: 0.65rem;
    }
    
    .dashboard-card .card-icon {
        font-size: 2.5rem;
        right: 8px;
    }
    
    .form-container {
        padding: 16px;
    }
    
    .table-container {
        padding: 12px;
        overflow-x: auto;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .login-card .logo i {
        font-size: 2.8rem;
    }
    
    .login-card .logo h2 {
        font-size: 1.5rem;
    }
    
    .recomendacao-card .imovel-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recomendacao-card .imovel-info .imovel-foto {
        width: 100%;
        height: 150px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .alert {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0 8px;
    }
    
    .dashboard-card {
        padding: 12px;
    }
    
    .dashboard-card .card-number {
        font-size: 1.3rem;
    }
    
    .dashboard-card .card-label {
        font-size: 0.6rem;
    }
    
    .dashboard-card .card-icon {
        font-size: 2rem;
        right: 6px;
    }
    
    .table thead th {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
    
    .table tbody td {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .table .actions .btn {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    
    .modal-footer .btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .login-card {
        padding: 24px 16px;
    }
    
    .login-card .logo i {
        font-size: 2.4rem;
    }
    
    .login-card .logo h2 {
        font-size: 1.3rem;
    }
    
    .login-card .logo p {
        font-size: 0.8rem;
    }
}

/* ============================================
   CORREÇÃO DEFINITIVA PARA IMAGENS DOS CARDS
   ============================================ */

/* FORÇA O TAMANHO DO CARD */
.imovel-card {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* FORÇA O CONTAINER DA IMAGEM */
.imovel-card .imovel-image {
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    background: #e2e8f0 !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    display: block !important;
}

/* FORÇA A IMAGEM DENTRO DO CONTAINER */
.imovel-card .imovel-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* RESPONSIVIDADE FORÇADA */
@media (max-width: 992px) {
    .imovel-card .imovel-image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
}

@media (max-width: 768px) {
    .imovel-card .imovel-image {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }
}

@media (max-width: 576px) {
    .imovel-card .imovel-image {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: var(--radius-md);
}

.rounded-custom-lg {
    border-radius: var(--radius-lg);
}

.bg-gray-100 {
    background: var(--gray-100);
}

.bg-white {
    background: white;
}

/* Loading */
.spinner-custom {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top: 4px solid var(--secondary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print */
@media print {
    .sidebar,
    .menu-toggle-mobile,
    .btn-toolbar,
    .btn {
        display: none !important;
    }
    
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .form-container,
    .table-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .dashboard-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}