/* ========================================
   Good Sleeps — CSS
   Deep Navy + Teal + Warm White
   ======================================== */

:root {
    --navy: #1B2A4A;
    --navy-dark: #0F1B33;
    --navy-light: #2A3D66;
    --teal: #2A9D8F;
    --teal-dark: #1F7A6E;
    --teal-light: #3BC4B4;
    --warm-white: #FAFAF5;
    --cream: #F0EDE6;
    --charcoal: #2C2C2C;
    --gray-700: #444;
    --gray-500: #777;
    --gray-300: #CCC;
    --gray-100: #F5F5F5;
    --white: #FFFFFF;
    --star-color: #E9A84C;
    --green: #2A9D5F;
    --red: #D45B5B;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--charcoal);
    background: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', Georgia, serif;
    line-height: 1.3;
    color: var(--navy);
}

a {
    color: var(--teal-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Utility ---- */

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

.container-narrow {
    max-width: 800px;
}

.hidden {
    display: none !important;
}

.section {
    padding: 64px 0;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}

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

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

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

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

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.stars {
    color: var(--star-color);
    letter-spacing: 1px;
}

.stars-sm {
    font-size: 0.85rem;
}

.stars-lg {
    font-size: 1.5rem;
}

.required {
    color: var(--red);
}

/* ---- Header ---- */

.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--cream);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
}

.logo-tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--navy);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.hero h1 em {
    font-style: italic;
    color: var(--teal-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-sm {
    padding: 48px 0;
}

.hero-sm h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 8px;
}

.hero-breadcrumb {
    margin-bottom: 8px;
}

.hero-breadcrumb a {
    color: var(--teal-light);
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--charcoal);
    outline: none;
}

.hero-search .btn {
    border-radius: 0 50px 50px 0;
    padding: 14px 32px;
}

/* ---- Filter Bar ---- */

.filter-bar {
    background: var(--cream);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 130px;
}

.filter-group-wide {
    flex: 2;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--gray-500);
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--charcoal);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.filter-form .btn {
    height: 38px;
    align-self: flex-end;
}

/* ---- Apartment Grid ---- */

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.apartment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.apartment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    color: inherit;
}

.apartment-card-image {
    position: relative;
    height: 200px;
    background: var(--cream);
    overflow: hidden;
}

.apartment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    color: rgba(255, 255, 255, 0.3);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.badge-grade {
    font-size: 1rem;
    padding: 6px 14px;
}

.grade-a { background: #2A9D5F; }
.grade-b { background: #6AAD2A; }
.grade-c { background: #E9A84C; }
.grade-d { background: #D47E3A; }
.grade-f { background: #D45B5B; }

.apartment-card-body {
    padding: 16px 20px 20px;
}

.apartment-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--navy);
}

.apartment-card-location {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.apartment-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tip-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.apartment-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal-dark);
}

/* ---- Audit Grid ---- */

.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.audit-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.audit-card:hover {
    box-shadow: var(--shadow-md);
}

.audit-card-grade {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.audit-card-body h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.audit-card-body h3 a {
    color: var(--navy);
}

.audit-card-body h3 a:hover {
    color: var(--teal);
}

.audit-card-location {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.audit-card-date {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

/* ---- CTA Section ---- */

.cta-section {
    padding: 48px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.cta-box h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--teal-dark);
}

.cta-box .btn-primary:hover {
    background: var(--cream);
    color: var(--teal-dark);
}

/* ---- How It Works ---- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 32px 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ---- Tips List ---- */

.tips-list {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.tip-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.tip-card:hover {
    box-shadow: var(--shadow-md);
}

.tip-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tip-category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--cream);
    color: var(--navy);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.tip-card h3 a {
    color: var(--navy);
}

.tip-card h3 a:hover {
    color: var(--teal);
}

.tip-card-apartment {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.tip-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.tip-card-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ---- Apartment Detail ---- */

.apartment-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 48px 0;
}

.apartment-hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 8px;
}

.apartment-hero-address {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.apartment-hero-location {
    color: var(--teal-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.apartment-hero-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--star-color);
}

.apartment-detail {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 64px;
}

.apartment-main {
    min-width: 0;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cream);
}

.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--cream);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--navy);
}

/* ---- Audit Summary on Detail ---- */

.audit-overview {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.audit-grade-large {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Libre Baskerville', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.audit-scores {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-bar .score-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.score-bar .bar {
    flex: 1;
    height: 8px;
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar .bar-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-bar .score-val {
    width: 36px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    text-align: right;
}

/* ---- Category Scores ---- */

.category-scores-grid {
    display: grid;
    gap: 8px;
}

.category-score-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--cream);
}

.cs-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.cs-rating {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.cs-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ---- Tips on Detail ---- */

.tip-category-group {
    margin-bottom: 24px;
}

.tip-category-heading {
    font-size: 1rem;
    color: var(--teal-dark);
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(42, 157, 143, 0.08);
    border-radius: var(--radius);
}

.tip-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--cream);
}

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

.tip-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tip-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.tip-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--navy);
}

.tip-item p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.tip-points {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    margin-bottom: 4px;
}

.tip-good {
    background: rgba(42, 157, 95, 0.08);
    color: var(--green);
}

.tip-bad {
    background: rgba(212, 91, 91, 0.08);
    color: var(--red);
}

.tip-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-style: italic;
}

.tip-cta-inline {
    text-align: center;
    padding: 32px;
    background: var(--cream);
    border-radius: var(--radius-lg);
}

.tip-cta-inline h2 {
    border-bottom: none;
    margin-bottom: 8px;
}

.tip-cta-inline p {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--gray-500);
}

/* ---- Sidebar ---- */

.apartment-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cream);
}

.detail-list {
    display: grid;
    gap: 8px;
}

.detail-list dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    font-weight: 600;
}

.detail-list dd {
    font-size: 0.9rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.detail-list dd a {
    color: var(--teal-dark);
}

/* ---- Audit Detail ---- */

.audit-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.audit-grade-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-lg);
    color: var(--white);
    margin-bottom: 32px;
}

.audit-grade-letter {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.audit-grade-info h2 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.audit-grade-info p {
    color: rgba(255, 255, 255, 0.85);
}

.audit-grade-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.audit-scores-detail {
    margin-bottom: 32px;
}

.audit-scores-detail h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.score-bars-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-bar-row .score-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.score-bar-row .bar {
    flex: 1;
    height: 10px;
    background: var(--cream);
    border-radius: 5px;
    overflow: hidden;
}

.score-bar-row .bar-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.score-bar-row .score-val {
    width: 40px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    text-align: right;
}

.audit-section {
    margin-bottom: 32px;
}

.audit-section h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cream);
}

.audit-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.audit-footer {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 2px solid var(--cream);
}

.audit-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Tip Form ---- */

.tip-form fieldset {
    border: 1px solid var(--cream);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.tip-form legend {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    padding: 0 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

/* Star Rating Input */

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    justify-content: flex-end;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-300);
    transition: color 0.15s ease;
    margin-bottom: 0 !important;
}

.star-rating-input label.active,
.star-rating-input label.hover {
    color: var(--star-color);
}

.star-rating-input input:checked ~ label {
    color: var(--star-color);
}

.form-actions {
    text-align: center;
    padding-top: 8px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* ---- Alerts ---- */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(42, 157, 95, 0.1);
    color: var(--green);
    border: 1px solid rgba(42, 157, 95, 0.2);
}

.alert-error {
    background: rgba(212, 91, 91, 0.1);
    color: var(--red);
    border: 1px solid rgba(212, 91, 91, 0.2);
}

/* ---- Search Results ---- */

.results-count {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ---- 404 ---- */

.error-page {
    text-align: center;
    padding: 120px 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.error-page p {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ---- Footer ---- */

.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-about p {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer-about .logo-name {
    color: var(--white);
}

.footer-about .logo-tagline {
    color: var(--teal-light);
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .apartment-detail {
        grid-template-columns: 1fr;
    }

    .audit-detail-layout {
        grid-template-columns: 1fr;
    }

    .audit-overview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 2px solid var(--cream);
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .hero-search input {
        border-bottom: 1px solid var(--cream);
    }

    .hero-search .btn {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .audit-grade-banner {
        flex-direction: column;
        text-align: center;
    }

    .audit-footer {
        flex-direction: column;
    }
}
