/*공통*/
input {
  border: none;
  outline: none;
  background: none;
  box-shadow: none;
  appearance: none;       /* 크롬, 사파리 기본 스타일 제거 */
  -webkit-appearance: none; /* iOS 사파리 */
}
:root{
  --border:#2B9B69;
  --bg:#f8fafb;
  --sticky:#ffffffcc;
  --muted:#9aa1a7;
  --sat:#2a8cff;
  --sun:#ff4d4f;
}
/*===========================================*/
.bgps-container{
  margin: 24vh auto 0 auto;
  width: 95%;
  height: 100%;
  text-align: center;
}
.bgps-container .bgps-select-box {
  width: 100%;
  height: 30px;
  display: flex;
  position: relative;
}
/*검색*/
.bgps-ccSech{
  position:relative;
  text-align: center;
}
.bgps-ccSech div{
  background-color: white;
  z-index: 2;
}
.bgps-ccSech>div.bgps-ccSech-box{
  position:sticky;
  top:calc(env(safe-area-inset-top) + 60px);
  left: 0;
  right: 0;
  height: 6vh;
  z-index: 3;
}
.bgps-ccSech-List-box{
  display: none;
  position: absolute;
  left: 3.5%;
  top:calc(env(safe-area-inset-top) + 18vh);
  transform: translate(0%, -50%);
  height: 200px;
  width: 92vw;
  font-size: 18px;
  background-color: white;
  overflow: scroll;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  text-align: left;
  box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}
.bgps-ccSech-List-box>li{
  font-size: 13px;
  width: 80vw;
  margin: 20px auto;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(222, 222, 222, 0.56);
}
.bgps-ccSech-box img{
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
}
.bgps-ccSech-box input{
  position: absolute;
  left: 2.5%;
  top: 50%;
  transform: translate(0%, -50%);
  height: 30px;
  width: 88%;
  border-radius: 5px;
  font-size: 14px;
  padding: 0 10px;
  border: 1px solid black;
}
.bgps-recent-wrap {
  width: 95%;
  /*background: lightgray;*/
  margin: 0 auto;
  max-height: 400px;
  overflow-y: auto;
}

.bgps-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  color: #666;
}
.bgps-recent-header .clear-all {
  border: none;
  background: none;
  font-size: 12px;
}
.bgps-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bgps-recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
.bgps-recent-list li p {
  margin: 0;
  font-size: 14px;
  color: #333;
}
.bgps-recent-list li .delete-btn {
  border: none;
  background: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
}
/* bestGreenPeeCompare - title */
.bgps-container .bgps-compare-title-box{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 70%;
}
.bgps-container .bgps-compare-title-box .title{
  text-align: start;
  line-height: 20px;
}
.bgps-container .bgps-compare-title-box .title>p.title-text{
  font-size: 17px;
  font-weight: bolder;
}
.bgps-container .bgps-compare-title-box .title>p.addr-text{
  font-size: 15px;
}
.bgps-container .bgps-compare-title-box .pref-icon>img{
  width: 40px;
  height: 40px;
  z-index: 10;
}
/* bestGreenPeeCompare - footer( 홈페이지 버튼 ) */
.bgps-compare-footer{
  width: 100%;
  height: 60px;
}
.bgps-compare-footer>button{
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  color: white;
  font-weight: bolder;
  border: none;
  font-size: 14px;
  text-align: center;
}


/*데이터 테이블 (테스트)*/
.bgps-container .bgps-compare-table-wrap{
  border:1px solid var(--border);
  border-radius:10px; overflow:hidden;
  margin: 30px 0;
}
.bgps-container .scroll-x{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch
}
.bgps-container table{
  border-collapse:separate;
  border-spacing:0;
  width:100%;
  min-width:1120px;
  table-layout:fixed;
  font-size:14px
}
.bgps-container thead th{
  position:sticky;
  top:0; z-index:3;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  text-align:center;
  padding:10px 8px 12px;
  line-height:1.1;
}
.bgps-container thead th:first-of-type {
  border-right : 1px solid var(--border);
}
.bgps-container .sticky{
  position:sticky;
  left:0;
  z-index:4;
  background:var(--sticky);
  backdrop-filter:blur(4px);
  text-align: center;
}
.bgps-container .table-back-img{
  background: url("../../img/deguri-home-logo-09.png") center/70% no-repeat;
}
.bgps-container tbody th{
  text-align:left;
  font-weight:600;
  padding:12px 8px;
  border-bottom:1px solid var(--border);
  border-right: 1px solid var(--border);
}
.bgps-container tbody td{
  text-align:center;
  padding:12px 8px;
  border-bottom:1px solid var(--border);
  white-space:nowrap
}
.bgps-container tbody tr:nth-of-type(odd){
  background: #d1ede1
}
.bgps-container tbody tr:nth-child(odd) td:not(.sticky){
  background: #d1ede1
}
.bgps-container .dow{
  font-size:16px;
  color: #000000;
}
.bgps-container .date{
  font-size:12px;
  color:#000000;
  margin-top:4px
}
.bgps-container .sat{
  color:var(--sat)
}
.bgps-container .sun{
  color:var(--sun)
}
.bgps-container .empty{
  color:var(--muted)
}
.bgps-container col{
  width:80px;
}
.lowest-price {
  color: #65b08f;       /* 최솟값 빨간색 */
  font-weight: bold;
}

/*상세 팝업*/
.bgps-popup .popup-date{
  color: black;
}
.bgps-popup .dow.sat{
  color: var(--sat);
}
.bgps-popup .dow.sun{
  color: var(--sun);
}
.bgps-popup ul.popup-time{
  width: 89%;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-y: auto;
  max-height: 300px;
  /*justify-content: center;*/
}
.active-btn{
  background-color:var(--main-color)
}

.bgps-popup .popup-date p {
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  line-height: 20px;
}
.bgps-popup .popup-date p>span {
  font-weight: 700;
  font-size: 16px;
}


/*시간 리스트 - bgps-time-table ===============================*/
.bgps-time-table{
  box-sizing:border-box;
  width:100%;
  height:260px;              /* 요구사항 */
  background:#EAF7F1;        /* 연한 민트 */
  border-radius:8px;
  padding:12px 16px;
  display:flex;
  flex-direction:column;
  overflow:hidden;           /* 내부 스크롤만 */
}

/* 헤더 (상단 앱명) */
.time-table-header{
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:6px;
}
.time-table-header .platform p{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:#111;
}

/* 본문(스크롤 영역) */
.time-table-main{
  flex:1 1 auto;             /* 남은 공간 채우기 */
  overflow-y:auto;           /* 데이터 많을 때 스크롤 */
  padding-right:2px;         /* 스크롤바 공간 보정 */
}

/* 상단 정보 영역 */
.info-warp{
  margin-bottom:10px;
  text-align: left;
}
.date-info{
  margin:0 0 4px;
  font-size:18px;
  font-weight:700;
  color:#111;
}
.ccNm-info{
  margin:0;
  font-size:16px;
  color:#1E6F57;
  font-weight:600;
}
.ccNm-info .ccNm{
  color:#2AA768;             /* 코스명 포인트 컬러 */
  text-decoration:underline; /* 캡처 느낌 */
}

/* 슬롯 그리드 */
.slot-grid{
  list-style:none;
  margin:0;
  padding:2px 0 10px;
  display:grid;
  grid-template-columns:repeat(4, 1fr); /* 캡처처럼 4열 */
  gap:14px 16px;
}
@media (max-width:560px){
  .slot-grid{ grid-template-columns:repeat(3, 1fr); } /* 좁아지면 3열 */
}

/* 슬롯(칩) 기본 */
.slot{
  height:35px;
  border-radius:999px;       /* 알약 모양 */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.1;
  user-select:none;
  /*transition:transform .02s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;*/
}
.slot:active{ transform:translateY(1px); }

/* 라인형(기본) */
.slot.not-min-price{
  border:1px solid #2AA768;
  background:#fff;
}
.slot.not-min-price p{ color:#2AA768; }

/* 꽉 찬형 */
.slot.min-price{
  border:1px solid #2AA768;
  background:#2AA768;
  box-shadow:0 2px 0 rgba(0,0,0,.06) inset;
}
.slot.min-price p{ color:#fff; }

/* 텍스트 */
.slot p{
  margin:0;
  font-weight:700;
  text-align:center;
}
.slot p:first-child{ font-size:16px; }  /* 시간 */
.slot p:last-child{  font-size:13px; }  /* 금액 */
/*시간 리스트 - bgps-time-table end ===============================*/
/*관심골프장 리스트 - bgps-pref-cc-list ===============================*/
.pref-cc-list-waper {
  width: 100%;
  margin-top:50px;
}
/* ============ Header ============ */
.pref-cc-list-header{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.pref-cc-list-header img{
  width: 16px; height: 16px; object-fit: contain; flex: none;
}
.pref-cc-list-header p{
  margin: 0; padding: 0;
  font-weight: 700; font-size: 14px; color:  #333;
}

/* ============ Tag list ============ */
.pref-cc-list-ul{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px; /* row, column */
  margin: 0; padding: 0;
  list-style: none;
}

.pref-cc-list-ul li{ margin: 0; padding: 0; }

.pref-cc-list-ul li p{
  margin: 0;
  padding: 8px 16px;
  border: 1.5px solid #35b07a;
  border-radius: 9999px;
  background: #fff;
  color: #1e8c5a;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: default;               /* 클릭 가능하게 만들면 pointer */
  user-select: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Hover/Focus */
.pref-cc-list-ul li p:hover{
  background:#f2fbf7;
  box-shadow: 0 0 0 3px rgba(53,176,122,.12);
}
.pref-cc-list-ul li p:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(53,176,122,.28);
}

/* 활성(선택) 상태: li 에 is-active 클래스를 붙여 쓰세요 */
.pref-cc-list-ul li.is-active p{
  background: #2aa06f;
  border-color: #2aa06f;
  color: #fff;
}

/* 비활성(선택 불가) 상태: li 에 is-disabled */
.pref-cc-list-ul li.is-disabled p{
  opacity: .55;
  cursor: not-allowed;
}
.home-url-button>div{
  width: 100%;
  height: 50px;
}
.home-url-button>div>button{
  width: 100%;
  height: 100%;
  background: var(--main-color);
  color: white;
  font-size: 17px;
  border: none;
  text-align: center;
}

/*관심골프장 리스트 - bgps-pref-cc-list end===============================*/
