/* blog-style.css - Magazine-style blog styling for Property Point Online */
:root {
    --primary-color: #022E28;
    --secondary-color: #1a4d42;
    --accent-color: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Typography */
.display-4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

/* Article Hero */
.article-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background-attachment: fixed;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 46, 40, 0.9) 0%, rgba(26, 77, 66, 0.8) 100%);
}

.article-hero > .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item.active {
    color: #ffffff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Article Meta */
.article-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-meta i {
    font-size: 1.1rem;
}

/* Social Share */
.social-share .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Featured Image */
.featured-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.9rem;
    font-style: italic;
}

/* Content Styling */
article {
    font-size: 1.1rem;
    line-height: 1.8;
}

article p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

article ul, article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

article li {
    margin-bottom: 0.5rem;
}

article strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Key Highlights Box */
.key-highlights-box {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #f0f9ff 100%);
    border-radius: 8px;
}

.key-highlights-box h3 {
    color: #28a745;
    border-bottom: none;
    padding-bottom: 0;
}

.key-highlights-box ul {
    padding-left: 0;
    list-style: none;
}

.key-highlights-box li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(2, 46, 40, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(2, 46, 40, 0.05);
}

/* Amenities Grid */
.amenity-item {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.amenity-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.amenity-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.cta-section .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    background-color: white;
    border: 1px solid var(--border-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(2, 46, 40, 0.25);
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--bg-light);
}

/* Sidebar */
.sidebar-widget {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: white;
}

.sticky-top {
    position: sticky;
    top: 20px;
}

.quick-facts .fact-item {
    font-size: 0.95rem;
}

.quick-facts strong {
    color: var(--primary-color);
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(2, 46, 40, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(2, 46, 40, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Article Footer */
.article-footer {
    border-top: 2px solid var(--border-color);
}

.article-tags .btn {
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 0.5rem;
}

.social-share-bottom .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
}

/* Footer */
footer.bg-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-hero {
        min-height: 50vh;
        background-attachment: scroll;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    article {
        font-size: 1rem;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .social-share-bottom .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .social-share {
        text-align: center;
    }
    
    .key-highlights-box .row {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar, .sidebar-widget, .cta-section, .social-share, .article-footer, footer {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    article {
        font-size: 12pt;
    }
}

/* Fix sidebar layout - remove sticky behavior */
.sidebar-widget {
    margin-bottom: 1.5rem;
    position: static !important;
}

/* Ensure proper spacing */
.col-lg-4 {
    position: relative;
}

/* Make sidebar sections look clean */
.sidebar-widget.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
}

.sidebar-widget.border {
    border: 1px solid #dee2e6 !important;
    background: white;
}

/* Related articles fallback styling */
.related-article {
    transition: all 0.3s ease;
}

.related-article:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
}