/* Basic Reset & Typography */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #2d5a27 0%, #000000 100%);
    color: #343a40;
    line-height: 1.6;
    font-size: 16px;
}

/* Main Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 2rem;
}

/* Left Content */
.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Map Section */
.map-section {
    flex: 2;
}

/* Two-image grid for main images */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.image-card {
    display: flex;
    flex-direction: column;
}

.image-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem;
    font-weight: 500;
    text-align: center;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Legacy map container styles no longer used but retained for reference */
.map-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio for map */
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/map_80k.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.map-overlay {
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
}

.map-overlay h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

.map-overlay p {
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

/* Responsive adjustments for the image grid */
@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Historical Information Section */
.historical-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.historical-section p {
    margin: 0;
    color: #495057;
    font-size: 1rem;
    line-height: 1.7;
}

/* Covenants Section */
.covenants-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.covenants-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 0;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.covenants-list {
    padding-left: 1.5rem;
    margin: 0;
}

.covenant-item {
    margin-bottom: 1.5rem;
}

.covenant-item:last-child {
    margin-bottom: 0;
}

.covenant-item p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Register Interest Section */
.register-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.register-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 0;
}

.register-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.submit-btn {
    width: 100%;
    padding: 0.85rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 1rem;
    background-color: #e9f7ef;
    border: 1px solid #b7e4c7;
    color: #2d6a4f;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    /* Reorder sections for mobile layout */
    .historical-section {
        order: 1;
    }
    
    .map-section {
        order: 2;
    }
    
    .covenants-section {
        order: 3;
    }
    
    .register-section {
        order: 4;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
}

