/* ==========================================================================
   55 IMOVEIS 2.0 - FRONTEND DESIGN SYSTEM
   ========================================================================== */

/* Typography & Core Resets */
.imoveis55-container {
    font-family: 'Inter', sans-serif;
    color: var(--im55-text, #000000);
    background-color: var(--im55-bg, #ffffff);
    margin: 30px auto;
    padding: 20px;
    max-width: 1200px;
    box-sizing: border-box;
}

.imoveis55-container h1, 
.imoveis55-container h2, 
.imoveis55-container h3, 
.imoveis55-container h4, 
.imoveis55-container h5,
.imoveis55-detail-container h1,
.imoveis55-detail-container h2,
.imoveis55-detail-container h3 {
    font-family: 'Outfit', sans-serif;
    color: #111111;
    margin-top: 0;
}

/* Header Section */
.imoveis55-header-section {
    margin-bottom: 30px;
    text-align: left;
    border-left: 5px solid var(--im55-primary, #2ecc71);
    padding-left: 20px;
}

.imoveis55-header-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #111;
}

.imoveis55-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

/* Filter & Layout Control Bar */
.imoveis55-filter-bar {
    background-color: var(--im55-header-bg, #f4fbf7);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(46, 204, 113, 0.15);
}

.imoveis55-filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.im55-filter-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease;
}

.im55-filter-item:focus-within {
    border-color: var(--im55-primary, #2ecc71);
}

.im55-filter-item i {
    color: #888;
    margin-right: 8px;
    font-size: 0.95rem;
}

.im55-filter-item input,
.im55-filter-item select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: #333;
    padding: 0;
    margin: 0;
    width: 100%;
}

.im55-filter-item select {
    cursor: pointer;
    padding-right: 15px;
}

.search-input-group {
    min-width: 240px;
}

.imoveis55-btn-filter-submit {
    background-color: var(--im55-btn, #22c55e);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, transform 0.1s ease;
}

.imoveis55-btn-filter-submit:hover {
    background-color: var(--im55-btn-hover, #16a34a);
}

.imoveis55-btn-filter-submit:active {
    transform: scale(0.97);
}

.imoveis55-btn-filter-clear {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.imoveis55-btn-filter-clear:hover {
    color: #111;
}

/* Layout Switch Buttons */
.imoveis55-layout-toggle {
    display: flex;
    gap: 6px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 8px;
}

.im55-toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.im55-toggle-btn.active {
    background: #ffffff;
    color: var(--im55-primary, #2ecc71);
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.im55-toggle-btn i {
    font-size: 0.95rem;
}

/* Marketplace View Wrapper */
.imoveis55-listings-wrapper.view-mode-grid .imoveis55-table-layout {
    display: none;
}

.imoveis55-listings-wrapper.view-mode-table .imoveis55-grid-layout {
    display: none;
}

/* ==========================================
   1. GRID LAYOUT STYLES
   ========================================== */
.imoveis55-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.imoveis55-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.imoveis55-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.imoveis55-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.imoveis55-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.imoveis55-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.imoveis55-card:hover .imoveis55-card-image {
    transform: scale(1.05);
}

.imoveis55-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--im55-primary, #2ecc71);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.imoveis55-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.imoveis55-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--im55-primary, #2ecc71);
    margin: 0 0 8px 0;
}

.imoveis55-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.imoveis55-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.imoveis55-card-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 140px;
}

.imoveis55-card-code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #475569;
}

/* ==========================================
   2. TABLE LAYOUT STYLES
   ========================================== */
.imoveis55-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.imoveis55-custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

.imoveis55-custom-table th {
    background-color: var(--im55-header-bg, #f4fbf7);
    color: #334155;
    font-weight: 700;
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 2px solid #e2e8f0;
}

.imoveis55-custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
    vertical-align: middle;
}

.imoveis55-custom-table tr:hover {
    background-color: #f8fafc;
}

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

.imoveis55-table-thumb {
    width: 75px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: block;
}

.td-code strong {
    color: #475569;
    font-family: monospace;
    font-size: 0.95rem;
}

.td-title a {
    color: #1e293b;
    text-decoration: none !important;
    font-weight: 600;
}

.td-title a:hover {
    color: var(--im55-primary, #2ecc71);
}

.table-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.td-price {
    font-weight: 700;
    color: var(--im55-primary, #2ecc71);
}

.imoveis55-table-btn {
    background-color: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.imoveis55-table-btn:hover {
    background-color: var(--im55-primary, #2ecc71);
    color: #ffffff;
    border-color: var(--im55-primary, #2ecc71);
}

/* ==========================================
   3. PAGINATION STYLES
   ========================================== */
.imoveis55-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.imoveis55-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.imoveis55-pagination .page-numbers:hover {
    background-color: var(--im55-header-bg, #f4fbf7);
    border-color: var(--im55-primary, #2ecc71);
    color: var(--im55-primary, #2ecc71);
}

.imoveis55-pagination .page-numbers.current {
    background: var(--im55-primary, #2ecc71);
    color: #ffffff;
    border-color: var(--im55-primary, #2ecc71);
}

/* ==========================================
   4. DETAIL PAGE STYLES
   ========================================== */
.imoveis55-detail-container {
    max-width: 1200px;
}

.imoveis55-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.imoveis55-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    background: #f1f5f9;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.imoveis55-btn-back:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.imoveis55-detail-share-box {
    display: flex;
    gap: 8px;
}

.imoveis55-share-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.imoveis55-share-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.imoveis55-share-btn.btn-wa-share {
    color: #25d366;
    border-color: #25d366;
}

.imoveis55-share-btn.btn-wa-share:hover {
    background-color: #25d366;
    color: #ffffff;
}

.imoveis55-share-btn.btn-fb-share {
    color: #1877f2;
    border-color: #1877f2;
}

.imoveis55-share-btn.btn-fb-share:hover {
    background-color: #1877f2;
    color: #ffffff;
}

/* Detail Layout grid */
.imoveis55-detail-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.imoveis55-detail-gallery {
    flex: 1.2;
    max-width: 640px;
}

.imoveis55-detail-info {
    flex: 0.8;
    position: sticky;
    top: 30px;
}

/* Slider (Strict 640x480 container) */
.imoveis55-slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.imoveis55-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.imoveis55-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: zoom-in;
}

.imoveis55-slide.active {
    opacity: 1;
    visibility: visible;
}

.imoveis55-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Controls */
.imoveis55-slider-prev,
.imoveis55-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
}

.imoveis55-slider-prev:hover,
.imoveis55-slider-next:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.imoveis55-slider-prev {
    left: 15px;
}

.imoveis55-slider-next {
    right: 15px;
}

.imoveis55-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 20px;
}

.imoveis55-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
}

.imoveis55-slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.imoveis55-slider-placeholder {
    width: 100%;
    height: 480px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

/* Ratings & Report bar */
.imoveis55-social-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 5px;
    border-top: 1px solid #f1f5f9;
}

.im55-btn-like {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.im55-btn-like:hover {
    border-color: var(--im55-primary, #2ecc71);
    color: var(--im55-primary, #2ecc71);
    background: var(--im55-header-bg, #f4fbf7);
}

.im55-btn-like.already-liked {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.im55-btn-report-trigger {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.im55-btn-report-trigger:hover {
    color: #dc2626;
}

/* Detail Right Info Card */
.imoveis55-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.imoveis55-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
}

.imoveis55-badge-code {
    background-color: var(--im55-header-bg, #f4fbf7);
    color: var(--im55-primary, #2ecc71);
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.imoveis55-detail-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #0f172a;
}

.imoveis55-detail-price {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--im55-primary, #2ecc71);
    margin: 15px 0;
}

.imoveis55-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.imoveis55-fields-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imoveis55-field-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 8px;
}

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

.imoveis55-field-label {
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.imoveis55-field-label i {
    width: 16px;
    color: var(--im55-primary, #2ecc71);
    font-size: 0.95rem;
    text-align: center;
}

.imoveis55-field-value {
    font-weight: 500;
    color: #0f172a;
    text-align: right;
    max-width: 60%;
}

.imoveis55-detail-description {
    margin-top: 25px;
}

.imoveis55-detail-description h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.imoveis55-description-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #334155;
}

/* Call to Action WhatsApp CTA Button */
.imoveis55-cta-container {
    margin-top: 30px;
}

.imoveis55-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--im55-btn, #22c55e);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.25s ease;
}

.imoveis55-btn-whatsapp:hover {
    background-color: var(--im55-btn-hover, #16a34a);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
    transform: translateY(-2px);
}

.imoveis55-btn-whatsapp:active {
    transform: translateY(0);
}

/* Error Box */
.imoveis55-error-box {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
}

.imoveis55-error-box h3 {
    color: #e11d48;
    margin-bottom: 10px;
}

.imoveis55-error-box p {
    color: #4c0519;
    margin-bottom: 20px;
}

/* ==========================================
   5. LIGHTBOX / ZOOM MODAL STYLES
   ========================================== */
.imoveis55-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imoveis55-lightbox.active {
    opacity: 1;
}

.imoveis55-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 100001;
    line-height: 1;
}

.imoveis55-lightbox-close:hover {
    color: var(--im55-primary, #2ecc71);
}

.imoveis55-lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imoveis55-lightbox-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    display: block;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.imoveis55-lightbox.active .imoveis55-lightbox-content {
    transform: scale(1);
}

/* ==========================================
   6. DISCRETE REPORT ABUSE MODAL POPUP
   ========================================== */
.imoveis55-modal-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.imoveis55-modal-overlay.active {
    display: flex;
}

.imoveis55-modal-card {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.imoveis55-modal-overlay.active .imoveis55-modal-card {
    transform: translateY(0);
    opacity: 1;
}

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

.imoveis55-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.imoveis55-modal-header h3 i {
    color: #dc2626;
}

.imoveis55-modal-close-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.imoveis55-modal-close-btn:hover {
    color: #475569;
}

#imoveis55-abuse-form {
    padding: 20px;
}

.im55-modal-field {
    margin-bottom: 16px;
}

.im55-modal-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 6px;
}

.im55-modal-field input[type="email"],
.im55-modal-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.im55-modal-field input[type="email"]:focus,
.im55-modal-field textarea:focus {
    border-color: var(--im55-primary, #2ecc71);
}

.im55-response-message {
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
}

.im55-response-message.success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.im55-response-message.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

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

.imoveis55-modal-btn-submit {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.imoveis55-modal-btn-submit:hover {
    background: #b91c1c;
}

.imoveis55-modal-btn-cancel {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.imoveis55-modal-btn-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================== */

@media (max-width: 1024px) {
    .imoveis55-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .imoveis55-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .imoveis55-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .imoveis55-layout-toggle {
        justify-content: center;
    }

    .imoveis55-detail-layout {
        flex-direction: column;
    }

    .imoveis55-detail-gallery {
        max-width: 100%;
        width: 100%;
    }

    .imoveis55-slider-container {
        height: 380px;
    }

    .imoveis55-detail-info {
        width: 100%;
        position: static;
    }
}

@media (max-width: 480px) {
    .imoveis55-grid {
        grid-template-columns: 1fr;
    }

    .imoveis55-slider-container {
        height: 280px;
    }

    .imoveis55-filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .im55-filter-item {
        min-width: 100%;
    }

    .imoveis55-detail-share-box {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    
    .imoveis55-detail-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}
