/* ==============================================
CSS for The Tenants' Garden
==============================================
*/

/* ----------------------------------------------
Root Variables
----------------------------------------------
*/
:root {
    --primary-green: #69A84F; 
    --dark-green: #4a7737;     
    --light-green: #8bc34a;   
    --accent-blue: #1976D2;
    --accent-gold: #DAA520;
    --warm-gray: #F5F5F5;
    --light-gray: #FAFAFA;
    --text-dark: #212121;
    --text-gray: #616161;
    --border-gray: #E0E0E0;
    --white: #FFFFFF;
    --success-green: #4CAF50;
    --warning-amber: #FFA726;
    --error-red: #EF5350;
}

/* ----------------------------------------------
Global Styles
----------------------------------------------
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------------
Navigation
----------------------------------------------
*/
.navbar {
    background: var(--white);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gray);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s;
}

.nav-links a.active:after,
.nav-links a:hover:after {
    width: 100%;
}

.nav-links .btn-register {
    background: var(--primary-green);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.nav-links .btn-register:hover {
    background: var(--dark-green);
}

.nav-links .btn-register:after {
    display: none;
}

/* ----------------------------------------------
Page Header
----------------------------------------------
*/
.page-header {
    background-color: var(--white);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-gray);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------------
Main Content & Sections
----------------------------------------------
*/
.main-content {
    padding: 2rem 0;
}

.content-section {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
}

.content-section p, .content-section ul {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.content-section ul {
    list-style-position: inside;
    padding-left: 1rem;
}

/* ----------------------------------------------
Footer
----------------------------------------------
*/
.footer {
    background: #2C3E50;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--light-green);
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ----------------------------------------------
Forms
----------------------------------------------
*/
.form-container {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-container h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-container .form-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-button {
    width: 100%;
    padding: 0.85rem;
    border: none;
    background: var(--primary-green);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.form-button:hover {
    background: var(--dark-green);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------
Buttons & Badges
----------------------------------------------
*/
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-green);
}

.btn-new-post {
     padding: 0.75rem 1.5rem;
    border: none;
    background: var(--primary-green);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-critical { background: #FFEBEE; color: #C62828; border: 1px solid #EF5350; }
.severity-high { background: #FFF3E0; color: #E65100; border: 1px solid #FF9800; }
.severity-medium { background: #FFF8E1; color: #F57C00; border: 1px solid #FFC107; }
.severity-low { background: #E8F5E9; color: #2E7D32; border: 1px solid #66BB6A; }

.evidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 8px;
    background: var(--accent-blue);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* ----------------------------------------------
Specific Page Styles
----------------------------------------------
*/

/* --- Index Page --- */
/* Index hero section (full height) */
.hero {
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 5rem 0;         /* keep the tall spacing */
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}




.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 600" opacity="0.1"><path fill="white" d="M0,320L48,314.7C96,309,192,299,288,282.7C384,267,480,245,576,229.3C672,213,768,203,864,218.7C960,235,1056,277,1152,277.3C1248,277,1344,235,1392,213.3L1440,192L1440,600L1392,600C1344,600,1248,600,1152,600C1056,600,960,600,864,600C768,600,672,600,576,600C480,600,384,600,288,600C192,600,96,600,48,600L0,600Z"/></svg>');
    opacity: 0.2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stats-section {
    background: var(--warm-gray);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-gray);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-banner {
    background: #FFF3E0;
    border-left: 4px solid var(--warning-amber);
    padding: 1.25rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.alert-banner .icon {
    font-size: 1.5rem;
    color: var(--warning-amber);
}

.alert-banner strong {
    color: var(--text-dark);
}

.alert-banner a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

.alert-banner a:hover {
    text-decoration: underline;
}

.alert-banner a.critical {
    color: var(--error-red);
}

.recent-posts, .properties-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}

.properties-section {
    background: var(--warm-gray);
    padding: 4rem 0;
    border-top: 1px solid var(--border-gray);
    margin: 0;
    max-width: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.section-title.text-center {
    text-align: center;
    width: 100%;
}

.view-all-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--dark-green);
}

/* --- Forum & Post Cards --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--border-gray);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--primary-green);
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    align-items: start;
}

.post-property {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-gray);
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
    margin-top: auto;
}

.post-engagement {
    display: flex;
    gap: 1rem;
}

/* --- Properties Page --- */
.properties-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--border-gray);
    transition: all 0.3s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--primary-green);
}

.property-image {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.property-info {
    padding: 1.5rem;
}

.property-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.property-address {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.property-stat {
    text-align: center;
}

.property-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.property-stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Filter Bar --- */
.filter-bar {
    padding: 1.5rem;
    background-color: var(--white);
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
}

.filter-controls input[type="search"],
.filter-controls select {
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.filter-controls input[type="search"] {
    flex-grow: 1;
}

.filter-controls button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--primary-green);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

/* --- Pagination --- */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-gray);
    background: var(--white);
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.pagination a:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}
.pagination .current {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    font-weight: 600;
}
.pagination .disabled {
    background: var(--warm-gray);
    color: #BDBDBD;
    cursor: not-allowed;
}

/* --- Post Detail Page --- */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumbs a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.post-full {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}

.post-header .post-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.9rem;
    color: var(--text-gray);
}

.post-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.7;
}
.post-body p {
    margin-bottom: 1em;
}
.post-body h3 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.evidence-section {
    margin-top: 2rem;
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.evidence-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--warm-gray);
    cursor: pointer;
}

.evidence-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comments-section {
    margin-top: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}
.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-content .comment-author {
    font-weight: 600;
    margin-right: 0.5rem;
}
.comment-content .comment-date {
    font-size: 0.85rem;
    color: var(--text-gray);
}
.comment-content .comment-text {
    margin-top: 0.25rem;
}

.comment-form {
    margin-top: 2rem;
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    min-height: 120px;
    margin-bottom: 1rem;
}
.comment-form button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--primary-green);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

/* --- Property Detail Page --- */
.property-header {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-gray);
}
.property-header .container {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.property-header .property-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}
.property-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.property-address {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* --- About & Resources Page --- */
.step-list {
    list-style: none;
    padding-left: 0;
}
.step-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-list h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.disclaimer {
    background: #FFF3E0;
    border-left: 4px solid #FFA726;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.resource-list a {
    display: block;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    margin-bottom: 0.25rem;
}
.resource-list p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

/* --- Register Page --- */
.divider {
    text-align: center;
    margin: 2rem 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-gray);
}
.divider:not(:empty)::before {
    margin-right: .5em;
}
.divider:not(:empty)::after {
    margin-left: .5em;
}

/* ----------------------------------------------
Responsive Styles
----------------------------------------------
*/
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        gap: 1rem;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .property-header .container {
        flex-direction: column;
        text-align: center;
    }
}


/* Shared Hero / Banner Section */
.hero,
.page-header {
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 2.5rem 0;       /* shorter height for non-index pages */
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.hero::before,
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 600" opacity="0.1"><path fill="white" d="M0,320L48,314.7C96,309,192,299,288,282.7C384,267,480,245,576,229.3C672,213,768,203,864,218.7C960,235,1056,277,1152,277.3C1248,277,1344,235,1392,213.3L1440,192L1440,600L1392,600C1344,600,1248,600,1152,600C1056,600,960,600,864,600C768,600,672,600,576,600C480,600,384,600,288,600C192,600,96,600,48,600L0,600Z"/></svg>');
    opacity: 0.2;
}

.hero h1,
.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.hero p,
.page-header p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==============================================
Compatibility & Missing Styles (append-only)
Purpose: support older markup patterns without editing HTML
============================================== */

/* 1) Active state for nav links (used across pages) */
.nav-links a.active {
    color: var(--primary-green);
    font-weight: 600;
}

/* 2) Properties: support both .property-info (NEW) and .property-card-body (OLD) */
.property-card-body {
    /* mirror .property-info */
    padding: 1.5rem;
}
.property-card-body h3 {
    /* mirror .property-name */
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.property-card-body p {
    /* mirror .property-address */
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 3) Properties: handle cards that use <img> instead of .property-image */
.property-card > img,
.property-card .property-card-image,
.property-card .card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    /* provide a fallback frame similar to the emoji block style */
    background: var(--warm-gray);
    border-bottom: 1px solid var(--border-gray);
}

/* 4) “Hero”/banner text when using .page-title / .page-subtitle inside .page-header */
.page-header .page-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}
.page-header .page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 5) Generic link styles inside cards (avoid default blue underlines) */
.property-card a {
    text-decoration: none;
    color: inherit;
}
.property-card a:hover .property-name,
.property-card a:hover h3 {
    color: var(--primary-green);
}
/* Center the login form like content pages (privacy, forum) */
.center-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;   /* gives vertical balance */
    padding: 3rem 1rem; /* consistent with other pages */
}

.center-form-container .form-container {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== Modals (shared) ===== */
.modal {
    position: fixed;
    inset: 0;
    display: none;               /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.is-open { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.modal-dialog {
    position: relative;
    max-width: 640px;
    width: calc(100% - 2rem);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header, .modal-footer {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-gray);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.25rem; font-weight: 700; }

.modal-body { padding: 1rem 1.25rem; }
.modal-close {
    background: none; border: 0; font-size: 1.25rem; cursor: pointer; line-height: 1;
}

.modal-footer { border-top: 1px solid var(--border-gray); border-bottom: 0; display: flex; gap: .5rem; justify-content: flex-end; }

.input, .select, .textarea {
    width: 100%;
    padding: .75rem .85rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.help { font-size: .9rem; color: var(--text-gray); }

.btn, .form-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .75rem 1rem; border-radius: 8px; border: 0; cursor: pointer;
}
.btn-primary { background: var(--primary-green); color: #fff; }
.btn-secondary { background: #f0f0f0; color: var(--text-dark); }

/* Stepper inside Support modal */
.stepper { display: flex; gap: .5rem; margin-bottom: .75rem; }
.stepper .chip {
    border: 1px solid var(--border-gray); border-radius: 999px; padding: .25rem .6rem; font-size: .85rem;
}
.stepper .chip.active { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.hidden { display: none; }
/* ===============================
 Modern UI Refresh (append-only)
 Keeps HTML unchanged. Overrides by specificity & order.
=============================== */

/* Typography & base layout */
:root{
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.15);
}

html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: .02em;
}

/* Container & section rhythm */
.container { max-width: 1100px; padding: 0 24px; margin: 0 auto; }
.main-content { padding: 48px 0; }
.content-section + .content-section { margin-top: 40px; }
.section-header { margin-bottom: 16px; }
.section-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing:.01em; }
.section-subtitle, .help { color: var(--text-gray); }

/* Navbar polish */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(140%) blur(4px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--border-gray);
}
.nav-links a {
  padding: 10px 2px; position: relative; transition: color .2s ease;
}
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0;
  background: var(--primary-green); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.btn-register { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* Page headers (keep short banners on non-index pages) */
.page-header {
  padding: 28px 0; /* shorter than hero */
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.page-header .page-title { font-size: clamp(24px, 2.8vw, 34px); }
.page-header .page-subtitle { margin-top: 4px; opacity: .95; }

/* Hero on index remains tall (if .hero exists earlier) */
.hero { padding: 64px 0; }
.hero .btn-group { display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }

/* Cards & grids */
.cards-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
}
.feature-card {
  display: block;
  padding: 18px 18px 20px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,.08);
}
.feature-card h3 { margin-bottom: 6px; font-weight: 700; }
.feature-card .chevron { margin-left: auto; opacity: .7; }

/* “Stats” & posts visual lift */
.stats-section { padding: 28px 0; }
.stats-container { display: grid; grid-template-columns: repeat( auto-fit, minmax(160px, 1fr) ); gap: 16px; }
.stat-card {
  border-radius: var(--radius-md); background: #fff; padding: 18px;
  border: 1px solid var(--border-gray); box-shadow: var(--shadow-sm);
}
.posts-grid { display:grid; gap:16px; grid-template-columns: repeat( auto-fit, minmax(280px,1fr) ); }
.post-card {
  border: 1px solid var(--border-gray); border-radius: var(--radius-md);
  padding: 16px; background:#fff; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-footer .btn-link { border:0; background:none; color: var(--primary-green); cursor:pointer; }

/* Buttons */
.btn, .form-button {
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: filter .15s ease, transform .03s ease;
}
.btn:active, .form-button:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--light-green), var(--primary-green)); }
.btn-primary:hover { filter: brightness(0.98); }
.btn-secondary:hover { filter: brightness(0.97); }

/* Forms (inputs, selects, textarea) */
.input, .select, .textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gray);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary-green) 55%, #0000);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-green) 18%, #0000);
}
.contact-form .grid-2,
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Login page centering & card look (uses existing hooks) */
.center-form-container {
  min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.center-form-container .form-container {
  width: 100%; max-width: 480px; padding: 24px;
  background: #fff; border: 1px solid var(--border-gray);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}

/* Alert banner */
.alert-banner {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: #fffef3; border: 1px solid #f1e7b6; box-shadow: var(--shadow-sm);
  margin: 16px auto; align-items: center;
}
.alert-banner .icon { font-size: 20px; }

/* Properties cards compatibility */
.properties-grid { display:grid; gap:16px; grid-template-columns: repeat( auto-fit, minmax(260px,1fr) ); }
.property-card { background:#fff; border:1px solid var(--border-gray); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow:hidden; }
.property-card .property-card-body, .property-card .property-info { padding: 14px 16px; }
.property-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: transform .15s ease, box-shadow .15s ease; }

/* Footer layout refinement */
.footer { margin-top: 32px; }
.footer-content {
  display: grid; gap: 18px;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
}
.footer-section ul li + li { margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 16px; padding-top: 12px;
}

/* Modal polish (used by tenants & reusable elsewhere) */
.modal-dialog { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header { background: linear-gradient(180deg, var(--light-green), var(--primary-green)); color:#fff; }
.modal-title { color:#fff; }
.modal-close { color:#fff; opacity:.9; }
.modal-close:hover { opacity: 1; }
/* ===============================
   Modern Link Styling (override defaults)
=============================== */
a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--dark-green);
  text-decoration: underline;
  text-decoration-color: var(--primary-green);
}

a:visited {
  color: var(--primary-green);
}
