/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-light {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
}

/* --- Header & Navigation --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.main-header .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-color);
}

.main-header .logo img {
    max-height: 40px;
    vertical-align: middle;
}

.main-header nav ul {
    display: flex;
    list-style: none;
}

.main-header nav ul li {
    margin-left: 20px;
}

.main-header nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
}

/* --- Hero Section --- */
.hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* --- Sections --- */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

/* --- Features/How It Works --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.feature-item .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Listings Grid --- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.listing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-card-content {
    padding: 20px;
}

/* --- Membership Table --- */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.pricing-plan {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pricing-plan h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-plan .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-plan ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-plan ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* --- Forms --- */
.form-container {
    max-width: 500px;
    margin: auto;
    background: var(--light-color);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- Profile Template --- */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.profile-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-body {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

.profile-sidebar nav ul {
    list-style: none;
}

.profile-sidebar nav ul li {
    margin-bottom: 10px;
}

.profile-sidebar nav ul li a {
    display: block;
    padding: 10px 15px;
    background: var(--light-color);
    border-radius: 5px;
    color: var(--dark-color);
}

.profile-sidebar nav ul li a.active {
    background: var(--primary-color);
    color: #fff;
}

/* --- Footer --- */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-header nav {
        margin-top: 15px;
    }
    
    .features-grid, .listings-grid, .pricing-table {
        grid-template-columns: 1fr;
    }

    .pricing-plan.featured {
        transform: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-body {
        grid-template-columns: 1fr;
    }
}