/* components.css — Cards, buttons, forms, badges, status */

/* Buttons — obsidian green, jewel-like */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s1);
    padding: 12px var(--s3);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow); }

.btn-primary {
    background: var(--obsidian-green);
    color: white;
}
.btn-primary:hover { background: var(--obsidian-hover); color: white; }

.btn-accent {
    background: var(--accent);
    color: white;
}
.btn-accent:hover { background: var(--accent-dark); color: white; }

.btn-dark {
    background: var(--obsidian);
    color: white;
}
.btn-dark:hover { background: var(--obsidian-light); color: white; }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-secondary:hover { background: var(--bg); box-shadow: var(--shadow); }

.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1DA851; color: white; }
.btn-danger { background: var(--error); color: white; }
.btn-sm  { padding: 8px var(--s2); font-size: 0.8125rem; }
.btn-lg  { padding: 16px var(--s4); font-size: 1rem; }
.btn-block { width: 100%; }

/* Listing card */
.listing-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    border: 1px solid var(--border);
}
.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}
.listing-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, #E8E8E4 0%, #F0F0EC 50%, #E0E0DC 100%);
}
.listing-card-body  { padding: var(--s3); }
.listing-card-price {
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--obsidian);
    letter-spacing: -0.02em;
}
.listing-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: var(--s1) 0 4px;
}
.listing-card-title a { color: var(--text); }
.listing-card-title a:hover { color: var(--accent); }
.listing-card-location { font-size: 0.8125rem; color: var(--text-muted); }

/* Badges — pill */
.badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--s1);
}
.badge-land       { background: #F5F0E6; color: #8B7355; }
.badge-house      { background: #EBF3EB; color: #4A7C4A; }
.badge-rancho     { background: #FBF0E5; color: #A0642A; }
.badge-commercial { background: #ECEEF5; color: #555B7A; }
.badge-cabin      { background: #F0EDE8; color: #6B6B5A; }

/* Status — pill */
.status { font-size: 0.6875rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); letter-spacing: 0.04em; }
.status-draft          { background: #F3F3F3; color: #888; }
.status-active         { background: #EBF5EC; color: var(--sage); }
.status-under_contract { background: #FFF8E1; color: #B8860B; }
.status-sold           { background: #E8F5E9; color: #2E7D32; }
.status-archived       { background: #F5F5F5; color: #AAA; }

/* Forms */
.form-group { margin-bottom: var(--s3); }
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px var(--s2);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--obsidian-green);
    box-shadow: 0 0 0 3px rgba(47,79,58,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
