* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo .tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Details Section */
.details-section {
    padding: 3rem 0;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: #e0e0e0;
    color: #2c3e50;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.details-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Gallery */
.house-gallery {
    margin-bottom: 2rem;
}

.main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-image {
    font-size: 8rem;
    color: white;
}

/* House Header */
.house-header {
    margin-bottom: 2rem;
}

.house-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.house-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    color: #666;
}

/* Price */
.house-price {
    background: #f0f4ff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.currency {
    font-size: 1.2rem;
    color: #666;
}

/* Features */
.house-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
}

.feature-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.feature-label {
    font-size: 0.9rem;
    color: #666;
}

/* Description */
.house-description {
    margin-bottom: 2rem;
}

.house-description h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.house-description p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Amenities */
.house-amenities h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.95rem;
}

.amenity-icon {
    font-size: 1.2rem;
}

/* Sidebar */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.connection-price {
    background: #f0f4ff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.connection-price p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.connection-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.connection-info {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem;
    font-size: 1.1rem;
}

.contact-details {
    margin-top: 1.5rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message .icon {
    font-size: 1.5rem;
}

.contact-number {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-number .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
}

/* Safety Tips */
.safety-tips {
    background: #fff3cd;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.safety-tips h4 {
    font-size: 1.2rem;
    color: #856404;
    margin-bottom: 1rem;
}

.safety-tips ul {
    list-style-position: inside;
    color: #856404;
}

.safety-tips li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    clear: both;
}

.payment-details {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    font-size: 1.2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive */
@media (max-width: 968px) {
    .details-content {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: static;
    }

    .house-features {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-image {
        height: 250px;
    }

    .placeholder-image {
        font-size: 5rem;
    }

    .house-header h2 {
        font-size: 1.5rem;
    }

    .house-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Owner Contact Info Card */
.owner-contact-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.owner-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 8px;
    color: #333;
}

.owner-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.owner-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.owner-card strong {
    color: #764ba2;
}

.owner-note {
    background: #f0f4ff;
    padding: 0.8rem;
    border-left: 3px solid #667eea;
    margin-top: 1rem !important;
    font-size: 0.85rem;
    color: #555 !important;
}
