/* Main CSS file for Swiss Real Estate Agency Website */

:root {
    --primary-color: #263238;
    --secondary-color: #607d8b;
    --accent-color: #78909c;
    --light-color: #f5f5f5;
    --dark-color: #37474f;
    --success-color: #546e7a;
    --error-color: #b71c1c;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span {
    font-weight: 600;
    color: var(--secondary-color);
}

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

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding-bottom: 0.25rem;
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.active {
    color: var(--accent-color);
}

.active::after {
    width: 100%;
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
    opacity: 0.6;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
}

.language-btn:hover, .language-btn.active {
    opacity: 1;
}

.language-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

.presentation-link,
.developer-link {
    align-items: center;
    color: var(--text-color);
    opacity: 0.7;
    transition: var(--transition);
}

.developer-link {
    margin-left: 1.5rem;
    margin-right: 0.5rem;
    text-decoration: auto;
}

.presentation-link {
    margin-right: 0;
}

.presentation-link:hover,
.developer-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

.presentation-link svg,
.developer-link svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero section */
.hero {
    height: 70vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/lausanne.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-content {
    color: white;
    max-width: 550px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

/* Section styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--secondary-color);
}

/* Properties section */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.property-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.property-content {
    padding: 1.5rem;
}

.property-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: var(--light-color);
    color: var(--secondary-color);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.property-location {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.property-location svg {
    margin-right: 0.5rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
}

.property-feature {
    display: flex;
    align-items: center;
}

.property-feature svg {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.property-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 1rem;
}

/* Services section */
.services {
    background-color: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.service-title {
    margin-bottom: 1rem;
}

/* CTA section */
.cta {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 1.8rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 1px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.contact-info svg {
    margin-right: 0.75rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    margin-top: 1.5rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Buy/Rent Page Specific */
.filter-bar {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.range-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.range-slider input {
    width: 45%;
}

.filter-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.btn-filter {
    background-color: var(--dark-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.btn-filter:hover {
    background-color: var(--primary-color);
}

.btn-reset {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    margin-right: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Sell/Estimate Page Specific */
.form-section {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.steps {
    display: flex;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 0.5rem;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.step.active .step-number {
    background-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.step.active .step-label {
    color: var(--dark-color);
    font-weight: 500;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.progress-bar {
    height: 2px;
    background-color: var(--light-color);
    position: relative;
    margin-bottom: 3rem;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--secondary-color);
    width: 0;
    transition: width 0.5s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-label {
    display: block;
    padding: 1rem;
    background-color: var(--light-color);
    border: 1px dashed var(--secondary-color);
    text-align: center;
    cursor: pointer;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
}

input:checked + .toggle-slider {
    background-color: var(--secondary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.contact-card {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 1px;
    background-color: var(--secondary-color);
}

.map-container {
    height: 300px;
    background-color: var(--light-color);
    margin-top: 2rem;
}

/* Valuation Report Page Specific */
.report-header {
    text-align: center;
    margin-bottom: 3rem;
}

.report-header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.report-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.report-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.report-section h2 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 400;
    font-size: 1.5rem;
}

.report-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 1px;
    background-color: var(--secondary-color);
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 500;
}

.value-chart {
    height: 300px;
    margin: 2rem 0;
    background-color: var(--light-color);
}

.comparable-properties {
    margin-top: 2rem;
}

.comparable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.comparable-card {
    background-color: var(--light-color);
    padding: 1rem;
}

.comparable-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.comparable-price {
    font-weight: 500;
    color: var(--primary-color);
}

.comparable-address {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.value-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color);
}

.value-range {
    text-align: center;
}

.value-range-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.value-range-amount {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.market-trends {
    margin-top: 2rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    nav.open {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        padding: 0 1rem;
    }

    nav li {
        margin: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid #edf2f7;
    }

    nav li:last-child {
        border-bottom: none;
    }

    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .property-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
        padding: 0 1rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }
}

/* Add this to your styles.css file */

/* Page header without hero */
.page-header {
    padding-top: 120px;
    padding-bottom: 3rem;
    background-color: var(--light-color);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header .section-title {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
        padding-bottom: 2rem;
    }
    
    .page-header .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

.estimate-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: 1px;
}

.estimate-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Widget Switch Styles */
.widget-switch {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
}

.widget-switch-btn {
    background: white;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-switch-btn:hover {
    background: var(--light-color);
    border-color: var(--accent-color);
}

.widget-switch-btn svg {
    width: 16px;
    height: 16px;
    color: var(--secondary-color);
}

.widget-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.widget-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.widget-menu-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--dark-color);
}

.widget-menu-item:last-child {
    border-bottom: none;
}

.widget-menu-item:hover {
    background: var(--light-color);
}

.widget-menu-item.active {
    background: var(--secondary-color);
    color: white;
}

@media (max-width: 768px) {
    .widget-switch {
        top: 70px;
        right: 15px;
    }
}