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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html, body {
    position: relative;
    overflow-x: hidden;
}

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --accent-color: #06b6d4;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --bg-gray: #f8fafc;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.logo-subtitle {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 100%;
    overflow: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 100%;
    overflow: hidden;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
    padding: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 12px;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 8px;
}

.dropdown-item:first-child {
    background: #f0f5ff;
    color: var(--primary-color);
}

.dropdown-item:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.search-btn,
.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-gray);
    transition: color 0.3s;
}

.search-btn:hover,
.user-btn:hover {
    color: var(--primary-color);
}

.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    font-size: 14px;
    width: 100%;
    overflow: hidden;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    flex-wrap: wrap;
    max-width: 100%;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
    word-break: break-word;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    flex-shrink: 0;
}

.breadcrumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.hero {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url('https://images.pexels.com/photos/7061662/pexels-photo-7061662.jpeg?auto=compress&cs=tinysrgb&w=1600&h=800') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    z-index: 1;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.btn-outline {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.section {
    padding: 80px 0;
}

.section > .container > .btn {
    margin-top: 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-gray {
    background: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.state-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
    transition: transform 0.3s;
}

.state-card:hover {
    transform: translateY(-4px);
}

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

.state-card .state-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.waiting-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.waiting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.waiting-info {
    flex: 1;
}

.waiting-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.waiting-date {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.open {
    background: #e8f5e9;
    color: #2e7d32;
}

.arrow-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-text {
    flex: 1;
    color: var(--white);
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-title .highlight {
    color: #ffd700;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-image {
    flex: 1;
}

.cta-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
}

.footer {
    background: #1a2332;
    color: var(--white);
    padding: 48px 0 24px;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-logo svg {
    filter: brightness(1.4);
}

.footer-logo:hover {
    transform: translateX(4px);
}

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

.footer .logo-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer .logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.6;
    text-align: center;
}

.favorites-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s;
}

.favorites-btn:hover {
    transform: scale(1.05);
}

.listing-page,
.detail-page {
    padding: 24px 0;
    min-height: calc(100vh - 200px);
}

.listing-content,
.detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.ad-notice {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.listing-count {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.housing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.housing-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.housing-card {
    display: block;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.housing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.housing-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-gray);
}

.housing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.housing-card:hover .housing-image img {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.favorite-btn input[type="checkbox"] {
    display: none;
}

.favorite-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.favorite-btn:hover svg {
    stroke: var(--white);
    fill: var(--white);
}

.favorite-btn input:checked ~ svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.housing-info {
    padding: 24px;
}

.housing-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.housing-address {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.housing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    gap: 16px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-details-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.check-details-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.housing-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.housing-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    text-decoration: none;
    color: var(--text-gray);
}

.icon-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.listing-disclaimer {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin: 24px 0 16px;
    font-style: italic;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.page-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.page-btn.dots {
    border: none;
    cursor: default;
    pointer-events: none;
    background: transparent;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.advice-item {
    margin-bottom: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.advice-item:hover {
    transform: translateX(4px);
}

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

.advice-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
}

.advice-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.advice-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.advice-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.property-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.crowd-sourced {
    margin-left: auto;
    color: #666;
    font-size: 0.9em;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.property-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.image-disclaimer {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
    font-style: italic;
}

.property-section {
    margin-bottom: 48px;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.property-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-item:hover .stat-icon {
    background: rgba(33, 150, 243, 0.1);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.unit-mix-table {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.unit-mix-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.unit-mix-table thead {
    background: var(--primary-color);
}

.unit-mix-table th {
    padding: 16px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.unit-mix-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.unit-mix-table tbody tr:last-child {
    border-bottom: none;
}

.unit-mix-table tbody tr:hover {
    background: var(--bg-gray);
}

.unit-mix-table td {
    padding: 16px 24px;
    font-size: 15px;
    color: var(--text-dark);
}

.unit-mix-table td:first-child {
    font-weight: 600;
}

.unit-mix-table td:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 12px;
}

.map-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.map-info p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.map-link:hover {
    text-decoration: underline;
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .listing-content,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .listing-sidebar,
    .detail-sidebar {
        order: 2;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .user-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: var(--shadow);
        display: none;
        z-index: 99;
    }

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

    .nav-links > a,
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item-dropdown:hover .dropdown-menu {
        position: static;
        transform: none;
        margin-top: 12px;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu::before {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-content {
        flex-direction: column;
    }

    .housing-grid,
    .housing-list {
        grid-template-columns: 1fr;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 24px;
    }

    .unit-mix-table th,
    .unit-mix-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 24px;
    }

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

.area-page {
    padding: 40px 0;
    background: var(--white);
    min-height: calc(100vh - 200px);
}

.area-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 32px;
}

@media (min-width: 1281px) {
    .area-content {
        grid-template-columns: 1fr 350px;
    }
}

.states-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    background: var(--white);
}

.state-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.state-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.state-item .state-name {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
}

.state-item .state-count {
    color: var(--text-light);
    font-size: 14px;
}

.ad-banner-inline {
    grid-column: 1 / -1;
    margin: 16px 0;
}

.ad-content {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    z-index: 1;
}

.ad-content img {
    width: 100%;
    height: auto;
    display: block;
}

.area-sidebar {
    position: static;
    height: fit-content;
}

@media (min-width: 1281px) {
    .area-sidebar {
        position: sticky;
        top: 100px;
    }
}

.advice-card {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: opacity 0.3s;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.advice-card:hover {
    opacity: 0.8;
}

.advice-card:last-child {
    border-bottom: none;
}

.advice-card img {
    width: 100px;
    min-width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.advice-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.advice-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.articles-page {
    padding: 40px 0 80px;
}

.article-tabs {
    display: flex;
    gap: 16px;
    margin: 32px 0;
    border-bottom: 2px solid var(--border-color);
}

.article-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.article-tab:hover {
    color: var(--primary-color);
}

.article-tab.active {
    color: var(--primary-color);
}

.article-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

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

.article-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-info {
    padding: 20px;
    position: relative;
}

.article-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-info p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.article-page {
    padding: 24px 0 60px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.article-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1281px) {
    .article-content {
        grid-template-columns: 1fr 350px;
    }
}

.article-main {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.entry {
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    box-sizing: border-box;
}

.entry p {
    margin-bottom: 20px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.entry h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 12px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.entry h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 10px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.entry ul,
.entry ol {
    margin: 16px 0;
    padding-left: 24px;
}

.entry ul li,
.entry ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry ul li {
    list-style-type: disc;
}

.entry ol li {
    list-style-type: decimal;
}

.entry strong {
    font-weight: 600;
    color: var(--text-dark);
}

.entry blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.entry blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.article-body p {
    margin-bottom: 16px;
}

.article-image {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.btn-large {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin: 24px 0;
}

.article-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 20px;
    color: var(--text-dark);
}

.related-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.related-article-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.related-article-card:hover {
    background: var(--border-color);
}

.related-article-card img {
    width: 120px;
    min-width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.related-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.related-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.related-content svg {
    position: absolute;
    bottom: 0;
    right: 0;
}

.subscribe-box {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.subscribe-content {
    display: flex;
    gap: 24px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.subscribe-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.subscribe-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.subscribe-text p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.subscribe-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.subscribe-input:focus {
    border-color: var(--primary-color);
}

.article-sidebar {
    position: static;
    height: fit-content;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 1281px) {
    .article-sidebar {
        position: sticky;
        top: 100px;
    }
}

@media (max-width: 768px) {
    .states-list {
        grid-template-columns: 1fr;
    }

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

    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }

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

    .article-main {
        padding: 16px;
    }

    .article-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .related-article-card {
        flex-direction: column;
    }

    .related-article-card img {
        width: 100%;
        height: 180px;
    }

    .subscribe-box {
        padding: 16px;
        margin-top: 24px;
    }

    .sidebar-card {
        padding: 16px;
    }

    .sidebar-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .entry h2 {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    .entry h3 {
        font-size: 16px;
        margin: 16px 0 8px;
    }

    .entry p {
        margin-bottom: 14px;
    }

    .entry ul,
    .entry ol {
        margin: 14px 0;
        padding-left: 20px;
    }

    .entry blockquote {
        margin: 16px 0;
        padding: 12px 16px;
    }

    .breadcrumb span:last-child {
        max-width: calc(100vw - 200px);
    }

    .container {
        padding: 0 16px;
    }

    .header .container {
        padding: 16px;
    }
}

.about-page {
    padding: 80px 0;
    background: var(--white);
    min-height: calc(100vh - 200px);
}

.about-section {
    margin-bottom: 60px;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.about-content {
    max-width: 800px;
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.contact-section {
    max-width: 800px;
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 48px 40px;
    max-width: 560px;
    width: 100%;
    position: relative;
    text-align: center;
}

.login-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-dark);
    transition: opacity 0.3s;
    z-index: 10;
}

.login-modal-close:hover {
    opacity: 0.7;
}

.login-modal-card {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.login-modal-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.login-modal-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(255, 182, 193, 0.3) 0%, rgba(173, 216, 230, 0.2) 50%, rgba(255, 255, 255, 0.4) 100%);
    pointer-events: none;
}

.login-modal-heart {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--white);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 5;
}

.login-modal-heart svg {
    fill: #ff4444;
    stroke: none;
}

.login-modal-card-info {
    background: var(--white);
    padding: 20px 24px;
    text-align: left;
}

.login-modal-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-modal-card-address {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.login-modal-card-actions {
    display: flex;
    gap: 12px;
}

.login-modal-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-gray);
}

.login-modal-icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.login-modal-icon-btn-primary {
    background: #6c8aef;
    border-color: #6c8aef;
    color: var(--white);
}

.login-modal-icon-btn-primary:hover {
    background: #5a76d4;
    border-color: #5a76d4;
}

.login-modal-icon-btn-primary svg {
    stroke: var(--white);
}

.login-modal-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.login-modal-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

.login-modal-button {
    width: 100%;
    padding: 16px 24px;
    background: #4285F4;
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-modal-button:hover {
    background: #3367d6;
}

.login-modal-button svg {
    flex-shrink: 0;
}

.login-modal-later {
    margin-top: 20px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.login-modal-later:hover {
    color: var(--text-gray);
}

.search-page {
    padding: 60px 0 80px;
    background: var(--white);
    min-height: calc(100vh - 200px);
}

.search-hero {
    text-align: center;
    margin-bottom: 48px;
}

.search-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.search-form {
    max-width: 680px;
    margin: 0 auto 32px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: var(--primary-dark);
}

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.popular-searches-label {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.search-tag {
    padding: 8px 20px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.search-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.search-results {
    margin-top: 60px;
}

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

.search-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.search-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.search-card-content {
    padding: 24px;
}

.search-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-arrow {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.search-card-arrow svg {
    margin-left: 4px;
}

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

    .contact-title {
        font-size: 24px;
    }

    .about-text,
    .contact-text {
        font-size: 15px;
    }

    .login-modal-content {
        padding: 32px 20px 28px;
        max-width: 94%;
    }

    .login-modal-card-image {
        height: 180px;
    }

    .login-modal-card-info {
        padding: 16px 20px;
    }

    .login-modal-card-title {
        font-size: 18px;
    }

    .login-modal-card-address {
        font-size: 13px;
    }

    .login-modal-icon-btn {
        width: 44px;
        height: 44px;
    }

    .login-modal-title {
        font-size: 22px;
    }

    .login-modal-subtitle {
        font-size: 15px;
    }

    .login-modal-button {
        font-size: 15px;
        padding: 14px 20px;
    }

    .search-hero-title {
        font-size: 32px;
    }

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

    .popular-searches {
        justify-content: flex-start;
    }
}
