/*
Theme Name: Monise Imobiliária
Theme URI: https://monise.com
Author: Monise Development Team
Author URI: https://monise.com
Description: Sistema completo e robusto para gestão imobiliária com busca avançada, comparação de propriedades, favoritos, integração com mapas e muito mais.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monise
Tags: real-estate, properties, business, responsive, custom-post-types
*/

/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Bootstrap Icons Spinner Animation */
.bi.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   TENANT DASHBOARD STYLES
   =========================== */

.tenant-dashboard-section {
    padding: 40px 0;
}

.tenant-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Contract Cards */
.contracts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contract-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.contract-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.contract-header h4 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.contract-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.contract-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contract-detail .label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.contract-detail .value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.contract-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-expired {
    background: #fed7aa;
    color: #92400e;
}

.status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Contracts Table */
.contracts-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin-top: 20px;
}

.contracts-table {
    width: 100%;
    border-collapse: collapse;
}

.contracts-table thead {
    background: #f9fafb;
}

.contracts-table th,
.contracts-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.contracts-table th {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.contracts-table td {
    font-size: 14px;
    color: #1f2937;
}

.property-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.property-thumb {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
}

.property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info {
    flex: 1;
}

.property-info small {
    color: #6b7280;
    font-size: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
}

.empty-state i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px;
    color: #374151;
}

.empty-state p {
    margin: 0;
    color: #6b7280;
}

/* ===========================
   ADMIN PANEL STYLES
   =========================== */

.admin-panel {
    padding: 40px 0;
}

.admin-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.admin-panel-section {
    padding: 40px 0;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.btn-warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.admin-alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.admin-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.admin-alert i {
    margin-right: 8px;
}

.users-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-users-table thead {
    background: #f9fafb;
}

.admin-users-table th,
.admin-users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-users-table th {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.admin-users-table td {
    font-size: 14px;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.role-badge.cliente {
    background: #dbeafe;
    color: #1e40af;
}

.role-badge.corretor {
    background: #d1fae5;
    color: #065f46;
}

.role-badge.inquilino {
    background: #e0e7ff;
    color: #3730a3;
}

.role-badge.administrator {
    background: #fee2e2;
    color: #991b1b;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-small {
    max-width: 400px;
}

.modal-content.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-message {
    margin: 15px 0;
    padding: 10px 15px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Contracts Grid (for modal) */
.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.contract-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.contract-item h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1f2937;
}

.contract-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #4b5563;
}

/* Responsive */
@media (max-width: 768px) {
    .contracts-list {
        grid-template-columns: 1fr;
    }

    .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .admin-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .users-table-wrapper {
        overflow-x: auto;
    }

    .admin-users-table {
        min-width: 600px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .contracts-grid {
        grid-template-columns: 1fr;
    }

    .contract-details {
        grid-template-columns: 1fr;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--text-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact span {
    margin-right: 20px;
}

.header-social a {
    color: #fff;
    margin-left: 15px;
    font-size: 14px;
    transition: var(--transition);
}

.header-social a:hover {
    color: var(--accent-color);
}

.header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-right-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    font-size: 15px;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    order: 3;
}

/* Mobile Offcanvas Menu */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-offcanvas.active {
    visibility: visible;
    opacity: 1;
}

.offcanvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.offcanvas-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-offcanvas.active .offcanvas-content {
    transform: translateX(0);
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.offcanvas-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-dark);
}

.offcanvas-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.offcanvas-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.offcanvas-menu {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.offcanvas-menu li {
    margin-bottom: 10px;
}

.offcanvas-link {
    display: block;
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.offcanvas-link:hover {
    color: var(--primary-color);
}

.offcanvas-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.offcanvas-favorites {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.offcanvas-favorites:hover {
    background: var(--primary-color);
    color: white;
}

.offcanvas-favorites i {
    font-size: 18px;
    color: var(--danger-color);
}

.offcanvas-favorites:hover i {
    color: white;
}

.offcanvas-favorites .favorites-count {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}

.offcanvas-favorites:hover .favorites-count {
    background: white;
    color: var(--danger-color);
}

body.offcanvas-open {
    overflow: hidden;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    text-decoration: none;
}

.favorites-link:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

.favorites-link:hover i {
    color: white !important;
}

.favorites-link i {
    font-size: 18px;
}

.favorites-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
}

/* Notifications Wrapper */
.notifications-wrapper {
    position: relative;
    margin-left: 10px;
}

.notifications-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.notifications-link:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

.notifications-link:hover i {
    color: white !important;
}

.notifications-link i {
    font-size: 18px;
}

.notifications-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.notifications-wrapper:hover .notifications-dropdown,
.notifications-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.notifications-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.notifications-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.notifications-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    position: relative;
}

.notification-item.unread {
    background: color-mix(in srgb, var(--primary-color) 5%, transparent);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item:hover {
    background: var(--bg-light);
}

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

.notification-link {
    display: flex;
    gap: 12px;
    flex: 1;
    text-decoration: none;
}

.mark-read-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.mark-read-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mark-all-read-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mark-all-read-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.notification-icon.lead {
    background: var(--secondary-color);
}

.notification-icon.document {
    background: #ef4444;
}

.notification-icon.info {
    background: #3b82f6;
}

.notification-icon.success {
    background: #10b981;
}

.notification-icon.warning {
    background: #f59e0b;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dark);
}

.notification-text strong {
    color: var(--primary-color);
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.notification-time i {
    font-size: 11px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

.notifications-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Scrollbar for notifications list */
.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-dropdown {
        position: fixed !important;
        top: 80px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        max-width: none !important;
        max-height: 70vh;
        background: white;
        border-radius: 15px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: none !important;
        margin: 0 !important;
    }
    
    .notifications-dropdown.mobile-open {
        opacity: 1;
        visibility: visible;
    }
    
    /* Botão de fechar para mobile */
    .notifications-dropdown .notifications-header {
        position: relative;
        padding-right: 60px;
    }
    
    .notifications-dropdown .notifications-header .close-notifications {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        font-size: 24px;
        font-weight: bold;
        color: var(--text-light);
        cursor: pointer;
        line-height: 1;
        z-index: 10;
        background: none;
        border: none;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .notifications-dropdown .notifications-header .close-notifications:hover {
        color: var(--text-dark);
    }
}

/* Client Area Button */
.client-area-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white !important;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.client-area-btn:hover {
    background: var(--secondary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.client-area-btn i {
    font-size: 16px;
    color: white !important;
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    min-width: auto;
    max-width: none;
}

.user-menu-toggle:hover {
    background: white;
    border-color: var(--primary-color);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 100px;
    object-fit: cover;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-toggle i {
    font-size: 14px;
    color: var(--text-light);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-wrapper:hover .user-dropdown,
.user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.user-dropdown a i {
    font-size: 14px;
    width: 16px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    padding: 40px 40px;
}

.hero-section .container {
    max-width: 100%;
    padding: 0;
}

.hero-section-inner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efeito decorativo no hero */
.hero-section-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    animation: pulseExpand1 8s ease-in-out infinite;
}

.hero-section-inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(50px);
    animation: pulseExpand2 10s ease-in-out infinite;
}

@keyframes pulseExpand1 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes pulseExpand2 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.9;
    }
}

/* Hero Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    z-index: 0;
}

.hero-video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hero-video,
.hero-video-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-video-embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

/* Hero Slideshow Background */
.hero-slideshow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    z-index: 0;
}

.hero-slideshow-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    animation: heroZoomFade 8s ease-out forwards;
    z-index: 1;
}

.hero-slide.fade-out {
    opacity: 0;
    animation: heroZoomOut 2s ease-out forwards;
    z-index: 2;
}

@keyframes heroZoomFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes heroZoomOut {
    0% {
        opacity: 1;
        transform: scale(1.15);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 0;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* ===========================
   SEARCH FORM
   =========================== */
.search-section {
    margin-top: -120px;
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.property-search-form {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.btn i {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary i {
    color: white !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    gap: 8px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-favoritos {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-favoritos-section{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* ===========================
   PROPERTY GRID
   =========================== */
.properties-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.property-card .property-image .property-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 20;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-badge.for-sale {
    background-color: var(--success-color);
}

.property-badge.for-rent {
    background-color: var(--primary-color);
}

.property-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.property-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.property-action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.property-content {
    padding: 20px;
}

.property-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.property-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.property-location {
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.property-feature strong {
    color: var(--text-dark);
}

/* ===========================
   SINGLE PROPERTY
   =========================== */
.single-property {
    padding: 60px 0;
}

.property-gallery {
    margin-bottom: 40px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.thumbnail-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail-gallery img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.property-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.property-description {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.property-description h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 5px;
}

.property-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background-color: var(--text-dark);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #d1d5db;
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 20px 20px;
    }
    
    .hero-section-inner {
        border-radius: 15px;
        padding: 40px 20px;
    }
    
    .hero-video-background {
        border-radius: 15px;
    }
    
    .hero-slideshow-background {
        border-radius: 15px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .search-section {
        padding: 20px 0;
    }

    .property-search-form {
        border-radius: 10px;
        padding: 20px;
    }

    .search-form-grid {
        grid-template-columns: 1fr;
    }

    .search-form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-details-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-main .container {
        flex-wrap: nowrap;
        gap: 15px;
        position: relative;
    }

    .header-right-container {
        gap: 5px;
        margin-left: auto;
    }
    
    .header-top {
        font-size: 12px;
    }
    
    .header-contact span {
        margin-right: 10px;
        font-size: 11px;
    }
    
    .header-social a {
        margin-left: 10px;
        font-size: 13px;
    }
    
    .site-logo a {
        font-size: 20px;
    }
    
    .site-logo img {
        max-height: 35px;
    }
}

/* ===========================
   ADMIN STYLES
   =========================== */
.monise-admin-wrap {
    margin: 20px;
}

.monise-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.monise-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.monise-stat-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.monise-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===========================
   CLIENT DASHBOARD
   =========================== */
.dashboard-section {
    padding: 60px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: var(--text-light);
    font-size: 14px;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.dashboard-user-details {
    display: flex;
    flex-direction: column;
}

.dashboard-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashboard-user-email {
    font-size: 13px;
    color: var(--text-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 5px;
}

.dashboard-menu-item:hover,
.dashboard-menu-item.active {
    background: var(--primary-color);
    color: white;
}

.dashboard-menu-item i {
    font-size: 18px;
    width: 20px;
}

.dashboard-menu-item .badge {
    margin-left: auto;
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 20px;
    color: white;
    background: #ef4444;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    justify-content: center;
    font-weight: 500;
}

.dashboard-logout-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.dashboard-logout-btn i {
    font-size: 16px;
}

.dashboard-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 32px;
    margin: 0;
    color: var(--text-dark);
}

.stat-info p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.dashboard-section-box {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

.dashboard-section-box h3 {
    margin-bottom: 20px;
}

.dashboard-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.dashboard-empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.dashboard-empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.dashboard-empty-state p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.dashboard-empty-state .btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.dashboard-empty-state .btn i {
    color: inherit;
    font-size: 16px;
    line-height: 0;
    vertical-align: middle;
    margin-top: -2px;
}

/* Dashboard Tab Header */
.tab-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-header h2 {
    margin-bottom: 5px;
}

.tab-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Dashboard Property Cards */
.dashboard-property-card {
    position: relative;
}

/* Property Action Buttons */
.property-actions {
    position: absolute;
    bottom: 15px!important;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.property-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.property-action-btn:hover {
    background: var(--primary-color, #007bff);
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

.property-action-btn.edit-property {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.property-action-btn.edit-property:hover {
    background: #28a745;
    color: white;
}

.property-action-btn i {
    font-size: 18px;
}

/* Ensure property image has proper stacking context */
.property-card .property-image {
    position: relative;
    z-index: 1;
}

.dashboard-property-card .property-card-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Dashboard specific buttons */
.dashboard-tab-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.dashboard-tab-content .btn i {
    font-size: 14px;
    color: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
}

.dashboard-tab-content .btn-primary i {
    color: white;
}

.dashboard-tab-content .btn-outline i {
    color: var(--primary-color);
}

.remove-from-favorites-dashboard {
    background: #ef4444 !important;
    color: white !important;
}

.remove-from-favorites-dashboard:hover {
    background: #dc2626 !important;
    transform: scale(1.1);
}

/* Dashboard Forms */
.dashboard-form {
    max-width: 600px;
}

.dashboard-form .form-group {
    margin-bottom: 20px;
}

.dashboard-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.dashboard-form input[type="text"],
.dashboard-form input[type="email"],
.dashboard-form input[type="tel"],
.dashboard-form input[type="password"],
.dashboard-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.dashboard-form input:focus,
.dashboard-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dashboard-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.dashboard-form small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 13px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.document-item:hover {
    box-shadow: var(--shadow-md);
}

.document-icon {
    width: 60px;
    height: 60px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.document-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.document-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-type-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.document-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Login/Register Section */
.dashboard-login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: #f7f7f7;
    position: relative;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

.dashboard-login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-login-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Fix for login page spacing */
body.page-template-login,
body.page-id-login,
body.minha-conta {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Remove any default margins/padding from html and body on login page */
html.minha-conta,
html.minha-conta body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

body.page-template-login .site-content,
body.page-id-login .site-content,
body.minha-conta .site-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body.page-template-login .container,
body.page-id-login .container,
body.minha-conta .container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure full width for login section */
.dashboard-login-section .container,
.full-width-section,
.full-width-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force full width for login page */
.full-width-section {
    position: relative;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Responsive adjustments for login page */
@media (max-width: 768px) {
    .dashboard-login-section {
        padding: 40px 0;
        min-height: 100vh;
    }
    
    .login-register-wrapper {
        width: 100%;
        padding: 0 15px;
    }
    
    .login-box {
        padding: 20px 25px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-login-section {
        padding: 20px 0;
    }
    
    .login-box {
        padding: 15px 20px;
        margin: 0 5px;
    }
}

.login-register-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
}

.login-register-wrapper {
    width: 580px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.login-box {
    max-width: 100%!important;
    background: white;
    padding: 26px 36px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: none;
}

.login-box.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.login-icon i {
    font-size: 36px;
    color: white;
}

.login-box h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--text-dark);
}

.login-box .subtitle {
    color: var(--text-light);
    margin: 0;
    font-size: 15px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.auth-form label i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    font-size: 15px;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.checkbox-group {
    margin: 8px 0 15px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    color: var(--text-dark);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
}

.form-message i {
    font-size: 18px;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--bg-light);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.separator {
    margin: 0 12px;
    color: var(--text-light);
}

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


/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .user-name {
        display: none;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .document-item {
        flex-direction: column;
        text-align: center;
    }
    
    .document-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .document-actions .btn {
        width: 100%;
    }
}

/* ===========================
   AGENT PROFILE PHOTO UPLOAD
   =========================== */
.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.photo-preview {
    flex-shrink: 0;
}

.photo-preview img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.photo-actions .btn {
    justify-content: center;
}

/* Agent Social Links in Form */
.form-section .form-group label i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* ===========================
   PDF VIEWER MODAL
   =========================== */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.pdf-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}

.pdf-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.pdf-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.pdf-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #525659;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 95vh;
    }
    
    .pdf-modal-header,
    .pdf-modal-footer {
        padding: 15px 20px;
    }
    
    .pdf-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .pdf-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   NOTIFICATIONS PAGE
   =========================== */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.tab-header-content h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.tab-header-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.tab-header-content-pro {
    display: flex;
    justify-content: space-between;
}

.notifications-section {
    margin-bottom: 40px;
}

.notifications-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.notifications-section-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.count-badge.secondary {
    background: #94a3b8;
}

.notifications-list-page {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.notification-card.unread {
    background: #eff6ff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.notification-card.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 12px 0 0 12px;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
}

.notification-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notification-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification-icon.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.notification-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.notification-message {
    margin: 0 0 12px 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.notification-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #94a3b8;
}

.notification-date i {
    font-size: 14px;
}

.notification-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.notification-action:hover {
    color: var(--secondary-color);
    gap: 8px;
}

.notification-actions {
    flex-shrink: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-icon i {
    font-size: 18px;
}

.notification-card.read {
    opacity: 0.7;
}

.notification-card.read:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .notification-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .notification-actions {
        align-self: flex-end;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tab-header button {
        width: 100%;
    }
}

/* ===========================
   UTILITIES
   =========================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ========================================
   HOME PAGE PROPERTY CARDS FIX
   ======================================== */

/* Ensure property cards work correctly on home page */
.home-page .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.home-page .property-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-page .property-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.home-page .property-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
}

.home-page .property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.home-page .property-card:hover .property-image {
    transform: scale(1.05);
}

.home-page .property-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.home-page .property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.home-page .property-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-page .property-title a:hover {
    color: var(--primary-color);
}

.home-page .property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.home-page .property-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-page .property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.home-page .property-feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-page .property-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

/* Responsive adjustments for home page cards */
@media (max-width: 768px) {
    .home-page .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .home-page .property-content {
        padding: 15px;
    }
    
    .home-page .property-features {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ========================================
   HOME PAGE ADDITIONAL SECTIONS
   ======================================== */

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design for Home Page Sections */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

