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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #333;
}

.breadcrumb {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    font-size: 1rem;
    color: #666;
}

.breadcrumb-item {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.breadcrumb-clickable {
    cursor: pointer;
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumb-clickable:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.section h1 {
    font-size: 4rem;
    font-weight: 700;
}

.section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
}

.options {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.option-btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    background: #f5f5f5;
    border: 2px solid #333;
    cursor: pointer;
    font-weight: 600;
}

.option-btn:hover {
    background: #333;
    color: #fff;
}

.full-page-image {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-page-image h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #000;
    padding: 2rem;
    max-width: 1200px;
}

.density-page {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.5rem;
}

.density-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
}

.overlay-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.density-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.split-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.budget-side {
    display: flex;
    flex-direction: column;
}

.units-side {
    display: flex;
    flex-direction: column;
}

.unit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.unit-compact-card {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.unit-compact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.unit-compact-image {
    width: 100%;
    aspect-ratio: 17 / 11;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.asset-compact-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.unit-compact-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0;
}

.quantity-selector-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.next-btn-bottom {
    width: 200px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    background: #333;
    color: #fff;
    border: 2px solid #333;
    cursor: pointer;
    font-weight: 700;
    border-radius: 8px;
    margin: 2rem auto 0;
    display: block;
    transition: all 0.3s ease;
}

.next-btn-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 12px;
    margin-bottom: 1rem;
    width: 500px;
}

.simple-checkbox {
    width: 30px;
    height: 30px;
    border: 2px solid black;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.simple-checkbox.checked {
    background: black;
}

.simple-checkbox:hover {
    transform: scale(1.05);
}

.image-box {
    width: 17in;
    height: 11in;
    background: #f5f5f5;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.image-boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.next-btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    background: #333;
    color: #fff;
    border: 2px solid #333;
    cursor: pointer;
    font-weight: 600;
    margin-top: 2rem;
}

.checkbox-row span {
    font-size: 1.5rem;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.ownership-card {
    width: 600px;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ownership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.ownership-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    background: #fff;
}

.ownership-card.selected .ownership-header {
    background: #333;
    color: #fff;
}

.ownership-title {
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.expand-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.ownership-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.ownership-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.ownership-card.expanded .ownership-description {
    max-height: 500px;
}

.ownership-content {
    padding: 1.5rem;
    text-align: left;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #555;
}

.ownership-content strong {
    color: #333;
    display: block;
    margin-top: 0.5rem;
}

.unit-card {
    width: 600px;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    background: #fff;
}

.unit-card.selected .unit-header {
    background: #333;
    color: #fff;
}

.unit-title {
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.unit-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.unit-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.unit-card.expanded .unit-description {
    max-height: 800px;
}

.unit-content {
    padding: 1.5rem;
    text-align: left;
}

.unit-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.unit-image-preview {
    width: 100%;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

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

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.quantity-selector label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.qty-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: 700;
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #333;
    color: #fff;
}

.quantity-selector input[type="number"] {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid #333;
    border-radius: 8px;
    background: #fff;
}

.budget-tracker {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    background: #fff;
    border: 2px solid #333;
    border-radius: 12px;
    height: 100%;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.unit-mix-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #333;
}

.budget-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}

.budget-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.budget-remaining {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.budget-remaining.over-budget {
    color: #dc3545;
}

.budget-units {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.unit-mix-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.unit-mix-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.unit-mix-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 1rem;
    border: 1px solid #ddd;
}

.unit-mix-item .unit-type {
    color: #333;
    font-weight: 600;
}

.unit-mix-item .unit-count {
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
}

.unit-mix-empty {
    color: #999;
    font-style: italic;
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

.ownership-section {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #333;
}

.ownership-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.ownership-choice {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ownership-empty {
    color: #999;
    font-style: italic;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
}

.ownership-selected {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #333;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.ownership-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.asset-section {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #333;
}

.asset-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.asset-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.asset-empty {
    color: #999;
    font-style: italic;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.95rem;
}

.asset-name {
    color: #666;
    font-weight: 600;
}

.asset-cost {
    color: #333;
    font-weight: 700;
}

.layout-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #f5f5f5;
}

.layout-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.layout-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.density-indicator {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 250px;
}

.density-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.density-percentage {
    font-size: 1.3rem;
    font-weight: 800;
    color: #333;
}

.density-bar-container {
    width: 100%;
    height: 30px;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.density-bar-fill {
    height: 100%;
    transition: width 0.4s ease, background-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.density-bar-fill.very-low {
    background: linear-gradient(90deg, #10b981, #059669);
}

.density-bar-fill.low {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.density-bar-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.density-bar-fill.high {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.density-bar-fill.very-high {
    background: linear-gradient(90deg, #dc2626, #991b1b);
}

.layout-toolbar {
    position: fixed;
    left: 2rem;
    top: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.tool-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #f5f5f5;
}

.tool-btn.active {
    background: #ef4444;
    color: #fff;
    border-color: #dc2626;
}

.tool-btn:active {
    transform: translateY(-2px);
}

.tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
}

.tool-btn:hover .tooltip {
    opacity: 1;
}

.layout-icon.delete-mode {
    cursor: pointer;
    opacity: 0.7;
}

.layout-icon.delete-mode:hover {
    opacity: 1;
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.layout-icon.selected {
    border-color: #3b82f6;
    border-width: 4px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.layout-icon.selected::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #3b82f6;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.transform-controls {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 1rem;
    display: none;
    gap: 0.75rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.transform-controls.active {
    display: flex;
    flex-direction: column;
}

.transform-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.transform-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    min-width: 60px;
}

.transform-btn {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.transform-btn:hover {
    background: #333;
    color: #fff;
    transform: scale(1.05);
}

.transform-btn:active {
    transform: scale(0.95);
}

.zoom-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 0.75rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: #333;
    color: #fff;
}

.zoom-level {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    min-width: 50px;
    text-align: center;
}

.tool-btn-container {
    position: relative;
}

.density-presets {
    position: absolute;
    top: 70px;
    left: 0;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 200;
}

.tool-btn-container:hover .density-presets {
    display: flex;
}

.preset-btn {
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preset-btn:hover {
    background: #333;
    color: #fff;
    transform: translateX(4px);
}

.preset-btn.high-density {
    border-color: #ef4444;
}

.preset-btn.high-density:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.preset-btn.medium-density {
    border-color: #f59e0b;
}

.preset-btn.medium-density:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

.preset-btn.low-density {
    border-color: #10b981;
}

.preset-btn.low-density:hover {
    background: #10b981;
    border-color: #10b981;
}

.preset-icon {
    font-size: 1.2rem;
}

.layout-canvas {
    flex: 1;
    background: #e8f5e9;
    border: 3px solid #333;
    border-radius: 12px;
    position: relative;
    min-height: 600px;
    overflow: auto;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.layout-canvas:active {
    cursor: grabbing;
}

/* Smoother scrollbar */
.layout-canvas::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.layout-canvas::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.layout-canvas::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.layout-canvas::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.layout-canvas.grid-off {
    background: white;
}

.layout-viewport {
    position: relative;
    transform-origin: 0 0;
    width: 1620px;
    height: 1620px;
}

/* Street Grid Overlay */
.street-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.layout-canvas.grid-off .street-grid {
    display: none;
}

/* City blocks (buildable areas) */
.city-block {
    position: absolute;
    background: #fff;
    border: 2px solid #999;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* Park blocks */
.park-block {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    border: 2px solid #15803d;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.15);
}

.park-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 30%, #86efac 0%, transparent 15%),
        radial-gradient(circle at 70% 60%, #86efac 0%, transparent 12%),
        radial-gradient(circle at 50% 80%, #86efac 0%, transparent 18%),
        radial-gradient(circle at 20% 70%, #86efac 0%, transparent 10%),
        radial-gradient(circle at 80% 20%, #86efac 0%, transparent 14%);
    opacity: 0.4;
    pointer-events: none;
}

/* Streets (horizontal and vertical) */
.street-h {
    position: absolute;
    background: linear-gradient(180deg, #666 0%, #555 50%, #666 100%);
    left: 0;
    right: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.street-v {
    position: absolute;
    background: linear-gradient(90deg, #666 0%, #555 50%, #666 100%);
    top: 0;
    bottom: 0;
    box-shadow: inset 2px 0 4px rgba(0,0,0,0.3);
}

/* Street markings */
.street-h::after,
.street-v::after {
    content: '';
    position: absolute;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        #fff 20px,
        #fff 30px
    );
}

.street-h::after {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        #ffeb3b 20px,
        #ffeb3b 30px
    );
}

.street-v::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        180deg,
        transparent,
        transparent 20px,
        #ffeb3b 20px,
        #ffeb3b 30px
    );
}

/* Lot grid within blocks */
.city-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, #e0e0e0 1px, transparent 1px),
        linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.layout-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid #333;
    border-radius: 8px;
    cursor: move;
    user-select: none;
    transition: box-shadow 0.2s, transform 0.2s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    overflow: hidden;
}

.layout-icon:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transform: scale(1.05);
    z-index: 10;
}

.layout-icon.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(0.95);
}

.layout-icon-studio {
    border-color: #fbbf24;
}

.layout-icon-one-bedroom {
    border-color: #34d399;
}

.layout-icon-two-bedroom {
    border-color: #60a5fa;
}

.layout-icon-three-bedroom {
    border-color: #c084fc;
}

.layout-icon-asset {
    border-color: #f87171;
}

.icon-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    text-align: center;
    padding: 3px 2px;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    pointer-events: none;
}

.cover-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.cover-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.2;
    max-width: 1400px;
    margin: 0;
}

.cover-title-medium {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.3;
    max-width: 1200px;
    margin: 0;
}

.cover-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-top: 3rem;
    font-weight: 400;
    font-style: italic;
}

.urgency-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.section-title {
    font-size: 5rem;
    font-weight: 800;
    margin: 0;
}

.section-description {
    font-size: 2rem;
    color: #666;
    margin: 0;
}

.urgency-options {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.urgency-btn {
    padding: 3rem 6rem;
    font-size: 3rem;
    font-weight: 700;
    background: #f5f5f5;
    border: 4px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.urgency-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.low-btn:hover {
    background: #90EE90;
    border-color: #228B22;
}

.medium-btn:hover {
    background: #FFD700;
    border-color: #FF8C00;
}

.high-btn:hover {
    background: #FF6B6B;
    border-color: #DC143C;
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

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

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    background: #fff;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.image-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.unit-compact-image {
    cursor: pointer;
    transition: all 0.2s;
}

.unit-compact-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.asset-compact-image {
    cursor: pointer;
    transition: all 0.2s;
}

.asset-compact-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Asset Cards */
.asset-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.asset-card.selected {
    border-color: #3b82f6;
    border-width: 3px;
    background: #eff6ff;
}

.asset-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.asset-card-content {
    padding: 1.5rem;
}

.asset-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.asset-card-cost {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

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

    .cover-title-medium {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-description {
        font-size: 1.5rem;
    }

    .urgency-options {
        flex-direction: column;
        gap: 2rem;
    }

    .urgency-btn {
        padding: 2rem 4rem;
        font-size: 2rem;
    }
}
