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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

/* Navigation */
.main-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    background-color: var(--light-bg);
}

.main-nav a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Petition Banner */
.petition-banner {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 0;
    margin: 0 0 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    border: 3px solid #229954;
}

.petition-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.petition-banner-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.petition-banner-text {
    flex-grow: 1;
}

.petition-banner-text h3 {
    color: var(--white);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.petition-banner-text p {
    margin: 0;
    font-size: 1.1rem;
}

.petition-banner-action {
    flex-shrink: 0;
}

.btn-petition {
    display: inline-block;
    background: var(--white);
    color: #27ae60;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-petition:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    background: var(--white);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

section h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

section h3:first-child {
    margin-top: 0;
}

section h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

section p:last-child {
    margin-bottom: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.info-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Coming Soon Section */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.coming-soon h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: none;
}

.coming-soon p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0.5rem auto;
}

.coming-soon .status {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--light-bg);
    border-radius: 5px;
    font-weight: 500;
    color: var(--secondary-color);
    display: inline-block;
}

/* Updates Section */
.updates {
    background: var(--white);
}

.update-item {
    padding: 1rem;
    margin: 1rem 0;
    background: var(--light-bg);
    border-radius: 5px;
    border-left: 4px solid var(--accent-color);
}

.update-item .date {
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .main-nav {
        position: relative;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .main-nav a {
        display: block;
        text-align: center;
    }

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

    .document-item {
        flex-direction: column;
        gap: 1rem;
    }

    .document-icon {
        font-size: 3rem;
    }

    .map-controls {
        flex-direction: column;
    }

    .map-button {
        width: 100%;
    }

    .map-container {
        height: 350px;
    }

    .tower-images {
        grid-template-columns: 1fr;
    }

    section {
        padding: 1.5rem;
    }
}

/* Timeline */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    background: var(--light-bg);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.timeline-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    margin: 0.25rem 0;
}

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

/* Contact Info */
.contact-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Map Container */
.map-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 450px;
}

.map-container iframe {
    display: block;
    width: 100%;
}

.map-controls {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.map-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.95rem;
}

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

.map-button:active {
    transform: translateY(0);
}

/* Notification Radius Map */
.notification-map {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.notification-map img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tower Images */
.tower-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.tower-image {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tower-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: var(--light-bg);
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Document List */
.document-list {
    margin: 2rem 0;
}

.document-item {
    display: flex;
    gap: 2rem;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
}

.document-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.document-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.document-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.document-details ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.document-details li {
    margin: 0.5rem 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

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

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Important Notice */
.important-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.important-notice h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.important-notice h3 + p + h3 {
    margin-top: 1.25rem;
}

.important-notice h4 {
    margin-top: 2rem;
}

.important-notice ul {
    margin-left: 1.5rem;
}

.important-notice p:last-of-type {
    margin-top: 1.5rem;
}

/* Property Value Alert Box */
.property-alert {
    background-color: #ffebee;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.property-alert h3 {
    color: #c62828;
    margin-top: 0;
}

.property-alert p:last-child {
    margin-bottom: 0;
}

.property-alert .btn-primary {
    display: inline-block;
    margin-top: 1rem;
}

.calendar-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #856404;
    color: #fff3cd;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.calendar-link:hover {
    background-color: #664d03;
    color: #ffffff;
}

/* Resources List */
.resources-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.resource-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.resource-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resource-item p {
    margin-bottom: 1rem;
}

/* Source Attribution */
.source-attribution {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
    font-size: 0.9rem;
    color: #666;
}

/* Citation */
.citation {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

table thead tr {
    background-color: #f0f0f0;
}

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

table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

table tbody tr:first-child {
    background-color: #ffebee;
}

/* Links */
a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

a:hover {
    color: #2980b9;
}

section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

section li {
    margin: 0.5rem 0;
}

.detail {
    font-size: 0.9rem;
    color: #666;
}

/* Utility Classes for Future Use */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Urgent Action Box (homepage) */
.urgent-action {
    background: #ffebee;
    border: 2px solid var(--accent-color);
    border-left: 6px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 0 0 2rem 0;
}

.urgent-action h3 {
    color: #c62828;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.urgent-action p {
    margin-bottom: 1rem;
}

.urgent-action p:last-child {
    margin-bottom: 0;
}

.urgent-action .btn-primary {
    background-color: var(--accent-color);
}

.urgent-action .btn-primary:hover {
    background-color: #c62828;
}

/* Open House Notice Box (homepage) */
.open-house-notice {
    background: #e3f2fd;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 0 0 2rem 0;
}

.open-house-notice h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.open-house-notice p {
    margin-bottom: 1rem;
}

.open-house-notice p:last-child {
    margin-bottom: 0;
}

/* Open House Summary Page */
.event-info {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.takeaway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.takeaway-card {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.takeaway-card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.takeaway-card p {
    margin: 0;
}

.takeaway-card.positive {
    background: #e8f5e9;
    border-left-color: #27ae60;
}

.takeaway-card.positive h4 {
    color: #1b5e20;
}

.takeaway-card.neutral {
    background: var(--light-bg);
    border-left-color: var(--secondary-color);
}

.takeaway-card.warning {
    background: #ffebee;
    border-left-color: var(--accent-color);
}

.takeaway-card.warning h4 {
    color: #c62828;
}

.conversation-section {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.conversation-section h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.conversation-section ul {
    margin-bottom: 0;
}

.display-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.display-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.display-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.display-item a {
    display: block;
}

.display-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.display-caption {
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 0;
}

.display-note {
    padding: 0.5rem 1rem 0.75rem;
    background: #fff3cd;
    font-size: 0.85rem;
    color: #856404;
    text-align: center;
    margin: 0;
    font-style: italic;
}

.resident-image {
    max-width: 500px;
    margin: 1.5rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.resident-image img {
    width: 100%;
    height: auto;
    display: block;
}

.resident-image .image-caption {
    font-style: italic;
}

.action-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.action-box h3 {
    color: var(--white);
    margin-top: 0;
}

.action-box p {
    margin-bottom: 1rem;
}

.action-box .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.action-box .btn-primary:hover {
    background: var(--light-bg);
}

.action-box a:not(.btn-primary) {
    color: var(--white);
}

/* Responsive Design for Petition Banner */
@media (max-width: 768px) {
    .petition-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .petition-banner-icon {
        font-size: 2.5rem;
    }

    .petition-banner-text h3 {
        font-size: 1.2rem;
    }

    .petition-banner-text p {
        font-size: 1rem;
    }

    .btn-petition {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .takeaway-grid,
    .display-gallery {
        grid-template-columns: 1fr;
    }
}
