/* Off-Plan Prices Page Styling */

.offplan-prices {
    min-height: 100vh;
    padding-top: 80px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 2rem;
}

/* Property Card */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Property Image */
.property-image {
    position: relative;
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

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

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

.property-name {
    position: relative;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    text-transform: capitalize;
    word-break: break-word;
}

/* Property Details */
.property-details {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    margin-bottom: 0px;
    font-size: 0.875rem;
    flex-grow: 1;
}

.pricing-table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid #e9ecef;
    text-align: left;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody td {
    padding: 0.75rem 0.25rem;
    color: #495057;
}

.pricing-table tbody td:first-child {
    font-weight: 600;
    color: #212529;
}

.pricing-table tbody td:last-child {
    font-weight: 700;
    color: #1f1f1f;
}

/* Find Availability Button */
.btn-availability {
    width: 100%;
    background: #1f1f1f;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-availability:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-availability i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .offplan-prices {
        padding-top: 60px;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .property-image {
        padding: 1rem 0.75rem;
        min-height: 70px;
    }

    .property-name {
        font-size: 1rem;
    }

    .property-details {
        padding: 1rem;
    }

    .pricing-table {
        font-size: 0.813rem;
    }

    .pricing-table thead th {
        font-size: 0.688rem;
        padding: 0.4rem 0.15rem;
    }

    .pricing-table tbody td {
        padding: 0.6rem 0.15rem;
    }
}

@media (max-width: 575px) {
    .property-image {
        height: 160px;
    }

    .pricing-table {
        font-size: 0.75rem;
    }

    .pricing-table thead th {
        font-size: 0.625rem;
    }

    .btn-availability {
        font-size: 0.813rem;
        padding: 0.625rem 0.875rem;
    }
}

/* Grid Layout Adjustments */


/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) {
    animation-delay: 0.1s;
}

.property-card:nth-child(2) {
    animation-delay: 0.2s;
}

.property-card:nth-child(3) {
    animation-delay: 0.3s;
}

.property-card:nth-child(4) {
    animation-delay: 0.4s;
}

.property-card:nth-child(5) {
    animation-delay: 0.5s;
}

.property-card:nth-child(6) {
    animation-delay: 0.6s;
}

.property-card:nth-child(7) {
    animation-delay: 0.7s;
}

.property-card:nth-child(8) {
    animation-delay: 0.8s;
}

.property-card:nth-child(9) {
    animation-delay: 0.9s;
}

.offplanBox {
    padding: 30px;
    background: #f2f6ff;
    border-radius: 20px;
}

/* Mapbox Circle Markers */
.mapbox-circle-marker {
    width: 16px;
    height: 16px;
    background-color: #1f47f4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.mapbox-circle-marker:hover {
    background-color: #002db3;
    transform: scale(1.3);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mapboxgl-marker {
    cursor: pointer;
}