/* Catalog Page Styles */
.catalog-page {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Force Light Header on Catalog Page */
.catalog-page header {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: var(--shadow-sm) !important;
}

.catalog-page .main-nav a,
.catalog-page .lang-switch a {
    color: var(--navy-blue) !important;
}

.catalog-page .mobile-toggle span {
    background: var(--navy-blue) !important;
}

.catalog-page .logo img {
    filter: none !important;
}

.catalog-hero {
    padding: 140px 0 20px;
    background-color: var(--bg-light);
    color: var(--navy-blue);
    position: relative;
}

.catalog-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 30px;
    text-transform: none;
    font-weight: 700;
}

/* Updated Arrow Style */
.nav-btn {
    background: var(--white);
    color: var(--navy-blue);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    border-color: var(--navy-blue);
    color: var(--navy-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: var(--navy-blue);
    border-color: var(--navy-blue);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(31, 46, 62, 0.2);
}

/* Property Grid */
.catalog-grid-section {
    padding: 15px 0 100px;
    background-color: var(--bg-light);
}

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

/* Property Card */
.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-media .slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.card-media .slide-img.active {
    display: block;
}

.card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-sale {
    background: #28a745;
    color: white;
}

.badge-region {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .slider-nav {
    opacity: 1;
}

.nav-btn {
    background: var(--white);
    color: var(--navy-blue);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    border-color: var(--navy-blue);
    color: var(--navy-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    /* Allow info section to grow and push footer down */
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-blue);
    min-height: 2.8em;
    /* Ensure at least 2 lines for uniform height */
}

.readiness-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.readiness-text {
    font-size: 0.8rem;
    color: var(--text-grey);
}

.readiness-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.readiness-fill {
    height: 100%;
    background: var(--primary-gold);
    width: 0;
    transition: width 1s ease;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 10px;
}

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

.spec-label {
    font-size: 0.75rem;
    color: var(--text-grey);
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.irr-value {
    color: #28a745;
}

.card-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
    /* Push footer to the very bottom */
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-blue);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-interest {
    background: var(--navy-blue);
    color: white;
}

.btn-interest:hover {
    background: var(--navy-blue-dark);
}

.btn-details {
    background: transparent;
    border: 1px solid var(--navy-blue);
    color: var(--navy-blue);
}

.btn-details:hover {
    background: rgba(31, 46, 62, 0.05);
}

.card-actions .btn {
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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