/*
 * 파일명: styles.css
 * 위치: /var/www/html/travel/assets/css/styles.css
 * 기능: 메인 스타일시트 (개선된 버전)
 * 작성일: 2025-05-20
 */

/* ===================================
 * 전역 스타일
 * ===================================
 */

/* 색상 변수 */
:root {
  --orange-primary: #f60;
  --orange-secondary: #ff8533;
  --orange-light: #fff2e6;
  --dark-text: #333;
  --light-text: #777;
  --white: #fff;
  --light-bg: #f8f9fa;
  --border-light: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
}

/* 기본 스타일 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 16px;
  background-color: #fff;
}

/* 여백 조정 */
.container {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* 섹션 타이틀 */
.section-title {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
  font-size: 1.75rem;
}

.section-title.text-start::after {
  left: 0;
  transform: none;
}

/* 섹션 간격 */
section {
  padding: var(--space-lg) 0;
}

/* ===================================
 * 헤더 스타일
 * ===================================
 */
/* 헤더 컨테이너 */
header {
  box-shadow: var(--shadow-sm);
}

/* 헤더 검색 폼 */
.search-form {
  max-width: 500px;
}

.search-form .form-control {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
}

/* 네비게이션 메뉴 */
.navbar {
  padding: 0.5rem 0;
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-text);
  padding: 0.8rem 1rem;
  transition: color 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--orange-primary);
}

/* 헤더 모바일 최적화 */
@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }
  /* 네비게이션 메뉴 */
.navbar {
  padding: 0;
}
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }
  
  .search-form {
    margin: 0.5rem 0;
    width: 100%;
  }
}

/* 메가메뉴 */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 1.5rem 0;
  border-top: 2px solid var(--orange-primary);
}

.nav-item.position-static:hover .mega-menu {
  display: block;
}

.menu-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--orange-primary);
  padding-bottom: 0.5rem;
  color: var(--dark-text);
}

.mega-menu .list-unstyled li {
  padding: 0.25rem 0;
}

.mega-menu .list-unstyled li a {
  color: var(--dark-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.mega-menu .list-unstyled li a:hover {
  color: var(--orange-primary);
}

/* ===================================
 * 메인 배너 스타일
 * ===================================
 */

/* 메인 캐러셀 */
.main-banner {
  margin-bottom: var(--space-xl);
}

.main-banner .carousel-item {
  height: 450px;
  background-size: cover;
  background-position: center;
}

.main-banner .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.main-banner .carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  max-width: 600px;
  margin: 0 auto;
  bottom: 50px;
}

.main-banner .carousel-caption h2 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.main-banner .carousel-caption p {
  margin-bottom: 1rem;
}

.main-banner .carousel-caption .btn {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.main-banner .carousel-indicators {
  margin-bottom: 1rem;
}

.main-banner .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.main-banner .carousel-control-prev,
.main-banner .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  margin: 0 1rem;
}

.main-banner .carousel-control-prev:hover,
.main-banner .carousel-control-next:hover {
  opacity: 1;
}

/* 그림자 텍스트 */
.shadow-text {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===================================
 * 카드 스타일
 * ===================================
 */

/* 여행 상품 카드 */
.tour-card {
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tour-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.tour-card .card-body {
  padding: 1rem;
}

.tour-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.75rem;
}

.tour-card .card-footer {
  padding: 0.75rem 1rem;
  background-color: transparent;
  border-top: 1px solid var(--border-light);
}

.tour-card .rating {
  margin-bottom: 0.5rem;
}

.tour-card .rating .bi-star-fill,
.tour-card .rating .bi-star {
  color: #ffc107;
  font-size: 0.9rem;
}

.tour-card .price {
  font-size: 1.1rem;
  color: var(--orange-primary);
  font-weight: 600;
}

/* ===================================
 * 프로모션 배너 스타일
 * ===================================
 */

/* 프로모션 배너 */
.promo-banner .card {
  overflow: hidden;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.promo-banner img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.promo-banner .card-body {
  padding: 2rem;
  height: 100%;
}

.promo-banner .card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.promo-banner .card-text {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--light-text);
}

.promo-banner .btn {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* ===================================
 * 페이지네이션 스타일
 * ===================================
 */

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pagination a:hover {
  background-color: var(--light-bg);
}

.pagination span.current {
  background-color: var(--orange-primary);
  color: white;
  border-color: var(--orange-primary);
}

/* ===================================
 * 입력 폼 스타일
 * ===================================
 */

/* 입력 폼 그룹 */
.input-group-text {
  border-right: none;
  background-color: var(--white);
}

.input-group .form-control {
  border-left: none;
  padding-left: 0;
}

/* ===================================
 * 투어 상세 페이지 스타일
 * ===================================
 */

/* 투어 헤더 */
.tour-header .card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 갤러리 */
.tour-gallery img {
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* 리뷰 섹션 */
.rating-select i {
  cursor: pointer;
  color: #ffc107;
  font-size: 1.5rem;
}

/* ===================================
 * 검색 페이지 스타일
 * ===================================
 */

/* 필터 사이드바 */
.filter-sidebar {
  position: sticky;
  top: 20px;
}

.filter-box {
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-title {
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--dark-text);
}

.filter-box .form-check {
  margin-bottom: 0.5rem;
}

/* ===================================
 * 마이페이지 스타일
 * ===================================
 */

/* 프로필 카드 */
.profile-card {
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.profile-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--orange-light);
}

/* 예약 카드 */
.booking-card {
  margin-bottom: 1.25rem;
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.booking-status {
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 500;
  display: inline-block;
}

.booking-status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.booking-status.confirmed {
  background-color: #d4edda;
  color: #155724;
}

.booking-status.cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.booking-status.completed {
  background-color: #e2e3e5;
  color: #383d41;
}

/* ===================================
 * 반응형 스타일
 * ===================================
 */

/* 모바일 화면용 */
@media (max-width: 767.98px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  section {
    padding: 1.5rem 0;
  }
  
  .main-banner .carousel-item {
    height: 300px;
  }
  
  .main-banner .carousel-caption {
    bottom: 30px;
    padding: 1rem;
    max-width: 90%;
  }
  
  .main-banner .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .main-banner .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .main-banner .carousel-caption .btn {
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .tour-card .card-img-top {
    height: 160px;
  }
  
  .tour-card .card-body {
    padding: 0.75rem;
  }
  
  .tour-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .tour-card .rating {
    margin-bottom: 0.3rem;
  }
  
  .tour-card .rating .bi-star-fill,
  .tour-card .rating .bi-star {
    font-size: 0.8rem;
  }
  
  .tour-card .price {
    font-size: 1rem;
  }
  
  .tour-card .card-footer {
    padding: 0.5rem 0.75rem;
  }
  
  .tour-card .btn {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
  }
  
  .promo-banner .card-body {
    padding: 1.25rem;
  }
  
  .promo-banner .card-title {
    font-size: 1.35rem;
  }
  
  .promo-banner .card-text {
    font-size: 0.95rem;
  }
}

/* 태블릿 화면용 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .main-banner .carousel-item {
    height: 350px;
  }
  
  .main-banner .carousel-caption {
    max-width: 80%;
  }
  
  .section-title {
    font-size: 1.65rem;
  }
  
  .tour-card .card-img-top {
    height: 180px;
  }
}

/* ===================================
 * 색상 및 테마 스타일
 * ===================================
 */

/* 브랜드 색상 */
.bg-primary {
  background-color: var(--orange-primary) !important;
}

.text-primary {
  color: var(--orange-primary) !important;
}

.btn-primary {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

.btn-primary:hover {
  background-color: var(--orange-secondary);
  border-color: var(--orange-secondary);
  color: white;
}

.btn-outline-primary {
  color: var(--orange-primary);
  border-color: var(--orange-primary);
  font-weight: 500;
  padding: 0.5rem 0.5rem;
}

.btn-outline-primary:hover {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
  color: white;
}

.btn {
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/*
 * 파일명: certificate-popup.css
 * 위치: /var/www/html/travel/assets/css/certificate-popup.css
 * 기능: 인증서류 팝업 관련 스타일
 * 작성일: 2025-05-22
 */

/* ===================================
 * 인증서류 팝업 스타일
 * ===================================
 */

/* 인증서류 링크 스타일 */
.certificate-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.certificate-btn {
    border: none !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.certificate-btn:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.certificate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* 인증서류 모달 스타일 */
#certificateModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#certificateModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

#certificateModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

#certificateModal .modal-title::before {
    content: "\F5F9"; /* Bootstrap Icons - shield-check */
    font-family: "bootstrap-icons";
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

#certificateModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#certificateModal .btn-close:hover {
    opacity: 1;
}

#certificateModal .modal-body {
    padding: 2rem 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 로딩 스피너 */
.certificate-loading {
    text-align: center;
    padding: 2rem 0;
}

.certificate-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 인증서류 이미지 컨테이너 */
.certificate-image-container {
    position: relative;
    max-width: 100%;
    text-align: center;
}

#certificateImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#certificateImage:hover {
    transform: scale(1.02);
}

/* 에러 메시지 */
.certificate-error {
    padding: 1rem 0;
}

.certificate-error .alert {
    margin: 0;
    border-radius: 8px;
}

/* 모달 푸터 */
#certificateModal .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.5rem;
}

#downloadCertificate {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#downloadCertificate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* ===================================
 * 반응형 디자인
 * ===================================
 */

/* 모바일 최적화 */
@media (max-width: 767.98px) {
    .certificate-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 1rem;
    }
    
    .certificate-btn {
        margin-bottom: 0.5rem;
        text-align: center;
        padding: 0.5rem;
        border-radius: 6px;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .certificate-btn:last-child {
        margin-bottom: 0;
    }
    
    #certificateModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #certificateModal .modal-body {
        padding: 1rem;
        min-height: 150px;
    }
    
    #certificateImage {
        max-height: 50vh;
    }
    
    #certificateModal .modal-header {
        padding: 1rem;
    }
    
    #certificateModal .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #certificateModal .modal-footer .btn {
        width: 100%;
        margin-bottom: 0;
    }
}

/* 태블릿 최적화 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .certificate-links {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .certificate-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    #certificateModal .modal-dialog {
        max-width: 600px;
    }
}

/* 데스크톱 최적화 */
@media (min-width: 992px) {
    .certificate-links {
        gap: 1rem;
    }
    
    #certificateModal .modal-dialog {
        max-width: 800px;
    }
    
    #certificateImage {
        max-height: 70vh;
    }
}

/* ===================================
 * 애니메이션 효과
 * ===================================
 */

/* 모달 등장 애니메이션 */
#certificateModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

#certificateModal.show .modal-dialog {
    transform: none;
}

/* 이미지 로드 애니메이션 */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.certificate-image-container:not(.d-none) #certificateImage {
    animation: fadeInImage 0.4s ease-out;
}

/* 로딩 스피너 회전 애니메이션 개선 */
.certificate-loading .spinner-border {
    animation: spinner-border 0.8s linear infinite;
}

/* 호버 효과 개선 */
.certificate-btn {
    position: relative;
    overflow: hidden;
}

.certificate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.certificate-btn:hover::before {
    left: 100%;
}

/* ===================================
 * 접근성 개선
 * ===================================
 */

/* 포커스 스타일 개선 */
.certificate-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* 스크린 리더 지원 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .certificate-btn {
        border: 1px solid currentColor !important;
    }
    
    #certificateModal .modal-content {
        border: 2px solid #333;
    }
}

/* 모션 감소 모드 지원 */
@media (prefers-reduced-motion: reduce) {
    .certificate-btn,
    #certificateImage,
    #downloadCertificate {
        transition: none;
        transform: none;
        animation: none;
    }
    
    .certificate-btn:hover {
        transform: none;
    }
    
    #certificateImage:hover {
        transform: none;
    }
}