/* ===============================
   OOXOO Location Search Modal
   - 검색창 + 최근(동) 목록 + 삭제(X)
   - 즐겨찾기 없음
=============================== */

.ooxoo-loc-open { overflow: hidden; }

.ooxoo-loc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.ooxoo-loc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.ooxoo-loc-card {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 24px));
  max-height: calc(100vh - 112px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ooxoo-loc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px 14px;
}

.ooxoo-loc-title {
  font-weight: 800;
  font-size: 15px;
}

.ooxoo-loc-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.ooxoo-loc-search {
  padding: 0 14px 12px 14px;
}

.ooxoo-loc-searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 10px;
  background: #fff;
}

.ooxoo-loc-searchbox .icon {
  width: 18px;
  height: 18px;
  opacity: 0.65;
  flex: 0 0 auto;
}

.ooxoo-loc-input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 14px;
}

.ooxoo-loc-clear {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ooxoo-loc-body {
  padding: 8px 14px 14px 14px;
  overflow: auto;
}

.ooxoo-loc-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin: 8px 0 10px 0;
}

.ooxoo-loc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #f1f5f9;
}

.ooxoo-loc-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 10px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.ooxoo-loc-row:hover {
  background: #f8fafc;
}

.ooxoo-loc-row-main {
  min-width: 0;
}

.ooxoo-loc-row-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ooxoo-loc-row-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ooxoo-loc-del {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Mobile: 거의 전체 화면 느낌 */
@media (max-width: 768px) {
  .ooxoo-loc-card {
    top: 18px;
    max-height: calc(100vh - 36px);
    width: calc(100% - 24px);
  }
}
/* 매우 중요: hidden이면 무조건 화면/클릭에서 제거 */
.ooxoo-loc-modal[hidden] { display: none !important; }

.ooxoo-loc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.ooxoo-loc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.ooxoo-loc-card {
  position: relative;
  width: min(760px, calc(100% - 40px));
  max-height: calc(100% - 80px);
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
}

.ooxoo-loc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
}

.ooxoo-loc-title { font-weight: 700; }

.ooxoo-loc-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.ooxoo-loc-search { padding: 12px 16px; }
.ooxoo-loc-searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
}

.ooxoo-loc-searchbox .icon { width: 18px; height: 18px; opacity: .7; }

.ooxoo-loc-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.ooxoo-loc-clear {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.ooxoo-loc-body { padding: 6px 16px 16px; overflow: auto; }
.ooxoo-loc-section-title { padding: 8px 0; font-weight: 700; font-size: 13px; color: #374151; }

.ooxoo-loc-empty { padding: 10px 2px; color: #6b7280; font-size: 13px; }

.ooxoo-loc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-top: 1px solid #eef2f7;
  cursor: pointer;
}

.ooxoo-loc-row-main { min-width: 0; }
.ooxoo-loc-row-name { font-weight: 700; }
.ooxoo-loc-row-sub { margin-top: 4px; font-size: 12px; color: #6b7280; }

.ooxoo-loc-del {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
