/* Premium 3D Land Cards Stylesheet */
.framer-card-container {
    width: 100%;
    max-width: 350px;
    height: 480px;
    position: relative;
    cursor: pointer;
    perspective: 1500px;
    margin: 0 auto;
}

.framer-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
}

.framer-card-inner.flipped {
    transform: rotateY(180deg);
}

.framer-card-front, .framer-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.framer-card-front {
    z-index: 2; /* Keep front on top initially */
}

.framer-card-back {
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    z-index: 1; /* Keep back underneath initially */
}

/* FIX: Disable the front face entirely when flipped so it doesn't block clicks */
.framer-card-inner.flipped .framer-card-front {
    pointer-events: none;
    z-index: 1;
}

.framer-card-inner.flipped .framer-card-back {
    z-index: 2;
}

/* Flip Icon */
.flip-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.framer-card-container:hover .flip-icon {
    transform: rotate(180deg) scale(1.1);
    background: rgba(255,255,255,0.5);
    color: #000;
}

.framer-card-back .flip-icon {
    color: #333; 
    background: rgba(0,0,0,0.05); 
    border-color: rgba(0,0,0,0.1);
}

/* Front Content & Cinematic Zoom */
.framer-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.framer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.framer-card-container:hover .framer-card-image img {
    transform: scale(1.15);
}

.framer-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    color: white;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.extra-reveal {
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.framer-card-container:hover .extra-reveal {
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
}

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

.framer-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}

.framer-badge-verified {
    background: rgba(34, 197, 94, 0.7);
    border-color: rgba(34, 197, 94, 0.9);
}

.framer-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.framer-card-price {
    font-size: 1.2rem;
    color: #ffeb3b;
    font-weight: 700;
}

/* Back Content Styling */
.back-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.back-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
}

.back-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

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

.spec-label {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.back-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FIX: Makes the link behave properly without Z-fighting and 3D plane issues */
.back-cta {
    display: block; 
    position: relative; 
    z-index: 999; /* Force it to the very top */
    transform: translateZ(30px); /* PUSHES BUTTON OUT OF 3D PLANE SO IT CAN BE CLICKED */
    box-sizing: border-box; 
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    background: #000;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #000;
    cursor: pointer;
}

.back-cta:hover {
    background: #ffffff !important;
    color: #000 !important;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .framer-card-container {
        height: 420px;
    }
    .framer-card-title {
        font-size: 1.2rem;
    }
}