/* Reset and Base Styles */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.3;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

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

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--primary);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar.scrolled .mobile-menu-toggle span {
    background-color: var(--primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary);
}

.mobile-only-call {
    display: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo .highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.celebration-banner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.4);
    margin-bottom: 2rem;
    animation: bounce-slight 2s infinite ease-in-out;
}

.celebration-banner .icon {
    font-size: 1.5rem;
}

.celebration-banner .banner-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.3;
}

.celebration-banner strong {
    font-size: 1.25rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.celebration-banner span {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes bounce-slight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); box-shadow: 0 15px 30px -5px rgba(234, 88, 12, 0.5); }
}

@media (max-width: 768px) {
    .celebration-banner {
        padding: 0.6rem 1.2rem;
        gap: 0.5rem;
    }
    .celebration-banner strong {
        font-size: 1.1rem;
    }
    .celebration-banner span {
        font-size: 0.85rem;
    }
    .celebration-banner .icon {
        font-size: 1.2rem;
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.5);
    color: #93c5fd;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Section Common */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 500;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 3rem;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 3rem;
    margin-left: 0;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 4px solid var(--accent);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.timeline-content {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 350px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
}

/* Cards */
.price-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.price-image-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.card-wrapper .card-grid {
    grid-template-columns: 1fr;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.border-accent {
    border-top: 4px solid var(--accent);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
}

.tag {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tag-blue {
    background-color: #e0f2fe;
    color: #0284c7;
}

.card-body {
    padding: 2rem 1.5rem;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text-muted);
}

.info-list span {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.table-responsive {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    font-weight: 600;
    color: var(--text-muted);
    background-color: #fafafa;
}

.price-table td strong {
    color: var(--accent);
}

.md-recommendation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
}

.md-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.md-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.md-list li {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.md-floor {
    background: var(--primary-light);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.md-alert {
    background-color: #eff6ff;
    border-left: 4px solid var(--accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #1e40af;
}

.md-alert strong {
    color: #1e3a8a;
    font-weight: 700;
}

/* Floorplan Section */
.floorplan-section {
    background-color: #fff;
}

.floorplan-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.floorplan-map-wrapper {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.floorplan-map {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 비율 */
}

.building-outline {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid #cbd5e1;
    background: #f1f5f9;
    border-radius: 8px;
}

.unit-block {
    position: absolute;
    background-color: rgba(249, 115, 22, 0.7); /* 주황색 반투명 */
    border: 2px solid #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.unit-block:hover {
    background-color: rgba(249, 115, 22, 0.9);
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.unit-label {
    padding: 0.2rem 0.5rem;
}

/* 실제 도면의 위치 비율에 대략적으로 맞춤 */
.block-101-111 {
    bottom: 5%; left: 5%; width: 45%; height: 22%;
}

.block-112-117 {
    bottom: 5%; right: 10%; width: 30%; height: 22%;
}

.block-118-121 {
    top: 40%; right: 10%; width: 15%; height: 20%;
}

.other-block {
    position: absolute;
    background-color: rgba(148, 163, 184, 0.3);
    border: 1px dashed #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 4px;
}

.block-office-1 {
    top: 30%; left: 5%; width: 15%; height: 35%;
}

.block-office-2 {
    top: 5%; right: 10%; width: 35%; height: 20%;
}

.core-area {
    position: absolute;
    top: 30%; left: 30%; width: 30%; height: 40%;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
}

.floorplan-table-wrapper {
    background: #fff;
}

.unit-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.unit-table th, .unit-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.unit-table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
}

.unit-table td {
    color: var(--primary);
    font-weight: 500;
}

.table-divider td {
    padding: 0.25rem;
    background-color: #f1f5f9;
}

.table-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: right;
}

@media (max-width: 768px) {
    .floorplan-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .floorplan-map {
        padding-bottom: 100%; /* Make map taller on mobile */
    }
}

/* LOI Section */
.loi-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.loi-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.loi-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.loi-desc strong {
    color: var(--accent);
    background: linear-gradient(to top, rgba(37,99,235,0.2) 40%, transparent 40%);
}

.docs-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.docs-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.docs-list li {
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
}

.docs-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.contact-box {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.contact-box span {
    display: block;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.phone-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.contact-box p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Form Styles */
.loi-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    border: 1px solid var(--border);
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
}

.form-notice {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

/* Location Section */
.location-section {
    background-color: var(--bg-light);
}

.map-container {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

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

.map-external-links {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn-naver {
    background-color: #03c75a;
    color: white;
    flex: 1;
    max-width: 250px;
}

.btn-naver:hover {
    background-color: #02b350;
    color: white;
}

.btn-kakao {
    background-color: #fee500;
    color: #191919;
    flex: 1;
    max-width: 250px;
}

.btn-kakao:hover {
    background-color: #e6ce00;
    color: #191919;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-info {
    text-align: right;
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-notice {
    margin-top: 10px;
    color: #cbd5e1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .price-layout {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .loi-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .location-info {
        grid-template-columns: 1fr;
    }
    .map-external-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .map-external-links .btn {
        width: 100%;
        max-width: 100%;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .contact-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .call-btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 2rem;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        color: var(--primary);
        font-size: 1.25rem;
    }
    .navbar.scrolled .nav-links a {
        color: var(--primary);
    }
    .mobile-only-call {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.8rem 1.5rem;
        background-color: var(--accent);
        color: white !important;
        border-radius: 9999px;
        font-weight: 600;
        font-size: 1.1rem;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 50px;
    }
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin: 0;
        text-align: left;
    }
    .timeline-dot {
        left: 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-info {
        text-align: center;
    }
    .price-table {
        font-size: 0.9rem;
    }
    .price-table th, .price-table td {
        padding: 0.75rem 0.5rem;
    }
    .feature-image {
        min-height: 250px;
    }
    .contact-box .phone-number {
        font-size: 2.25rem;
    }
}

/* Floor Overview Section */
.floor-overview-section {
    background-color: var(--bg-main);
}

.floor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.floor-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

.floor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.floor-card.highlight-card {
    background: #f8fafc;
    border: 2px solid var(--accent);
}

.floor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}

.floor-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.floor-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.floor-body p {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.floor-body span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.floor-badge {
    position: absolute;
    top: -10px;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-sm);
}

.badge-top { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.badge-mid { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-retail { background: linear-gradient(135deg, #10b981, #059669); }




/* ==========================================================================
   BLUEPRINT CALCULATOR STYLES
   ========================================================================== */

/* 엘리프 마곡 가든스퀘어 전용/분양면적 계산기 프리미엄 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* 테마 변수 선언 */
:root {
  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Outfit', sans-serif;

  /* HSL 프리미엄 컬러 스키마 (기본 라이트 모드) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --border-color: rgba(226, 232, 240, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --brand-gold: #c29f53; /* 프리미엄 골드 테마 */
  --brand-gold-hover: #b08d41;
  --brand-gold-light: rgba(194, 159, 83, 0.1);
  --brand-gold-border: rgba(194, 159, 83, 0.3);
  
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --blur-val: 16px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* 다크 모드 변수 */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --border-color: rgba(31, 41, 55, 0.8);
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  
  --brand-gold: #dfba6b;
  --brand-gold-hover: #f0cb7c;
  --brand-gold-light: rgba(223, 186, 107, 0.15);
  --brand-gold-border: rgba(223, 186, 107, 0.4);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* 기본 스타일화 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ko);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

/* 레이아웃 & 컨테이너 */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-val));
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-gold);
  letter-spacing: 1px;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 500;
  border-left: 2px solid var(--border-color);
  padding-left: 0.75rem;
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 버튼 및 제어 요소 */
.btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}
.btn-theme-toggle:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background-color: var(--brand-gold-light);
}

/* 대표문의 전화번호 스타일 */
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-gold);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--brand-gold-border);
  background-color: var(--brand-gold-light);
  transition: var(--transition);
}

.header-phone:hover {
  background-color: var(--brand-gold);
  color: #ffffff;
  border-color: var(--brand-gold);
  box-shadow: 0 4px 12px rgba(194, 159, 83, 0.25);
}

.header-phone svg {
  stroke: currentColor;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .app-header {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .brand-title {
    display: none;
  }
  .header-phone {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 500px; /* 계산기 영역 500px로 소폭 확대 */
  gap: 2rem;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

@media (max-width: 1200px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
}

/* 왼쪽 패널: 층 선택 및 도면 뷰어 */
.viewer-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 층수 탭 슬라이더 */
.floor-selector {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.floor-tab {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.floor-tab:hover {
  color: var(--brand-gold);
  background: var(--brand-gold-light);
}

.floor-tab.active {
  background: var(--brand-gold);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(194, 159, 83, 0.3);
}

/* 층별 전체 합계 요약바 */
.floor-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.floor-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-right: 1px solid var(--border-color);
}

.floor-summary-item:last-child {
  border-right: none;
}

.floor-summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.floor-summary-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-gold);
  font-family: var(--font-en);
}

/* 도면 이미지 카드 */
.blueprint-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blueprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blueprint-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blueprint-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--brand-gold);
  border-radius: 2px;
}

.viewer-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-icon:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background-color: var(--brand-gold-light);
}

/* 줌 및 드래그 도면 영역 */
.blueprint-viewer {
  position: relative;
  width: 100%;
  height: 520px;
  background-color: #fafafa;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.blueprint-viewer:active {
  cursor: grabbing;
}

[data-theme="dark"] .blueprint-viewer {
  background-color: #1a202c;
}

.blueprint-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.1s ease;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

/* 호실 그리드 목록 */
.room-grid-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.room-grid-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.room-btn {
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.room-btn:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.room-btn.selected {
  background: var(--brand-gold-light);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--brand-gold);
}

/* 오른쪽 패널: 계산기 & 견적서 */
.control-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 글래스모피즘 계산기 카드 */
.calculator-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), #f59e0b);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 단위 스위치 */
.unit-switch {
  display: flex;
  background: var(--bg-primary);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.unit-btn {
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.unit-btn.active {
  background: var(--bg-secondary);
  color: var(--brand-gold);
  box-shadow: var(--shadow-sm);
}

/* 메인 정보 그리드 */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 0.2rem;
}

/* 단가 입력 그룹 */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.price-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  padding-right: 4rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.05rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.price-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-light);
}

.price-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.input-suffix {
  position: absolute;
  right: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 상세 납부 일정 시뮬레이션 */
.schedule-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.schedule-label {
  color: var(--text-secondary);
}

.schedule-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  font-family: var(--font-en);
}

.schedule-val {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--text-primary);
}

.schedule-total {
  font-size: 1.05rem;
  font-weight: 700;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.schedule-total .schedule-label {
  color: var(--brand-gold);
}

.schedule-total .schedule-val {
  color: var(--brand-gold);
  font-size: 1.2rem;
}

/* 버튼 레이아웃 */
.btn-action-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary {
  flex: 1;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  background: var(--brand-gold);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--brand-gold-hover);
  box-shadow: 0 4px 12px rgba(194, 159, 83, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none !important;
  background: var(--text-muted);
}

.btn-secondary {
  flex: 1;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background-color: var(--brand-gold-light);
}

/* 관심 호실 견적서 */
.estimate-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}

.estimate-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.5rem;
}

.estimate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.estimate-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 90%;
}

.estimate-item-title {
  font-weight: 700;
}

.estimate-item-desc {
  font-family: var(--font-en);
  color: var(--text-muted);
  font-size: 0.75rem;
  word-break: break-all;
}

.btn-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 0.2rem;
}

.btn-delete:hover {
  color: var(--accent-red);
}

.empty-estimate {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.estimate-summary {
  background: var(--brand-gold-light);
  border: 1px solid var(--brand-gold-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.estimate-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.estimate-summary-row.total {
  font-size: 1.05rem;
  font-weight: 700;
  border-top: 1px dashed var(--brand-gold-border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  color: var(--brand-gold);
}

.estimate-summary-row.total span:last-child {
  font-size: 1.25rem;
}

/* 저작권 및 꼬리말 */
.app-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* 견적 차수 선택 탭 */
.estimate-tabs {
  display: flex;
  background: var(--bg-primary);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.estimate-tab {
  flex: 1;
  padding: 0.6rem;
  border: none;
  background: transparent;
  font-family: var(--font-ko);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  text-align: center;
}

.estimate-tab:hover {
  color: var(--brand-gold);
  background: var(--brand-gold-light);
}

.estimate-tab.active {
  background: var(--brand-gold);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(194, 159, 83, 0.2);
}

/* 비교 대시보드 카드 */
.comparison-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.comparison-table th, 
.comparison-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-ko);
}

.comparison-table th {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.comparison-table td {
  color: var(--text-primary);
  font-weight: 500;
}

/* 비교 테이블 항목 컬럼 및 강조 */
.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  padding-left: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-primary);
  width: 110px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight-row td {
  background: var(--brand-gold-light);
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.comparison-table .highlight-row td:first-child {
  color: var(--brand-gold);
}

/* 인쇄 및 프린터 스타일 정의 */
@media print {
  @page {
    size: A4;
    margin: 0.8cm;
  }

  body {
    background: white !important;
    color: #000000 !important;
    font-size: 8.5pt !important;
    line-height: 1.3 !important;
  }
  
  /* 불필요한 UI 숨김 */
  .app-header, 
  .floor-selector,
  .floor-summary-bar,
  .blueprint-card, 
  .room-grid-card,
  .calculator-card, /* 계산기 숨김 */
  .btn-action-group,
  .btn-theme-toggle,
  .app-footer,
  .btn-delete,
  .unit-switch,
  .estimate-tabs {
    display: none !important;
  }
  
  .calculator-layout {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* 견적서와 비교표를 가로 2열로 나란히 배치하여 A4 1장에 컴팩트하게 맞춤 */
  .control-section {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 0.5cm !important;
    width: 100% !important;
  }

  .estimate-card, 
  .comparison-card {
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 0.8rem !important;
    background: #fff !important;
    page-break-inside: avoid !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
  }
  
  .section-title {
    font-size: 10pt !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1.5px solid #000 !important;
    padding-bottom: 0.2rem !important;
  }
  
  /* 비교표 인쇄 스타일 조정 */
  .comparison-table th, 
  .comparison-table td {
    padding: 0.4rem 0.2rem !important;
    border-bottom: 1px solid #ccc !important;
    color: #000 !important;
    font-size: 7.5pt !important;
  }
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    background: #f0f0f0 !important;
    border-right: 1px solid #ccc !important;
    width: 80px !important;
  }
  .comparison-table .highlight-row td {
    background: #f5f5f5 !important;
    font-weight: 700 !important;
    color: #000 !important;
  }
  
  /* 견적 리스트 출력 가독성 개선 */
  .estimate-list {
    max-height: none !important;
    margin-bottom: 0.5rem !important;
  }
  .estimate-item {
    border: 1px solid #ddd !important;
    background: #fafafa !important;
    margin-bottom: 0.3rem !important;
    padding: 0.4rem !important;
  }
  .estimate-item-title {
    font-size: 8.5pt !important;
  }
  .estimate-item-desc {
    color: #333 !important;
    font-size: 7.5pt !important;
    line-height: 1.2 !important;
  }
  .estimate-summary {
    background: #fafafa !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    padding: 0.5rem !important;
    gap: 0.4rem !important;
  }
  .estimate-summary-row {
    font-size: 8pt !important;
  }
  .estimate-summary-row.total {
    border-top: 1px dashed #000 !important;
    color: #000 !important;
    padding-top: 0.3rem !important;
    margin-top: 0.1rem !important;
  }
  .estimate-summary-row.total span:last-child {
    font-size: 10pt !important;
  }
}
