/* Componentes Específicos */

/* Banner Principal da Brokers Ribeiro e Dias */
.main-banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/homeimage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    background: linear-gradient(45deg, #F1E3C0, #C89A39, #8B6720);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.banner-divider {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C89A39, transparent);
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(200, 154, 57, 0.5);
}

.banner-slogan {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}


@keyframes titleGlow {
    0% { 
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(200, 154, 57, 0.3);
    }
    100% { 
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(200, 154, 57, 0.6);
    }
}

/* Sell Property Section */
.sell-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 50%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.sell-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(200, 154, 57, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(200, 154, 57, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.sell-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sell-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
}

.benefit-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 154, 57, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(200, 154, 57, 0.1);
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item i {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.sell-cta {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sell-cta .btn-large {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border: 2px solid var(--color-gold);
    color: var(--color-bg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sell-cta .btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sell-cta .btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(200, 154, 57, 0.3), 0 0 20px rgba(200, 154, 57, 0.2);
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.sell-cta .btn-large:hover::before {
    left: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.sell-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(200, 154, 57, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive para o banner */
@media (max-width: 768px) {
    .main-banner {
        height: 60vh;
        min-height: 400px;
    }
    
    .banner-title {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    
    .banner-slogan {
        font-size: 1.25rem;
    }
    
    .banner-divider {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .main-banner {
        height: 50vh;
        min-height: 350px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-slogan {
        font-size: 1.1rem;
    }
    
    .banner-divider {
        width: 120px;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

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

.hero-title {
    font-family: var(--font-main);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1rem;
    backdrop-filter: blur(20px);
}

.hero-search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-search-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
    min-width: 120px;
}

.hero-search-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Featured Properties */
.featured-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Property Detail */
.property-detail {
    padding: 2rem 0;
}

.property-detail-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.property-gallery {
    position: relative;
}

.property-main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.property-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.property-thumbnail {
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.property-thumbnail:hover,
.property-thumbnail.active {
    border-color: var(--primary-color);
}

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

.property-sidebar {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    height: fit-content;
}

.property-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-type-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.property-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.property-feature-item i {
    color: var(--primary-color);
    width: 16px;
}

.property-actions-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-actions-large .btn {
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Property Description */
.property-description {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    margin-bottom: 3rem;
}

.property-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.property-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Related Properties */
.related-properties {
    margin-top: 3rem;
}

.related-properties h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filters */
.filters {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.filter-input,
.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--primary-hover);
}

/* Forms */
.form {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-error {
    color: #fca5a5;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-help {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Admin Styles */
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 60px);
    padding: 1.5rem 0;
    width: 250px;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-nav li {
    margin-bottom: 0.25rem;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    font-weight: 500;
}

.admin-sidebar-nav a:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    transform: translateX(5px);
}

.admin-sidebar-nav a.active {
    background: linear-gradient(135deg, var(--bg-glass), rgba(255, 215, 0, 0.1));
    color: var(--color-gold);
    border-right: 3px solid var(--primary-color);
    font-weight: 600;
}

.admin-sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease;
    max-width: calc(100vw - 250px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header-left {
    flex: 1;
}

.admin-header-right {
    flex: 1;
    text-align: right;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-stat-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.admin-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

.admin-stat-change.positive {
    color: #22c55e;
}

.admin-stat-change.negative {
    color: #ef4444;
}

/* Botão toggle do admin sidebar para mobile */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 75px;
    left: 15px;
    z-index: 1001;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    padding: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.admin-sidebar-toggle:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.admin-sidebar-toggle.active {
    background: var(--color-gold);
    color: var(--bg-primary);
}

.admin-sidebar-toggle i {
    font-size: 1.1rem;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
/* Estilos responsivos para galeria de propriedades */
@media (max-width: 768px) {
    .property-detail-header {
        flex-direction: column;
        gap: 2rem;
    }
    
    .property-gallery {
        order: 1;
    }
    
    .property-sidebar {
        order: 2;
    }
    
    .property-main-image {
        height: 300px;
        margin-bottom: 1rem;
    }
    
    .property-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .property-thumbnail {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .property-main-image {
        height: 250px;
    }
    
    .property-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .property-thumbnail {
        height: 50px;
    }
}

/* Estilos para galeria com muitas imagens */
.property-thumbnails {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

.property-thumbnails::-webkit-scrollbar {
    width: 6px;
}

.property-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.property-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.property-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

/* Melhorias para imagens responsivas */
.property-main-image img,
.property-thumbnail img {
    transition: transform 0.3s ease;
}

.property-thumbnail:hover img {
    transform: scale(1.05);
}

/* Indicador de mais imagens */
.property-thumbnails::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, transparent 50%, var(--bg-glass) 50%);
    pointer-events: none;
}

/* Tablet e Desktop Pequeno */
@media (max-width: 1200px) {
    .admin-sidebar {
        width: 220px;
    }
    
    .admin-content {
        margin-left: 220px;
        max-width: calc(100vw - 220px);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        width: 280px;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 1.5rem;
        max-width: 100vw;
    }
    
    .admin-sidebar-toggle {
        display: block;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-stat-card {
        padding: 1.25rem;
    }
    
    .admin-stat-number {
        font-size: 1.6rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1.75rem;
    }
    
    .admin-header-left {
        text-align: center;
    }
    
    .admin-header-right {
        text-align: center;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    /* Dashboard específico tablet */
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .admin-card-header {
        padding: 1.25rem;
    }
    
    .admin-card-content {
        padding: 1.25rem;
    }
    
    .property-item {
        padding: 0.875rem;
    }
    
    .user-item {
        padding: 0.875rem;
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.875rem;
    }
    
    .quick-action {
        padding: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100vw;
        padding: 1rem 0;
    }
    
    .admin-sidebar-nav a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
        padding: 1.5rem;
    }
    
    .admin-header-left {
        text-align: center;
    }
    
    .admin-header-right {
        text-align: center;
    }
    
    .admin-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .admin-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-stat-card {
        padding: 1.25rem;
        text-align: center;
    }
    
    .admin-stat-number {
        font-size: 2rem;
    }
    
    .admin-stat-label {
        font-size: 0.9rem;
    }
    
    .filters-section {
        padding: 1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-search-form {
        flex-direction: column;
    }
    
    .hero-search-select,
    .hero-search-input {
        width: 100%;
    }
    
    .property-detail-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-features-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* Dashboard específico mobile */
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .admin-card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .admin-card-header h3 {
        font-size: 1rem;
        text-align: center;
    }
    
    .admin-card-content {
        padding: 1rem;
    }
    
    .property-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.875rem;
    }
    
    .property-views {
        margin-left: 0;
    }
    
    .user-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.875rem;
    }
    
    .user-status {
        margin-left: 0;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quick-action {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .quick-action i {
        font-size: 1.25rem;
    }
    
    .quick-action span {
        font-size: 0.85rem;
    }
    
    .page-header-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .admin-content {
        padding: 0.75rem;
    }
    
    .admin-stat-card {
        padding: 0.875rem;
    }
    
    .admin-stat-number {
        font-size: 1.25rem;
    }
    
    .admin-stat-label {
        font-size: 0.8rem;
    }
}

/* Admin Layout Específico */
.admin-layout {
    background: var(--bg-primary);
}

/* Dashboard específico */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.admin-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-glass), rgba(255, 215, 0, 0.05));
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-card-content {
    padding: 1.5rem;
}

/* Lista de propriedades */
.property-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.property-item:hover {
    background: var(--bg-glass);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.property-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.property-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.property-views {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* Lista de usuários */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.user-item:hover {
    background: var(--bg-glass);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.1rem;
}

.user-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-status {
    margin-left: auto;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Ações rápidas */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: var(--bg-glass);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
    color: var(--color-gold);
}

.quick-action i {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.quick-action span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Atividade recente */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-item i {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.admin-layout .header {
    background: rgba(10, 10, 10, 0.98);
}

.admin-nav {
    display: flex;
    align-items: center;
}

.admin-nav .nav-list {
    display: flex;
    gap: 1rem;
}

.admin-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.admin-nav .nav-link:hover {
    background: var(--bg-glass);
}

@media (max-width: 1023px) {
    .admin-nav {
        display: none;
    }
}

/* Cards do Admin */
.admin-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    margin-bottom: 1.5rem;
}

.admin-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-glass);
}

.admin-card .card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-card .card-body {
    padding: 1.25rem;
}

/* Tables Responsivas */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-table th {
    background: linear-gradient(135deg, var(--bg-glass), rgba(255, 215, 0, 0.1));
    padding: 1rem 0.875rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.admin-table td {
    padding: 1rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    background: var(--bg-primary);
    transition: background 0.2s ease;
}

.admin-table tr:hover td {
    background: var(--bg-glass);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Melhorar responsividade das tabelas */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .admin-table {
        font-size: 0.9rem;
        min-width: 700px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.875rem 0.75rem;
        white-space: nowrap;
    }
    
    .admin-table th {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Manter colunas essenciais visíveis */
    .admin-table th:nth-child(n+7),
    .admin-table td:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 480px) {
    .admin-table {
        font-size: 0.8rem;
        min-width: 550px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Mostrar apenas colunas mais importantes */
    .admin-table th:nth-child(n+5),
    .admin-table td:nth-child(n+5) {
        display: none;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    .admin-content {
        padding: 0.75rem;
    }
    
    .admin-header {
        padding: 1rem;
    }
    
    .admin-header-left {
        text-align: center;
    }
    
    .admin-header-right {
        text-align: center;
    }
    
    .admin-title {
        font-size: 1.25rem;
    }
    
    .admin-subtitle {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .admin-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .admin-stat-card {
        padding: 1rem;
    }
    
    .admin-stat-number {
        font-size: 1.75rem;
    }
    
    .admin-stat-label {
        font-size: 0.8rem;
    }
    
    .filters-section {
        padding: 0.75rem;
    }
    
    .filters-grid {
        gap: 0.75rem;
    }
    
    .admin-sidebar-nav a {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .admin-sidebar-nav a i {
        font-size: 0.9rem;
    }
    
    /* Dashboard específico mobile */
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .admin-card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .admin-card-header h3 {
        font-size: 1rem;
        text-align: center;
    }
    
    .admin-card-content {
        padding: 1rem;
    }
    
    .property-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .property-views {
        margin-left: 0;
    }
    
    .user-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .user-status {
        margin-left: 0;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quick-action {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .quick-action i {
        font-size: 1.25rem;
    }
    
    .quick-action span {
        font-size: 0.85rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Badge de Status */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.action-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--color-gold);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: #ef4444;
}

.action-btn.success:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: #22c55e;
}

/* Admin Pages Layout */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header-content p {
    color: var(--text-secondary);
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form .form-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-width: 200px;
}

.content-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

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

.data-table th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

/* Responsive Sell Section */
@media (max-width: 1024px) {
    .sell-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
    
    .sell-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sell-section {
        padding: 3rem 0;
    }
    
    .sell-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
    
    .sell-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .benefit-item {
        padding: 2rem 1.5rem;
    }
    
    .sell-cta .btn-large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-header-actions {
        justify-content: center;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form .form-group {
        justify-content: center;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    /* Responsive para Sell Section */
    .sell-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sell-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    /* Responsive para Modal */
    .modal.show {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
