@charset "utf-8";

/* 내용관리 */
#ctt {margin:10px 0;padding:20px;background:#fff}
.ctt_admin {text-align:right}
#ctt header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#ctt_con {padding:10px 0;line-height:1.6em}
#ctt_con img{max-width:100%;height:auto}
.ctt_img {text-align:center}

#map {
    width: 100%;
    height: 650px;
    border-radius: 15px;
  }

  @media (max-width: 500px) {
    #map {
      height:480px !important;
    }
  }

  .info-window {
    padding: 10px;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: left;
  }

  .info-window .info-title {
    font-weight: bold;
    font-size: 18px;
    color: #aa6c10;
    margin-bottom: 4px;
  }

  .info-window .info-address {
    font-size: 13px;
    color: #555;
  }

  .info-window .info-close {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
  }

 

  .clickable {
    cursor: pointer;
    color: #aa6c10;  }

.toolbar { 
  display:flex; 
  gap:10px; 
  align-items:center; 
  justify-content:center;
}

.toolbar .btn {
  padding:10px 18px; 
  border:1px solid #ddd; 
  border-radius: 10px;
  background:#fff; 
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  color:#555;
  transition: all .25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 600px) {
  .toolbar {
    width: 100%;
  }
  .toolbar .btn {
  padding:5px 10px; 
  flex: 1;
}
}


/* 활성 버튼 */
.toolbar .btn.is-active { 
  background:#aa6c10; 
  color:#fff; 
  border-color:#aa6c10; 
  box-shadow: 0 4px 10px rgba(170,108,16,0.25);
}

/* hover */
.toolbar .btn:hover, 
.toolbar .btn:focus {
  outline:0; 
  background: #f7f1e7;
  border-color:#aa6c10;
  color:#aa6c10;
  box-shadow:0 0 0 2px rgba(170,108,16,.15);
}

/* ✅ active 버튼은 hover/ focus에 영향받지 않게 */
.toolbar .btn.is-active:hover,
.toolbar .btn.is-active:focus {
  background:#aa6c10;
  color:#fff;
  border-color:#aa6c10;
  box-shadow: 0 4px 10px rgba(170,108,16,0.25);
}

/* 담당교무 열 임시 숨김(표에서는 안보이게) */
.table_temple th:nth-child(3),
.table_temple td:nth-child(3) {
  display: none;   /* 나중에 쓸 일 생기면 이 줄만 주석 처리 */
}



/* ---------- 카드형 기본 숨김 (PC에서는 테이블 유지) ---------- */
.temple-card-list { display:none; }

/* 카드 스타일 */
.temple-card {
  border:1px solid #e5e5e5;
  border-radius:10px;
  padding:12px 15px;
  margin-bottom:10px;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.temple-card .card-title {
  font-weight:700;
  color:#aa6c10;
  font-size:16px;
  margin-bottom:6px;
}
.temple-card .card-meta {
  font-size:13px;
  margin-bottom:4px;
  color:#666;
}
.temple-card .card-label {
  font-weight:600; color:#444;
}
.temple-card .card-actions {
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.temple-card button, .temple-card a {
  padding:6px 10px;
  border-radius:6px;
  border:1px solid #ddd;
  font-size:13px;
  background:#fafafa;
  cursor:pointer;
}
.temple-card a { text-decoration:none; color:#222; }

/* ---------- 반응형: 모바일에서는 카드형으로 전환 ---------- */
@media (max-width: 768px){
  .temple-table-wrap { display:none; }
  .temple-card-list { display:block; }
  .temple-card { font-size:14px; }
  .map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }
}


.temple-card .card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
/* 카카오 버튼 */
.kakao-btn {
  background: #FAE100;
  border: 1px solid #E0C200;
  color: #222;
  border-radius: 6px;

  /* 🔹 부드러운 애니메이션 */
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

/* 전화 버튼 */
.call-btn {
  background: #19CE60;
  border-color: #16b856;
  color: white;
}

/* 마우스오버 */
.kakao-btn:hover {
  background: #FAE100; /* 그대로 유지 */
  border-color: #c9a000;      /* 테두리만 살짝 진하게 */
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  transform: translateY(-1px); /* 버튼이 살짝 위로 뜨는 느낌 */
}
.call-btn:hover { background:#13b14f; }

.info-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 인포윈도우 버튼 */
.info-window .card-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}

/* ===== 최신 테이블 룩 & 인터랙션 ===== */
.table_temple {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  text-align: center;
}

.table_temple thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg,#f9fafb 0%,#f3f4f6 100%);
  color: #333;
  font-weight: 700;
  letter-spacing: .02em;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 10px;
}

.table_temple tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f3f5;
  background: #fff;
  transition: background .18s ease, color .18s ease;
}

/* 지브라 */
.table_temple tbody tr:nth-child(odd) td {
  background: #fafafb;
}

/* 호버 하이라이트 */
.table_temple tbody tr:hover td {
  background: #fffbe6;
}

/* 포커스(클릭) 시 링 */
.table_temple tbody tr.is-focused td {
  background: #fff9d6;
  box-shadow: inset 0 0 0 2px rgba(170,108,16,.25);
}

/* 링크 컬러 통일 */
.table_temple a.tel-link {
  color: #0f6; /* 원래 녹색 링크면 살짝 강조 */
  text-decoration: underline;
}

/* 좁은 화면에서의 테이블 스크롤 및 터치 편의 */
.temple-table-wrap {
  overflow: hidden;
}
@media (max-width: 980px){
  .temple-table-wrap { overflow-x:auto; border-radius: 12px; }
  .table_temple { min-width: 760px; }
}

/* 클릭 가능한 칼럼 색상(기존 유지) */
.clickable { cursor: pointer; color: #aa6c10; }

/* 카드 버튼은 기존 것 그대로 사용(.card-btn, .kakao-btn, .call-btn) */
div[style*="triangle"] {
  margin-top: -3px !important;
}

/* ── 검색바 ─────────────────────────────────────────── */


/* 검색 박스 flex 새 스타일 */
.toolbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #fff;
}

.toolbar-search input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-size: 15px;
  outline: none;
}

.toolbar-search .search-btn {
  background: #aa6c10;
  color: #fff;
  border: none;
  padding: 10px 10px;
  cursor: pointer;
  font-size: 15px;
}

.toolbar-search .search-btn:hover {
  background: #8c550a;
}

.toolbar-search .search-clear {
  background: transparent;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  color: #888;
}

.toolbar-search .search-clear:hover {
  color: #444;
}



#templeSearch {
  flex: 1;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

.search-btn, .clear-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #666;
}

.search-btn:hover {
  background: #aa6c10; 
  color: #fff;
  border-color: #aa6c10;
}

.clear-btn:hover {
  background: #eee;
  color: #333;
}

/* 카드 내부 카카오 버튼 */
.temple-card .kakao-btn {
  background: #FEE500;
  border-color: #E0C200;
  color: #222;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #E0C200;
}

.temple-card .kakao-btn:hover {
  background: #FFD400;
}

.temple-card .btn-goto {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
}

.temple-card .btn-goto:hover {
  border-color: #aa6c10;
  color: #aa6c10;
}

/* 카드 내부 전화 버튼 (인포윈도우와 통일) */
.temple-card .call-btn {
  background: #19CE60;        /* 카카오톡 전화 스타일 초록 */
  border-color: #16b856;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #16b856;
}

.temple-card .call-btn:hover {
  background: #13b14f;
}

/* 검색 입력의 기본 X 버튼 숨기기 (Chrome/Safari/Edge/IE 호환) */
#templeSearch::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
#templeSearch::-webkit-search-decoration { -webkit-appearance: none; }
#templeSearch::-ms-clear, 
#templeSearch::-ms-reveal { display: none; width: 0; height: 0; }

 /* 좌측 리스트 · 우측 지도 2단 레이아웃 */
  .temple-layout {
    display: flex;
    gap: 18px;
    align-items: stretch;
    margin-top: 16px;
  flex-direction: row-reverse; /* ✅ 지도 DOM이 앞이지만 오른쪽에 보이게 */
  }
  .temple-list-column {
    flex: 0 0 45%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-height: 600px; /* 한 화면 안에 들어오도록 제한 */
  }
  .temple-map-column {
    flex: 1 1 55%;
    min-width: 0;
  }
  .temple-list-column .toolbar-search {
    margin-top: 4px;
  }
  /* 리스트 영역에 세로 스크롤 */
  .temple-table-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
  }

  /* 모바일에서는 다시 위/아래 구조로 */
  @media (max-width: 980px) {
    .temple-layout {
      flex-direction: column;
    }
    .temple-list-column {
      max-height: none;
    }
    .temple-table-wrap {
      max-height: none;
      overflow-y: visible;
    }
  }

    /* 좌측 리스트 · 우측 지도 2단 레이아웃 */
  .temple-layout {
    display: flex;
    gap: 5px;
    align-items: stretch;
    margin-top: 16px;
  }

  .temple-list-column {
    flex: 0 0 30%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    max-height: 650px; /* 한 화면 안에 들어오도록 제한 */
  }

  .temple-map-column {
    flex: 1 1 70%;
    min-width: 0;
  }

  .temple-list-column .toolbar-search {
    margin-top: 4px;
  }

  /* 리스트 영역에 세로 스크롤 */
  .temple-table-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
  }

  /* 왼쪽 리스트 카드형 */
  .temple-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .temple-item {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
  }

  .temple-item:hover {
    background: #f8faff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
  }

  .temple-title {
    color: var(--color-main);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
  }

  .temple-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
  }

  .temple-meta + .temple-meta {
    margin-top: 2px;
  }

  /* 모바일에서는 위/아래 구조 */
  @media (max-width: 980px) {
    .temple-layout {
      flex-direction: column;
    }
    .temple-list-column {
      max-height: none;
    }
    .temple-table-wrap {
      max-height: none;
      overflow-y: visible;
    }
  }


  .map-header {
    display: flex;
    gap: 10px;
  }

  .temple-pagination {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.temple-pagination .page-btn {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.temple-pagination .page-btn.is-active {
  background: #aa6c10;
  border-color: #aa6c10;
  color: #fff;
  font-weight: 600;
}


.info-sns .sns-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  border-radius:50%;
  background:#f3f3f3;
  color:#333;
  font-size:18px;
}

.info-sns .sns-btn.insta {
  background: linear-gradient(
    45deg,
    #feda75 0%,   /* 노랑 */
    #fa7e1e 25%,  /* 주황 */
    #d62976 50%,  /* 핑크 */
    #962fbf 75%,  /* 보라 */
    #4f5bd5 100%  /* 파랑 */
  );
  color: #fff;
}

.info-sns .sns-btn.youtube {
  background:#ff0000;
  color:#fff;
}


/* ===============================
   모바일 zoneToolbar 그리드 정렬
   =============================== */
@media (max-width: 600px) {

  #zoneToolbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* 기본 버튼은 자동으로 grid 아이템 */
  #zoneToolbar .btn {
    padding: 8px 6px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* 전체 탭 (1행 전체) */
  #zoneToolbar .btn-all {
    grid-column: 1 / -1;
  }

  /* 기관 탭 (마지막 행 전체) */
  #zoneToolbar .btn-org {
    grid-column: 1 / -1;
  }
}
