:root {
    --primary: #2d6a4f;
    /* Elegant Deep Green */
    --accent: #f4d35e;
    /* Warm Yellow */
    /* --accent: #ffca28; alternative amber */
    --bg-light: #fdfdfd;
    --text-main: #2b2b2b;
    --font-main: 'Inter', sans-serif;
    --radius: 0px;
    /* Flattened */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Allow growing */
    /* Remove fixed flex centering that clips content */
}

h1 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e1e1e1;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Custom File Upload */
input[type="file"] {
    display: none;
    /* Hide default ugly button */
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #ddd;
    border-radius: var(--radius);
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s;
    text-align: center;
    color: #666;
}

.file-upload-label:hover {
    border-color: var(--accent);
    background: #fdfcf8;
    color: var(--accent);
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    /* Slightly larger */
    font-weight: 900;
    /* Extra Bold/Black */
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #1a1a1a;
    /* Force span to match */
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    /* Green brand color */
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Listing Detail Polish */
.listing-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .listing-wrapper {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-top: 1rem;
    }

    .listing-gallery {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        /* Keep frame on images */
        overflow: hidden;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .listing-wrapper {
        flex-direction: row;
    }

    .listing-gallery {
        flex: 1.2;
    }

    .listing-info {
        flex: 1;
        padding: 2.5rem;
    }
}

.back-link {
    display: inline-block;
    margin: 1rem 0 0 1rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.listing-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.listing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1rem 0;
    display: block;
}

.contact-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #eee;
}

.call-btn {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.call-btn:hover {
    background: #333;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 2px;
    /* Slight radius or 0 */
    font-size: 1.1rem;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #333;
}

.pro-badge {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.locked-section {
    background: #fdfcf8;
    border: 1px dashed var(--accent);
    padding: 1.5rem;
    border-radius: 6px;
    position: relative;
    opacity: 0.8;
}

.locked-overlay {
    margin-top: 1rem;
    text-align: center;
}

.get-certified-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- Filters Layout --- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    /* Match header */
    margin-left: auto;
    margin-right: auto;
}

.filter-group {
    flex: 1;
    min-width: 160px;
    /* Ensure inputs don't get too squashed */
}

.filter-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #555;
}

/* --- Marketplace Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

/* --- Piano Card --- */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.card:hover {
    /* No hover effects as per user request */
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Keep static shadow */
}

.card-img {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f0f0f0;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.card-price {
    margin-top: auto;
    /* Push to bottom */
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    padding-top: 1rem;
}