/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff; /* White background maintained */
    color: #54565a; /* Text color from palette */
    line-height: 1.6;
    padding-top: 0; /* Will be set for pages with fixed header */
    padding-bottom: 0; /* Remove space below footer */
    margin-bottom: 0; /* Remove space below footer */
    overflow-y: scroll; /* Always show scrollbar to prevent layout shift */
    scrollbar-gutter: stable; /* Reserve space for scrollbar */
}

/* Text selection highlight color (match attuy_investimentos) */
::selection {
    background-color: #93dbd0;
    color: inherit;
}

::-moz-selection {
    background-color: #93dbd0;
    color: inherit;
}

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

/* Login page styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #2d2a26;
    margin-bottom: 30px;
    margin-top: 20px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.9rem;
    color: #54565a;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #93dbd0;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    background-color: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:hover {
    border-color: #93dacf;
}

.form-input:focus {
    border-color: #93dacf;
    box-shadow: 0 2px 5px 1px rgba(147, 218, 207, 0.16);
}

.login-button {
    background-color: #93dacf;
    border: none;
    border-radius: 0;
    color: #2D2A26;
    font-size: 16px;
    padding: 12px 24px;
    cursor: pointer;
    height: 44px;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #93dbd0;
}

.login-button:active {
    background-color: #93dbd0;
}

/* Home page styles */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.logo-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    height: auto;
}

.logo {
    font-size: 2rem; /* Decreased from 4rem */
    font-weight: 400;
    color: #2d2a26; /* Darkest gray from palette */
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: #888; /* Grayish color from palette */
    margin-bottom: 40px;
}

.search-form {
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
    border: 1px solid #93dbd0; /* Border color from palette */
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.search-box:hover {
    box-shadow: 0 2px 5px 1px rgba(147, 218, 207, 0.16); /* Greenish accent shadow */
}

.search-box:focus-within {
    box-shadow: 0 2px 5px 1px rgba(147, 218, 207, 0.16); /* Greenish accent shadow */
    border-color: #93dacf; /* Greenish accent from palette */
}

.search-input {
    flex: 1;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    background-color: transparent;
}

.search-input:hover {
    /* Hover effect handled by parent .search-box */
}

.search-input:focus {
    /* Focus effect handled by parent .search-box:focus-within */
}

.search-button {
    background-color: #93dacf; /* Greenish accent from palette */
    border: none;
    border-left: 1px solid #93dbd0; /* Border color from palette */
    border-radius: 0;
    color: #2d2a26; /* Button text color from palette */
    font-size: 14px;
    padding: 11px 24px;
    cursor: pointer;
    min-width: 120px;
    height: 44px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #93dbd0; /* Hover background from palette */
}

.search-button:active {
    background-color: #93dbd0;
}

.hint {
    margin-top: 30px;
    color: #54565a; /* Text color from palette */
    font-size: 14px;
}

/* Results page styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(85, 86, 91, 0.15);
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform; /* Optimize for fixed positioning */
}

.header .navbar {
    padding: 10px 20px;
}

.header .navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    max-height: 45px;
    width: auto;
    display: block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.logo-text-data {
    color: #6bb5a8;
}

.logo-text-domus {
    color: #54565a;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    height: 44px;
    background-color: #ffffff;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    color: #54565a;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 12px;
    text-decoration: none;
}

.header-icon-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #54565a;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

/* Mobile search container - hidden on desktop */
.mobile-search-container {
    display: none;
}

.header-icon-btn:hover {
    background-color: #f1f4f3;
    border-color: #93dbd0;
    color: #2d2a26;
}

.header-icon-btn:active {
    transform: scale(0.95);
}

.header-icon-btn:focus-visible {
    outline: 2px solid #93dacf;
    outline-offset: 2px;
}

.header-filter {
    position: relative;
}

.header-filter .filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.header-filter .filter-dropdown.show {
    display: block;
}

/* Mobile Filter Drawer */
.filter-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.filter-drawer.show {
    pointer-events: auto;
}

.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 42, 38, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.filter-drawer-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.filter-drawer-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1002;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
}

.filter-drawer.show .filter-drawer-content {
    right: 0;
}

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid #e8e8e8;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d2a26;
    letter-spacing: -0.01em;
}

.filter-drawer-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #54565a;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-drawer-close:hover,
.filter-drawer-close:active {
    background-color: #f1f4f3;
    color: #2d2a26;
    transform: scale(0.95);
}

.filter-drawer-close:focus {
    outline: 2px solid #93dacf;
    outline-offset: 2px;
}

.filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f1f4f3;
}

.filter-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.filter-drawer-body::-webkit-scrollbar-track {
    background: #f1f4f3;
}

.filter-drawer-body::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 3px;
}

.filter-drawer-body::-webkit-scrollbar-thumb:hover {
    background-color: #b0b0b0;
}

.filter-drawer-section {
    padding: 20px 0;
    border-bottom: 1px solid #f1f4f3;
}

.filter-drawer-section:last-child {
    border-bottom: none;
}

.filter-drawer-section h4 {
    margin: 0 0 16px 0;
    padding: 0 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-drawer-body .filter-dropdown-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    color: #2d2a26;
    font-weight: 400;
    min-height: 48px;
    position: relative;
}

.filter-drawer-body .filter-dropdown-item:hover {
    background-color: #f8f9f8;
}

.filter-drawer-body .filter-dropdown-item:active {
    background-color: #f1f4f3;
    transform: scale(0.98);
}

.filter-drawer-body .filter-dropdown-item.active {
    background-color: #f1f4f3;
    border-left: 4px solid #93dacf;
    font-weight: 600;
    color: #2d2a26;
    padding-left: 16px;
}

.filter-drawer-body .filter-dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #93dacf;
}

.filter-drawer-body .filter-dropdown-item span {
    display: block;
    width: 100%;
}

.logo-small {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2d2a26; /* Darkest gray from palette - matching main page */
}

.logo-small a {
    color: #2d2a26; /* Darkest gray from palette - matching main page */
    text-decoration: none;
}

.logo-small a:hover {
    color: #2d2a26; /* Darkest gray from palette - matching main page */
    text-decoration: underline;
}

.search-form-inline {
    flex: 0 1 auto;
    min-width: 300px;
    max-width: 500px;
    margin: 0;
}

.search-box-inline {
    display: flex;
    gap: 0;
    align-items: center;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.search-box-inline:hover {
    border-color: #93dbd0;
    box-shadow: 0 2px 8px rgba(147, 218, 207, 0.12);
}

.search-box-inline:focus-within {
    border-color: #93dacf;
    box-shadow: 0 0 0 3px rgba(147, 218, 207, 0.1);
}

.search-input-inline {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    background-color: transparent;
    color: #2d2a26;
    font-family: 'Poppins', sans-serif;
}

.search-input-inline::placeholder {
    color: #888;
}

.search-input-inline:focus {
    /* Focus effect handled by parent .search-box-inline:focus-within */
}

.search-button-inline {
    background-color: #93dacf;
    border: none;
    border-left: 1.5px solid #d0d0d0;
    border-radius: 0 8px 8px 0;
    color: #2D2A26;
    font-size: 15px;
    font-weight: 600;
    padding: 0 24px;
    cursor: pointer;
    height: 44px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}

.search-button-inline:hover {
    background-color: #93dbd0;
}

.search-button-inline:active {
    background-color: #93dbd0;
    transform: scale(0.98);
}

.results-container {
    margin-top: 20px;
    background-color: #F1F4F3;
}

.results-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

@media (max-width: 768px) {
    .results-header {
        margin-top: 20px;
    }
}

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

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2d2a26; /* Darkest gray from palette - matching main page logo */
    margin-bottom: 8px;
    margin-top: 0;
}

.filter-selected {
    color: #54565a; /* Text color from palette */
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.results-count {
    color: #54565a; /* Text color from palette */
    font-size: 14px;
}

/* Cards container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .results-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }
    
    .results-header-left {
        flex: 1;
    }
    
    .filter-dropdown-container {
        display: none;
    }
    
    .filter-dropdown-container-mobile {
        position: relative;
        display: inline-block;
        margin-top: 12px;
    }
    
    .filter-dropdown {
        min-width: 160px;
        max-width: calc(100vw - 32px);
        left: 0;
        right: auto;
    }
    
    .filter-icon-btn {
        padding: 10px 12px;
    }
    
    .view-toggle {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        margin: 20px 0;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        border-radius: 10px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-field {
        flex-direction: column;
        gap: 6px;
    }
    
    .field-label {
        min-width: auto;
        margin-bottom: 2px;
    }
    
    .status-badge {
        font-size: 0.75rem;
    }
    
    .card-id-badge {
        font-size: 0.65rem;
        padding: 4px 7px;
        top: 8px;
        left: 8px;
    }
    
    .detail-id {
        font-size: 0.75rem;
        padding: 5px 9px;
        top: 8px;
        left: 8px;
    }
    
    .detail-title {
        margin-top: 40px;
    }
}

/* Card styles */
.card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f1f4f3;
    position: relative;
    flex-shrink: 0;
    border: 1px solid #d0d0d0;
    border-radius: 12px 12px 0 0;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-house-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover .card-image img:not(.card-house-icon) {
    transform: scale(1.05);
}

.card:hover .card-house-icon {
    opacity: 0.9;
}

.card:active .card-house-icon {
    transform: translate(-50%, -50%);
}

/* Card ID Badge - positioned in top-right corner of image */
.card-id-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2d2a26;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.card:hover .card-id-badge {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.card-info-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0; /* Removed bottom margin */
}

.card-stress-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    padding-top: 12px;
}

/* Card Sections */
.card-section {
    padding: 0;
    border-radius: 0;
    margin: 0;
    min-height: 0;
}

.card-section.property-info {
    background-color: #ffffff;
    height: 260px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    margin-top: 0;
    margin-right: -16px;
    margin-bottom: 0 !important;
    margin-left: -16px;
    padding: 12px 16px 0 16px;
    width: calc(100% + 32px);
}

.card-section.property-info .card-field:last-child {
    margin-bottom: 0;
}

.card-section.legal-status {
    background-color: #ffffff;
    margin-top: 0 !important;
    margin-right: -16px;
    margin-bottom: 0;
    margin-left: -16px;
    padding: 0 16px 12px 16px;
    width: calc(100% + 32px);
}

.section-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
    margin-top: 0;
    padding-bottom: 8px;
    padding-top: 0;
    border-bottom: 2px solid #93dbd0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 16px;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #93dbd0;
    letter-spacing: 0.8px;
}

.card-section.property-info .section-header {
    border-bottom-color: #d0d0d0;
    color: #54565a;
}

.card-field {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.card-field:last-child {
    margin-bottom: 0;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Status badges - colors progress from white to black based on auction proximity */
.status-sem-previsao {
    color: #54565a;
}

.status-em-breve {
    color: #54565a;
}

.status-muito-em-breve {
    color: #55565b;
}

.status-agendado,
.status-agendado- {
    color: #2d2a26;
}

/* Card icons */
.card-icons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.card-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #54565a;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.card-icon-btn:hover {
    color: #93dbd0;
    background-color: #f1f4f3;
    transform: scale(1.1);
}

.card-icon-btn:active {
    transform: scale(0.95);
    background-color: #e8e8e8;
}

.card-icon-btn:focus {
    outline: 2px solid #93dbd0;
    outline-offset: 2px;
}

.card-icon-btn.heart-icon:hover {
    color: #e74c3c;
    background-color: #fee;
}

.card-field-small {
    font-size: 0.9rem;
    color: #54565a; /* Text color from palette */
    margin-bottom: 8px;
}

.field-label {
    font-weight: 600;
    color: #2d2a26;
    min-width: 140px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.field-value {
    color: #54565a;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.field-value.highlight {
    color: #93dacf; /* Greenish accent from palette */
    font-weight: 600;
}

/* Messages */
.error-message {
    background-color: #f1f4f3; /* Brighter background from palette */
    color: #55565b; /* Darker text from palette */
    padding: 12px 16px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #55565b; /* Border using palette color */
}

.info-message {
    background-color: #f1f4f3; /* Brighter background from palette */
    color: #54565a; /* Text color from palette */
    padding: 12px 16px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #93dacf; /* Greenish accent border from palette */
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
        max-width: 100%;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .logo {
        font-size: 1.5rem; /* Adjusted for mobile */
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-button {
        width: 100%;
    }
    
    body {
        padding-top: 188px; /* Header (60px) + mobile search container (68px) + spacing (60px) */
    }

    .results-container {
        padding-top: 0;
        margin-top: 0;
    }

    .container {
        padding-top: 20px;
        margin-top: 0; /* Ensure no negative margin */
        position: relative; /* Ensure container respects body padding */
    }
    
    /* Ensure detail-container has proper top spacing on mobile */
    .container:has(.detail-container) {
        padding-top: 20px;
        margin-top: 0;
        position: relative; /* Ensure container respects body padding */
    }
    
    .detail-container {
        margin-top: 0; /* Ensure no negative margin */
        position: relative; /* Ensure it respects container positioning */
    }
    
    /* Ensure first element in container has proper spacing */
    .container > *:first-child {
        margin-top: 0;
    }
    
    /* Ensure results-container first child has spacing */
    .results-container > *:first-child {
        margin-top: 0;
    }
    
    /* Ensure results-container itself has top spacing on mobile */
    .results-container {
        margin-top: 0;
        padding-top: 0;
    }

    .results-header {
        margin-top: 0;
        padding-top: 0;
    }

    .results-container .info-message {
        margin-top: 20px; /* Ensure message is visible below header on mobile */
        margin-bottom: 20px;
        scroll-margin-top: 200px; /* Account for fixed header when scrolling */
    }

    .header .navbar {
        padding: 10px 15px;
    }

    .header {
        height: 60px;
    }

    .header .navbar-content {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
    }

    .header-logo {
        flex-shrink: 0;
    }

    .header-logo-img {
        max-height: 35px;
    }

    .logo-text {
        font-size: 0.9rem;
    }
    
    /* Hide search form in header on mobile */
    .header .search-form-inline {
        display: none;
    }

    .header-actions {
        position: static;
        right: auto;
        gap: 8px;
        display: flex;
        flex-shrink: 0;
    }

    .header-icon-btn {
        min-width: 40px;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        padding: 0;
        gap: 0;
        justify-content: center;
    }

    .header-icon-label {
        display: none; /* Hide labels on mobile to save space */
    }

    /* Show filter drawer on mobile */
    .filter-drawer {
        display: block;
    }
    
    /* Ensure drawer doesn't block clicks when closed */
    .filter-drawer:not(.show) {
        pointer-events: none;
    }
    
    .filter-drawer:not(.show) .filter-drawer-overlay,
    .filter-drawer:not(.show) .filter-drawer-content {
        pointer-events: none;
    }

    /* Hide desktop dropdown on mobile */
    .header-filter .filter-dropdown {
        display: none !important;
    }

    /* Mobile search bar below header */
    .mobile-search-container {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 998;
        background-color: #ffffff;
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        overflow: visible;
    }

    /* Container padding-top is set earlier in mobile media query - do not override */

    .results-header {
        margin-top: 0;
        padding-top: 40px;
    }

    .results-header h2 {
        margin-top: 0;
    }

    .mobile-search-container .search-form-inline {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .mobile-search-container .search-box-inline {
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-search-container .search-input-inline {
        height: 44px;
        font-size: 16px;
        padding: 0 16px;
        flex: 1;
        min-width: 0; /* Allow input to shrink below its content size */
        box-sizing: border-box;
    }

    .mobile-search-container .search-button-inline {
        height: 44px;
        font-size: 15px;
        padding: 0 20px;
        min-width: 100px;
        max-width: 120px;
        flex-shrink: 0; /* Prevent button from shrinking */
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0;
        line-height: 1;
        box-sizing: border-box;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .field-label {
        min-width: 120px;
    }
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: flex-end;
}

.view-btn {
    background-color: #f1f4f3;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #55565b;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.view-btn:hover {
    background-color: #e8e8e8;
}

.view-btn.active {
    background-color: #93dbd0;
    color: #2d2a26;
    border-color: #93dbd0;
}

/* Filter dropdown container - now in results-header */
.filter-dropdown-container {
    position: relative;
    display: inline-block;
}

.filter-dropdown-container-mobile {
    display: none;
}


.filter-icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #54565a;
    transition: all 0.2s ease;
}

.filter-icon-btn:hover {
    background-color: #f1f4f3;
    border-color: #93dbd0;
    color: #2d2a26;
}

.filter-icon-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.filter-icon-text {
    white-space: nowrap;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.filter-dropdown.show {
    display: block;
}

.filter-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #54565a;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f4f3;
}

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

.filter-dropdown-item:hover {
    background-color: #f1f4f3;
    color: #2d2a26;
}

.filter-dropdown-item.active {
    background-color: #93dbd0;
    color: #2d2a26;
    font-weight: 600;
}

.filter-dropdown-item.active:hover {
    background-color: #93dbd0;
}


/* Legacy filter-btn styles for backward compatibility */
.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #54565a;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #f1f4f3;
    border-color: #93dbd0;
    color: #2d2a26;
}

.filter-btn.active {
    background-color: #93dbd0;
    color: #2d2a26;
    border-color: #93dbd0;
    font-weight: 600;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 600px;
    margin-top: 20px;
    border: 1px solid #93dbd0;
    border-radius: 8px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

/* Map Popup */
/* Leaflet popup container styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    min-width: 220px;
}

.leaflet-popup-tip {
    background: #ffffff;
    border: 0.5px solid #d0d0d0;
}

.map-popup {
    padding: 16px;
    min-width: 200px;
}

.map-popup-title {
    color: #2d2a26;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.map-popup-address {
    color: #54565a;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.map-popup-btn {
    background-color: #93dacf;
    border: none;
    border-radius: 4px;
    color: #2d2a26;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
    display: block;
    text-align: center;
}

.map-popup-btn:hover {
    background-color: #93dbd0;
    transform: translateY(-1px);
}

.map-popup-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 15px;
    border: 1px solid #93dbd0;
    border-radius: 8px;
    width: 35%;
    max-width: 35%;
    max-height: 80vh;
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 4px 12px rgba(85, 86, 91, 0.3);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

#modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.modal-close {
    color: #54565a;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    position: absolute;
    right: 15px;
    top: 15px;
}

.modal-close:hover,
.modal-close:focus {
    color: #2d2a26;
}

#modal-body h3 {
    color: #2d2a26;
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 1.15rem;
    line-height: 1.2;
}

/* Modal Sections */
.modal-section {
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 0;
}

.modal-section.property-info {
    background-color: #ffffff;
    margin: 0 -15px;
    padding: 12px 15px;
    width: calc(100% + 30px);
}

.modal-section.legal-status {
    background-color: #ffffff;
    margin: 0 -15px;
    padding: 12px 15px;
    width: calc(100% + 30px);
}

.modal-section .section-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #93dbd0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.modal-section.property-info .section-header {
    border-bottom-color: #d0d0d0;
    color: #54565a;
}

.modal-field {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f1f4f3;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #54565a; /* Same color as field-value for dynamically inserted texts */
}

.modal-section .modal-field:last-child {
    border-bottom: none;
}

.modal-field strong {
    color: #54565a;
    display: inline-block;
    min-width: 120px;
    font-size: 0.85rem;
}

.modal-field .highlight {
    color: #93dacf;
    font-weight: 600;
}

/* Modal detail button container */
.modal-detail-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.modal-detail-btn {
    background-color: #93dacf;
    border: 1px solid #93dbd0;
    border-radius: 4px;
    color: #2d2a26;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.modal-detail-btn:hover {
    background-color: #93dbd0;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(85, 86, 91, 0.2);
}

.modal-detail-btn:active {
    transform: translateY(0);
}

/* Modal Pagination */
.modal-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #93dbd0;
    flex-shrink: 0;
}

.pagination-btn {
    background-color: #93dbd0;
    color: #2d2a26;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #7bc4b8;
}

.pagination-btn:disabled {
    background-color: #d0d0d0;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.lawsuit-counter {
    color: #54565a;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive adjustments for map */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    .view-toggle {
        justify-content: flex-end;
    }
    
    .results-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }
    
    .results-header-left {
        flex: 1;
    }
    
    .filter-dropdown {
        min-width: 160px;
        max-width: calc(100vw - 32px);
        left: auto;
        right: 0;
    }
    
    .filter-icon-btn {
        padding: 10px 12px;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
    }
    
    .modal-content {
        width: 90%;
        max-width: 90%;
        max-height: 85vh;
        padding: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    #modal-body h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .card-section {
        padding: 10px;
    }
    
    .section-header {
        font-size: 0.85rem;
    }
    
    .modal-section {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .modal-section .section-header {
        font-size: 0.8rem;
        margin-bottom: 4px;
        padding-bottom: 3px;
    }
    
    .modal-field {
        margin-bottom: 4px;
        padding-bottom: 4px;
        font-size: 0.8rem;
    }
    
    .modal-field strong {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .modal-pagination {
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .modal-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-btn {
        width: 100%;
        padding: 12px;
    }
    
    .lawsuit-counter {
        order: -1;
    }
}

/* Detail Page Styles */
.detail-back {
    margin: 0 0 28px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.back-link {
    color: #54565a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: #2d2a26;
    gap: 8px;
}

/* Remove right padding from container when detail-container is present */
.container:has(.detail-container) {
    padding-right: 0;
}

.detail-container {
    width: 1000px; /* Width set to 1000px */
    max-width: calc(100vw - ((100vw - 1200px) / 2) * 2 - 320px - 8px); /* Responsive: viewport width minus margins, CTA width (320px), and gap */
    margin: 0;
    margin-left: calc((100% - 1200px) / 2); /* Align left edge with 1200px container */
    margin-right: 0 !important; /* Force no right margin - the orange area you see */
    padding: 24px 20px;
    background-color: #F1F4F3;
    position: relative;
    z-index: 10; /* Higher z-index than CTA to appear above it */
    box-sizing: border-box; /* Include padding in width calculation */
    overflow: hidden; /* Prevent content from extending beyond container */
}

.detail-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    z-index: 10; /* Higher z-index than CTA to appear above it */
}

/* Hero Section */
.detail-hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f4f3 0%, #e8e8e8 100%);
    border: 1px solid #d0d0d0;
    border-radius: 16px 16px 0 0;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid #d0d0d0;
    border-radius: 16px 16px 0 0;
    pointer-events: none;
    z-index: 1;
}

.detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
    opacity: 0.7;
}

.detail-id-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.8125rem; /* Reduced from 0.875rem */
    font-weight: 700;
    color: #2d2a26;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 32px;
    padding: 40px 0;
}

/* Header */
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.detail-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #2d2a26;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    letter-spacing: -0.01em;
}

.detail-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #93dacf;
    color: #2d2a26;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(147, 218, 207, 0.2);
    border: none;
}

/* Opportunity Summary */
.opportunity-summary {
    background-color: #f8f9f8;
    border-left: 4px solid #93dacf;
    padding: 24px 28px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.opportunity-summary p {
    margin: 0;
    font-size: 0.9375rem; /* Reduced from 1.0625rem */
    line-height: 1.7;
    color: #2d2a26;
}

/* Detail Sections - Modern card-free design */
.detail-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.detail-section-header i,
.detail-section-header img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.property-section .detail-section-header i {
    color: #2d2a26;
}

.legal-section .detail-section-header i {
    color: #2d2a26;
}

.detail-section-header img.detail-section-icon {
    filter: brightness(0) saturate(100%) invert(75%) sepia(50%) saturate(500%) hue-rotate(130deg) brightness(95%) contrast(90%);
}

.detail-section-title {
    margin: 0;
    font-size: 1.25rem; /* Reduced from 1.5rem */
    font-weight: 600;
    color: #2d2a26;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Address Card - inherits border styling from .detail-card */

.address-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-line {
    margin: 0;
    font-size: 1rem; /* Reduced from 1.125rem */
    color: #2d2a26;
    font-weight: 500;
    line-height: 1.6;
}

.address-line:first-child {
    font-weight: 600;
    font-size: 1.125rem; /* Reduced from 1.25rem */
    margin-bottom: 6px;
    color: #2d2a26;
}

.address-complement {
    margin: 8px 0 0 0;
    font-size: 0.875rem; /* Reduced from 0.95rem */
    color: #888;
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid #f1f4f3;
}

/* Property Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.property-detail-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    transition: background-color 0.2s ease;
}

.property-detail-item:hover {
    background-color: #fafbfa;
    margin: 0 -16px;
    padding: 20px 16px;
    border-radius: 8px;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f8f9f8;
    border-radius: 8px;
    color: #93dacf;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: none;
    border: 1px solid #e8e8e8;
}

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

.detail-item-label {
    font-size: 0.75rem; /* Reduced from 0.8125rem */
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.detail-item-value {
    font-size: 1rem; /* Reduced from 1.125rem */
    color: #2d2a26;
    font-weight: 500;
    line-height: 1.6;
    display: block;
    word-wrap: break-word;
}

.detail-item-value.highlight {
    color: #93dacf;
    font-size: 1rem; /* Reduced from 1.125rem */
    font-weight: 700;
}

/* Legal Card - inherits border styling from .detail-card */

.legal-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-label {
    font-size: 0.8125rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.legal-value {
    font-size: 1.0625rem;
    color: #2d2a26;
    font-weight: 600;
    line-height: 1.5;
}

.legal-value.highlight {
    color: #93dacf;
    font-size: 1rem; /* Reduced from 1.125rem */
    font-weight: 700;
}

.detail-id {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d2a26;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.detail-info-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
}

.detail-info-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-stress-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    border-top: none;
}

.detail-stress-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #d0d0d0;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-section {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-section.property-info {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
}

.detail-section.legal-status {
    background-color: #ffffff;
    border: 1px solid #93dbd0;
}

.detail-section .section-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #93dbd0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section.property-info .section-header {
    border-bottom-color: #d0d0d0;
    color: #54565a;
}

.section-title {
    color: #2d2a26;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #93dbd0;
    letter-spacing: 0.01em;
}

.detail-field {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.6;
    padding: 12px 0;
    border-bottom: 1px solid #f1f4f3;
}

.detail-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-field .field-label {
    font-weight: 600;
    color: #2d2a26;
    min-width: 160px;
    flex-shrink: 0;
}

.detail-field .field-value {
    color: #54565a;
    flex: 1;
    min-width: 200px;
}

.detail-field .field-value:empty::before {
    content: 'N/A';
    color: #888;
    font-style: italic;
}

.detail-field .highlight {
    color: #93dacf; /* Same color as field-value.highlight for consistency */
    font-weight: 600;
}

.detail-pagination {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #93dbd0;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pagination-controls .pagination-btn {
    background-color: #93dbd0;
    color: #2d2a26;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.pagination-controls .pagination-btn:hover:not(.disabled) {
    background-color: #7bc4b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-controls .pagination-btn:active:not(.disabled) {
    transform: translateY(0);
}

.pagination-controls .pagination-btn.disabled {
    background-color: #f1f4f3;
    color: #888;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-controls .lawsuit-counter {
    color: #54565a;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    background-color: #f1f4f3;
    border-radius: 6px;
}

/* CTA Section */
.cta-wrapper.cta-fixed {
    position: fixed;
    top: 200px; /* Aligned with detail-hero top: accounting for body padding, container padding, detail-back, and detail-container padding */
    left: calc((100% - 1200px) / 2 + 1000px + 8px); /* Position: container left + container width (1000px) + gap (8px) */
    transform: none; /* Remove vertical centering */
    z-index: 0; /* Lower z-index so it doesn't appear above detail-container */
    width: 320px; /* Increased from 280px */
}

/* Fallback for smaller screens */
@media (max-width: 1600px) {
    .cta-wrapper.cta-fixed {
        left: auto;
        right: 20px;
    }
    
    .detail-container {
        max-width: 1200px;
        margin-right: auto;
    }
}

.cta-wrapper.cta-mobile {
    display: none; /* Hidden on desktop */
}

/* Hide fixed CTA and adjust detail-container when screen is too narrow */
@media (max-width: 1400px) {
    .cta-wrapper.cta-fixed {
        display: none !important;
    }
    
    .container .cta-wrapper.cta-mobile {
        display: block !important;
        position: relative !important;
        top: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 16px;
        margin-bottom: 16px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Match detail-container structure - no padding on wrapper, padding on inner element */
    .container .cta-wrapper.cta-mobile .cta-minimal {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .detail-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 24px 20px;
    }
    
    .container:has(.detail-container) {
        padding-right: 20px;
    }
}

.cta-section {
    margin: 0;
    padding: 0;
}

.cta-minimal {
    text-align: left; /* Left align for info sections */
    background-color: #ffffff;
    padding: 28px 20px 20px 20px; /* Reduced bottom padding from 28px to 20px */
    border-radius: 12px; /* Increased for modern look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer, more modern shadow */
    border: 1px solid #e8e8e8;
}

.cta-info-section {
    margin-bottom: 24px;
}

.cta-info-item {
    margin-bottom: 16px;
}

.cta-info-item:last-child {
    margin-bottom: 0;
}

.cta-info-label {
    display: block;
    font-size: 0.75rem; /* Reduced from 0.8125rem */
    color: #888; /* Same color as detail-item-label */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cta-info-value {
    display: block;
    font-size: 1rem; /* Reduced from 1.125rem */
    color: #2d2a26; /* Same color as detail-item-value and header button text */
    font-weight: 500;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 0;
    text-align: center; /* Center buttons text */
}

.cta-question {
    margin: 0 0 8px 0;
    font-size: 0.875rem;
    color: #2d2a26;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.cta-button-primary {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background-color: #93dacf; /* Greenish color */
    color: #2d2a26; /* Same color as header button text */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem; /* Reduced from 0.9375rem */
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(147, 218, 207, 0.2);
    border: none;
    cursor: pointer;
}

.cta-button-primary:hover {
    background-color: #7bc4b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(147, 218, 207, 0.3);
    text-decoration: none;
}

.cta-button-primary:active {
    transform: translateY(0);
}

.cta-button-secondary {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background-color: #f0f0f2;
    color: #2d2a26; /* Same color as header button text */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem; /* Reduced from 0.9375rem */
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button-secondary:hover {
    background-color: #e0e0e2;
    transform: translateY(-1px);
    text-decoration: none;
}

.cta-button-secondary:active {
    transform: translateY(0);
}

.cta-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.cta-icon-btn {
    background: none;
    border: none;
    color: #54565a;
    font-size: 1rem; /* Reduced from 1.125rem */
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon-btn:hover {
    color: #2d2a26;
    background-color: #f8f9f8;
}

.cta-icon-btn:active {
    transform: scale(0.95);
}

.cta-link-inline {
    color: #93dacf;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cta-link-inline:hover {
    color: #7bc4b8;
    text-decoration: underline;
}

.cta-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cta-link-manual {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #54565a;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.cta-link-manual i {
    font-size: 1rem;
    color: #93dacf;
}

.cta-link-manual:hover {
    color: #2d2a26;
    border-color: #93dacf;
    background-color: #f8f9f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cta-link-manual:active {
    transform: translateY(0);
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    min-width: 240px;
    justify-content: center;
}

.cta-button i {
    font-size: 1.125rem;
}

.cta-button-primary {
    background-color: #93dacf;
    color: #2d2a26;
    box-shadow: 0 2px 8px rgba(147, 218, 207, 0.3);
}

.cta-button-primary:hover {
    background-color: #7bc4b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 218, 207, 0.4);
}

.cta-button-primary:active {
    transform: translateY(0);
}

.cta-button-secondary {
    background-color: #ffffff;
    color: #2d2a26;
    border: 2px solid #93dacf;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cta-button-secondary:hover {
    background-color: #f8f9f8;
    border-color: #7bc4b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cta-button-secondary:active {
    transform: translateY(0);
}

/* Consultant Modal */
.consultant-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(45, 42, 38, 0.7);
    backdrop-filter: blur(4px);
}

.consultant-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 32px;
    border: 1px solid #93dbd0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.consultant-modal-close {
    color: #54565a;
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 20px;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: color 0.2s ease;
}

.consultant-modal-close:hover,
.consultant-modal-close:focus {
    color: #2d2a26;
}

.consultant-modal-content h3 {
    color: #2d2a26;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
    padding-right: 40px;
}

.consultant-modal-content p {
    color: #54565a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.consultant-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.consultant-modal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #93dacf;
    color: #2d2a26;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.consultant-modal-button:hover {
    background-color: #7bc4b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(147, 218, 207, 0.3);
}

.consultant-modal-button:active {
    transform: translateY(0);
}

/* Other properties section */
.other-properties-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.other-properties-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #54565a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.no-other-properties-message {
    font-size: 1rem;
    color: #888;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    font-style: italic;
}

/* Responsive adjustments for detail page */
@media (max-width: 768px) {
    .detail-container {
        padding: 0;
        background-color: #F1F4F3;
    }

    .detail-content {
        padding: 0;
        background-color: #ffffff;
        border-radius: 16px;
        box-shadow: none;
    }

    .detail-hero {
        height: 280px;
    }

    .detail-hero-icon {
        width: 75%;
        height: 75%;
        max-width: 250px;
        max-height: 250px;
    }

    .card-house-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0;
        width: 100%;
    }
    
    /* Hide fixed CTA on mobile */
    .cta-wrapper.cta-fixed {
        display: none;
    }
    
    /* Show mobile CTA - match detail-container width exactly */
    .container .cta-wrapper.cta-mobile {
        display: block !important;
        position: relative !important;
        top: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 16px;
        margin-bottom: 16px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Match detail-container padding structure */
    .container .cta-wrapper.cta-mobile .cta-minimal {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .detail-hero {
        border-radius: 0;
        width: 100%;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .opportunity-summary {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
        background-color: #f8f9f8;
        border-left: 4px solid #93dacf;
        padding: 24px 28px;
        border-radius: 0 8px 8px 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .opportunity-summary p {
        color: #2d2a26;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-status-badge {
        align-self: flex-start;
    }

    .detail-section {
        margin-bottom: 48px;
        padding-bottom: 32px;
        width: 100%;
        box-sizing: border-box;
    }

    .detail-section-header {
        margin-bottom: 24px;
    }

    .detail-section-header i,
    .detail-section-header img {
        width: 28px;
        height: 28px;
    }

    .detail-section-header i {
        font-size: 1.25rem;
        width: 28px;
    }

    .detail-section-title {
        font-size: 1.25rem;
    }

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

    .property-detail-item {
        padding: 16px 0;
    }

    .property-detail-item:hover {
        margin: 0 -12px;
        padding: 16px 12px;
    }

    .detail-item-label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .detail-item-value {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-controls .pagination-btn {
        width: 100%;
    }
    
    .pagination-controls .lawsuit-counter {
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    /* CTA Section Mobile */
    .cta-wrapper.cta-mobile .cta-minimal {
        padding: 20px;
        border-radius: 12px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure CTA mobile wrapper matches detail-container width exactly */
    .container .cta-wrapper.cta-mobile {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .cta-info-section {
        margin-bottom: 20px;
    }
    
    .cta-info-item {
        margin-bottom: 12px;
    }
    
    .cta-info-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    
    .cta-info-value {
        font-size: 1rem;
    }
    
    .cta-actions {
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .cta-icons {
        gap: 12px;
        padding-top: 4px;
    }
    
    .cta-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Consultant Modal Mobile */
    .consultant-modal-content {
        margin: 20% auto;
        padding: 24px 20px;
        width: 95%;
    }
    
    .consultant-modal-content h3 {
        font-size: 1.25rem;
        padding-right: 30px;
    }
    
    .consultant-modal-content p {
        font-size: 0.9375rem;
    }
    
    .consultant-modal-button {
        width: 100%;
    }
}

/* Section Content */
.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
}

/* Contact Section Styles */
#contato {
    background-color: #2d2a26; /* darker backgrounds */
    color: #ffffff; /* texts against darker backgrounds */
    padding: 60px 20px;
    margin-top: 60px;
}

#contato .section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#contato h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    font-size: 1.1rem;
    color: #ffffff; /* ensure icons/text contrast on darker background */
    transition: color 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 25px; /* gap between icon and text */
}

.social-icons a i {
    font-size: 1.4rem; /* slightly increased icon size */
}

.social-icons a:hover {
    color: #93dacf; /* styling hover on darker background */
    text-decoration: none;
}

/* Footer Styles */
footer {
    background-color: #f1f4f3; /* same as sobre nós section */
    color: #54565a; /* same as sobre nós section text */
    text-align: center;
    padding: 20px;
    margin-bottom: 0; /* Remove space below footer */
}

/* Responsive contact and footer */
@media (max-width: 768px) {
    #contato {
        margin-top: 40px;
        padding: 40px 15px;
    }
    
    #contato h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .social-icons {
        flex-direction: column;
        gap: 15px;
    }
    
    footer {
        padding: 15px;
        margin-bottom: 0; /* Remove space below footer on mobile */
    }
}

/* Under Construction Page */
.under-construction {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.under-construction i {
    font-size: 8rem;
    color: #93dacf;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Info Icon and Tooltip Styles */
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: inherit;
    font-size: 0.85rem;
    vertical-align: middle;
    transition: opacity 0.2s;
    opacity: 0.7;
}

.info-icon:hover {
    opacity: 1;
}

.info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background-color: #2d2a26;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 1.5;
    white-space: nowrap;
    max-width: 280px;
    white-space: normal;
    width: max-content;
    text-align: justify;
    text-transform: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d2a26;
}

.info-icon-wrapper:hover .info-tooltip,
.info-icon-wrapper.active .info-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Mobile: show tooltip on click/tap */
@media (max-width: 768px) {
    .info-icon-wrapper.active .info-tooltip {
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .under-construction {
        min-height: 50vh;
        padding: 30px 20px;
    }
    
    .under-construction i {
        font-size: 6rem;
    }
}

