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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  color: #fff;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* 헤더 */
header {
  text-align: center;
  padding: 40px 0 30px;
}

.logo {
  margin-bottom: 15px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

header h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #8892a0;
  font-size: 1rem;
  font-weight: 400;
}

/* 검색 섹션 */
.search-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  gap: 8px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  transition: all 0.3s ease;
  flex: 1;
}

.search-box:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.search-box:focus-within {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.search-box input {
  flex: 1;
  padding: 12px 12px 12px 42px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  min-width: 0;
}

.search-box input::placeholder {
  color: #666;
}

.btn-search-inline {
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-search-inline:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-search-inline:disabled {
  background: #3a3a4a;
  cursor: not-allowed;
}

.btn-history-small {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-history-small:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
}

.btn-history-small svg {
  stroke: #888;
}

.btn-history-small:hover svg {
  stroke: #ff6b35;
}

/* 로딩 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  background: rgba(255, 107, 53, 0.05);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 10px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 107, 53, 0.2);
  border-top-color: #ff6b35;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading span {
  color: #aaa;
  font-size: 0.85rem;
}

/* 결과 컨테이너 */
.result-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-container:empty {
  display: none;
}

/* 결과 카드 */
.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.result-card:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.card-body {
  padding: 0;
  overflow-x: auto;
}

/* 날짜 정보 섹션 */
.date-info {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.04));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.date-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  min-width: 120px;
}

.date-label {
  font-size: 0.75rem;
  color: #ff6b35;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.highlight-card {
  border-color: rgba(255, 107, 53, 0.3);
}

/* 소방법령 카드 */
.law-card {
  border-color: rgba(76, 175, 80, 0.3);
  background: rgba(76, 175, 80, 0.03);
}

.law-card .card-header {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(139, 195, 74, 0.08));
}

.law-icon {
  background: linear-gradient(135deg, #4CAF50, #8BC34A) !important;
}

.law-body {
  padding: 24px;
}

.law-main {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.law-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4CAF50;
  margin-bottom: 8px;
  line-height: 1.4;
}

.law-period {
  font-size: 0.9rem;
  color: #8BC34A;
  margin-bottom: 8px;
  font-weight: 500;
}

.law-desc {
  font-size: 0.85rem;
  color: #aaa;
}

.law-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.law-section-title {
  font-size: 0.8rem;
  color: #4CAF50;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.law-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.law-points li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: #d0d0d0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.law-points li:last-child {
  border-bottom: none;
}

.law-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #4CAF50;
  border-radius: 50%;
}

.law-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #FFC107;
}

.law-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* 테이블 */
.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-table th {
  background: rgba(255, 255, 255, 0.02);
  color: #ff6b35;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-table td {
  font-size: 0.9rem;
  color: #d0d0d0;
}

.result-table tbody tr {
  transition: background 0.2s ease;
}

.result-table tbody tr:hover {
  background: rgba(255, 107, 53, 0.05);
}

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

.no-result {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  font-size: 0.95rem;
}

.error-message {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff6b6b;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

/* 복사 섹션 */
.copy-section {
  text-align: center;
  margin: 25px 0;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-copy svg {
  stroke: currentColor;
}

/* 푸터 */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #555;
  font-size: 0.8rem;
}

/* 반응형 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  header {
    padding: 30px 0 20px;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .search-box {
    flex-direction: column;
    padding: 12px;
  }

  .search-icon {
    left: 28px;
    top: 32px;
  }

  .search-box input {
    padding: 14px 16px 14px 45px;
  }

  .btn-search {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .result-table th,
  .result-table td {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  .card-header {
    padding: 14px 18px;
  }

  .card-title {
    font-size: 1rem;
  }

  .date-info {
    gap: 12px;
    padding: 16px 18px;
  }

  .date-item {
    padding: 10px 14px;
    min-width: 100px;
    flex: 1;
  }

  .date-value {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .result-table {
    font-size: 0.75rem;
  }

  .result-table th,
  .result-table td {
    padding: 10px 10px;
  }
}

/* 인증 섹션 */
.auth-section {
  position: absolute;
  top: 20px;
  right: 20px;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.user-info {
  position: relative;
}

.profile-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-dropdown:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  color: #888;
  transition: transform 0.2s;
}

.profile-dropdown:hover .dropdown-arrow {
  color: #fff;
}

/* 프로필 드롭다운 메뉴 */
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #1e1e2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.profile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.menu-user-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.menu-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.menu-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-user-email {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.profile-menu-item.logout {
  color: #ff6b6b;
}

.profile-menu-item.logout:hover {
  background: rgba(255, 82, 82, 0.1);
  color: #ff5252;
}

/* 로그인/회원가입 모달 */
.auth-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.auth-modal-close:hover {
  color: #333;
}

.auth-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
}

.auth-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-modal-btn.login-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}

.auth-modal-btn.login-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.auth-modal-btn.signup-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: none;
  color: #fff;
}

.auth-modal-btn.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.auth-modal-hint {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

@media (max-width: 768px) {
  .auth-section {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
  }

  .user-name {
    max-width: 80px;
  }
}

/* 모달 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

/* 검색 기록 리스트 */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.2);
}

.history-content {
  flex: 1;
  cursor: pointer;
}

.history-address {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.history-date {
  font-size: 0.8rem;
  color: #666;
}

.history-delete {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.history-delete:hover {
  background: rgba(255, 82, 82, 0.2);
  color: #ff5252;
}

.no-history,
.loading-small,
.error-small {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 0.95rem;
}

.error-small {
  color: #ff6b6b;
}

/* 건축물 수 헤더 */
.building-count-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 10px;
  margin-bottom: 12px;
}

.count-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.count-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.building-count-header span {
  font-size: 0.9rem;
  color: #d0d0d0;
}

.building-count-header strong {
  color: #ff6b35;
  font-weight: 700;
}

/* 건물 선택 탭 */
.building-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.building-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 100px;
  flex-shrink: 0;
}

.building-tab:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
}

.building-tab.active {
  background: rgba(255, 107, 53, 0.15);
  border-color: #ff6b35;
}

.tab-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
}

.building-tab.active .tab-name {
  color: #fff;
}

.tab-area {
  font-size: 0.7rem;
  color: #888;
}

.building-tab.active .tab-area {
  color: #ff6b35;
}

.tab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
}

/* 요약 카드 */
.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-building-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.summary-purpose {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.summary-body {
  padding: 12px 16px;
}

.summary-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-row.single {
  justify-content: flex-start;
}

.summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.summary-item.full {
  flex: none;
}

.summary-label {
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.3px;
}

.summary-value {
  font-size: 0.9rem;
  color: #e0e0e0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.btn-detail {
  padding: 8px 16px;
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-detail:hover {
  background: rgba(255, 107, 53, 0.3);
  border-color: #ff6b35;
}

/* 상세보기 모달 */
.detail-modal-content {
  width: 95%;
  max-width: 500px;
  max-height: 85vh;
}

.detail-modal-content .modal-body {
  max-height: 70vh;
  padding: 12px;
}

.detail-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-header {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* 상세 카드 그리드 */
.detail-cards {
  padding: 10px;
}

.detail-card-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

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

.detail-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-card-grid {
  padding: 10px 12px;
}

.detail-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-card-label {
  font-size: 0.75rem;
  color: #888;
}

.detail-card-value {
  font-size: 0.85rem;
  color: #e0e0e0;
  font-weight: 500;
}

/* 층별 리스트 */
.detail-floor-list {
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.detail-floor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  margin-bottom: 4px;
}

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

.floor-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff6b35;
  min-width: 35px;
}

.floor-use {
  flex: 1;
  font-size: 0.8rem;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floor-area {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

/* 소방법령 섹션 */
.law-section {
  border-color: rgba(76, 175, 80, 0.3);
}

.law-header {
  background: rgba(76, 175, 80, 0.1);
}

.law-header h4 {
  color: #4CAF50;
}

.law-content {
  padding: 12px;
}

.law-name-compact {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4CAF50;
  margin-bottom: 4px;
}

.law-period-compact {
  font-size: 0.75rem;
  color: #8BC34A;
  margin-bottom: 10px;
}

.law-points-compact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.law-points-compact li {
  font-size: 0.75rem;
  color: #aaa;
  padding: 4px 0 4px 12px;
  position: relative;
}

.law-points-compact li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #4CAF50;
  border-radius: 50%;
}

/* 반응형 */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  header {
    padding: 20px 0 15px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .auth-section {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
  }

  .search-section {
    margin-bottom: 15px;
  }

  .search-box input {
    padding: 10px 10px 10px 38px;
    font-size: 0.9rem;
  }

  .search-icon {
    left: 12px;
  }

  .btn-search-inline {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .building-tab {
    min-width: 90px;
    padding: 8px 12px;
  }

  .tab-name {
    font-size: 0.8rem;
  }

  .tab-area {
    font-size: 0.65rem;
  }
}
