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

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

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

header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.15);
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: bold;
}

header p {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.lead {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Properties grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15);
}

.property-link {
    text-decoration: none;
    color: inherit;
}

.property-details {
    padding: 1.5rem;
}

.property-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
}

.property-details h3 a {
    text-decoration: none;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.property-details h3 a:hover {
    color: #3b82f6;
}

/* Property card featured images */
.property-card-image {
    margin: 0;
    overflow: hidden;
    height: 160px;
}

.card-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
}

.card-featured-image:hover {
    transform: scale(1.05);
}

/* Property detail page images */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
}

.property-image:hover {
    transform: scale(1.05);
}

/* Lightbox image */
.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.address {
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #475569;
}

.property-actions {
    margin-top: 1rem;
    text-align: center;
}

.view-details-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

/* Property detail page */
.property-detail {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.property-header {
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2rem;
}

.property-header h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.property-address {
    font-size: 1.2rem;
    color: #64748b;
}

.property-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.property-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f5f9;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #cbd5e1;
}

.lightbox-caption {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 138, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 50%;
}

.lightbox-nav:hover {
    background: rgba(30, 58, 138, 0.9);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.no-properties {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
    border: 1px solid #e2e8f0;
}

footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Property type badge */
.property-type-badge {
    background: #1e40af;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Location styling */
.location {
    margin-bottom: 1.5rem;
}

.location h4 {
    color: #1e3a8a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.location .address {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Main pricing section */
.pricing-main {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.pricing-main .total-price {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-main .price-per-sqm,
.pricing-main .surface-area {
    margin-bottom: 0.5rem;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.price-value {
    display: block;
    font-size: 1.1rem;
    color: #059669;
    font-weight: 600;
}

.total-price .price-value {
    font-size: 1.4rem;
    font-weight: bold;
}

/* Property detail page specific styling */
.property-header .property-type-badge {
    margin-bottom: 0.5rem;
}

.project-location {
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: #1e3a8a;
}

/* Pricing breakdown */
.pricing-breakdown {
    margin-bottom: 2rem;
}

.pricing-breakdown h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.price-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.price-section h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.price-item.main-price {
    font-size: 1.1rem;
    font-weight: bold;
}

.price-item .price-label {
    display: inline;
    font-weight: 500;
    color: #374151;
}

.price-item .price-value {
    display: inline;
    font-weight: 600;
    color: #059669;
}

/* Legal info */
.legal-info {
    margin-bottom: 2rem;
}

.legal-info h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.legal-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.legal-label {
    font-weight: 600;
    color: #374151;
    min-width: 150px;
}

.legal-value {
    color: #1e3a8a;
    flex: 1;
}

.legal-price {
    color: #059669;
    font-weight: 600;
}

/* Price History Section */
.price-history-section {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.2);
}

.download-section {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.download-btn {
    background: white;
    color: #059669;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    min-width: 180px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    background: #f8fafc;
}

.download-btn .btn-icon {
    font-size: 1.5rem;
}

.download-btn .btn-text {
    font-weight: 600;
    font-size: 1rem;
}

.download-btn .btn-detail {
    font-size: 0.8rem;
    opacity: 0.8;
}

.contact-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.2);
}

.contact-section h3 {
    margin-bottom: 1rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-btn {
    background: white;
    color: #1e40af;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-text {
    font-weight: 600;
    font-size: 1rem;
}

.btn-detail {
    font-size: 0.85rem;
    opacity: 0.8;
}

.navigation-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 2rem;
}

.navigation-section h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

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

.related-property {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-property:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12);
}

.related-property a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1rem;
}

.related-type-badge {
    background: #3b82f6;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.related-info {
    width: 100%;
}

.related-info h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.related-location {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.related-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.related-price {
    color: #059669;
    font-weight: bold;
}

.related-sqm {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Contact section updates */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.developer-info {
    text-align: left;
}

.developer-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.developer-info p {
    margin-bottom: 0.5rem;
}

.developer-info a {
    color: #cbd5e1;
    text-decoration: none;
}

.developer-info a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    header h1 a {
        font-size: 2rem;
    }

    .property-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .property-header h1 {
        font-size: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .pricing-main .total-price .price-value {
        font-size: 1.2rem;
    }

    .property-type-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .contact-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .btn-icon {
        font-size: 1.3rem;
    }

    /* Mobile responsive images */
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }

    .property-card-image {
        height: 140px;
    }

    .property-image {
        height: 120px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-nav {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
}