/* ============================================================
   🌴 JEJU PARTNER CARD THEME STYLE (by GPT-5 Final)
   구조: 전체 레이아웃 / 카드 리스트 / 카드 개별 / 글쓰기 폼
============================================================ */

/* ============================================================
   📌 1. 기본 레이아웃 세팅
============================================================ */
body {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  background: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.partner-list-wrap,
.partner-write-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ============================================================
   📌 2. 도시 탭
============================================================ */
.region-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 50px 0 40px;
}

.region-tabs a {
  padding: 10px 24px;
  background: #f3f3f7;
  color: #555;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.region-tabs a:hover {
  background: #6c5ce7;
  color: #fff;
}

.region-tabs a.on {
  background: #6c5ce7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,0.25);
}

/* ============================================================
   📌 3. 제휴샵 등록 버튼 (list.skin.php 하단)
============================================================ */
.btn-write {
  text-align: center;
  margin: 60px auto 80px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-write a {
  display: inline-block;
  background: linear-gradient(135deg, #6c5ce7 0%, #9b59b6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-write a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.btn-write a:hover::before {
  left: 125%;
}

.btn-write a:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.4);
  background: linear-gradient(135deg, #7e69f3 0%, #a66ad1 100%);
}
/* ============================================================
   📌 4. 카드 리스트 (Grid)
============================================================ */



/* ============================================================
   📌 6. 글쓰기 폼 (write.skin.php)
============================================================ */
.write-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
}

.write-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #333;
  display: inline-block;
  border-left: 6px solid #6c5ce7;
  padding-left: 14px;
  margin: 0;
}

.write-header p {
  color: #777;
  font-size: 14px;
  margin-top: 8px;
}

.partner-write-wrap {
  background: #fff;
  margin: 60px auto;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ✅ 입력폼 공통 */
.write-box {
  margin-bottom: 20px;
}

.write-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.write-box input[type="text"],
.write-box select,
.write-box textarea,
.write-box input[type="file"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #fff;
  box-sizing: border-box;
}

.write-box textarea {
  height: 120px;
  resize: vertical;
}

.write-box input[type="text"]:focus,
.write-box select:focus,
.write-box textarea:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
  outline: none;
}

/* ✅ 두 컬럼 */
.write-box.two-col {
  display: flex;
  gap: 15px;
}
.write-box.two-col > div {
  flex: 1;
}

/* ✅ 안내문구 */
.write-box .tip,
.img-guide {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* ✅ 이미지*/
.file-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.btn-add-file {
  display: inline-block;
  background: #6c5ce7;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.btn-remove-file {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.btn-add-file:hover { background: #5a4bd6; }
.btn-remove-file:hover { background: #c0392b; }
/* ============================================================
   📌 7. 폼 버튼
============================================================ */
.write-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.btn-submit {
  background: #6c5ce7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
}

.btn-submit:hover {
  background: #584bd8;
  transform: translateY(-2px);
}

.btn-cancel {
  display: inline-block;
  background: #eee;
  color: #333;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 600;
}

.btn-cancel:hover {
  background: #ddd;
}

/* ============================================================
   📌 8. 페이지 네비 + 반응형
============================================================ */
.partner-paging {
  margin-top: 40px;
  text-align: center;
}

.partner-paging .pg_page {
  display: inline-block;
  padding: 8px 14px;
  background: #f3f3f7;
  color: #333;
  margin: 0 3px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.partner-paging .pg_page:hover {
  background: #6c5ce7;
  color: #fff;
}

.partner-paging .pg_current {
  background: #6c5ce7;
  color: #fff;
  font-weight: 700;
}

/* 반응형 */
@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .partner-write-wrap {
    padding: 30px 20px;
  }
  .write-box.two-col {
    flex-direction: column;
  }
  .btn-submit, .btn-cancel {
    width: 100%;
  }
}
