/* ============================================================
   roofrental/roofrental.css — 지붕임대 페이지 전용 스타일
============================================================ */

/* ---------- 버튼 ---------- */
.btn-calculate {
    background: var(--trust-navy, #0A1931);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-calculate:hover {
    background: var(--main-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-reservation {
    background: var(--trust-navy, #0A1931);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-reservation:hover {
    background: var(--main-blue);
    box-shadow: 0 10px 20px -5px rgba(0, 98, 255, 0.3);
}

/* ---------- 히어로 대시보드 카드 ---------- */
.dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1.75rem;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--main-blue);
    opacity: 0.5;
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 98, 255, 0.4);
    transform: translateX(5px);
    box-shadow: 0 0 30px rgba(0, 98, 255, 0.15);
}

/* ---------- 섹션 제목 구분선 ---------- */
.section-title-line {
    width: 48px;
    height: 4px;
    background-color: var(--main-blue);
    margin-top: 1.5rem;
    border-radius: 2px;
}

/* ---------- 수익 계산기 결과 영역 ---------- */
#calc-result-area {
    display: none;
    animation: calcFadeIn 0.5s ease forwards;
}

@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- FAQ 아코디언 ---------- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: #f8fafc;
    border-radius: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---------- 슬라이더 ---------- */
.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .slider-item { flex: 0 0 50%; }
}

@media (min-width: 1024px) {
    .slider-item { flex: 0 0 33.333333%; }
}

/* ---------- 모달 ---------- */
.modal-overlay {
    background-color: rgba(10, 25, 49, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 수익률 비교 카드 ---------- */
.compare-card {
    transition: all 0.3s ease;
}

.compare-card.highlight {
    border: 2px solid var(--main-blue);
    transform: scale(1.02);
    z-index: 10;
}

/* ---------- 임대수익 예상 표 ---------- */
.revenue-table th {
    background-color: #f8fafc;
}

.revenue-table tr:nth-child(even) {
    background-color: #fbfcfe;
}

.revenue-table tr:hover {
    background-color: #f1f5ff;
}

/* ---------- 인센티브 그리드 아이템 ---------- */
.incentive-grid-item {
    transition: all 0.3s ease;
}

.incentive-grid-item:hover {
    background-color: #f1f7ff;
    z-index: 10;
}

/* ---------- 읽기 전용 정보 필드 ---------- */
.readonly-info {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* ---------- 스크롤바 ---------- */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 99px;
    margin: 20px 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 99px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.25);
}

/* ---------- 텍스트 줄바꿈 유지 ---------- */
.keep-all {
    word-break: keep-all;
}
