/* Base Styles */
:root {
    --primary: #4a6bff;
    --primary-dark: #3a56cc;
    --secondary: #6c8eff;
    --accent: #ff6b4a;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --gray: #e9ecef;
    --dark-gray: #495057;
    --success: #4CAF50;
    --warning: #FFC107;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

header {
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.logo p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

nav a.active {
    color: var(--primary);
    font-weight: 600;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--primary);
}

.cta-button.secondary:hover {
    background: var(--gray);
}

/* Search Section */
.search {
    padding: 3rem 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow);
    margin: 2rem auto;
    max-width: 1000px;
    border-radius: 8px;
    transform: translateY(-50px);
}

.search h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.search-box {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box input {
    flex: 1;
    min-width: 300px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 50px;
}

.search-box select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 50px;
    min-width: 200px;
}

.search-button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: #e05a3a;
}

/* Benefits Section */
.benefits {
    padding: 2rem 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.benefit-card ul {
    margin-left: 1.5rem;
}

.benefit-card li {
    margin-bottom: 0.8rem;
}

/* Space Types Section */
.space-types {
    padding: 4rem 1.5rem;
    background: var(--gray);
}

.space-types h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.spaces-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.space-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.space-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.space-card p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.space-card ul {
    margin-left: 1.5rem;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step span {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 50px;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.testimonial-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.author {
    font-weight: 600;
    color: var(--primary);
}

/* Contact Page Styles */
.list-hero {
    padding: 4rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.list-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.list-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.earnings-calculator {
    padding: 3rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.earnings-calculator h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.calculator {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group select,
.input-group input[type="range"] {
    width: 100%;
}

.input-group input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    background: var(--gray);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

#size-value {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

.calculator-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.result-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.listing-form {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.listing-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

.form-group textarea {
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.upload-area {
    border: 2px dashed var(--gray);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
}

.safety-info {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.safety-info h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.safety-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.safety-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .search {
        transform: none;
        margin-top: 0;
    }

    .calculator {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .benefits-grid,
    .spaces-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box select {
        width: 100%;
    }
}