/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    color: #2c3e50;
    font-weight: 600;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Header and Navigation */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin: 15px 0;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: white;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 2em;
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.section-header p {
    font-size: 1.2em;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-item {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #3498db;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #3498db;
    margin-bottom: 15px;
}

/* Cities Section */
.cities {
    background-color: #f8f9fa;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.city-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.city-card:hover {
    transform: translateY(-5px);
}

.city-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.property-count {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.review-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.review-stars {
    color: #f39c12;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 600;
    color: #7f8c8d;
    margin-top: 15px;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 12px 24px;
    white-space: nowrap;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #34495e;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 0.5em;
}

.page-header p {
    font-size: 1.3em;
    opacity: 0.9;
}

/* Cities List Page */
.cities-list {
    padding: 80px 0;
}

.city-section {
    margin-bottom: 80px;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.city-section:last-child {
    border-bottom: none;
}

.city-header {
    text-align: center;
    margin-bottom: 40px;
}

.city-header h2 {
    color: #3498db;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.city-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.city-info ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.city-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2em;
    color: #3498db;
    margin-bottom: 5px;
}

.property-types h3 {
    margin-bottom: 20px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.property-type {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.property-type h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.property-type p {
    color: #3498db;
    font-weight: 600;
    margin: 0;
}

.cta-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

/* Blog Styles */
.blog-list {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.article-date {
    color: #7f8c8d;
}

.article-category {
    background-color: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
}

.article-card h2 {
    margin-bottom: 15px;
}

.article-card h2 a {
    color: #2c3e50;
}

.article-card h2 a:hover {
    color: #3498db;
}

.article-link {
    color: #3498db;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.article-link:hover {
    text-decoration: underline;
}

/* Article Page */
.article-header {
    background-color: #f8f9fa;
    padding: 120px 0 60px;
    margin-top: 70px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
}

.article-meta {
    margin-bottom: 20px;
}

.read-time {
    color: #7f8c8d;
}

.article-lead {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 0;
}

.article-content {
    padding: 80px 0;
}

.article-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.article-body {
    max-width: none;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #34495e;
}

.article-body ul, .article-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-cta {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.article-cta h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.article-sidebar {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.author-box,
.related-articles,
.share-buttons,
.credit-calculator,
.useful-links,
.investment-calculator,
.district-prices,
.transport-info {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.author-box:last-child,
.related-articles:last-child,
.share-buttons:last-child,
.credit-calculator:last-child,
.useful-links:last-child,
.investment-calculator:last-child,
.district-prices:last-child,
.transport-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-articles ul,
.useful-links ul,
.district-prices ul,
.transport-info ul {
    list-style: none;
    margin-left: 0;
}

.related-articles a,
.useful-links a {
    color: #3498db;
}

.share-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-links a {
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Thank You Page */
.thank-you-section {
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you-message {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.newsletter-benefits {
    margin: 60px 0;
    text-align: left;
}

.newsletter-benefits h2 {
    text-align: center;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.benefit-item svg {
    margin-bottom: 15px;
}

.benefit-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.next-steps {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    margin: 40px 0;
}

.next-steps h2 {
    text-align: center;
    margin-bottom: 20px;
}

.next-steps ul {
    margin-left: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-follow {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #2c3e50;
    font-weight: 600;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #3498db;
}

/* Legal Pages */
.legal-content {
    padding: 80px 0;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.document-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.legal-document h2 {
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.legal-document h3 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-document ul, .legal-document ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-document li {
    margin-bottom: 8px;
}

.legal-document address {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-style: normal;
}

.contact-box {
    background-color: #e8f4fd;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
    border: 1px solid #3498db;
}

.contact-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-box .btn {
    margin: 5px;
}

/* Cookie Settings Button */
.cookie-settings-button {
    text-align: center;
    margin: 30px 0;
}

/* Cookies Table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cookies-table th,
.cookies-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookies-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.cookies-table tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .city-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .city-stats {
        justify-content: center;
    }
    
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links-large {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2.5em;
    }
    
    .page-header p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .section-header h2 {
        font-size: 1.8em;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-grid,
    .services-grid,
    .cities-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .legal-document {
        padding: 20px;
    }
    
    .cookies-table {
        font-size: 14px;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 8px 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .btn,
    .social-links,
    .share-buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .page-header {
        margin-top: 0;
        padding: 20px 0;
        background: none !important;
        color: black !important;
    }
    
    .legal-document {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border: 2px solid #000;
    }
    
    .btn-primary:hover {
        background-color: #333;
    }
    
    .nav-link:hover {
        background-color: #f0f0f0;
    }
}
