/* ============================================================
   제주공항렌트카 - list.php 전용 CSS
   style.css(메인) 위에 덮어쓰는 방식 – 충돌 없이 확장
============================================================ */

/* ── list-page body ── */
body.list-page { background: #F3F6FF; }

/* ── 헤더: list 페이지에서는 항상 불투명 ── */
body.list-page .header {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

/* ============================================================
   SEARCH HERO - 상단 검색 영역
============================================================ */
.list-hero {
  position: relative;
  padding: 100px 24px 48px;
  overflow: hidden;
}
.list-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0F2050 40%, #1A3A7A 70%, #0E5C9A 100%);
  z-index: 0;
}
.list-hero-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,109,255,.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(14,92,154,.35) 0%, transparent 60%);
}
.list-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.list-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.list-hero-label i { color: #60A5FA; }
.list-hero-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

/* search-card : 메인 스타일 그대로 사용 + 여백만 조정 */
.list-hero .search-card {
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* ── 달력 팝업 위치 보정 (hero 안에 있을 때) ── */
.list-hero .calendar-popup { z-index: 1200; }
.list-hero .calendar-dim   { z-index: 1199; }

/* ============================================================
   FILTER BAR - 차종 탭 + 결과 수
============================================================ */
.list-filter-bar {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 70px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.list-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.list-tab-wrap {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.list-tab-wrap::-webkit-scrollbar { display: none; }
.list-tab {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  font-family: 'Noto Sans KR', sans-serif;
}
.list-tab i { margin-right: 4px; }
.list-tab:hover { color: #1A6DFF; }
.list-tab.act {
  color: #1A6DFF;
  border-bottom-color: #1A6DFF;
}
.list-result-count {
  font-size: 13px;
  color: #6B7280;
  white-space: nowrap;
  flex-shrink: 0;
}
.list-result-count strong { color: #111827; font-weight: 700; }

/* ============================================================
   MAIN - 차량 목록 영역
============================================================ */
.list-main {
  min-height: 60vh;
  padding: 28px 0 60px;
}
.list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 스켈레톤 ── */
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skeleton-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  padding: 20px 24px;
  display: flex;
  gap: 24px;
  animation: skPulse 1.4s ease-in-out infinite;
}
@keyframes skPulse {
  0%,100% { opacity: 1; }
  50% { opacity: .45; }
}
.sk-left { flex-shrink: 0; }
.sk-img  { width: 200px; height: 150px; border-radius: 12px; background: #E5E7EB; }
.sk-right { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.sk-line  { height: 14px; border-radius: 6px; background: #E5E7EB; }
.sk-line.w30 { width: 30%; }
.sk-line.w40 { width: 40%; }
.sk-line.w50 { width: 50%; }
.sk-line.w70 { width: 70%; }
.sk-line.w90 { width: 90%; }
.sk-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sk-btn { width: 120px; height: 38px; border-radius: 10px; background: #E5E7EB; }

/* ── list.js가 append하는 div.list-car ── */
.list-car {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── 차량 카드 ── */
.list-item {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.list-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
  border-color: #1A6DFF;
}

/* 카드 상단: 이미지 + 기본정보 (모바일) */
.list-car-left {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.list-car-img {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: #F9FAFB;
}
.list-car-imgbox { position: relative; }
.list-car-imgbox img {
  width: 220px;
  height: 165px;
  object-fit: cover;
  display: block;
}
.list-car-imgbox > span {
  display: block;
  font-size: 10px;
  color: #9CA3AF;
  text-align: center;
  padding: 4px 8px;
  background: rgba(0,0,0,.03);
}
.list-car-productname {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  padding: 8px 14px 4px;
}
.list-car-img-info {
  font-size: 11px;
  color: #9CA3AF;
  padding: 0 14px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 모바일 뷰 타이틀 */
.list-car-title.mview {
  flex: 1;
  padding: 16px 20px;
}
.list-car-title.mhidden { display: none; }

.list-car-titlebar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.list-car-titlebar h2 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  width: 100%;
}
.car-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #E8F0FF;
  color: #1A6DFF;
}
.car-badge.info {
  background: #FFF7ED;
  color: #C2410C;
}
.list-car-insurinfo { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }

.list-car-titleinfo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.list-car-time {
  font-size: 12px;
  color: #9CA3AF;
}
.list-car-price {
  font-size: 24px;
  font-weight: 800;
  color: #1A6DFF;
}

.list-car-options {
  font-size: 12px;
  color: #4B5563;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.list-car-options .optitle {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  margin-right: 4px;
  white-space: nowrap;
}
.list-car-option {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #4B5563;
}
.list-car-option.act {
  background: #E8F0FF;
  border-color: #1A6DFF;
  color: #1A6DFF;
}
/* 공통 옵션 태그 스타일 (list.js가 생성하는 font 태그) */
font {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  margin: 0 2px 3px 0;
}
font.import {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

/* ── 업체별 테이블 ── */
.list-car-text { padding: 0 20px 20px; }
.list-car-inner { width: 100%; }
.list-car-check-box { margin-top: 8px; }

.list-car-check-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.list-car-check-box table thead tr th {
  background: #F9FAFB;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
}
.list-car-check-box table thead tr th:first-child { text-align: left; }

.list-car-check-box table tbody tr {
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background .15s;
}
.list-car-check-box table tbody tr:hover { background: #F0F7FF; }
.list-car-check-box table tbody tr.act   { background: #EFF6FF; }
.list-car-check-box table tbody tr:last-child { border-bottom: none; }

.list-car-check-box table tbody tr td {
  padding: 12px 14px;
  color: #111827;
  vertical-align: middle;
}
.list-car-check-box table tbody tr td:first-child { font-weight: 600; }
.tc { text-align: center !important; }

/* 더보기 행 숨김/표시 */
.list-car-check-box table tbody tr:nth-child(n+5) { display: none; }
.list-car-check-box.act table tbody tr:nth-child(n+5) { display: table-row; }

/* ── 예약 버튼 ── */
.resrvbtn {
  display: inline-block;
  background: #1A6DFF;
  color: #fff !important;
  border-radius: 10px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-align: center;
  white-space: nowrap;
}
.resrvbtn:hover {
  background: #0F52CC;
  transform: translateY(-1px);
}

/* 모바일 행내 예약 버튼 */
.list-car-check-box table tbody tr td .mview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.list-car-check-box table tbody tr td .mview > span:first-child {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.4;
}
.list-car-check-box table tbody tr td span.btn {
  display: inline-block;
  background: #1A6DFF;
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ── 더보기 버튼 ── */
.addview {
  text-align: center;
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  color: #1A6DFF;
  cursor: pointer;
  border-top: 1px solid #F3F4F6;
  transition: background .15s;
  border-radius: 0 0 4px 4px;
}
.addview:hover { background: #EFF6FF; }

/* ── 결과 없음 ── */
.list-empty {
  text-align: center;
  padding: 80px 24px;
}
.list-empty i {
  font-size: 52px;
  color: #D1D5DB;
  margin-bottom: 20px;
}
.list-empty h3 {
  font-size: 20px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}
.list-empty p {
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 24px;
}
.btn-reload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #1A6DFF;
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn-reload:hover { background: #0F52CC; transform: translateY(-1px); }

/* ============================================================
   반응형
============================================================ */
@media (max-width: 900px) {
  .list-filter-inner { padding: 0 16px; }
  .list-tab { padding: 12px 13px; font-size: 12px; }
  .list-result-count { display: none; }
}

@media (max-width: 768px) {
  .list-hero { padding: 80px 16px 36px; }
  .list-hero-title { font-size: 22px; }
  .list-main { padding: 16px 0 40px; }
  .list-container { padding: 0 14px; }

  .skeleton-card { flex-direction: column; }
  .sk-img { width: 100%; height: 160px; }

  .list-car-left { flex-direction: column; }
  .list-car-imgbox img { width: 100%; height: 200px; }
  .list-car-img { width: 100%; }
  .list-car-title.mview { padding: 12px 14px; }
  .list-car-price { font-size: 20px; }
  .list-car-text { padding: 0 14px 14px; }

  /* PC 전용 컬럼 숨김 */
  .mhidden { display: none !important; }

  .list-filter-bar { top: 64px; }
}

@media (max-width: 480px) {
  .list-hero { padding: 72px 12px 28px; }
  .list-hero-label { font-size: 11px; padding: 6px 14px; }
  .list-car-price { font-size: 18px; }
  .resrvbtn { padding: 8px 16px; font-size: 12px; }
}
