/* Project Comparison Tool CSS */

.main-container {
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.header {
    background: #18223d;
    color: white;
    padding: 35px 20px;
    text-align: center;
    position: relative;
}

.calculator-icon {
    width: 60px;
    height: 60px;
    background: #8bc34a;
    border-radius: 12px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 0;
}

.main-content {
    background: #f8f9fa;
    padding: 30px;
}

.setup-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #18223d;
    margin-bottom: 20px;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: #8bc34a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.project-select-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-select-col {
    flex: 1;
    min-width: 250px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.btn-compare-action {
    background: linear-gradient(135deg, #aed36e 0%, #8bc34a 100%);
    color: #18243E;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    box-shadow: 0 4px 10px rgba(139, 195, 74, 0.2);
    transition: all 0.3s ease;
}

.btn-compare-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 195, 74, 0.35);
    color: #18243E;
}

/* Card-Based Comparison Styling */
.comparison-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #edf2f7;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-img-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    background: #edf2f7;
}

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

.comparison-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-badge-status {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.badge-ready {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-construction {
    background-color: #fff3e0;
    color: #ef6c00;
}

.badge-upcoming {
    background-color: #e3f2fd;
    color: #1565c0;
}

.card-badge-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(24, 34, 61, 0.95);
    color: #aed36e;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    font-size: 0.95rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-body-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-builder-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-builder-logo {
    max-height: 28px;
    max-width: 80px;
    object-fit: contain;
    background-color: #18223d;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-builder-name {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-property-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #18223d;
    margin-bottom: 18px;
    line-height: 1.4;
}

.card-property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card-property-title a:hover {
    color: #8bc34a;
}

.card-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-icon {
    width: 32px;
    height: 32px;
    background: #f7fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8bc34a;
    font-size: 0.9rem;
}

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

.spec-label {
    font-size: 0.7rem;
    color: #a0aec0;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1px;
}

.spec-value {
    font-size: 0.85rem;
    color: #2d3748;
    font-weight: 600;
}

.card-amenities-section {
    margin-bottom: 25px;
    flex-grow: 1;
}

.amenities-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #18223d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amenity-compare-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

.amenity-compare-item.has-amenity {
    background: #fcfdfa;
    border: 1px solid rgba(139, 195, 74, 0.15);
}

.amenity-compare-item.no-amenity {
    background: #fffafa;
    border: 1px solid rgba(231, 76, 60, 0.08);
    opacity: 0.75;
}

.checkmark-yes {
    color: #2ecc71;
    font-weight: bold;
    font-size: 0.85rem;
}

.checkmark-no {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.85rem;
}

.btn-card-details {
    display: block;
    width: 100%;
    text-align: center;
    background: #18223d;
    color: white;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-card-details:hover {
    background: #8bc34a;
    color: white;
}

.empty-compare-state {
    text-align: center;
    padding: 50px 20px;
    color: #a0aec0;
}

.empty-compare-state i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #cbd5e0;
}

/* Pulse animation for CTA button */
@keyframes pulse-btn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 195, 74, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(139, 195, 74, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); }
}

.pulse-cta {
    background: linear-gradient(135deg, #aed36e 0%, #8bc34a 100%) !important;
    color: #18243E !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4) !important;
    animation: pulse-btn 2s infinite;
    transition: all 0.3s ease;
    border: none !important;
}

.pulse-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.6) !important;
    animation: none;
}
