/* :root{
  --primary:#6352C6;
  --primary-dark:var(--primary-dark);
  --primary-active:#f5f4fd;
  --primary-black:var(--text-main);;
  --primary-light:#E9E6FF;
  --primary-bg:#F5F4FF;
  --border:#eaedf4;
  --text-main:#2F2B55;
  --text-sub:#5A5485;
  --card-bg:#FCFBFF;
  --white:#FFFFFF;
  --danger:#C94F6A;
  --danger-bg:#FFF5F8;
  --danger-border:#F2CAD6;
  --shadow: 0 6px 5px rgba(99, 82, 198, 0.10);
  --shadow-soft:0 4px 14px rgba(99, 82, 198, 0.08);
} 
*/
:root{

  --primary:#6352C6;
  --primary-dark:#5143A8;
  --primary-light:#EDEBFF;
  --bg:#F2F4F8;
  --card-bg:#FFFFFF;
  --white:#FFFFFF;
  --text-main:#1E2430;
  --text-sub:#667085;
  --border:#D9E0EA;
  --point-dark:#2B3140;
  --danger:#C94F6A;
  --danger-bg:#FFF5F8;
  --danger-border:#F2CAD6;
  --shadow:0 6px 20px rgba(0,0,0,0.06);
  --shadow-soft:0 4px 14px rgba(0,0,0,0.04);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.wrap,
.menu-grid,
.filter-grid,
.filter-grid-top,
.result-list,
.result-card,
.pace-card,
.site-footer {
  min-width: 0;
}

.menu-item,
.filter-open-btn,
.custom-select,
.select-trigger,
.search-btn,
.race-name,
.race-info {
  min-width: 0;
}
body{
  background: var(--white);
  color: var(--text-main);
}

.wrap {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    /* box-shadow: var(--shadow); */
}

.header {
  /* background: linear-gradient(135deg, var(--primary), var(--primary-dark)); */
  background: #fcfcff;
  color: #fff;
  text-align: center;
  padding: 10px 10px;
}
.header img {
  width: 120px;
  height: auto;
}

.header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
} */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  /* border: 1px solid var(--border); */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);  
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 11px 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: all 0.2s ease;
  line-height: 1.4;
}

.menu-item:last-child {
  border-right: none;
}

.menu-item:hover {
  background: var(--primary-active);
}

.menu-item.active {
  background: var(--primary-active);
  color: var(--primary-dark);
}

.section {
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  color: var(--primary-dark);
  padding: 28px 16px 20px;
}

.filter-box {
  /* padding: 24px 28px 24px 28px; */
  padding: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  /* margin-bottom: 18px; */
}

.filter-select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  /* padding: 0 14px; */
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  appearance: none;
  cursor: pointer;
  text-align: center;
}

.filter-select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 82, 198, 0.12);
}

.search-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  /* box-shadow: 0 8px 18px rgba(99, 82, 198, 0.22); */
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.search-btn:hover {
  /* opacity: 0.97;
  box-shadow: 0 10px 22px rgba(99, 82, 198, 0.26); */
}

.search-btn:active {
  transform: scale(0.99);
}

.result-section {
  /* padding: 24px 24px 24px 24px; */
  padding: 12px;
  /* min-height: 500px; */
}

.result-title {
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  color: var(--primary-dark);
  padding: 28px 0 22px;
}

.result-summary {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 600;
  text-align: right;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(99, 82, 198, 0.14);
}

.result-top {
  /* display: flex; */
  display: inline;

  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  margin-right: 5px;
}

.race-date {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 700;
  float: right;
}

.race-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.4;
  /* margin-bottom: 10px; */
  margin-top: 7px;
}

.race-info {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
}

.race-links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.race-link {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease;
}

.race-link:hover {
  background: #DDD7FF;
  transform: translateY(-1px);
}

.empty-box,
.loading-box,
.error-box {
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #FAF9FF;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.error-box {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.pace-section {
  padding: 12px;
}
.pace-app {
  background: #fff;
}
.pace-app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pace-page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--point-dark);
  line-height: 1.2;
  margin: 0 0 4px;
}

.pace-page-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}

.pace-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #ece7ff;
  box-shadow: inset 0 0 0 1px rgba(81, 67, 168, 0.08);
  flex-shrink: 0;
}

.pace-mode-btn {
  min-width: 62px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7d7797;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.pace-mode-btn.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(81, 67, 168, 0.12);
}

.pace-panel {
  border-top: 1px solid #eceff4;
  padding-top: 20px;
}

.pace-form-group.is-target .pace-form-label {
  color: var(--primary-dark);
}

.pace-form-group.is-target .pace-inline-input,
.pace-form-group.is-target .pace-spinner-box {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(81, 67, 168, 0.08);
}
.pace-form-group {
  margin-bottom: 18px;
  transition: 0.2s ease;
}

.pace-form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--point-dark);
}

.pace-inline-input,
.pace-spinner-box {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.pace-inline-control {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--point-dark);
  background: transparent;
}

.pace-inline-control::placeholder {
  color: #a2acbb;
}

.pace-inline-unit {
  min-width: 72px;
  height: 100%;
  border-left: 1px solid #e3e7ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-size: 15px;
  font-weight: 600;
  padding: 0 12px;
}

.pace-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pace-time-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pace-action-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.pace-action-row .search-btn,
.pace-reset-btn {
  height: 50px;
  font-size: 17px;
}

.pace-action-row .search-btn {
  flex: 1;
}

.pace-reset-btn {
  min-width: 120px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.pace-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.pace-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pace-summary-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--point-dark);
}

.pace-summary-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.pace-summary-value small {
  font-size: 0.7em;
  color: #98a2b3;
  font-weight: 700;
  margin-left: 2px;
}

.pace-help {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-sub);
}

.pace-hidden-results {
  display: none;
}

.pace-distance-presets {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pace-preset-btn {
  min-width: 84px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.pace-preset-btn:hover {
  border-color: var(--primary-dark);
  background: var(--primary-light);
}

.pace-preset-btn.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.pace-form-group.is-hidden {
  display: none !important;
}

.admin-search-layout{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.search-row{
  display:grid;
  gap:12px;
  align-items:end;
}

.row-top{
  grid-template-columns: 180px 180px minmax(320px, 1fr);
}

.row-middle{
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-text-col{
  min-width:0;
}

.search-action-col{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:end;
}

.search-action-col .btn{
  height:44px;
  padding:0 14px;
}

.date-range-wrap{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:8px;
  align-items:center;
}

.date-range-sep{
  color:var(--text-sub);
  font-size:14px;
  font-weight:700;
  text-align:center;
}

.admin-list-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.admin-list-topbar-left{
  min-width:0;
}

.admin-list-topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.list-topbar-control{
  display:flex;
  align-items:center;
  gap:8px;
}

.list-topbar-label{
  font-size:13px;
  font-weight:700;
  color:var(--text-sub);
  white-space:nowrap;
}

.list-topbar-select{
  width:120px;
  min-width:120px;
  height:40px;
  padding:0 10px;
  font-size:14px;
}

.pagination .btn.small{
  min-width:38px;
}

@media (max-width: 1100px){
  .row-top{
    grid-template-columns: 1fr 1fr;
  }

  .row-top .form-row:last-child{
    grid-column: 1 / -1;
  }

  .row-middle{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px){
  .row-top{
    grid-template-columns: 1fr;
  }

  .date-range-wrap{
    grid-template-columns: 1fr;
  }

  .date-range-sep{
    display:none;
  }

  .search-action-col{
    flex-direction:column;
  }

  .search-action-col .btn{
    width:100%;
  }

  .admin-list-topbar{
    flex-direction:column;
    align-items:stretch;
  }

  .admin-list-topbar-right{
    flex-direction:column;
    align-items:stretch;
  }

  .list-topbar-control{
    justify-content:space-between;
  }

  .list-topbar-select{
    width:140px;
  }

  .admin-list-topbar-right .btn{
    width:100%;
  }
}

@media (max-width: 600px) {
  .pace-distance-presets {
    gap: 8px;
  }

  .pace-preset-btn {
    min-width: 72px;
    height: 38px;
    font-size: 13px;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .pace-page-title {
    font-size: 26px;
  }

  .pace-form-label {
    font-size: 20px;
  }

  .pace-inline-control {
    font-size: 24px;
  }

  .pace-inline-unit {
    font-size: 16px;
    min-width: 56px;
  }

  .pace-summary-label {
    font-size: 20px;
  }

  .pace-summary-value {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .pace-app-head {
    gap: 10px;
    align-items: flex-start;
  }

  .pace-page-title {
    font-size: 20px;
  }

  .pace-page-desc {
    font-size: 13px;
  }

  .pace-mode-tabs {
    padding: 3px;
    border-radius: 12px;
  }

  .pace-mode-btn {
    min-width: 46px;
    height: 30px;
    font-size: 13px;
  }

  .pace-form-label {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .pace-inline-input,
  .pace-spinner-box {
    height: 50px;
    border-radius: 10px;
  }

  .pace-inline-control {
    font-size: 18px;
    padding: 0 12px;
  }

  .pace-inline-unit {
    min-width: 44px;
    font-size: 12px;
    padding: 0 8px;
  }

  .pace-time-grid {
    gap: 8px;
  }

  .pace-action-row {
    flex-direction: row;
  }

  .pace-action-row .search-btn,
  .pace-reset-btn {
    height: 44px;
    font-size: 14px;
  }

  .pace-reset-btn {
    min-width: 92px;
  }

  .pace-summary {
    gap: 10px;
  }

  .pace-summary-label {
    font-size: 15px;
  }

  .pace-summary-value {
    font-size: 18px;
  }

  .pace-help {
    font-size: 13px;
  }
}


.pace-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.pace-desc {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.pace-grid {
  display: grid;
  gap: 16px;
}

.pace-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pace-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}

.pace-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  min-height: 52px;
}

.pace-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
}

.pace-unit {
  flex-shrink: 0;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pace-field:nth-child(3) .time-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pace-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.pace-btn-row button {
  flex: 1;
}
.pace-reset-btn {
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 800;
  /* padding: 0 18px; */
  cursor: pointer;
}

.pace-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.pace-result-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.pace-result-label {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
  font-weight: 700;
}

.pace-result-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
}

.pace-help {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-sub);
}
.ad-banner {
  width: 100%;
  aspect-ratio: 0 / 1;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-arrow {
  display: none;
}
.custom-select {
position: relative;
}

.select-trigger {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0 25px 0 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);;
}

/* 화살표 */
.select-arrow {
position: absolute;
right: 14px;
top: 50%;
width: 8px;
height: 8px;
border-right: 2px solid #666;
border-bottom: 2px solid #666;
transform: translateY(-50%) rotate(45deg);
transition: 0.2s;
}

.custom-select.open .select-arrow {
transform: translateY(-50%) rotate(-135deg);
}

.select-options {
position: absolute;
top: 110%;
left: 0;
width: 100%;
background: #fff;
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
display: none;
z-index: 10;
/* text-align: center; */
}

.select-options li {
padding: 12px 16px;
cursor: pointer;
}

.select-options li:hover {
background: #f5f5f5;
}

.select-options li {
list-style: none;
}
/* dots */
.slider-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.slider-dot.active {
  background: #fff;
}


.filter-grid-top {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}

.filter-open-btn {
height: 48px;
border: 1px solid var(--border);
background: #fff;
border-radius: 12px;
padding: 0 14px;
font-size: 15px;
font-weight: 600;
color: var(--text-sub);;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
transition: 0.2s ease;
}

.filter-open-btn:hover {
border-color: var(--primary-dark);
box-shadow: 0 4px 14px rgba(81, 67, 168, 0.08);
}

.filter-selected-count {
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
background: var(--primary-dark);
color: #fff;
font-size: 12px;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
}

.filter-select-wrap {
position: relative;
}

.pretty-select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
width: 100%;
height: 48px;
border: 1px solid #d8dbe2;
border-radius: 12px;
padding: 0 40px 0 14px;
font-size: 15px;
font-weight: 500;
color: var(--text-main);;
background:
  linear-gradient(45deg, transparent 50%, #666 50%),
  linear-gradient(135deg, #666 50%, transparent 50%),
  linear-gradient(to right, transparent, transparent);
background-position:
  calc(100% - 18px) calc(50% - 3px),
  calc(100% - 12px) calc(50% - 3px),
  100% 0;
background-size: 6px 6px, 6px 6px, 2.5em 2.5em;
background-repeat: no-repeat;
cursor: pointer;
}

.pretty-select:focus {
outline: none;
border-color: var(--primary-dark);
box-shadow: 0 0 0 4px rgba(81, 67, 168, 0.08);
}

/* 모달 */
.filter-modal {
position: fixed;
inset: 0;
z-index: 9999;
display: none;
}

.filter-modal.is-open {
display: block;
}

.filter-modal-dim {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.45);
}

.filter-modal-panel {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: min(720px, calc(100% - 32px));
max-height: calc(100vh - 48px);
background: #fff;
border-radius: 22px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.filter-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 22px 24px 16px;
border-bottom: 1px solid #eef0f4;
}

.filter-modal-header h3 {
margin: 0;
font-size: 28px;
font-weight: 800;
color: #111;
}

.filter-modal-close {
border: none;
background: transparent;
font-size: 26px;
color: var(--text-main);;
cursor: pointer;
line-height: 1;
}

.filter-modal-body {
padding: 20px 24px;
max-height: 55vh;
overflow-y: auto;
}

.filter-modal-section-title {
font-size: 18px;
font-weight: 700;
color: #111;
margin-bottom: 18px;
}

.filter-check-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px 28px;
}

.filter-check-item {
display: flex;
align-items: center;
gap: 10px;
min-height: 28px;
cursor: pointer;
font-size: 16px;
color: #666;
user-select: none;
}

.filter-check-item input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 24px;
height: 24px;
border: 1px solid #d8dbe2;
border-radius: 4px;
background: #fff;
position: relative;
cursor: pointer;
flex-shrink: 0;
}

.filter-check-item input[type="checkbox"]:checked {
border-color: var(--primary-dark);
background: var(--primary-dark);
}

.filter-check-item input[type="checkbox"]:checked::after {
content: '';
position: absolute;
left: 7px;
top: 3px;
width: 6px;
height: 12px;
border: solid #fff;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}

.filter-check-item span {
color: #666;
transition: color 0.2s ease, font-weight 0.2s ease;
}

.filter-check-item input[type="checkbox"]:checked + span {
color: #111;
font-weight: 700;
}

.filter-modal-footer {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
padding: 16px 24px 24px;
border-top: 1px solid #eef0f4;
background: #fff;
}

.filter-reset-btn,
.filter-apply-btn {
height: 52px;
border-radius: 12px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
}

.filter-reset-btn {
border: 1px solid #cfd4dc;
background: #fff;
color: var(--text-main);;
}

.filter-apply-btn {
border: 1px solid #cfd4dc;
background: var(--primary-dark);
color: #fff;
}

.filter-reset-btn:hover {
background: var(--bg);;
}

.filter-apply-btn:hover {
opacity: 0.92;
}


#scrollSentinel {
width: 100%;
height: 1px;
}

.list-loading {
text-align: center;
padding: 20px 0 8px;
font-size: 14px;
color: #666;
}


.site-footer {
max-width: 768px;
margin: 0px auto 0;
padding: 32px 20px 40px;
border: 1px solid var(--border);
background: #fafafd;
box-sizing: border-box;
}

.footer-inner {
width: 100%;
}

.footer-logo {
font-size: 22px;
font-weight: 800;
color: var(--primary-dark);
margin-bottom: 12px;
}

.footer-text {
font-size: 14px;
line-height: 1.6;
color: #666;
margin-bottom: 18px;
}

.footer-links {
display: flex;
flex-wrap: wrap;
gap: 10px 16px;
margin-bottom: 18px;
}

.footer-links a {
font-size: 14px;
color: #333;
text-decoration: none;
}

.footer-links a:hover {
color: var(--primary-dark);
}

.footer-copy {
font-size: 13px;
color: #999;
}

.footer-copy {
font-size: 13px;
color: #999;
}




.race-map {
  width: 100%;
  height: 520px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.map-filter-box {
  margin-top: 14px;
  margin-bottom: 14px;
}

.map-filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.map-input {
  flex: 1;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
}

.map-result-head {
  margin-top: 14px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.map-result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-result-item {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}

.map-result-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.map-result-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.map-result-meta {
  font-size: 14px;
  color: var(--text-sub);
}

.rf-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5143A8;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.rf-marker span {
  display: block;
  width: 100%;
  height: 100%;
}

.rf-cluster {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(81, 67, 168, 0.92);
  border: 3px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.rf-infowindow {
  min-width: 220px;
  padding: 4px;
}

.rf-infowindow-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #222;
}

.rf-infowindow-body {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.rf-infowindow-link {
  margin-top: 10px;
}

.rf-infowindow-link a {
  color: #5143A8;
  font-weight: 700;
  text-decoration: none;
}



.map-action-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.map-action-btn {
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #5143A8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 44px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.map-action-btn:hover {
  background: #43378d;
}

.map-action-btn.secondary {
  background: #666;
}

.map-action-btn.secondary:hover {
  background: #555;
}



.marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 꼬리 */
.marker::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 6px 0 6px;
  border-style: solid;
}

/* 기본 */
.marker-default {
  background: #5143A8;
}

.icon-btn {
  width: 50px;
  min-width: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-icon {
  width: 22px;
  height: 22px;
  position: relative;
  border: 2px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

/* 가운데 점 */
.location-icon::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 십자선 (가로 + 세로) */
.location-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background:
    linear-gradient(#fff, #fff) center/2px 100% no-repeat,
    linear-gradient(#fff, #fff) center/100% 2px no-repeat;
  opacity: 0.8;
}




@media (max-width: 768px) {
  .race-map {
    height: 420px;
    border-radius: 14px;
  }

  .map-filter-row {
    flex-direction: column;
  }
}



@media (max-width: 390px) {
  .pace-time-grid {
    grid-template-columns: 1fr;
  }

  .pace-time-grid-two {
    grid-template-columns: 1fr 1fr;
  }
}




@media (max-width: 768px) {

  .slider-arrow {
    display: none;
  }
.filter-grid-top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-modal-panel {
  width: calc(100% - 20px);
  max-height: calc(100vh - 20px);
  border-radius: 18px;
}

.filter-modal-header h3 {
  font-size: 22px;
}

.filter-modal-body {
  max-height: 58vh;
  padding: 18px 18px;
}

.filter-modal-footer {
  padding: 14px 18px 18px;
}

.filter-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
}

@media (max-width: 600px) {
  .pace-section {
    padding: 0 16px 30px;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }

  .pace-field:nth-child(3) .time-grid {
    grid-template-columns: 1fr;
  }

  .pace-btn-row {
    flex-direction: column;
  }

  .pace-result-grid {
    grid-template-columns: 1fr;
  }

  .pace-result-value {
    font-size: 20px;
  }
}
  
@media (max-width: 768px) {
  .header h1,
  .section-title,
  .result-title {
    font-size: 28px;
  }

  .menu-item {
    font-size: 18px;
    min-height: 76px;
  }

  .race-name {
    font-size: 20px;
    margin-top: 7px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 5px 0px 0px 0px
  }
  .header img {
    width:18%;
  }
  .header h1 {
    font-size: 24px;
  }

  .menu-grid {
  /* grid-template-columns: repeat(2, 1fr); */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border: 1px solid var(--border);      
  }

  .menu-item {
    min-height: 50px;
    font-size: 14px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
  }

  .menu-item:nth-child(2n) {
    /* border-right: none; */
  }

  .section-title,
  .result-title {
    font-size: 26px;
    padding: 24px 14px 18px;
  }

  /* .filter-box,
  .result-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
  } */

  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .filter-select {
    height: 48px;
    font-size: 13px;
    text-align: center;
  }
  .pace-btn-row button {
    flex: none;
    font-size: 15px;
  }
  .search-btn {
    height: 48px;
  }

  .result-card {
    padding: 16px;
  }

  .race-name {
    font-size: 16px;
    margin-top: 7px;
  }

  .race-info {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .menu-grid {
    /* grid-template-columns: 1fr; */
  }

  .menu-item {
    /* border-right: none; */
    /* min-height: 58px;
    font-size: 16px; */
    min-height: 47px;
    font-size: 13px;      
  }

  .filter-grid {
    /* grid-template-columns: 1fr; */
  }

  .section-title,
  .result-title {
    font-size: 22px;
  }

  .search-btn {
    font-size: 15px;
  }

  .race-name {
    font-size: 17px;
    margin-top: 7px;
  }
}